/* ===============================================================
   DASHBOARD PREMIUM - Phase 1
   BarberMaster AI - Dashboard que iguala a Flashcards Premium
   
   Inspirado en flashcards.css hub-card
   =============================================================== */

/* ===============================================================
   0. CONTENEDOR PRINCIPAL — BASE
   Asegura padding top + centering en TODOS los tamaños.
   El main-content ya maneja left/right padding.
   =============================================================== */
.dashboard-premium-container {
    padding-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}


/* ===============================================================
   1. HERO SECTION MEJORADO
   =============================================================== */
.dashboard-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 2rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    /* FIX: nunca permitir que el hero desborde el container */
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}


.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.dashboard-hero-content { 
    position: relative; 
    z-index: 1; 
}

.dashboard-hero h1 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-hero p { 
    color: var(--text-muted, #cbd5e1); 
    font-size: 1.1rem; 
}

.dashboard-hero p span { 
    color: var(--neon-cyan, #06b6d4); 
    font-weight: 600; 
}

/* ===============================================================
   2. TOPIC CARDS - IGUAL QUE HUB CARDS
   =============================================================== */
.topics-premium-grid {
    display: grid;
    /* FIX: reducido de 280px a 220px igual que modes-premium-grid */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}


/* Estilo base para topic-card generado por JavaScript */
.topics-premium-grid .topic-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Hover effect premium - exactamente como hub-card */
.topics-premium-grid .topic-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: var(--neon-cyan, #06b6d4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(6, 182, 212, 0.15);
}

/* Topic icon con tamaño premium */
.topics-premium-grid .topic-card .topic-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.topics-premium-grid .topic-card:hover .topic-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Topic title */
.topics-premium-grid .topic-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main, #f8fafc);
}

/* Topic badge */
.topics-premium-grid .topic-card .topic-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan, #06b6d4);
    margin-bottom: 0.75rem;
}

/* Topic progress bar */
.topics-premium-grid .topic-card .topic-progress {
    margin-top: 1rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

/* ===============================================================
   3. STATS CARDS MEJORADAS
   =============================================================== */
.stats-premium-grid {
    display: grid;
    /* FIX v1.6.0: Use auto-fit instead of fixed repeat(4,1fr) — prevents overflow/clipping */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    /* Safety: never let grid children escape the container */
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.stat-premium-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
    /* FIX: Ensure content never clips on small screens */
    min-width: 0;
    box-sizing: border-box;
}

.stat-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent, var(--primary)), transparent);
    opacity: 0.9;
}

.stat-premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(var(--card-accent-rgb), 0.15);
}

.stat-premium-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-premium-card:hover .stat-premium-icon {
    transform: scale(1.1) rotate(-3deg);
    border-color: var(--card-accent, var(--primary));
    box-shadow: 0 0 20px rgba(var(--card-accent-rgb), 0.3);
}

.stat-premium-value {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-premium-label { 
    font-size: 0.8rem; 
    color: var(--text-muted, #94a3b8); 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===============================================================
   4. MODES GRID MEJORADO
   =============================================================== */
.modes-premium-grid {
    display: grid;
    /* FIX: minmax reducido de 280px → 220px para evitar overflow en pantallas
       estrechas (split-screen, tablet). Con 3 cards × 220px = 660px mínimo,
       que cabe cómodamente en la mayoría de viewports con sidebar. */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    margin-top: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.mode-premium-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.mode-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mode-color, #3b82f6);
    transition: width 0.3s ease;
}

.mode-premium-card:hover {
    transform: translateX(10px) scale(1.02);
    border-color: var(--mode-color, #3b82f6);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(var(--mode-color-rgb), 0.15);
}

.mode-premium-card:hover::before {
    width: 6px;
}

.mode-icon-large {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--mode-color, #3b82f6), rgba(139, 92, 246, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mode-premium-card:hover .mode-icon-large {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 30px rgba(var(--mode-color-rgb), 0.4);
}

.mode-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main, #f8fafc);
}

.mode-content p {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
}

.mode-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.mode-premium-card:hover .mode-arrow {
    transform: translateX(5px);
    color: var(--mode-color, #3b82f6);
}

/* ===============================================================
   5. PROGRESS RING MEJORADO
   =============================================================== */
.progress-ring-container {
    position: relative;
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__background {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 10;
}

.progress-ring__progress {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0.2, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-ring-percent {
    font-size: 3rem;
    font-weight: 800;
    color: var(--neon-cyan, #06b6d4);
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    animation: countUp 2s ease-out;
}

.progress-ring-label {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.25rem;
}

/* ===============================================================
   5. STREAK BADGE - SIN ANIMACIONES INFINITAS (PARPADEO)
   =============================================================== */
.streak-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.streak-badge-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

/* .streak-fire, .streak-text, .streak-number, .streak-label
   definidos abajo con version completa (glow + z-index) */

.streak-badge-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    animation: shimmerGold 3s ease-in-out;
}

@keyframes shimmerGold {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.streak-badge-premium:hover::before {
    animation: shimmerGold 3s ease-in-out;
}

.streak-fire {
    font-size: 2rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

.streak-fire:hover {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.8));
}



.streak-text {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.streak-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.streak-label {
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===============================================================
   7. SECTION HEADERS
   =============================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.section-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ===============================================================
   8. ANIMACIONES DE ENTRADA
   =============================================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

/* stagger-item animation is defined in styles.css */

/* ===============================================================
   9. QUICK ACTIONS (Floating Buttons)
   FIX: position:fixed dentro de .main-content (overflow-y:auto) crea un
   nuevo stacking context que rompe fixed positioning, haciendo que los
   botones aparezcan en la mitad de la pantalla en lugar de la esquina.
   Solución: usar position:fixed directamente en el body vía !important
   y asegurar que z-index sea mayor que cualquier contenedor.
   =============================================================== */
.quick-actions {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999 !important;  /* Mayor que sidebar (1000) y overlay (95) */
    /* Forzar que el elemento sea referenciado al viewport, no al contenedor */
    transform: translateZ(0);  /* Crear su propio stacking context limpio */
    will-change: transform;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.quick-action-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.6);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

/* ===============================================================
   10. PROFILE BUTTONS
   =============================================================== */
#saveProfileBtn,
#profileRecalibrateBtn,
#profileResetAllBtn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#saveProfileBtn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

#saveProfileBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

#saveProfileBtn:active {
    transform: translateY(0);
}

#profileRecalibrateBtn,
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

#profileRecalibrateBtn:hover,
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

#profileResetAllBtn,
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

#profileResetAllBtn:hover,
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* Profile Tabs */
.profile-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.profile-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-tab.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-color: var(--primary, #3b82f6);
    color: white;
}

/* ===============================================================
   11. RESPONSIVE
   =============================================================== */

/* --- RANGO INTERMEDIO EN ESCRITORIO (Pantalla compartida a la mitad) ---
   Cuando estamos en escritorio (≥769px) pero la ventana se estrecha hasta 1050px,
   el área de contenido real queda muy reducida por culpa del sidebar fijo (280px).
   Cambiamos el Hero y los Modos de Estudio a 1 columna para evitar que el texto
   de bienvenida y las tarjetas se aplasten, superpongan o empujen contenido hacia abajo.
   ------------------------------------------------------------------------ */
@media (min-width: 769px) and (max-width: 1050px) {
    .dashboard-hero {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: 1.5rem !important;
    }
    
    .dashboard-hero h1 {
        font-size: 2.1rem !important;
    }

    .progress-ring-container {
        margin: 1rem auto 0 !important;
    }

    .modes-premium-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .mode-premium-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 1024px) {
    .stats-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }
    
    .dashboard-hero h1 {
        font-size: 1.85rem;
    }
    
    .stats-premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        /* FIX: sin min-width:0, las grid cells pueden forzar overflow en mobile */
        min-width: 0;
    }

    /* FIX STAT CARDS MOBILE: reducir padding para que el contenido no se corte
       en pantallas medianas. El texto 'PRECISIÓN' se cortaba porque el padding
       de 1.75rem + double padding del main-content dejaba las cards demasiado angostas. */
    .stat-premium-card {
        padding: 1rem 0.75rem;
        overflow: visible !important; /* No recortar contenido en mobile */
    }

    .stat-premium-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .stat-premium-value {
        font-size: 1.6rem;
    }

    .stat-premium-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        /* Permitir que el texto haga wrap si es necesario */
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .modes-premium-grid {
        grid-template-columns: 1fr;
    }

    .mode-premium-card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
    }
    
    .mode-icon-large {
        margin: 0 auto !important;
    }

    .mode-arrow {
        display: none !important;
    }
    
    .topics-premium-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-premium-card:hover {
        transform: translateY(-4px);
    }

    /* FIX QUICK ACTIONS MOBILE */
    .quick-actions {
        bottom: 1rem !important;
        right: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* En pantallas muy pequeñas (≤480px), las stats van en 1 columna
       para que nunca haya truncamiento de texto */
    .stats-premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-premium-card {
        padding: 0.85rem 0.5rem;
    }

    .stat-premium-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-premium-value {
        font-size: 1.35rem;
    }

    .stat-premium-label {
        font-size: 0.65rem;
        letter-spacing: 0px;
    }
    
    .progress-ring-container {
        width: 110px;
        height: 110px;
    }
    
    .progress-ring-percent {
        font-size: 2rem;
    }
}

/* ===============================================================
   12. SAAS BUY BUTTONS (Paywall)
   =============================================================== */
.btn-saas-buy {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

.btn-saas-buy.emergency-btn {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #0a0f1e;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-saas-buy.emergency-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

.btn-saas-buy.monthly-btn {
    background: linear-gradient(135deg, #00D4FF, #0099BB);
    color: #0a0f1e;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.btn-saas-buy.monthly-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
}

.btn-saas-buy.annual-btn {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-saas-buy.annual-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
}

/* Saas Cards */
.saas-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.saas-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.saas-card.emergency:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 25px 50px rgba(251, 191, 36, 0.15);
}

.saas-card.monthly:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.15);
}

.saas-card.annual:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 25px 50px rgba(168, 85, 247, 0.15);
}

.saas-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.saas-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main, #f8fafc);
}

.saas-card-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.saas-card-price span {
    font-size: 1.25rem;
    vertical-align: top;
}

.saas-card-period {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 1rem;
}

.saas-card-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.saas-card-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.saas-card-features li:last-child {
    border-bottom: none;
}

.saas-badge-save {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* =========================================================================
   THEME CITIZENSHIP (DARK LUXURY: NAVY BLUE & GOLD)
   ========================================================================= */
body.theme-citizenship {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #d4af37;
    --bg-dark: #0a0f1e;
    background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.35) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.08) 0%, #0a0f1e 100%);
    background-attachment: fixed;
}
body.theme-citizenship .dashboard-header {
    background: linear-gradient(135deg, rgba(30,58,138,0.7) 0%, rgba(10,15,30,0.9) 100%);
    border-bottom: none;          /* Quitamos la línea dura */
    position: relative;
    overflow: hidden;
}
/* Separador suave que se desvanece en los extremos */
body.theme-citizenship .dashboard-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.15) 20%,
        rgba(212, 175, 55, 0.45) 50%,
        rgba(212, 175, 55, 0.15) 80%,
        transparent 100%
    );
}
body.theme-citizenship .stat-card {
    background: linear-gradient(145deg, rgba(30,58,138,0.25), rgba(15,23,42,0.5));
    border: 1px solid rgba(212,175,55,0.2);
}
body.theme-citizenship .stat-card:hover {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 4px 20px rgba(212,175,55,0.15);
}
body.theme-citizenship .mode-card.primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f1d4a 100%);
    box-shadow: 0 4px 25px rgba(30,58,138, 0.4);
    border: 1px solid rgba(212,175,55,0.3);
}
body.theme-citizenship .mode-card.primary .mode-icon {
    background: rgba(212,175,55, 0.2);
    color: #d4af37;
}
body.theme-citizenship .progress-fill {
    background: linear-gradient(90deg, #1e3a8a, #d4af37);
}

/* ── Sidebar y Navegación ── */
body.theme-citizenship .sidebar-premium {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(10, 15, 30, 0.96));
    border-right: 1px solid rgba(30, 58, 138, 0.25);
}
body.theme-citizenship .nav-item-premium.active {
    background: rgba(30, 58, 138, 0.15);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 15px rgba(30, 58, 138, 0.2);
}
body.theme-citizenship .nav-item-premium.active .nav-icon {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}
body.theme-citizenship .nav-item-premium:hover .nav-icon {
    background: rgba(30, 58, 138, 0.3);
    color: #d4af37;
}
body.theme-citizenship .user-snippet-premium:hover {
    background: rgba(30, 58, 138, 0.15);
}
body.theme-citizenship .user-avatar-premium {
    border-color: #d4af37;
}
body.theme-citizenship .user-info-premium small {
    color: #d4af37;
}

/* ── Dashboard Hero ── */
body.theme-citizenship .dashboard-hero {
    background: linear-gradient(135deg, rgba(30,58,138,0.3) 0%, rgba(10,15,30,0.6) 100%);
    border: 1px solid rgba(212,175,55,0.2);
}
body.theme-citizenship .dashboard-hero::before {
    background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.08) 0%, transparent 70%);
}
body.theme-citizenship .progress-ring__progress {
    stroke: #d4af37;
}
body.theme-citizenship .mode-icon-large {
    background: rgba(30, 58, 138, 0.3);
    color: #d4af37;
}

/* ── Quiz y Examen ── */
body.theme-citizenship .quiz-container,
body.theme-citizenship .exam-container {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(30, 58, 138, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}
body.theme-citizenship .question-card {
    background: linear-gradient(145deg, rgba(30,58,138,0.15), rgba(10,15,30,0.3));
    border: 1px solid rgba(212,175,55,0.15);
}
body.theme-citizenship .option-btn {
    border: 1px solid rgba(30, 58, 138, 0.3);
    background: rgba(10, 15, 30, 0.4);
    color: #e2e8f0;
    transition: all 0.2s ease;
}
body.theme-citizenship .option-btn:hover {
    border-color: #d4af37;
    background: rgba(30, 58, 138, 0.25);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}
body.theme-citizenship .option-btn.correct,
body.theme-citizenship .option-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}
body.theme-citizenship .option-btn.incorrect {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}
body.theme-citizenship .option-letter {
    background: rgba(30, 58, 138, 0.3);
    color: #d4af37;
}

/* ── Botones ── */
body.theme-citizenship .btn-nav.primary,
body.theme-citizenship .btn-start {
    background: linear-gradient(135deg, #1e3a8a, #0f1d4a);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}
body.theme-citizenship .btn-nav.primary:hover,
body.theme-citizenship .btn-start:hover {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}
body.theme-citizenship .btn-nav.secondary {
    background: rgba(30, 58, 138, 0.2);
    border: 1px solid rgba(30, 58, 138, 0.3);
    color: #94a3b8;
}

/* ── Feedback ── */
body.theme-citizenship .feedback-area {
    border: 1px solid rgba(30, 58, 138, 0.3);
    background: rgba(10, 15, 30, 0.5);
}
body.theme-citizenship .feedback-area.success {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}
body.theme-citizenship .feedback-area.error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

/* ── Exam Hub ── */
body.theme-citizenship .exam-hub-card {
    background: linear-gradient(145deg, rgba(30,58,138,0.2), rgba(10,15,30,0.4));
    border: 1px solid rgba(212,175,55,0.15);
}
body.theme-citizenship .exam-hub-card:hover {
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 4px 20px rgba(212,175,55,0.1);
}
body.theme-citizenship .exam-hub-card.locked {
    opacity: 0.5;
    border-color: rgba(30, 58, 138, 0.15);
}
body.theme-citizenship .exam-progress-bar {
    background: linear-gradient(90deg, #1e3a8a, #d4af37);
}
body.theme-citizenship .exam-reference-option.ref-selected {
    background: rgba(212, 175, 55, 0.15);
    border-left: 2px solid #d4af37;
}

/* ── Results ── */
body.theme-citizenship .results-card {
    background: linear-gradient(145deg, rgba(30,58,138,0.2), rgba(10,15,30,0.4));
    border: 1px solid rgba(212,175,55,0.2);
}
body.theme-citizenship .results-score {
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ── Flashcards ── */
body.theme-citizenship .fc-card {
    background: linear-gradient(145deg, rgba(30,58,138,0.2), rgba(10,15,30,0.4));
    border: 1px solid rgba(212,175,55,0.2);
}
body.theme-citizenship .card-front,
body.theme-citizenship .card-back {
    background: linear-gradient(145deg, rgba(30,58,138,0.15), rgba(10,15,30,0.3));
}
body.theme-citizenship .fc-explanation {
    background: rgba(30, 58, 138, 0.15);
    border-left: 3px solid #d4af37;
}


/* =========================================================================
   THEME REAL ESTATE (DARK LUXURY: EMERALD GREEN & GOLD)
   ========================================================================= */
body.theme-realestate {
    --primary: #047857; /* Emerald Green */
    --accent: #d4af37; /* Gold */
    --bg-dark: #0f172a;
    background: radial-gradient(circle at top right, rgba(4, 120, 87, 0.15) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.05) 0%, #0f172a 100%);
    background-attachment: fixed;
}
body.theme-realestate .dashboard-header {
    background: linear-gradient(135deg, rgba(4,120,87,0.6) 0%, rgba(15,23,42,0.8) 100%);
    border-bottom: 1px solid rgba(212,175,55,0.2);
}
body.theme-realestate .stat-card {
    background: linear-gradient(145deg, rgba(4,120,87,0.15), rgba(15,23,42,0.4));
    border: 1px solid rgba(212,175,55,0.15);
}
body.theme-realestate .stat-card:hover {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 4px 15px rgba(212,175,55,0.1);
}
body.theme-realestate .mode-card.primary {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
    box-shadow: 0 4px 20px rgba(4,120,87, 0.3);
    border: 1px solid rgba(212,175,55,0.3);
}
body.theme-realestate .mode-card.primary .mode-icon {
    background: rgba(212,175,55, 0.2);
    color: #d4af37;
}
body.theme-realestate .progress-fill {
    background: linear-gradient(90deg, #047857, #d4af37);
}


/* ========================================== 
   FUTURISTIC PROMO CAROUSEL (HOOK) 
   ========================================== */
.futuristic-carousel-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.futuristic-carousel-container:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15), inset 0 0 0 1px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}
.futuristic-carousel-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1), transparent 60%);
    animation: rotateGlow 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.futuristic-carousel-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}
.futuristic-carousel-image-wrapper {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.futuristic-carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.futuristic-carousel-container:hover .futuristic-carousel-image-wrapper img {
    transform: scale(1.05);
}
.futuristic-badge {
    position: absolute;
    top: 15px; 
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fde68a, #d4af37);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    z-index: 2;
    white-space: nowrap;
}
.futuristic-carousel-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.futuristic-carousel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.futuristic-carousel-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.futuristic-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4af37, #b48600);
    color: #000;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.futuristic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}
/* Carousel Pagination Indicators */
.futuristic-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.futuristic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}
.futuristic-dot.active {
    background: #d4af37;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
@media(max-width: 768px) {
    .futuristic-carousel-content { flex-direction: column; text-align: center; gap: 1.5rem; }
    .futuristic-carousel-info { display: flex; flex-direction: column; align-items: center; }
    .futuristic-badge { right: auto; left: 50%; transform: translateX(-50%); top: 15px; }
}

/* =========================================================================
   THEME NAIL TECH (DARK LUXURY: DEEP PINK & NEON MAGENTA)
   ========================================================================= */
body.theme-nailtech,
body.theme-dashboard.theme-nailtech {
    --primary: #db2777 !important;
    --accent: #f472b6 !important;
    --neon-cyan: #f472b6 !important;
    --bg-dark: #0f172a !important;
    /* Fondo oscuro original Slate 900 con destellos de acento rosa y morado perfectamente definidos */
    background: radial-gradient(circle at 10% 20%, rgba(219, 39, 119, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
                #0f172a !important;
    background-attachment: fixed !important;
}

/* Sidebar y Navegación Premium para Nail Tech */
body.theme-nailtech .sidebar-premium {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.96)) !important;
    border-right: 1px solid rgba(219, 39, 119, 0.15) !important;
}

body.theme-nailtech .nav-item-premium.active {
    background: rgba(219, 39, 119, 0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(219, 39, 119, 0.35) !important;
    box-shadow: 0 0 15px rgba(219, 39, 119, 0.15) !important;
}

body.theme-nailtech .nav-item-premium.active .nav-icon {
    background: rgba(219, 39, 119, 0.25) !important;
    color: #f472b6 !important;
}

body.theme-nailtech .nav-item-premium:hover .nav-icon {
    background: rgba(219, 39, 119, 0.15) !important;
    color: #fff !important;
}

body.theme-nailtech .user-snippet-premium:hover {
    background: rgba(219, 39, 119, 0.08) !important;
    border-color: rgba(219, 39, 119, 0.25) !important;
}

body.theme-nailtech .user-avatar-premium {
    background: linear-gradient(135deg, #db2777, #f472b6) !important;
}

body.theme-nailtech .user-info-premium small {
    color: #f472b6 !important;
}

/* Hero y Progreso Circular para Nail Tech */
body.theme-nailtech .dashboard-hero {
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.08) 0%, rgba(15, 23, 42, 0.45) 100%) !important;
    border: 1px solid rgba(219, 39, 119, 0.22) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

body.theme-nailtech .dashboard-hero::before {
    background: radial-gradient(ellipse, rgba(219, 39, 119, 0.15) 0%, transparent 60%) !important;
}

body.theme-nailtech .progress-ring__progress {
    filter: drop-shadow(0 0 10px rgba(219, 39, 119, 0.5)) !important;
}

/* Modos de estudio icon large */
body.theme-nailtech .mode-icon-large {
    background: linear-gradient(135deg, #db2777, rgba(244, 114, 182, 0.4)) !important;
}

body.theme-nailtech .dashboard-header {
    background: transparent !important;
    border-bottom: none !important;
}

/* =========================================================================
   THEME ELECTROLOGY (DARK LUXURY: SKY BLUE & CYAN)
   ========================================================================= */
body.theme-electrology,
body.theme-dashboard.theme-electrology {
    --primary: #0284c7 !important;
    --accent: #22d3ee !important;
    --neon-cyan: #22d3ee !important;
    --bg-dark: #0f172a !important;
    /* Fondo oscuro original Slate 900 con destellos de acento cian y celeste perfectamente definidos */
    background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
                #0f172a !important;
    background-attachment: fixed !important;
}

/* Sidebar y Navegación Premium para Electrología */
body.theme-electrology .sidebar-premium {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.96)) !important;
    border-right: 1px solid rgba(2, 132, 199, 0.15) !important;
}

body.theme-electrology .nav-item-premium.active {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(2, 132, 199, 0.35) !important;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.15) !important;
}

body.theme-electrology .nav-item-premium.active .nav-icon {
    background: rgba(2, 132, 199, 0.25) !important;
    color: #22d3ee !important;
}

body.theme-electrology .nav-item-premium:hover .nav-icon {
    background: rgba(2, 132, 199, 0.15) !important;
    color: #fff !important;
}

body.theme-electrology .user-snippet-premium:hover {
    background: rgba(2, 132, 199, 0.08) !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

body.theme-electrology .user-avatar-premium {
    background: linear-gradient(135deg, #0284c7, #22d3ee) !important;
}

body.theme-electrology .user-info-premium small {
    color: #22d3ee !important;
}

/* Hero y Progreso Circular para Electrología */
body.theme-electrology .dashboard-hero {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(15, 23, 42, 0.45) 100%) !important;
    border: 1px solid rgba(2, 132, 199, 0.22) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

body.theme-electrology .dashboard-hero::before {
    background: radial-gradient(ellipse, rgba(2, 132, 199, 0.15) 0%, transparent 60%) !important;
}

body.theme-electrology .progress-ring__progress {
    filter: drop-shadow(0 0 10px rgba(2, 132, 199, 0.5)) !important;
}

/* Modos de estudio icon large */
body.theme-electrology .mode-icon-large {
    background: linear-gradient(135deg, #0284c7, rgba(34, 211, 238, 0.4)) !important;
}

body.theme-electrology .dashboard-header {
    background: transparent !important;
    border-bottom: none !important;
}

/* =========================================================================
   THEME ASVAB (MILITARY: OLIVE & EMERALD)
   ========================================================================= */
body.theme-asvab,
body.theme-dashboard.theme-asvab {
    --primary: #059669 !important;
    --accent: #34d399 !important;
    --neon-cyan: #34d399 !important;
    --bg-dark: #0f172a !important;
    background: radial-gradient(circle at 15% 25%, rgba(5, 150, 105, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 85% 75%, rgba(52, 211, 153, 0.04) 0%, transparent 50%),
                #0f172a !important;
    background-attachment: fixed !important;
}

body.theme-asvab .sidebar-premium {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.96)) !important;
    border-right: 1px solid rgba(5, 150, 105, 0.15) !important;
}

body.theme-asvab .nav-item-premium.active {
    background: rgba(5, 150, 105, 0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(5, 150, 105, 0.35) !important;
    box-shadow: 0 0 15px rgba(5, 150, 105, 0.15) !important;
}

body.theme-asvab .nav-item-premium.active .nav-icon {
    background: rgba(5, 150, 105, 0.25) !important;
    color: #34d399 !important;
}

body.theme-asvab .nav-item-premium:hover .nav-icon {
    background: rgba(5, 150, 105, 0.15) !important;
    color: #fff !important;
}

body.theme-asvab .user-snippet-premium:hover {
    background: rgba(5, 150, 105, 0.08) !important;
    border-color: rgba(5, 150, 105, 0.25) !important;
}

body.theme-asvab .user-avatar-premium {
    background: linear-gradient(135deg, #059669, #34d399) !important;
}

body.theme-asvab .user-info-premium small {
    color: #34d399 !important;
}

body.theme-asvab .dashboard-hero {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(15, 23, 42, 0.45) 100%) !important;
    border: 1px solid rgba(5, 150, 105, 0.22) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

body.theme-asvab .dashboard-hero::before {
    background: radial-gradient(ellipse, rgba(5, 150, 105, 0.15) 0%, transparent 60%) !important;
}

body.theme-asvab .progress-ring__progress {
    filter: drop-shadow(0 0 10px rgba(5, 150, 105, 0.5)) !important;
}

body.theme-asvab .mode-icon-large {
    background: linear-gradient(135deg, #059669, rgba(52, 211, 153, 0.4)) !important;
}

body.theme-asvab .dashboard-header {
    background: transparent !important;
    border-bottom: none !important;
}

/* =========================================================================
   SCROLLBAR DESTRUCTION - FORCE HIDDEN SIDEBAR SCROLLBARS ON ALL ENVIRONMENTS
   ========================================================================= */
.sidebar,
.sidebar-premium,
aside.sidebar-premium,
aside.sidebar,
.sidebar-nav-premium {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

.sidebar::-webkit-scrollbar,
.sidebar-premium::-webkit-scrollbar,
aside.sidebar-premium::-webkit-scrollbar,
aside.sidebar::-webkit-scrollbar,
.sidebar-nav-premium::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* =========================================================================
   LAYOUT DESKTOP (≥769px) — Solo estilos visuales del dashboard.
   El sidebar positioning y el margin-left de main-content los maneja
   EXCLUSIVAMENTE el bloque html[data-ua] en los archivos HTML.
   ========================================================================= */
@media (min-width: 769px) {

    /* Container 100% fluido — padding simétrico 2rem a los lados y extra en la izquierda para alejar del sidebar:
       izq: 3rem (container) + 1.5rem (main-content) = 4.5rem → tarjetas alejadas del sidebar
       der: 2rem (container) + 1.5rem (main-content) = 3.5rem → layout perfectamente centrado */
    .dashboard-premium-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 2rem 2rem 2rem 3rem !important;
        box-sizing: border-box !important;
    }


    /* Grids del dashboard: columnas adaptativas */
    .stats-premium-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 1.25rem !important;
    }

    .modes-premium-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 1.5rem !important;
    }

    .topics-premium-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
        gap: 1.25rem !important;
    }
}

/* ============================================================
   HALF-SCREEN / SPLIT-WINDOW (ventana estrecha en desktop)
   Cuando el ancho del área de contenido cae entre 400-700px.
   Ajusta grids y texto para que nada se encime.
   ============================================================ */
@media (min-width: 769px) and (max-width: 1100px) {
    .stats-premium-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .modes-premium-grid {
        grid-template-columns: 1fr !important;
    }
    .topics-premium-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    }
    .dashboard-hero {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: 1.5rem !important;
    }
    .progress-ring-container {
        margin: 1rem auto 0 !important;
    }
    .mode-premium-card {
        flex-direction: row !important;
        padding: 1.25rem !important;
    }
}

/* Dashboard Premium Container — Base / Mobile */
.dashboard-premium-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1.25rem 0; /* Corrección de raíz: sin padding lateral para evitar el doble padding con el main-content en mobile */
    box-sizing: border-box;
}


/* ============================================================
   DARK LUXURY VISUAL REDESIGN (Dynamic Career Themes & Glows)
   ============================================================ */

/* Capa de Destellos Atmosféricos (Orbes flotantes en fondo) */
.dashboard-bg-glows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    -webkit-filter: blur(120px);
    opacity: 0.13;
    animation: floatGlow 14s infinite ease-in-out;
}

.glow-1 {
    top: -5%;
    right: 15%;
    width: 380px;
    height: 380px;
    background: var(--primary, #06b6d4);
}

.glow-2 {
    bottom: 5%;
    left: -5%;
    width: 320px;
    height: 320px;
    background: var(--neon-cyan, #3b82f6);
    animation-delay: -7s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -50px) scale(1.15); }
}

/* Glassmorphism Refinado de Tarjetas y Componentes */
.stat-premium-card,
.mode-premium-card {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%) !important;
    z-index: 1;
}

.stat-premium-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.03) !important;
}

.mode-premium-card:hover {
    border-color: var(--mode-color) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.03) !important;
}

/* Sombra Flotante para el Anillo de Progreso */
.progress-ring-container::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--neon-cyan, #06b6d4) 0%, transparent 70%);
    opacity: 0.14;
    z-index: 0;
    pointer-events: none;
    animation: pulseRingGlow 4.5s infinite ease-in-out;
}

@keyframes pulseRingGlow {
    0%, 100% { transform: scale(1); opacity: 0.14; }
    50% { transform: scale(1.08); opacity: 0.25; }
}

/* Topic Card (Grid de Temas) Glassmorphism */
.topics-premium-grid .topic-card {
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
}

/* =========================================================================
   TIENDA DIGITAL — Shop Screen
   Clases generadas por window.initShop() en app.core.js
   CSS migrado del <style> inline al stylesheet permanente
   ========================================================================= */

.shop-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.shop-wrapper h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
}

.shop-wrapper h1 i {
    font-size: 1.5rem;
    color: var(--neon-cyan, #06b6d4);
}

.shop-room-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.shop-sub {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ── Secciones ── */
.shop-section {
    margin-bottom: 2rem;
}

.shop-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-section-title i {
    font-size: 1rem;
    color: var(--neon-cyan, #06b6d4);
}

/* ── Grid de productos ── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.75rem;
}

/* ── Tarjeta de producto ── */
.shop-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
}

.shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Tarjeta destacada (Kit Maestro) */
.shop-card-featured {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
    position: relative;
    overflow: hidden;
}

.shop-card-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(251,191,36,0.6), transparent);
}

.shop-card-featured:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.15);
}

/* ── Elementos internos de la tarjeta ── */
.shop-card-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shop-card-icon i {
    font-size: 1.8rem;
}

.shop-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    min-height: 2.2em;
}

.shop-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 0.7rem;
    letter-spacing: -0.5px;
}

/* ── Boton Comprar ── */
.shop-btn-buy {
    width: 100%;
    padding: 0.55rem 0.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.3px;
}

.shop-btn-buy:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.shop-card-featured .shop-btn-buy {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0a0f1e;
}

.shop-card-featured .shop-btn-buy:hover {
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}

/* ── Responsive mobile ── */
@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .shop-card {
        padding: 0.9rem 0.75rem;
    }
    .shop-card-name {
        font-size: 0.75rem;
    }
    .shop-card-price {
        font-size: 1.1rem;
    }
}

