@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff41;
    --secondary-color: #00d4ff;
    --accent-color: #ff00ff;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(13, 13, 13, 0.95);
    --border-color: #00ff41;
    --text-primary: #00ff41;
    --text-secondary: #00d4ff;
    --text-light: rgba(255, 255, 255, 0.9);
    --error-color: #ff0040;
    --success-color: #00ff41;
}

body {
    font-family: 'Rajdhani', monospace;
    background: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Matrix Rain Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), 
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 2px,
                    rgba(0, 255, 65, 0.03) 2px,
                    rgba(0, 255, 65, 0.03) 4px
                );
    z-index: -2;
    animation: matrix-rain 20s linear infinite;
}

@keyframes matrix-rain {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

/* Cyber Grid Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    width: 100%;
    max-width: 500px;
    perspective: 1000px;
}

.payment-card {
    background: var(--card-bg);
    border-radius: 0;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.5),
        0 0 40px rgba(0, 255, 65, 0.3),
        0 0 60px rgba(0, 255, 65, 0.1),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
    padding: 40px;
    position: relative;
    overflow: hidden;
    animation: cardEntry 0.8s ease-out, pulse-glow 2s ease-in-out infinite alternate;
    backdrop-filter: blur(10px);
}

@keyframes cardEntry {
    from {
        opacity: 0;
        transform: rotateY(90deg) translateZ(100px);
    }
    to {
        opacity: 1;
        transform: rotateY(0) translateZ(0);
    }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.5), 0 0 40px rgba(0, 255, 65, 0.3); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 65, 0.7), 0 0 60px rgba(0, 255, 65, 0.5); }
}

/* Glitch Effect for Headers */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px var(--primary-color); }
    20% { text-shadow: 3px 0 10px var(--accent-color), -3px 0 10px var(--secondary-color); }
    40% { text-shadow: -3px 0 10px var(--accent-color), 3px 0 10px var(--secondary-color); }
    60% { text-shadow: 0 0 10px var(--primary-color); }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.amount-display {
    font-size: 48px;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    color: var(--text-primary);
    margin-top: 10px;
    text-shadow: 0 0 20px currentColor;
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.payment-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: var(--text-light);
    font-size: 16px;
    font-family: 'Rajdhani', monospace;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.5),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
    transform: translateX(5px);
}

.form-group input::placeholder {
    color: rgba(0, 255, 65, 0.3);
}

.valor-input-group {
    display: flex;
    align-items: center;
}

.currency {
    background: rgba(0, 255, 65, 0.1);
    padding: 15px 20px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-right: none;
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}

.valor-input-group input {
    border-left: none;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, transparent 0%, var(--primary-color) 0%, transparent 100%);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: var(--dark-bg);
    border: 2px solid var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.submit-btn::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: left 0.6s;
}

.submit-btn:hover {
    background-position: 100% 0%;
    transform: scale(1.05);
    box-shadow: 
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: scale(0.98);
}

.info-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scan-line 3s linear infinite;
}

@keyframes scan-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.info-section h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
}

.info-section ul {
    list-style: none;
    color: var(--text-light);
}

.info-section li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    opacity: 0;
    animation: fadeInLeft 0.5s ease forwards;
}

.info-section li:nth-child(1) { animation-delay: 0.1s; }
.info-section li:nth-child(2) { animation-delay: 0.2s; }
.info-section li:nth-child(3) { animation-delay: 0.3s; }
.info-section li:nth-child(4) { animation-delay: 0.4s; }
.info-section li:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-section li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-notice svg {
    color: var(--primary-color);
    animation: rotate-security 2s linear infinite;
}

@keyframes rotate-security {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos para a página de PIX */
.timer-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.timer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: sweep 3s linear infinite;
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.timer-container p {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

.timer {
    font-size: 48px;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    color: var(--text-primary);
    margin-top: 10px;
    text-shadow: 0 0 30px currentColor;
    animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pix-section {
    margin-bottom: 30px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    position: relative;
}

.qr-code-container::before,
.qr-code-container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
}

.qr-code-container::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.qr-code-container::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

#qrcode {
    padding: 20px;
    background: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.pix-code-section {
    margin-bottom: 30px;
}

.pix-code-section label {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

.pix-code-box {
    display: flex;
    gap: 10px;
}

.pix-code-box input {
    flex: 1;
    padding: 15px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 0, 0, 0.7);
    font-family: 'Rajdhani', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.pix-code-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.copy-btn {
    padding: 15px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.copy-btn:hover {
    color: var(--dark-bg);
}

.copy-btn:hover::before {
    left: 0;
}

.copy-btn.copied {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--dark-bg);
}

.status-section {
    text-align: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 65, 0.2);
    margin-bottom: 20px;
    position: relative;
}

.status-section h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-section p {
    color: var(--text-light);
}

.loading-spinner {
    display: inline-block;
    margin-top: 20px;
}

.spinner {
    border: 3px solid rgba(0, 255, 65, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: cyber-spin 0.8s linear infinite;
}

@keyframes cyber-spin {
    0% { 
        transform: rotate(0deg);
        box-shadow: 0 0 10px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-color);
    }
    100% { 
        transform: rotate(360deg);
        box-shadow: 0 0 10px var(--primary-color);
    }
}

.instructions {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}

.instructions h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
}

.instructions ol {
    color: var(--text-light);
    padding-left: 30px;
    counter-reset: step-counter;
    list-style: none;
}

.instructions li {
    padding: 10px 0;
    position: relative;
    padding-left: 40px;
    counter-increment: step-counter;
}

.instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 10px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}

.user-info {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 25px;
    margin-bottom: 20px;
}

.user-info p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 16px;
}

.user-info strong {
    color: var(--text-secondary);
    margin-right: 10px;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.secondary-btn, .back-btn {
    padding: 15px 30px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--text-primary);
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.secondary-btn::before, .back-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 255, 65, 0.2);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.secondary-btn:hover::before, .back-btn:hover::before {
    width: 100%;
    height: 100%;
}

.secondary-btn:hover, .back-btn:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.error-container {
    text-align: center;
    padding: 40px 20px;
}

.error-container h2 {
    color: var(--error-color);
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    animation: error-flash 1s ease-in-out infinite;
}

@keyframes error-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.error-container p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Responsividade */
@media (max-width: 600px) {
    .payment-card {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .amount-display {
        font-size: 36px;
    }
    
    .timer {
        font-size: 36px;
    }
    
    #qrcode {
        transform: scale(0.8);
    }
    
    .pix-code-box {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-group input {
        font-size: 16px;
    }
    
    .submit-btn {
        font-size: 16px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .secondary-btn, .back-btn {
        width: 100%;
    }
}

/* Animações extras para elementos */
input:valid {
    border-color: rgba(0, 255, 65, 0.5);
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Efeito de partículas flutuantes */
@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.payment-card::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    left: 10%;
    animation: float-particle 15s linear infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

.payment-card::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--secondary-color);
    right: 10%;
    animation: float-particle 20s linear infinite;
    animation-delay: 5s;
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Hover effects avançados */
input:hover:not(:focus) {
    border-color: rgba(0, 255, 65, 0.5);
}

/* Estilo para scrollbar customizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Efeito de digitação para textos */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Cursor piscante */
@keyframes cursor-blink {
    0%, 49% { border-color: var(--primary-color); }
    50%, 100% { border-color: transparent; }
}

/* Estilos para a seção de configuração */
.config-section {
    margin-bottom: 30px;
}

.config-toggle {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: var(--text-secondary);
    font-family: 'Rajdhani', monospace;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    outline: none;
}

.config-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.config-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.config-toggle:hover svg {
    transform: rotate(90deg);
}

.config-panel {
    margin-top: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-top: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.config-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    animation: scan-config 2s linear infinite;
}

@keyframes scan-config {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.config-panel .form-group {
    margin-bottom: 15px;
}

.config-panel .form-group:last-child {
    margin-bottom: 0;
}

.config-panel input {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 1px;
}