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

:root {
    /* Cores Globais - Neon Aurora (Dark Mode Premium) */
    --primary: #ebb2ff; /* Neon Pink/Purple */
    --primary-hover: #bc13fe;
    --primary-gradient: linear-gradient(135deg, #ebb2ff 0%, #bc13fe 50%, #00f4fe 100%);
    --primary-light: rgba(235, 178, 255, 0.15);
    
    --bg-color: #131313; /* surface */
    --bg-mesh-1: rgba(188, 19, 254, 0.15); /* primary-container */
    --bg-mesh-2: rgba(0, 244, 254, 0.1);   /* secondary-container */
    
    --card-bg: rgba(42, 42, 42, 0.6); /* surface-container-high com opacidade */
    --card-bg-hover: rgba(53, 53, 52, 0.8); /* surface-container-highest */
    
    --text: #e5e2e1; /* on-surface */
    --text-muted: #d4c0d7; /* on-surface-variant */
    --border: rgba(157, 139, 160, 0.2); /* outline com opacidade */
    --border-hover: rgba(157, 139, 160, 0.4);
    
    --error: #ffb4ab; /* error */
    --error-bg: rgba(147, 0, 10, 0.2); /* error-container */
    --success: #00f4fe; /* usando secondary-container como sucesso premium / cyan neon */
    --success-bg: rgba(0, 244, 254, 0.15);
    
    --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(235, 178, 255, 0.3);
    --glass-blur: blur(20px);
}

/* Modo Claro (Ultra-Premium Light Amethyst) */
[data-theme="light"] {
    --bg-color: #f7f5fa; /* Soft lavender-tinted background */
    --bg-mesh-1: rgba(188, 19, 254, 0.08); /* Soft primary purple radial glow */
    --bg-mesh-2: rgba(0, 244, 254, 0.08);   /* Soft secondary cian radial glow */
    
    --card-bg: rgba(255, 255, 255, 0.7); /* Frosted-glass semi-transparent white */
    --card-bg-hover: rgba(255, 255, 255, 0.85);
    
    --text: #1e152a; /* Deep rich dark purple for superb typography contrast */
    --text-muted: #605270; /* Elegant slate-lavender for secondary text */
    
    --border: rgba(139, 92, 246, 0.12); /* Subtle purple border */
    --border-hover: rgba(139, 92, 246, 0.25);
    
    --shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.15);
    --shadow-glow: 0 0 25px rgba(188, 19, 254, 0.15);
    
    --primary-light: rgba(139, 92, 246, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    min-height: 100vh;
    /* Animated Mesh Gradient Background */
    background-image: 
        radial-gradient(circle at 15% 50%, var(--bg-mesh-1), transparent 50%),
        radial-gradient(circle at 85% 30%, var(--bg-mesh-2), transparent 50%);
    background-attachment: fixed;
    scroll-padding-top: 85px;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
}

/* Layout Principal */
.site-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
    max-width: 800px;
    width: 100%;
}

.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Top Nav */
/* Top Nav Modernizado */
.top-nav { 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px; 
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    height: 75px;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-brand span { color: var(--text); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Credit Pill Component */
.credit-pill {
    display: flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    padding: 2px 2px 2px 12px;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #10b981;
}

.btn-add-credits {
    background: #10b981;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    font-size: 1.2rem;
}
.btn-add-credits:hover { transform: scale(1.1); background: #059669; }

/* User Profile Dropdown */
.user-profile {
    position: relative;
}

@media (max-width: 600px) {
    .user-trigger span, .admin-badge { display: none; }
    .credit-pill span { display: none; }
    .credit-pill { padding: 4px; gap: 5px; }
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}
.user-trigger:hover { 
    background: rgba(0,0,0,0.04); 
    border-color: var(--border);
}
[data-theme="dark"] .user-trigger:hover { background: rgba(255,255,255,0.04); }

.user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    animation: kumaPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    z-index: 2000;
}
.dropdown-menu.active { display: flex; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
    transform: translateX(5px);
}
.dropdown-divider { height: 1px; background: var(--border); margin: 8px 5px; }

.admin-badge {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: 5px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.theme-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* Header & Logo */
.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background-color 0.3s, padding 0.3s, border-radius 0.3s, box-shadow 0.3s, border-color 0.3s;
}

[data-theme="light"] .logo-wrapper-hero {
    background: rgba(19, 19, 19, 0.92); /* Fundo escuro premium sólido para destacar a logo com mix-blend-mode screen */
    padding: 15px 35px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 25px rgba(188, 19, 254, 0.25);
    border: 1.5px solid rgba(188, 19, 254, 0.2);
}

[data-theme="light"] .logo-wrapper-nav {
    background: rgba(19, 19, 19, 0.92); /* Fundo escuro premium sólido na barra de navegação */
    padding: 4px 14px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 12px rgba(188, 19, 254, 0.18);
    border: 1px solid rgba(188, 19, 254, 0.15);
}

.site-logo {
    mix-blend-mode: screen; /* Remove o fundo preto mágico contra fundos escuros! */
    filter: drop-shadow(0 0 15px rgba(235, 178, 255, 0.65)) brightness(1.25) contrast(1.15);
    object-fit: contain;
}
.site-logo-nav {
    height: 55px; /* Aumentado de 45px para 55px */
    margin-right: 0;
}
.site-logo-hero {
    height: 180px; /* Aumentado de 120px para 180px */
    max-width: 100%; /* Garante que não quebre em celulares */
    margin-bottom: 0;
    animation: floating 3s ease-in-out infinite;
}

[data-theme="light"] .site-logo {
    /* No Modo Claro, aumentamos a exposição para brilhar com maestria sobre o fundo escuro da cápsula */
    filter: drop-shadow(0 0 15px rgba(188, 19, 254, 0.65)) brightness(1.3) contrast(1.2);
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

header { text-align: center; margin-bottom: 40px; margin-top: 20px; }
header h1 { display: none; /* Hide the old text title to use the logo, or we can keep it for screen readers */ }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
header p { color: var(--text-muted); margin-top: 10px; font-size: 1.1rem; }

/* Cards & Forms */
.card {
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.input-group input {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
    transition: border 0.3s, box-shadow 0.3s, background-color 0.3s;
}
[data-theme="light"] .input-group input {
    background: rgba(255, 255, 255, 0.65); /* Fundo branco Translúcido no Modo Claro para melhor legibilidade */
}
.input-group input:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); 
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.3s;
    background: rgba(0,0,0,0.02);
}
[data-theme="dark"] .drop-zone { background: rgba(255,255,255,0.02); }
.drop-zone:hover, .drop-zone--over { 
    border-color: var(--primary); 
    background: var(--primary-light); 
}
.drop-zone__input { display: none; }
.drop-zone__prompt { color: var(--text-muted); font-weight: 500; font-size: 1.1rem; }

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.btn-primary:hover:not(:disabled) { 
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(235, 178, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Downloads List */
.status-area h3 { margin-bottom: 20px; font-size: 1.3rem; color: var(--text); }

.download-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid var(--border);
    border-left: 5px solid var(--border);
    transition: transform 0.2s;
}
.download-item:hover { transform: translateX(5px); }
.download-item.status-active { border-left-color: var(--primary); }
.download-item.status-complete { border-left-color: var(--success); }
.download-item.status-error { border-left-color: var(--error); }

.dl-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dl-info strong { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.1rem; }
.speed-text { font-weight: 700; font-size: 0.95rem; color: var(--primary); }

.progress-bar-container { background: var(--border); height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 12px; }
.progress-bar-fill { 
    background: linear-gradient(90deg, var(--primary), #d8b4fe); 
    height: 100%; 
    transition: width 0.5s ease-out; 
}
.status-complete .progress-bar-fill { background: var(--success); }

.dl-details { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.details-left { display: flex; align-items: center; gap: 10px; }
.stats-icon { font-size: 0.8rem; background: var(--border); color: var(--text); padding: 4px 8px; border-radius: 6px; font-weight: 500; }

.badge { padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-active { background: var(--primary-light); color: var(--primary-hover); }
.badge-complete { background: var(--success-bg); color: var(--success); }
.badge-paused { background: #fef3c7; color: #d97706; }
.badge-error { background: var(--error-bg); color: var(--error); }

.empty-msg { 
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    text-align: center; color: var(--text-muted); padding: 40px; font-weight: 500; 
    border: 2px dashed var(--border); border-radius: 16px;
}
.empty-icon { font-size: 3rem; opacity: 0.5; }
.error-msg { text-align: center; padding: 20px; font-weight: 500; color: var(--error); background: var(--error-bg); border-radius: 12px; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Split Login Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-color);
}
.split-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--bg-color);
    position: relative;
}
.split-right {
    flex: 1;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.split-right img {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.5));
    z-index: 2;
    mix-blend-mode: screen; /* Garante que o fundo preto do logo.png na página de redefinição de senha fique transparente! */
}
/* Efeitos cyberpunk no fundo */
.split-right::before {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    background: repeating-linear-gradient(transparent, transparent 2px, rgba(255,255,255,0.05) 2px, rgba(255,255,255,0.05) 4px);
    z-index: 1;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .split-layout { flex-direction: column-reverse; }
    .split-right { min-height: 300px; flex: none; }
    .split-right img { max-height: 250px; }
}

/* Admin Panel Enhancements */
.admin-nav { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 30px; padding: 15px; border-radius: 12px; flex-wrap: wrap; }
.admin-nav a { 
    padding: 10px 20px; 
    font-weight: 600; 
    border-radius: 8px; 
    transition: all 0.2s; 
    text-decoration: none;
    color: var(--text);
    background: rgba(0,0,0,0.03);
    border: 1px solid transparent;
}
[data-theme="dark"] .admin-nav a {
    background: rgba(255,255,255,0.05);
}
.admin-nav a.active { 
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)); 
    color: white; 
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4); 
}
.admin-nav a:not(.active):hover { 
    background: var(--border); 
    transform: translateY(-2px);
}
.admin-nav a.exit { 
    background: rgba(239, 68, 68, 0.1); 
    color: var(--error); 
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.admin-nav a.exit:hover {
    background: var(--error);
    color: white;
}

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat-card { 
    background: linear-gradient(145deg, var(--card-bg), rgba(139, 92, 246, 0.05));
    padding: 25px; border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s; 
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15); border-color: var(--primary-light); }
.stat-card p { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); margin: 0; }
.stat-card h3 { 
    font-size: 3rem; font-weight: 800; 
    background: -webkit-linear-gradient(45deg, var(--primary), #d8b4fe); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    margin: 15px 0 0 0;
}

.table-responsive { width: 100%; overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--card-bg); min-width: 600px; }
th, td { border-bottom: 1px solid var(--border); padding: 16px; text-align: left; color: var(--text); }
th { background-color: rgba(0,0,0,0.02); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
[data-theme="dark"] th { background-color: rgba(255,255,255,0.02); }

/* Notifications System */
.notifications-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 5px;
    z-index: 101;
}
.globe-icon {
    font-size: 1.4rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.globe-icon:hover {
    background-color: var(--primary-light);
}
.badge-count {
    position: absolute;
    top: -2px;
    right: -5px;
    background: var(--error);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none; /* hidden by default */
}
.badge-count.active {
    display: block;
}

/* Notification Panel Dropdown */
.notification-panel {
    position: absolute;
    top: 45px;
    right: 0;
    width: 300px;
    max-height: 400px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-y: auto;
    display: none; /* hidden by default */
    flex-direction: column;
    z-index: 2000;
}

@media (max-width: 768px) {
    .notification-panel {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 165px); /* respeitar barra inferior de 85px + header de 75px */
        z-index: 9996; /* acima dos cards glass (backdrop-filter), abaixo da barra inferior (9997) */
        border-radius: 16px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 0 100vmax rgba(0, 0, 0, 0.4);
    }
}
.notification-panel.active {
    display: flex;
    animation: fadeInDown 0.2s ease-out;
}
.notification-panel-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-weight: bold;
    color: var(--primary);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 2;
}
.notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item.unread {
    background: rgba(139, 92, 246, 0.05); /* very light primary */
}
.notification-item strong {
    font-size: 0.95rem;
    color: var(--text);
}
.notification-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.notification-item a {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: underline;
    margin-top: 5px;
    display: inline-block;
}
.notification-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-notification {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-notification.hide {
    animation: fadeOutRight 0.4s ease forwards;
}
.toast-title {
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toast-title::before {
    content: '📢';
    font-size: 1.2rem;
}
.toast-content {
    font-size: 0.85rem;
    line-height: 1.4;
}
.toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}
.toast-close:hover {
    color: white;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .site-wrapper {
        flex-direction: column;
        padding: 10px;
    }
    .top-nav {
        flex-wrap: wrap;
        padding: 10px;
        justify-content: center;
        position: static; /* Remove sticky on very small screens to save space */
    }
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    .user-info span, .user-info a {
        text-align: center;
    }
    header h1 {
        font-size: 2rem;
    }
    .card {
        padding: 20px;
    }
}

/* Registration CTA Banner */
.reg-cta-banner {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin: 20px auto 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    box-shadow: var(--shadow);
    max-width: 700px;
    animation: fadeInDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.reg-cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background: linear-gradient(to bottom, var(--primary), #d8b4fe);
}

.reg-cta-icon {
    font-size: 2.5rem;
    background: var(--primary-light);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 15px rgba(139, 92, 246, 0.2);
}

.reg-cta-content {
    flex-grow: 1;
}

.reg-cta-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.reg-cta-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.reg-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.btn-cta {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-cta-secondary:hover {
    background: var(--primary-light);
}

/* Responsividade Geral */
@media (max-width: 768px) {
    .top-nav { padding: 0 15px; justify-content: center; }
    .nav-brand { display: none; }
    .nav-right { gap: 15px; width: 100%; justify-content: space-around; }
    
    .site-wrapper {
        flex-direction: column;
        padding: 10px;
    }

    /* Mobile Download Restriction */
    .desktop-only, .desktop-only-form {
        display: none !important;
    }

    .mobile-warning-card {
        display: block !important;
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
        border: 1px solid rgba(239, 68, 68, 0.2);
        border-radius: 20px;
        padding: 30px 20px;
        text-align: center;
        margin: 20px 0;
    }
}

.mobile-warning-card {
    display: none;
}

.mobile-warning-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.mobile-warning-card h3 {
    color: #ef4444;
    margin-bottom: 10px;
    font-weight: 800;
}

.mobile-warning-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.mobile-warning-footer {
    margin-top: 15px !important;
    font-weight: 600;
    color: var(--primary) !important;
}

.nav-home-mobile {
    display: none;
    text-decoration: none;
    font-size: 1.4rem;
}
.nav-home-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.2s ease;
}
.nav-home-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-home-mobile {
        display: block;
    }
}

@media (max-width: 650px) {
    .reg-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .reg-cta-banner::before {
        width: 100%; height: 6px;
    }
    .reg-cta-actions {
        width: 100%;
    }
}

/* Navigation Menu Styling */
.nav-menu {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    margin-right: auto;
}
.nav-menu-item {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s ease, background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}
.nav-menu-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
    border-color: var(--border);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

/* ============================================================
   Notificação Mobile — Overlay escuro + painel flutuante
   ============================================================ */
#notification-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9995; /* abaixo do painel (9996) mas acima de tudo mais */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}
#notification-overlay.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}