* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    padding: 20px;
}

.container {
    background: rgba(15, 15, 30, 0.7);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 550px;
    width: 95%;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    z-index: -1;
}

h1 {
    margin: 0px 0px 20px 0px;
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(45deg, #00fffc, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    letter-spacing: 1px;
}

p {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
}

input[type=text], input[type=number], select {
    width: 100%;
    height: 46px;
    font-size: 1.1em;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    padding: 0 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

input[type=text]:focus, input[type=number]:focus, select:focus {
    border-color: #8a2be2;
    outline: none;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

input[type=text]::placeholder, input[type=number]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
}

.checkbox-container input[type=checkbox] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #8a2be2;
}

.checkbox-container label {
    margin-bottom: 0;
    cursor: pointer;
}

#cvv {
    width: 90px;
}

#quantidade {
    width: 110px;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

option {
    background: #1e1e2f;
    color: white;
    padding: 10px;
}

button {
    width: 150px;
    height: 48px;
    margin-top: 25px;
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.6);
}

button:hover::before {
    left: 100%;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 25px;
    padding: 20px;
    font-family: 'Consolas', monospace;
    font-size: 0.95em;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: left;
    white-space: nowrap;
    overflow-x: auto;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.results::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.results::-webkit-scrollbar-thumb {
    background-color: rgba(138, 43, 226, 0.5);
    border-radius: 4px;
}

.results::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.copy-btn {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid #8a2be2;
    border-radius: 8px;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(138, 43, 226, 0.3);
}

a {
    text-decoration: none;
    color: #8a2be2;
    transition: all 0.3s ease;
}

a:hover {
    color: #bf55ec;
    text-decoration: underline;
}

.footer {
    margin-top: 25px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.animated-bg span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 50%;
    animation: move 5s linear infinite;
}

.animated-bg span:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-duration: 12s;
    width: 80px;
    height: 80px;
    opacity: 0.2;
}

.animated-bg span:nth-child(2) {
    top: 60%;
    left: 40%;
    animation-duration: 15s;
    width: 60px;
    height: 60px;
    opacity: 0.1;
}

.animated-bg span:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-duration: 18s;
    width: 100px;
    height: 100px;
    opacity: 0.2;
}

.animated-bg span:nth-child(4) {
    top: 80%;
    left: 10%;
    animation-duration: 20s;
    width: 50px;
    height: 50px;
    opacity: 0.3;
}

.loader {
    display: none;
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #8a2be2;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    transition: opacity 0.3s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes move {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(100px, 100px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(200px, 50px) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(100px, -100px) rotate(270deg) scale(0.9);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

#resultados {
    transition: all 0.3s ease;
    opacity: 1;
}

#resultados.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    display: none;
    text-align: left;
    animation: fadeIn 0.3s ease;
}

.alert-error {
    background-color: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ffcccc;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .container {
        padding: 25px 15px;
    }
    h1 {
        font-size: 2em;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    #cvv, #quantidade {
        width: 100%;
    }
} 