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

/* ─── Design Tokens (espelhando o site Replit) ─── */
:root {
    --bg:           hsl(240, 10%, 6%);
    --card:         hsl(240, 8%, 9%);
    --border:       hsl(240, 6%, 16%);
    --sidebar:      hsl(240, 10%, 7%);
    --primary:      hsl(262, 83%, 58%);
    --primary-dark: hsl(262, 83%, 48%);
    --primary-glow: hsla(262, 83%, 58%, 0.35);
    --muted:        hsl(240, 5%, 13%);
    --muted-fg:     hsl(240, 5%, 55%);
    --foreground:   hsl(0, 0%, 95%);
    --success:      hsl(162, 56%, 44%);
    --error:        hsl(0, 72%, 51%);
    --warning:      hsl(38, 92%, 50%);
    --radius:       0.625rem;

    /* Elevação / hover */
    --elevate-1: rgba(255,255,255,0.04);
    --elevate-2: rgba(255,255,255,0.09);
    --glass-border: rgba(255,255,255,0.08);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.5);
    --shadow-2xl: 0 24px 48px rgba(0,0,0,0.6);

    /* Cores do tema personalizado */
    --bg-deep:      #3C1145;
    --accent-green: #12C937;
    --accent-pink:  #FA208E;
    --accent-yellow:#F6FA20;
}

/* ─── Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid var(--border);
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--foreground);
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    align-items: flex-start;
    justify-content: center;
}

/* ─── Fundo & Malha ─── */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: url('./assets/img/cinecash-bg.png') no-repeat center center / cover;
    z-index: -2;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-deep) 0%, transparent 50%, var(--bg-deep) 100%);
    opacity: 0.7;
    pointer-events: none;
}

.gradient-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 15% 25%, hsla(262,83%,58%,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 85% 75%, hsla(199,89%,48%,0.10) 0%, transparent 70%);
    pointer-events: none;
}

/* Orbs decorativos com as novas cores */
.gradient-mesh::before {
    content: '';
    position: absolute;
    top: -10%; left: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(100px);
    animation: floatOrb 10s ease-in-out infinite alternate;
}

.gradient-mesh::after {
    content: '';
    position: absolute;
    bottom: -10%; right: -5%;
    width: 450px; height: 450px;
    background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(100px);
    animation: floatOrb 12s ease-in-out infinite alternate-reverse;
}

/* Terceiro orb amarelo */
.gradient-mesh .orb-yellow {
    position: absolute;
    top: 40%; left: 50%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(100px);
    animation: floatOrb 14s ease-in-out infinite alternate;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes floatOrb {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, -30px) scale(1.1); }
}

/* ─── Utils ─── */
.hidden { display: none !important; }

.tab-content {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    opacity: 1;
}

/* ─── Glassmorphism Card ─── */
.glass-card {
    background: var(--card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius) * 2.4);   /* ~1.5rem */
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-2xl);
    animation: fadeUp 0.55s cubic-bezier(.16,1,.3,1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ─── Tela de Carregamento ─── */
#splash-screen.fade-out { opacity: 0; pointer-events: none; }

/* ─── Indicador de Digitação ─── */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 10px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
    opacity: 0.3;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingPulse {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* ─── Tipografia ─── */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 30%, hsl(262,83%,80%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-text {
    font-size: 3.2rem;
    font-weight: 850;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.3));
    position: relative;
    z-index: 10;
    font-family: 'Sora', sans-serif;
    animation: premium-glow 4s ease-in-out infinite alternate;
}

@keyframes premium-glow {
    0% { filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.2)); }
    100% { filter: drop-shadow(0 0 20px rgba(250, 32, 142, 0.4)); }
}

.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine-effect 3s infinite;
    background-size: 200% 100%;
    pointer-events: none;
}

@keyframes shine-effect {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

p.subtitle {
    color: var(--muted-fg);
    text-align: center;
    margin-bottom: 28px;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ─── Grupo de Entrada ─── */
.input-group { margin-bottom: 18px; }

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted-fg);
    letter-spacing: 0.01em;
}

.input-group input {
    width: 100%;
    background: hsl(240, 6%, 18%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--foreground);
    font-size: 0.9375rem;
    font-family: 'Sora', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input-group input::placeholder { color: var(--muted-fg); }

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ─── Botões ─── */
.btn-primary {
    position: relative;
    width: 100%;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    padding: 13px 20px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 0 0 1px hsla(262,83%,68%,0.25), 0 4px 14px var(--primary-glow);
    margin-top: 8px;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--elevate-1);
    opacity: 0;
    transition: opacity 0.15s;
    border-radius: inherit;
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px hsla(262,83%,68%,0.35), 0 8px 20px var(--primary-glow); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── Link de Rodapé ─── */
.footer-text {
    text-align: center;
    margin-top: 22px;
    font-size: 0.8125rem;
    color: var(--muted-fg);
}

.footer-text a { color: var(--primary); text-decoration: none; font-weight: 600; transition: opacity 0.15s; }
.footer-text a:hover { opacity: 0.8; text-decoration: underline; }

/* ─── Carregamento ─── */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Barra de Navegação Premium ─── */
.navbar {
    max-width: 1100px;
    margin: 20px auto;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 999px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 15px;
    z-index: 1000;
}

/* ─── Emblema do Usuário (Esquerda) ─── */
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#user-name-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #7b2ff7, #a044ff);
    color: white;
    font-weight: 900;
    font-size: 0.85rem;
    box-shadow: 0 0 12px rgba(123, 47, 247, 0.5);
}

/* ─── Container do Menu (Centro) ─── */
.menu {
    display: flex;
    gap: 5px;
    padding: 4px;
    border-radius: 999px;
    background: transparent;
}

/* ─── Botões de Navegação ─── */
.nav-item {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

/* ─── Botão Ativo (Gradiente + Brilho) ─── */
.nav-item.active {
    background: linear-gradient(90deg, #7b2ff7, #a044ff);
    color: white;
    box-shadow:
        0 0 10px rgba(123, 47, 247, 0.7),
        0 0 25px rgba(160, 68, 255, 0.6);
}

/* ─── Hover ─── */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

/* ─── Botão de Sair (Direita) ─── */
.logout {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    color: #aaa;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* ─── Layout do Painel ─── */
#app-container {
    width: 100%;
    padding: 20px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.glass-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.stat-balloon {
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-balloon:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
}

.stat-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: dotPulse 1.5s infinite;
}

/* ─── Animações da Sala de Guerra ─── */
@keyframes pulse-active {
    0% { stroke-width: 2; stroke-opacity: 0.6; }
    50% { stroke-width: 4; stroke-opacity: 1; stroke: var(--warning); }
    100% { stroke-width: 2; stroke-opacity: 0.6; }
}

@keyframes pulse-critical {
    0% { stroke-width: 3; stroke-opacity: 0.8; stroke: #ff0000; filter: drop-shadow(0 0 2px #ff0000); }
    50% { stroke-width: 6; stroke-opacity: 1; stroke: #ff4444; filter: drop-shadow(0 0 10px #ff0000); }
    100% { stroke-width: 3; stroke-opacity: 0.8; stroke: #ff0000; filter: drop-shadow(0 0 2px #ff0000); }
}

.pulse-active { animation: pulse-active 2s infinite ease-in-out; }
.pulse-critical { animation: pulse-critical 1s infinite cubic-bezier(0.4, 0, 0.6, 1); }

.animate-ping-slow {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.agent-badge-failed {
    background: rgba(255, 0, 0, 0.2) !important;
    color: #ff4444 !important;
    border: 1px solid #ff0000 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.agent-badge-offline {
    background: rgba(100, 100, 100, 0.2) !important;
    color: #aaa !important;
    border: 1px solid #555 !important;
}

.agent-badge-analyzing {
    background: rgba(232, 184, 48, 0.2) !important;
    color: #E8B830 !important;
    border: 1px solid #E8B830 !important;
}

.agent-badge-active {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
    border: 1px solid #10b981 !important;
}

.ai-processor-card {
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

.stat-balloon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--elevate-1);
    opacity: 0;
    transition: opacity 0.2s;
}

.stat-balloon:hover { transform: translateY(-4px); border-color: hsla(262,83%,58%,0.4); box-shadow: var(--shadow-lg); }
.stat-balloon:hover::before { opacity: 1; }

.stat-icon { font-size: 2rem; margin-bottom: 10px; display: block; }

.stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-fg);
    font-weight: 600;
}

.stat-value {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 8px 0 4px;
    background: linear-gradient(135deg, #fff 40%, hsl(262,83%,80%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-desc { font-size: 0.6875rem; color: var(--muted-fg); }

/* ─── Chat IA ─── */
/* --- AGENTE FLUTUANTE CYBERCORE IA (PREMIUM) --- */
.cybercore-chat-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4), inset 0 0 15px rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cybercore-chat-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
}

.cybercore-chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.4);
    animation: cybercorePulse 2s infinite;
    z-index: -1;
}

@keyframes cybercorePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.cybercore-chat-trigger-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.cybercore-online-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #020205;
    border-radius: 50%;
}

.cybercore-chat-container {
    position: fixed;
    bottom: 105px;
    right: 25px;
    width: 420px;
    height: 650px;
    max-height: calc(100vh - 140px);
    background: linear-gradient(145deg, rgba(10, 10, 15, 0.92), rgba(15, 10, 25, 0.95));
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 28px;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 40px rgba(124, 58, 237, 0.08);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpChat 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cybercore-chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.6), transparent);
    z-index: 3;
}

.cybercore-chat-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at top right, rgba(124, 58, 237, 0.12), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(219, 39, 119, 0.08), transparent 60%);
    pointer-events: none;
    border-radius: 28px;
}

@keyframes slideUpChat {
    from { opacity: 0; transform: translateY(40px) scale(0.9) blur(10px); }
    to { opacity: 1; transform: translateY(0) scale(1) blur(0); }
}

.cybercore-chat-header {
    padding: 20px 24px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
}

.cybercore-chat-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cybercore-chat-orb {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(124, 58, 237, 0.6),
        0 0 40px rgba(124, 58, 237, 0.3);
    animation: orbPulse 2s ease-in-out infinite;
    position: relative;
}

.cybercore-chat-orb::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(124, 58, 237, 0.4);
    animation: orbRing 2s ease-in-out infinite;
}

@keyframes orbRing {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0; }
}

.cybercore-chat-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.5));
}

.cybercore-chat-title {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.cybercore-chat-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cybercore-chat-close:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.cybercore-msg {
    max-width: 88%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    line-height: 1.65;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: msgAppear 0.3s ease-out;
}

@keyframes msgAppear {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cybercore-msg-ai {
    align-self: flex-start;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    color: #f1f1f1;
    border-bottom-left-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.cybercore-msg-ai strong {
    color: #c4b5fd;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(196, 181, 253, 0.3);
}

.cybercore-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #7c3aed, #9333ea, #a855f7);
    color: #fff;
    border-bottom-right-radius: 8px;
    box-shadow:
        0 10px 30px rgba(124, 58, 237, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.msg-ts {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    text-align: right;
}

.cybercore-chat-suggestions {
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.cybercore-chat-suggestions button {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: #c4b5fd;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cybercore-chat-suggestions button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(219, 39, 119, 0.3));
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 14px;
}

.cybercore-chat-suggestions button:hover {
    border-color: #7c3aed;
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(124, 58, 237, 0.35),
        0 0 20px rgba(124, 58, 237, 0.2);
}

.cybercore-chat-suggestions button:hover::before {
    opacity: 1;
}

.cybercore-chat-suggestions button:active {
    transform: translateY(-1px) scale(0.98);
}

.cybercore-chat-footer {
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cybercore-chat-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 20px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Sora', sans-serif;
}

.cybercore-chat-footer input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cybercore-chat-footer input:focus {
    border-color: #7c3aed;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 20px rgba(124, 58, 237, 0.25),
        inset 0 0 10px rgba(124, 58, 237, 0.1);
}

#cybercore-chat-send,
#cybercore-chat-mic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

#cybercore-chat-send:hover,
#cybercore-chat-mic:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 25px rgba(124, 58, 237, 0.45),
        0 0 20px rgba(124, 58, 237, 0.3);
}

#cybercore-chat-mic {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

#cybercore-chat-mic.listening {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    animation: micPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

#cybercore-chat-mic.listening .mic-pulse {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    animation: micPulseInner 1s ease-in-out infinite;
}

@keyframes micPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes micPulseInner {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

#cybercore-chat-mic:hover {
    background: rgba(124, 58, 237, 0.3);
}

/* ─── Chat Body ─── */
.cybercore-chat-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* ─── Custom Scrollbar ─── */
.cybercore-chat-body::-webkit-scrollbar,
.cybercore-chat-suggestions::-webkit-scrollbar {
    width: 6px;
}

.cybercore-chat-body::-webkit-scrollbar-track,
.cybercore-chat-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.cybercore-chat-body::-webkit-scrollbar-thumb,
.cybercore-chat-suggestions::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.5), rgba(124, 58, 237, 0.3));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.cybercore-chat-body::-webkit-scrollbar-thumb:hover,
.cybercore-chat-suggestions::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.7), rgba(124, 58, 237, 0.5));
    background-clip: padding-box;
}

/* Firefox */
.cybercore-chat-body,
.cybercore-chat-suggestions {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.5) rgba(255, 255, 255, 0.03);
}

.cybercore-responding .cybercore-chat-orb {
    background: #10b981;
    box-shadow: 0 0 20px #10b981;
    animation: orbPulseSuccess 1s infinite;
}

@keyframes orbPulseSuccess {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px #10b981; }
    50% { transform: scale(1.6); box-shadow: 0 0 30px #10b981; }
}


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

.chat-footer input:focus { border-color: var(--primary); }

/* ─── Anel de Carregamento ─── */
.loader-ring {
    display: inline-block;
    width: 56px; height: 56px;
    border: 3px solid hsla(262,83%,58%,0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.9s ease-in-out infinite;
}

/* ─── Cérebro IA + Escaneamento ─── */
.ai-brain-icon {
    animation: pulseBrain 2.2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulseBrain {
    0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 6px var(--primary)); }
    50%       { transform: scale(1.08); filter: drop-shadow(0 0 22px var(--primary)); }
}

.scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    box-shadow: 0 0 12px var(--primary);
    animation: scan 3s linear infinite;
    z-index: 1;
}

@keyframes scan {
    0%   { top: 0%;   opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

#ai-status-text { animation: blink 1.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0.4; } }

/* ─── Emblema / Tag ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 999px;
    text-transform: uppercase;
}

.badge-success { background: hsla(162,56%,44%,0.15); color: hsl(162,56%,60%); border: 1px solid hsla(162,56%,44%,0.3); }
.badge-warning { background: hsla(38,92%,50%,0.12); color: hsl(38,92%,65%);  border: 1px solid hsla(38,92%,50%,0.3); }
.badge-primary { background: hsla(262,83%,58%,0.15); color: hsl(262,83%,75%); border: 1px solid hsla(262,83%,58%,0.3); }

/* ─── Indicador de Conexão CyberCore IA ─── */
.online-indicator {
    width: 10px;
    height: 10px;
    background: #2cb67d; /* Verde Esmeralda */
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 0 0 10px rgba(44, 182, 125, 0.6);
}

.online-indicator.pulsate {
    animation: cybercorePulse 1.5s infinite;
}

@keyframes cybercorePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(44, 182, 125, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(44, 182, 125, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(44, 182, 125, 0); }
}

.chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.chat-trigger:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.6);
}

.chat-trigger .online-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #2cb67d;
    border: 2px solid #000;
    border-radius: 50%;
    z-index: 2001;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--muted);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), hsl(262,83%,75%));
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* ─── Cartão de Indicação ─── */
.referral-item {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.2);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s;
}

.referral-item:hover { border-color: hsla(262,83%,58%,0.3); }

/* ─── Sobrescritas de Entrada PIX / Saque ─── */
#pix-type, #pix-key {
    width: 100%;
    background: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: var(--radius);
    margin-top: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
}

/* ─── Estilo do Histórico de Saques ─── */
.withdraw-history-container {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    animation: fadeUp 0.8s 0.2s both;
}

.history-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-amount {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}

.history-date {
    font-size: 0.75rem;
    color: var(--muted-fg);
}

.history-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ─── Seletor de Tipo PIX Premium ─── */
.pix-type-selector {
    margin-bottom: 20px;
}

.pix-type-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--muted-fg);
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pix-type-btn .dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.3s;
}

.pix-type-btn.active {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}

.pix-type-btn.active .dot {
    border-color: var(--primary);
}

.pix-type-btn.active .dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.pix-type-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}
.pix-input-wrapper {
    position: relative;
    width: 100%;
}

.pix-input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    color: white !important;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.pix-input-wrapper input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.empty-history-msg {
    text-align: center;
    color: var(--muted-fg);
    font-size: 0.85rem;
    padding: 30px 0;
}

/* ─── Manutenção ─── */
#maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg) !important;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#maintenance-overlay h1 { color: var(--primary); margin-bottom: 10px; }
#maintenance-overlay p { color: white; max-width: 400px; }

/* ─── Responsividade CineCash (Ajuste Universal) ─── */
@media (max-width: 1024px) {
    .stat-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        margin: 15px 10px;
        padding: 8px 12px;
        border-radius: 16px;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: flex-start;
    }

    #page-dashboard {
        padding: 80px 15px 120px;
    }

    .stat-grid-premium {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .user-badge {
        order: 1;
    }

    .logout {
        order: 3;
    }

    .menu {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 6px;
        padding: 4px;
    }

    #user-name-display {
        display: none;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 0.7rem;
        border-radius: 12px;
    }

    .nav-item.active {
        box-shadow:
            0 0 8px rgba(123, 47, 247, 0.6),
            0 0 18px rgba(160, 68, 255, 0.5);
    }
}

@media (max-width: 480px) {
    .navbar {
        margin: 10px 8px;
        padding: 8px 10px;
        gap: 8px;
    }

    .menu {
        gap: 4px;
        padding: 3px;
    }

    .nav-item {
        padding: 7px 10px;
        font-size: 0.65rem;
        border-radius: 10px;
    }

    .avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .logout {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }
}

/* ─── Responsividade Extrema (< 360px) ─── */
@media (max-width: 360px) {
    .navbar {
        padding: 6px 8px;
    }

    .nav-item {
        padding: 6px 8px;
        font-size: 0.6rem;
        min-width: 70px;
    }

    .stat-card-value {
        font-size: 1.2rem;
    }

    .stat-card-label {
        font-size: 0.55rem;
    }

    .processor-title {
        font-size: 1.2rem;
    }

    .btn-watch-premium {
        padding: 16px 20px;
        font-size: 0.85rem;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .glass-card {
        padding: 20px 15px;
    }
}
}

@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: flex-start;
    }

    #app-container {
        padding: 80px 15px 120px;
    }

    .stat-grid-premium {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 0 10px;
    }

    #user-name-display {
        display: none; /* Esconde nome no mobile para ganhar espaço */
    }

    .menu {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        justify-content: space-around;
        padding: 10px;
        background: rgba(13, 13, 18, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(124, 58, 237, 0.4);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        z-index: 1000;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 0.7rem;
        flex-direction: column;
        gap: 4px;
    }

    .glass-card {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .brand-name {
        font-size: 2rem;
    }

    .btn-watch-premium {
        padding: 18px 25px;
        font-size: 0.9rem;
    }

    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        height: 70vh;
    }
}

/* Melhoria no Efeito de Vidro CineCash */
.glass-card, .glass-card-premium, .processor-card {
    background: rgba(13, 13, 18, 0.7);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Animação de entrada dos cards ─── */
/* ─── Dashboard Layout Refinado ─── */
.stat-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card-glass:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.stat-card-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.stat-card-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--muted-fg);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.stat-card-desc {
    font-size: 0.65rem;
    color: var(--muted-fg);
    line-height: 1.4;
}

/* ─── Cartão do Processador Premium ─── */
.processor-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(6, 8, 15, 0.4) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 32px;
    padding: 45px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 0 20px rgba(124, 58, 237, 0.05);
}

.processor-card::before {
    content: 'PREMIUM AI';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
    box-shadow: 0 0 15px var(--primary-glow);
}

.processor-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 15px 0 8px;
    letter-spacing: -0.5px;
}

.processor-subtitle {
    font-size: 0.85rem;
    color: var(--muted-fg);
    margin-bottom: 35px;
    max-width: 320px;
    line-height: 1.5;
}

.btn-watch-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 22px 40px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-watch-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
    filter: brightness(1.1);
}

.btn-watch-premium:active { transform: translateY(0); }

.extra-bonus-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}

.extra-bonus-card.locked { opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }
.extra-bonus-card:not(.locked):hover { background: rgba(124, 58, 237, 0.05); border-color: var(--primary); }

.status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Estilo da Página de Indicações ─── */
.referral-container {
    background: #111115;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-whatsapp { background: #25D366; color: white; }
.btn-facebook { background: #1877F2; color: white; }
.social-btn:hover { transform: scale(1.1); filter: brightness(1.1); }

/* ─── Design de Login Premium ─── */
.login-container {
    max-width: 420px;
    padding: 50px 40px;
    border-radius: 35px;
    background: rgba(13, 13, 18, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 40px rgba(124, 58, 237, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo-premium {
    position: relative;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3.5rem;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}

.logo-glow {
    position: absolute;
    inset: -5px;
    background: var(--primary);
    filter: blur(20px);
    opacity: 0.4;
    z-index: -1;
    border-radius: inherit;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.2; transform: scale(0.95); }
    to { opacity: 0.5; transform: scale(1.05); }
}

.brand-name {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -1.5px;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--muted-fg);
    font-weight: 500;
}

.input-group-premium {
    margin-bottom: 25px;
}

.input-group-premium label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    margin-left: 5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 50px 18px 20px; /* Aumentei o padding na direita para o olho */
    color: white;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    transition: all 0.3s;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: 0.3s;
}

.toggle-password:hover {
    filter: brightness(1.5);
    transform: translateY(-50%) scale(1.1);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary);
}

.input-wrapper input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 58, 237, 0.3);
}

.input-wrapper input:focus ~ .input-focus-line {
    width: 80%;
    left: 10%;
}

.btn-primary-premium {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    margin-top: 10px;
}

.btn-primary-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.6);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shineBtn 4s infinite;
}

@keyframes shineBtn {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.login-footer {
    margin-top: 35px;
    text-align: center;
    color: var(--muted-fg);
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
}

.login-footer a:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-fg); }

/* ─── Ação de Recompensa ─── */
#reward-action-container { animation: fadeUp 0.5s ease-out; }
#reward-action-container p { text-shadow: 0 0 12px hsla(162,56%,44%,0.4); }

/* ─── Sobreposição de Vídeo & Recompensa Premium ─── */
#ad-container-box {
    width: 90%;
    max-width: 480px;
    background: #060608;
    border-radius: 32px;
    padding: 50px 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#ad-container-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 2;
}

.modern-progress {
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

#neural-logs div {
    margin-bottom: 4px;
    animation: fadeSide 0.3s ease-out;
}

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

.success-icon {
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Efeito de luz inferior no modal */
#ad-container-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary);
}

.text-validated {
    color: #38ef7d; /* Verde Esmeralda Vibrante */
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(56, 239, 125, 0.4);
}

.btn-collect-premium {
    background: #2cb67d; /* Verde Premium */
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(44, 182, 125, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-collect-premium:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 10px 30px rgba(44, 182, 125, 0.5);
}

.btn-collect-premium:active {
    transform: translateY(0);
}

/* ─── Sobreposição de Recompensa (Modal Final) ─── */
.reward-modal-content {
    background: rgba(13, 13, 18, 0.95);
    border: 1.5px solid hsla(262, 83%, 58%, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 58, 237, 0.15);
    border-radius: 35px;
    padding: 50px;
    text-align: center;
    position: relative;
    max-width: 420px;
    width: 90%;
    animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Chuva de Moedas */
.falling-coin {
    position: fixed;
    top: -50px;
    font-size: 24px;
    user-select: none;
    pointer-events: none;
    z-index: 10001;
    animation: fall linear forwards;
}

@keyframes fall {
    to { transform: translateY(110vh) rotate(360deg); }
}

#reward-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.2) 0%, rgba(0,0,0,0.95) 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
}

.reward-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 58, 237, 0.3);
    transform: translateY(50px) scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 380px;
    width: 90%;
}

#reward-overlay.show .reward-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.reward-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.8));
    animation: rewardBounce 2s infinite ease-in-out;
}

@keyframes rewardBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.btn-collect {
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 25px;
    cursor: pointer;
    width: 100%;
    font-family: 'Sora', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.5);
}

.btn-collect:hover { transform: scale(1.03); filter: brightness(1.1); }
.btn-collect:active { transform: scale(0.97); }

/* ─── Notificações Toast ─── */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 15px 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastEnter 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
    max-width: 350px;
}

.toast.toast-error { border-left-color: var(--error); }
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-warning { border-left-color: var(--warning); }

.toast-icon { font-size: 1.2rem; }

@keyframes toastEnter {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastExit {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(100%) scale(0.9); }
}

/* ─── Carregamento do Botão ─── */
.btn-loading {
    color: transparent !important;
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin-top: -10px; margin-left: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ─── Banner de Anúncio Inteligente (Flutuante) ─── */
.smart-ad-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(124, 58, 237, 0.3);
    z-index: 900; /* Abaixo da CyberCore e Overlays */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 15px;
}

.smart-ad-banner.hidden {
    transform: translateY(100%);
}


#banner-container {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ajuste no padding do container principal para o banner não cobrir conteúdo */
#app-container {
    padding-bottom: 70px;
}

.typing-indicator {
    background: var(--muted);
    padding: 10px 15px;
    border-radius: 12px 12px 12px 2px;
    max-width: fit-content;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border);
    margin-bottom: 5px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--muted-fg);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.quick-replies {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    overflow-x: auto;
    border-top: 1px solid var(--border);
    background: rgba(13, 13, 18, 0.5);
}

.quick-replies::-webkit-scrollbar { height: 0; }

.quick-reply-btn {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply-btn:hover {
    background: var(--primary);
    color: white;
}

/* ═══════════════════════════════════════
   CINECASH PREMIUM — ADDITIONAL STYLES
   ═══════════════════════════════════════ */

/* ─── Efeitos de Fundo ─── */
body.premium-theme {
    background-color: #020205;
    background-image: 
        linear-gradient(rgba(2, 2, 5, 0.8), rgba(2, 2, 5, 0.8)),
        url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1964&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

body.premium-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(244, 114, 182, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.projector-glow,
.cyber-grid,
.cyber-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.projector-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

.cyber-grid {
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.cyber-scanlines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ─── Vidro Premium ─── */
.glass-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(40px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(40px) saturate(1.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02) !important;
    border-radius: 24px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-premium:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(123, 47, 247, 0.2) !important;
    transform: translateY(-4px);
}

/* ─── Indicador de Status IA ─── */
#ai-status-indicator {
    position: fixed;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #10b981;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.dot-green-v2 {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: dotPulse 1.5s infinite;
}

/* ─── Toast (Notificação) ─── */
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(124, 58, 237, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ─── Página de Login ─── */
#page-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    position: relative;
    z-index: 3;
}

#page-login::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.15), transparent);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.login-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 45px 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(123, 47, 247, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.01);
    animation: loginFadeIn 0.6s ease-out;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a044ff, #7b2ff7, transparent);
    opacity: 0.6;
}

.login-logo-lucide {
    width: 60px;
    height: 60px;
    color: white;
    filter: drop-shadow(0 0 20px rgba(160, 68, 255, 0.4));
}

.login-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-logo::after {
    content: "";
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(160, 68, 255, 0.2), transparent);
    filter: blur(15px);
    z-index: -1;
    border-radius: 50%;
}

.login-box .glitch-text {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 20%, #c4b5fd 80%, #a044ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 0.8rem;
    color: var(--muted-fg);
    margin-bottom: 35px;
    font-weight: 500;
    line-height: 1.5;
}

/* ─── Grupos de Entrada ─── */
.input-group {
    margin-bottom: 18px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
}

.input-group input,
.input-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: rgba(160, 68, 255, 0.4);
    box-shadow:
        0 0 0 3px rgba(123, 47, 247, 0.15),
        0 0 15px rgba(123, 47, 247, 0.1);
    background: rgba(0, 0, 0, 0.35);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.input-group select option {
    background: #1a1a2e;
    color: white;
}

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 50px !important;
}

.password-icon-lucide {
    opacity: 0.5;
    color: #aaa;
    transition: all 0.3s;
}

.password-toggle:hover .password-icon-lucide {
    opacity: 1;
    color: #a044ff;
    filter: drop-shadow(0 0 8px rgba(160, 68, 255, 0.4));
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: all 0.3s;
}

.terms-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.terms-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 2px 16px;
    font-size: 0.78rem;
    color: var(--muted-fg);
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.remember-me:hover span {
    color: rgba(255, 255, 255, 0.85);
}

.terms-group label {
    font-size: 0.75rem;
    color: var(--muted-fg);
    cursor: pointer;
}

.login-box .btn-primary {
    margin-top: 25px;
    padding: 18px;
    font-size: 0.9rem;
    box-shadow:
        0 0 15px rgba(123, 47, 247, 0.4),
        0 0 30px rgba(123, 47, 247, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.register-text {
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--muted-fg);
}

.register-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(123, 47, 247, 0.2);
}

.register-text a:hover {
    color: #a044ff;
    text-shadow: 0 0 15px rgba(123, 47, 247, 0.4);
}

.login-security-badge {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ─── Botões Premium ─── */
.btn-primary {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(90deg, #7b2ff7, #a044ff);
    background-size: 200% 200%;
    animation: glowMove 3s linear infinite;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: 'Sora', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 0 10px rgba(123, 47, 247, 0.6),
        0 0 25px rgba(160, 68, 255, 0.5),
        0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    opacity: 0.4;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 15px rgba(123, 47, 247, 0.8),
        0 0 40px rgba(160, 68, 255, 0.8),
        0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(90deg, #8e44ff, #b066ff);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow:
        0 0 10px rgba(123, 47, 247, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

/* ─── Contêiner ─── */
.container {
    padding: 0 20px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── Grade de Cartões ─── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.main-card {
    max-width: 800px;
    margin: 0 auto;
}

/* ─── Boas-Vindas ─── */
.welcome-text {
    text-align: center;
    margin-bottom: 20px;
}

.welcome-text p {
    font-size: 0.7rem;
    color: var(--muted-fg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-text h1 {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 5px;
}

/* ─── Grade de Estatísticas ─── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.stat-card {
    padding: 24px 12px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(123, 47, 247, 0.15);
    border-color: rgba(160, 68, 255, 0.2);
}

.stat-icon-lucide {
    width: 28px;
    height: 28px;
    color: #a044ff;
    filter: drop-shadow(0 0 8px rgba(160, 68, 255, 0.5));
    margin-bottom: 8px;
    display: block;
}

.stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.stat-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.8px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.stat-value.green {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value.purple {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Banner de Anúncio ─── */
.ad-banner-placeholder {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ad-banner-placeholder span {
    font-size: 0.7rem;
    color: var(--muted-fg);
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* ─── Cartão IA Premium (Vidro + Neon + Brilho) ─── */
.ai-card-premium {
    position: relative;
    padding: 40px;
    text-align: center;
    overflow: hidden;
    margin: 25px auto 0;
    max-width: 900px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.ai-card-premium > *:not(.neural-waves) {
    position: relative;
    z-index: 1;
}

/* Linha neon horizontal */
.ai-card-premium::before {
    content: "";
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a044ff, transparent);
    background-size: 200% 100%;
    box-shadow:
        0 0 10px #a044ff,
        0 0 25px #7b2ff7;
    opacity: 0.8;
    animation: neonMove 3s linear infinite;
    z-index: 1;
}

@keyframes neonMove {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

/* Ícone com glow */
.brain-glow-premium {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #ff6ec7, #7b2ff7);
    box-shadow:
        0 0 20px #ff6ec7,
        0 0 40px #7b2ff7;
    z-index: 2;
}

.brain-icon-lucide {
    width: 32px;
    height: 32px;
    color: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    z-index: 3;
}

.brain-icon-premium {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 110, 207, 0.5));
}

/* Aura extra ao redor do ícone */
.brain-aura {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(160, 68, 255, 0.3), transparent);
    filter: blur(20px);
    z-index: -1;
    animation: auraPulse 3s ease-in-out infinite;
}

/* ─── Ondas Neurais no Cartão do Processador ─── */
.neural-waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: 25px;
}

.neural-wave {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    border-radius: 50%;
}

.neural-wave-1 {
    bottom: -30%;
    left: -25%;
    width: 150%;
    height: 70%;
    background: radial-gradient(ellipse at 50% 50%, var(--accent-pink) 0%, transparent 60%);
    opacity: 0.12;
    animation: neuralPulse 4s ease-in-out infinite;
}

.neural-wave-2 {
    bottom: -40%;
    left: -10%;
    width: 120%;
    height: 60%;
    background: radial-gradient(ellipse at 50% 50%, var(--accent-green) 0%, transparent 60%);
    opacity: 0.08;
    animation: neuralPulse 5s ease-in-out infinite 0.8s;
}

.neural-wave-3 {
    bottom: -20%;
    left: -40%;
    width: 180%;
    height: 50%;
    background: radial-gradient(ellipse at 50% 50%, var(--primary) 0%, transparent 60%);
    opacity: 0.10;
    animation: neuralPulse 6s ease-in-out infinite 1.6s;
}

@keyframes neuralPulse {
    0%   { transform: scaleX(1) scaleY(0.6);   opacity: 0.06; filter: blur(30px); }
    25%  { transform: scaleX(1.2) scaleY(1);    opacity: 0.15; filter: blur(20px); }
    50%  { transform: scaleX(0.9) scaleY(0.8);  opacity: 0.10; filter: blur(25px); }
    75%  { transform: scaleX(1.3) scaleY(1.1);  opacity: 0.18; filter: blur(15px); }
    100% { transform: scaleX(1) scaleY(0.6);    opacity: 0.06; filter: blur(30px); }
}

/* Linhas de onda neural (sweep horizontal) */
.neural-wave-1::after {
    content: '';
    position: absolute;
    top: 40%;
    left: -100%;
    width: 300%;
    height: 120%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 40px,
        rgba(250, 32, 142, 0.15) 40px,
        rgba(250, 32, 142, 0.15) 42px,
        transparent 42px,
        transparent 80px
    );
    animation: neuralSweep 8s linear infinite;
}

.neural-wave-2::after {
    content: '';
    position: absolute;
    top: 30%;
    left: -100%;
    width: 300%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 30px,
        rgba(18, 201, 55, 0.10) 30px,
        rgba(18, 201, 55, 0.10) 31px,
        transparent 31px,
        transparent 60px
    );
    animation: neuralSweep 10s linear infinite 1s;
}

.neural-wave-3::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 300%;
    height: 80%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 50px,
        rgba(124, 58, 237, 0.12) 50px,
        rgba(124, 58, 237, 0.12) 51px,
        transparent 51px,
        transparent 100px
    );
    animation: neuralSweep 12s linear infinite 2s;
}

@keyframes neuralSweep {
    0%   { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}

@keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.ai-card-premium h2 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-card-premium p {
    font-size: 0.75rem;
    color: var(--muted-fg);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Botão neon premium */
.btn-neon-premium {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(90deg, #7b2ff7, #10b981, #7b2ff7);
    background-size: 300% 300%;
    animation: glowMove 4s ease infinite;
    color: white;
    font-weight: 900;
    font-size: 0.95rem;
    font-family: 'Sora', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 0 10px rgba(123, 47, 247, 0.6),
        0 0 25px rgba(16, 185, 129, 0.4),
        0 4px 14px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-neon-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 50%
    );
    opacity: 0.6;
    pointer-events: none;
}

.btn-neon-premium:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 0 20px rgba(123, 47, 247, 0.9),
        0 0 45px rgba(16, 185, 129, 0.8),
        0 12px 24px rgba(0, 0, 0, 0.6);
    background-position: 100% 50%;
}

.btn-neon-premium:active {
    transform: scale(0.95);
    box-shadow:
        0 0 10px rgba(123, 47, 247, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes glowMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Status com bolinha viva */
.status-cyber {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-cyber::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffae;
    box-shadow:
        0 0 10px #00ffae,
        0 0 20px #00ffae;
    animation: dotPulse 1.5s infinite;
}

.premium-tag-v2 {
    position: absolute;
    top: 8px;
    right: -28px;
    background: #10b981;
    color: white;
    font-size: 0.4rem;
    font-weight: 800;
    padding: 3px 30px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    z-index: 5;
    white-space: nowrap;
}

.ai-card-premium.scanning::before {
    animation-duration: 1s;
    opacity: 1;
    box-shadow:
        0 0 15px #a044ff,
        0 0 40px #7b2ff7,
        0 0 60px rgba(160, 68, 255, 0.4);
}

/* ─── Barra de Bônus ─── */
.bonus-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    margin-top: 25px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.btn-claim-small {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Sora', sans-serif;
}

.btn-claim-small:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* ─── Cartão de Saque ─── */
.withdraw-card {
    padding: 35px 30px;
    margin: 25px auto 0;
    max-width: 900px;
    border-radius: 25px;
}

/* ─── Referral Styles ─── */
.referral-mission-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.referral-header-icon {
    width: 1.8rem;
    height: 1.8rem;
    color: #a044ff;
    filter: drop-shadow(0 0 8px rgba(160, 68, 255, 0.3));
    margin-bottom: 8px;
    display: inline-block;
}

.referral-mission-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 247, 0.15), rgba(244, 114, 182, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    padding: 30px 25px;
    border-radius: 24px;
    margin: 0 0 25px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(124, 58, 247, 0.03);
}

.referral-mission-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f472b6, transparent);
    opacity: 0.5;
}

/* ─── Referral Styles ─── */
.referral-mission-card h2 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #f472b6;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(244, 114, 182, 0.2);
}

.referral-mission-card p {
    font-size: 0.7rem;
    color: var(--muted-fg);
    margin-bottom: 20px;
    line-height: 1.5;
}

.referral-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.referral-stat-item {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    padding: 18px 12px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.referral-stat-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.referral-stat-item span {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: var(--muted-fg);
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.referral-stat-item h3 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.referral-program-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.referral-program-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.referral-program-header p {
    font-size: 0.7rem;
    color: var(--muted-fg);
}

.referral-link-container {
    display: flex;
    gap: 10px;
    padding: 14px;
    margin: 25px 0;
    align-items: center;
    border-radius: 20px;
}

.referral-link-container input {
    flex: 1;
    margin-bottom: 0;
    font-size: 0.7rem;
    padding: 14px 16px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #c4b5fd;
    font-weight: 600;
}

.btn-share {
    position: relative;
    overflow: hidden;
    padding: 14px 22px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(90deg, #10b981, #34d399);
    background-size: 200% 200%;
    animation: glowMove 3s linear infinite;
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 0 10px rgba(16, 185, 129, 0.5),
        0 0 25px rgba(52, 211, 153, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-share::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(255,255,255,0.2), transparent);
    opacity: 0.4;
    pointer-events: none;
}

.btn-share:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 0 15px rgba(16, 185, 129, 0.7),
        0 0 35px rgba(52, 211, 153, 0.5);
}

.btn-share:active {
    transform: scale(0.97);
}

.referrals-list-section h3 {
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: var(--muted-fg);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.referrals-list-section h3 span {
    color: var(--primary);
}

.referral-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.referral-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(124, 58, 237, 0.15);
    transform: translateX(4px);
}

.referral-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(160, 68, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.referral-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.referral-status {
    font-size: 0.6rem;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.referrals-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    font-size: 0.8rem;
    color: var(--muted-fg);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.1);
}

.referral-program-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
}

.referral-program-header p {
    font-size: 0.7rem;
    color: var(--muted-fg);
}

.referral-link-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    margin-bottom: 25px;
}

.referral-link-container input {
    flex: 1;
    margin-bottom: 0;
    font-size: 0.75rem;
    padding: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-share {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Sora', sans-serif;
}

.btn-share:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.referrals-list-section h3 {
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: var(--muted-fg);
    font-weight: 700;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-bottom: 10px;
}

.referral-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.referral-avatar {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.referral-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.referral-status {
    font-size: 0.6rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.referrals-empty-state {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: var(--muted-fg);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* ─── Estilos de Ranking ─── */
.ranking-header {
    text-align: center;
    margin: 30px 0;
}

.ranking-header h1 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ranking-header p {
    font-size: 0.7rem;
    color: var(--muted-fg);
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 30px auto;
    padding: 0 10px;
    max-width: 600px;
}

.podium-item {
    text-align: center;
    padding: 20px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0.4;
    transition: all 0.4s;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.podium-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
    border-radius: inherit;
    pointer-events: none;
}

.podium-item.gold {
    order: 2;
    background: linear-gradient(180deg, rgba(160, 68, 255, 0.2), rgba(123, 47, 247, 0.1));
    border-color: rgba(160, 68, 255, 0.3);
    padding: 30px 20px;
    box-shadow:
        0 0 30px rgba(123, 47, 247, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    opacity: 0.5;
}

.podium-item.gold .podium-crown-icon {
    color: #ffd700;
    width: 2rem;
    height: 2rem;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(3deg); }
}

.podium-item.silver {
    order: 1;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.1), rgba(169, 169, 169, 0.05));
    border-color: rgba(192, 192, 192, 0.2);
    padding: 18px 15px;
}

.podium-item.bronze {
    order: 3;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.1), rgba(184, 115, 51, 0.05));
    border-color: rgba(205, 127, 50, 0.2);
    padding: 18px 15px;
}

.podium-crown-icon {
    width: 1.8rem;
    height: 1.8rem;
    color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    margin-bottom: 5px;
    animation: crownFloat 2s ease-in-out infinite;
}

.podium-crown {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.podium-rank {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.podium-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.podium-base {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--muted-fg);
}

.ranking-table-container {
    padding: 15px;
    margin: 30px auto 0;
    max-width: 900px;
    border-radius: 25px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--muted-fg);
    letter-spacing: 1px;
}

.leader-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.leader-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(123, 47, 247, 0.2);
    transform: translateX(4px);
}

.leader-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leader-pos {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--muted-fg);
    transition: all 0.3s;
}

.leader-row:nth-child(1) .leader-pos {
    background: linear-gradient(135deg, #a044ff, #7b2ff7);
    color: white;
    box-shadow: 0 0 10px rgba(160, 68, 255, 0.4);
}

.leader-row:nth-child(2) .leader-pos {
    background: rgba(192, 192, 192, 0.3);
    color: white;
}

.leader-row:nth-child(3) .leader-pos {
    background: rgba(205, 127, 50, 0.3);
    color: white;
}

.leader-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.leader-count {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
}

/* ─── Sobreposição de Vídeo ─── */
#video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 2, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Grade de linhas neurais no fundo */
#video-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

/* Partículas flutuantes */
#video-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, var(--accent-pink) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--accent-green) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--primary) 0%, transparent 50%);
    opacity: 0.06;
    animation: overlayGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes overlayGlow {
    0%   { opacity: 0.04; transform: scale(1); }
    50%  { opacity: 0.10; transform: scale(1.02); }
    100% { opacity: 0.06; transform: scale(0.98); }
}

.timer-badge {
    position: absolute;
    top: 30px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #c4b5fd;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.neural-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Anel externo rosa */
.neural-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(250, 32, 142, 0.25);
    border-radius: 50%;
    animation: ringSpin 4s linear infinite;
    box-shadow:
        0 0 15px rgba(250, 32, 142, 0.1),
        inset 0 0 15px rgba(250, 32, 142, 0.05);
}

/* Anel interno verde */
.neural-ring:nth-child(2) {
    inset: 25px;
    border-color: rgba(18, 201, 55, 0.25);
    animation-direction: reverse;
    animation-duration: 3s;
    box-shadow:
        0 0 15px rgba(18, 201, 55, 0.1),
        inset 0 0 15px rgba(18, 201, 55, 0.05);
}

/* Anel interno amarelo (terceiro anel) */
.neural-ring:nth-child(3) {
    inset: 50px;
    border-color: rgba(246, 250, 32, 0.20);
    animation-duration: 2.5s;
    animation-delay: 0.5s;
    box-shadow:
        0 0 15px rgba(246, 250, 32, 0.08),
        inset 0 0 15px rgba(246, 250, 32, 0.04);
}

.neural-core {
    position: absolute;
    inset: 55px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4), rgba(250, 32, 142, 0.1), transparent);
    border-radius: 50%;
    animation: corePulse 2s ease-in-out infinite;
    filter: blur(5px);
}

#video-overlay .brain-emoji {
    font-size: 4rem;
    z-index: 3;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.6)) drop-shadow(0 0 40px rgba(250, 32, 142, 0.3));
    animation: brainFloat 3s ease-in-out infinite;
}

@keyframes brainFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* Faiscas ao redor do cérebro */
.brain-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    z-index: 2;
}

.brain-spark:nth-child(5) { top: 5%; left: 20%; background: var(--accent-pink); animation: sparkFlicker 1.5s ease-in-out infinite 0s; }
.brain-spark:nth-child(6) { top: 15%; right: 15%; background: var(--accent-green); animation: sparkFlicker 1.8s ease-in-out infinite 0.3s; }
.brain-spark:nth-child(7) { bottom: 20%; left: 10%; background: var(--accent-yellow); animation: sparkFlicker 1.3s ease-in-out infinite 0.6s; }
.brain-spark:nth-child(8) { bottom: 10%; right: 20%; background: var(--accent-pink); animation: sparkFlicker 1.6s ease-in-out infinite 0.9s; }
.brain-spark:nth-child(9) { top: 40%; left: 5%; background: var(--accent-green); animation: sparkFlicker 2s ease-in-out infinite 1.2s; }
.brain-spark:nth-child(10) { top: 35%; right: 5%; background: var(--accent-yellow); animation: sparkFlicker 1.4s ease-in-out infinite 0.5s; }

@keyframes sparkFlicker {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); box-shadow: 0 0 6px currentColor; }
}

.neural-status-text {
    margin-top: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--muted-fg);
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 1;
    animation: statusGlow 2s ease-in-out infinite;
}

@keyframes statusGlow {
    0%, 100% { opacity: 0.5; text-shadow: 0 0 10px rgba(124, 58, 237, 0.2); }
    50% { opacity: 1; text-shadow: 0 0 20px rgba(124, 58, 237, 0.5), 0 0 40px rgba(250, 32, 142, 0.2); }
}

/* Barra de progresso premium */
#video-overlay .progress-wrapper {
    position: absolute;
    bottom: 50px;
    width: 80%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#video-overlay .progress-wrapper #progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-pink), var(--primary), var(--accent-green));
    background-size: 200% 100%;
    animation: progressGlow 2s ease infinite;
    transition: width 1s linear;
    border-radius: 3px;
    box-shadow:
        0 0 10px var(--accent-pink),
        0 0 20px var(--primary);
}

@keyframes progressGlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Brilho pulsante na barra */
#video-overlay .progress-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressSweep 2s ease-in-out infinite;
}

@keyframes progressSweep {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}

/* ─── Efeitos com as cores do tema ─── */
.glow-green  { box-shadow: 0 0 20px var(--accent-green), 0 0 40px var(--accent-green) !important; }
.glow-pink   { box-shadow: 0 0 20px var(--accent-pink),  0 0 40px var(--accent-pink) !important; }
.glow-yellow { box-shadow: 0 0 20px var(--accent-yellow), 0 0 40px var(--accent-yellow) !important; }
.border-green  { border-color: var(--accent-green) !important; }
.border-pink   { border-color: var(--accent-pink) !important; }
.border-yellow { border-color: var(--accent-yellow) !important; }
.text-green  { color: var(--accent-green) !important; }
.text-pink   { color: var(--accent-pink) !important; }
.text-yellow { color: var(--accent-yellow) !important; }
.bg-deep { background-color: var(--bg-deep) !important; }

/* ─── Chat Responsivo ─── */
@media (max-width: 480px) {
    .cybercore-chat-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        max-height: 600px;
        right: 10px;
        bottom: 80px;
        border-radius: 24px;
    }

    .cybercore-chat-header {
        padding: 16px 18px;
    }

    .cybercore-chat-title {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .cybercore-msg {
        max-width: 92%;
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .cybercore-chat-suggestions {
        padding: 10px 14px;
        gap: 8px;
    }

    .cybercore-chat-suggestions button {
        padding: 8px 12px;
        font-size: 0.72rem;
    }

    .cybercore-chat-footer {
        padding: 12px 14px;
    }

    .cybercore-chat-footer input {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    #cybercore-chat-send,
    #cybercore-chat-mic {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 360px) {
    .cybercore-chat-container {
        width: calc(100vw - 16px);
        right: 8px;
        bottom: 70px;
        border-radius: 20px;
    }

    .cybercore-chat-brand {
        gap: 8px;
    }

    .cybercore-chat-orb {
        width: 10px;
        height: 10px;
    }

    .cybercore-chat-icon {
        font-size: 1.1rem;
    }

    .cybercore-chat-title {
        font-size: 0.78rem;
    }

    .cybercore-msg {
        max-width: 95%;
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .cybercore-chat-suggestions {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cybercore-chat-suggestions::-webkit-scrollbar {
        display: none;
    }

    .cybercore-chat-suggestions button {
        flex-shrink: 0;
    }
}
