/* ============================================================
   CYBER 404 BRAZIL - VISUAL ENHANCEMENTS
   Complete Cyberpunk Theme CSS
   ============================================================ */

/* ============================================================
   1. EFEITOS DE FUNDO ANIMADOS
   ============================================================ */
.cyber-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    animation: float-particle linear infinite;
    opacity: 0.3;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--neon-green);
    overflow: hidden;
}

/* ============================================================
   2. HEADER COM EFEITO NEON PULSANTE
   ============================================================ */
.main-header {
    background: linear-gradient(180deg, rgba(0, 255, 65, 0.15) 0%, transparent 100%);
    border-bottom: 2px solid rgba(0, 255, 65, 0.3);
    padding: 18px 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 60px rgba(0, 255, 65, 0.05);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 2rem;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-1px, 1px); }
}

.logo-text::after {
    content: 'CYBER 404';
    position: absolute;
    top: 0;
    left: 0;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: glitch-text 3s infinite;
}

@keyframes glitch-text {
    0%, 90%, 100% { opacity: 0; }
    92% { opacity: 0.3; transform: translate(2px, -2px); }
    94% { opacity: 0.3; transform: translate(-2px, 2px); }
}

/* ============================================================
   3. CARDS COM BORDA NEON E EFEITO HOVER 3D
   ============================================================ */
.card-cyber {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0) rotateY(0);
}

.card-cyber:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateY(-5px);
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: 
        0 0 40px rgba(0, 255, 65, 0.1),
        0 0 80px rgba(0, 255, 65, 0.05),
        inset 0 0 40px rgba(0, 255, 65, 0.02);
}

.card-cyber::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--neon-green), 
        var(--neon-blue), 
        var(--neon-purple), 
        var(--neon-green));
    background-size: 400% 400%;
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    animation: border-glow 3s ease infinite;
    transition: opacity 0.3s ease;
}

.card-cyber:hover::before {
    opacity: 0.3;
}

@keyframes border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   4. BOTÕES COM EFEITO DE ONDA E GLOW
   ============================================================ */
.btn-cyber {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 8px 20px;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-cyber::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-cyber:hover::after {
    width: 300px;
    height: 300px;
}

.btn-cyber:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    transform: scale(1.05) translateY(-2px);
}

.btn-cyber-gold {
    border-color: var(--neon-gold);
    color: var(--neon-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

.btn-cyber-gold:hover {
    background: var(--neon-gold);
    color: var(--dark-bg);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4), 0 0 80px rgba(255, 215, 0, 0.2);
}

.btn-cyber-success {
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.3), 0 0 60px rgba(0, 255, 65, 0.1); }
}

/* ============================================================
   5. STATUS BADGES COM ANIMAÇÃO
   ============================================================ */
.status-badge-cyber {
    padding: 4px 14px;
    border-radius: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 0.5rem;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.status-cyber-valid {
    background: rgba(0, 255, 65, 0.12);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 65, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
    animation: status-pulse-valid 2s infinite;
}

@keyframes status-pulse-valid {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.3); }
}

.status-cyber-invalid {
    background: rgba(255, 0, 64, 0.12);
    color: #ff0040;
    border: 1px solid rgba(255, 0, 64, 0.25);
    animation: status-pulse-invalid 1.5s infinite;
}

@keyframes status-pulse-invalid {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 64, 0.05); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 64, 0.2); }
}

/* ============================================================
   6. CONSOLE COM EFEITO DE TELA DE HACKER
   ============================================================ */
.console-cyber {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 10px;
    padding: 16px;
    max-height: 280px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.8;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 255, 65, 0.02);
}

.console-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.01) 2px,
        rgba(0, 255, 65, 0.01) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.log-cyber-info {
    border-left: 2px solid #60a5fa;
    padding-left: 10px;
    animation: typewriter 0.5s steps(40) 1;
}

@keyframes typewriter {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

.log-cyber-success {
    border-left: 2px solid var(--neon-green);
    padding-left: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.log-cyber-error {
    border-left: 2px solid #ff0040;
    padding-left: 10px;
    animation: error-flash 0.3s ease 2;
}

@keyframes error-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================================
   7. STAT CARDS COM ÍCONES ANIMADOS
   ============================================================ */
.stat-cyber {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-cyber::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    animation: stat-scan 3s infinite;
}

@keyframes stat-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-cyber:hover {
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.06);
    transform: translateY(-3px);
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-value-valid { -webkit-text-fill-color: var(--neon-green); }
.stat-value-invalid { -webkit-text-fill-color: #ff0040; }
.stat-value-retry { -webkit-text-fill-color: #ffaa00; }
.stat-value-gold { -webkit-text-fill-color: var(--neon-gold); }
.stat-value-total { -webkit-text-fill-color: #fff; }

/* ============================================================
   8. PROGRESS BAR COM EFEITO NEON
   ============================================================ */
.progress-cyber {
    height: 4px;
    background: rgba(0, 255, 65, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
}

.progress-cyber-bar {
    height: 100%;
    background: var(--cyber-gradient);
    width: 0%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    position: relative;
}

.progress-cyber-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================================
   9. TABELA DE RESULTADOS COM EFEITO SCROLL
   ============================================================ */
.scrollable-results-cyber {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 8px;
}

.scrollable-results-cyber::-webkit-scrollbar {
    width: 6px;
}

.scrollable-results-cyber::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.scrollable-results-cyber::-webkit-scrollbar-thumb {
    background: var(--cyber-gradient);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.table-cyber tbody tr {
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.table-cyber tbody tr:hover {
    background: rgba(0, 255, 65, 0.05);
    transform: scale(1.01);
}

.result-row-cyber.success {
    border-left-color: var(--neon-green);
    animation: row-flash-valid 1s ease;
}

@keyframes row-flash-valid {
    0%, 100% { background: transparent; }
    50% { background: rgba(0, 255, 65, 0.05); }
}

.result-row-cyber.invalid {
    border-left-color: #ff0040;
}

/* ============================================================
   10. LOADING SPINNER CYBER
   ============================================================ */
.cyber-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 65, 0.1);
    border-top: 2px solid var(--neon-green);
    border-radius: 50%;
    animation: cyber-spin 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

@keyframes cyber-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================
   11. TOGGLE SWITCH CYBER
   ============================================================ */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #666;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(0, 255, 65, 0.15);
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* ============================================================
   12. MODAL COM EFEITO GLASSMORPHISM
   ============================================================ */
.modal-content {
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 60px rgba(0, 255, 65, 0.05);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    padding: 16px 24px;
}

.modal-footer {
    border-top: 1px solid rgba(0, 255, 65, 0.1);
    padding: 16px 24px;
}

/* ============================================================
   13. DROP ZONE COM EFEITO DE ONDA
   ============================================================ */
.drop-zone {
    border: 2px dashed var(--border-glow);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 65, 0.03), transparent, rgba(0, 255, 65, 0.03), transparent);
    animation: drop-rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drop-zone:hover::before {
    opacity: 1;
}

@keyframes drop-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.drop-zone.dragover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 65, 0.05);
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.05);
}

.drop-zone i {
    font-size: 2rem;
    color: var(--neon-green);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.drop-zone:hover i {
    opacity: 0.8;
    transform: scale(1.1);
}

/* ============================================================
   14. TOOLTIP CYBER
   ============================================================ */
.tooltip-cyber {
    position: relative;
    cursor: help;
}

.tooltip-cyber::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-green);
    border-radius: 6px;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-size: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
}

.tooltip-cyber:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* ============================================================
   15. FONTE E TEXTO COM EFEITO NEON
   ============================================================ */
.neon-text {
    color: var(--neon-green);
    text-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        0 0 20px rgba(0, 255, 65, 0.2),
        0 0 40px rgba(0, 255, 65, 0.1);
    animation: neon-flicker 3s infinite;
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    51% { opacity: 1; }
    52% { opacity: 0.9; }
    53% { opacity: 1; }
}

.neon-gold {
    color: var(--neon-gold);
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

/* ============================================================
   16. RESPONSIVIDADE MELHORADA
   ============================================================ */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .card-cyber {
        padding: 12px !important;
    }
    
    .gate-selector-cyber {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-cyber {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .console-cyber {
        max-height: 180px;
        font-size: 10px;
    }
    
    .plan-card .plan-price {
        font-size: 1.1rem;
    }
    
    .plan-card .plan-hours {
        font-size: 0.6rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .stat-value {
        font-size: 1rem;
    }
    
    .gate-selector-cyber {
        gap: 4px;
    }
}

/* ============================================================
   17. ANIMAÇÃO DE CARREGAMENTO
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(0, 255, 65, 0.03) 25%, 
        rgba(0, 255, 65, 0.06) 50%, 
        rgba(0, 255, 65, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   18. GRADIENTE DE FUNDO DINÂMICO
   ============================================================ */
body {
    background: var(--dark-bg);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(179, 0, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bg-shift 20s ease-in-out infinite alternate;
}

@keyframes bg-shift {
    0% { 
        background-position: 0% 50%; 
        background-size: 100% 100%;
    }
    50% { 
        background-position: 100% 50%; 
        background-size: 120% 120%;
    }
    100% { 
        background-position: 0% 50%; 
        background-size: 100% 100%;
    }
}

/* ============================================================
   19. SCROLLBAR PERSONALIZADA
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--cyber-gradient);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

/* ============================================================
   20. SELEÇÃO DE TEXTO
   ============================================================ */
::selection {
    background: var(--neon-green);
    color: var(--dark-bg);
    text-shadow: none;
}

::-moz-selection {
    background: var(--neon-green);
    color: var(--dark-bg);
    text-shadow: none;
}

/* ============================================================
   21. NOTIFICAÇÃO TOAST CYBER
   ============================================================ */
.toast-cyber {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-green);
    border-radius: 10px;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.1);
    z-index: 9999;
    animation: toast-in 0.5s ease, toast-out 0.5s ease 3s forwards;
}

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ============================================================
   VARIÁVEIS GLOBAIS (adicione no :root do seu CSS)
   ============================================================ */
:root {
    --neon-green: #00ff41;
    --neon-blue: #00d4ff;
    --neon-purple: #b300ff;
    --neon-gold: #ffd700;
    --dark-bg: #0a0a14;
    --card-bg: rgba(10, 10, 20, 0.7);
    --border-glow: rgba(0, 255, 65, 0.15);
    --cyber-gradient: linear-gradient(135deg, #00ff41, #00d4ff, #b300ff);
}