/* ========================================
   DESIGN TOKENS: Dark Mode Luxury
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    /* =========================================
       PALETA PREMIUM: Deep Space & Neon Luxury
       ========================================= */

    /* Base Colors */
    --bg-deep-space: #0f172a; /* Slate 900 */
    --bg-void: #020617; /* Slate 950 */
    --surface-glass: rgba(30, 41, 59, 0.45);
    --surface-glass-hover: rgba(51, 65, 85, 0.6);

    /* Accents */
    --primary: #3b82f6; /* Blue 500 */
    --primary-light: #60a5fa; /* Blue 400 */
    --neon-cyan: #00D4FF;
    --danger-red: #ef4444;

    /* Typography */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --scale-ratio: 1.25;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-glow: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%);

    /* Depth & Glassmorphism */
    --glass-border: 1px solid rgba(59, 130, 246, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-neon: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Spacing & Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --sidebar-width: 280px;
    --header-height: 80px;

    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Safety Mappings */
    --bg-primary: var(--bg-deep-space);
    --bg-secondary: #1a1a1a;
    --bg-tertiary: rgba(255, 255, 255, 0.03);
    --bg-card: var(--surface-glass);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --primary: #3b82f6;
    --accent: #8b5cf6;
    --primary-light: #60a5fa;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
    --success: #10b981;
    --warning: #f59e0b;
    --error: var(--danger-red);
    --border-radius-sm: var(--radius-sm);
    --border-radius-md: var(--radius-md);
    --border-radius-lg: var(--radius-lg);
}

/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   THEME ENGINE (Contextual Design)
   ======================================== */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    /* Base 16px explícita */
    background-color: var(--bg-deep-space);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.5s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dynamic Backgrounds */
body.theme-dashboard {
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(184, 115, 51, 0.08) 0%, transparent 40%),
        var(--bg-deep-space);
}

body.theme-quiz {
    background: radial-gradient(circle at 50% 0%, rgba(139, 0, 0, 0.15) 0%, transparent 60%),
        var(--bg-void);
}

body.theme-flashcards {
    background: radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        var(--bg-deep-space);
}

body.theme-academia {
    background: radial-gradient(circle at 0% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        var(--bg-deep-space);
}

/* Subtle Grain Overlay for Texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   UTILIDADES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SELECTOR DE IDIOMA
   ======================================== */
.language-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.lang-btn {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* ========================================
   PANTALLA DE BIENVENIDA
   ======================================== */
.welcome-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.logo-container {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

/* ========================================
   ESTRUCTURA DE LANDING / HERO
   ======================================== */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.text-neon {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.text-gold {
    color: var(--electric-gold);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 60vh;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

/* Animación 3D Teléfono Flotante */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.floating-phone {
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, #1a1a2e, #000);
    border-radius: 30px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    position: relative;
    transform: rotateY(-15deg) rotateX(10deg);
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(10deg) translateY(0);
    }

    50% {
        transform: rotateY(-15deg) rotateX(10deg) translateY(-20px);
    }
}

.phone-screen {
    width: 90%;
    height: 95%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-card {
    background: var(--glass-bg);
    border: 1px solid var(--neon-cyan);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 15px var(--neon-glow);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
        /* Hide 3D on mobile to save space/perf */
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }
}

/* Feature Item (Dashboard) */
.feature-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: var(--neon-glow);
}


.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
}

/* ========================================
   COMPONENTES DE ALTA FIDELIDAD
   ======================================== */

/* Efecto Hover Scan de Luz */
@keyframes lightScan {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

/* ========================================
   COMPONENTES UI (Alta Fidelidad)
   ======================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    /* Ley de Fitts (>44px) */
    padding: 0 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    overflow: hidden;
}

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

/* Botón Premium Gold */
.btn-primary {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.btn-primary:hover {
    background: rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Botón Dorado Premium */
.btn-gold {
    background: linear-gradient(135deg, #ffd700, #ffb900);
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

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

/* Glassmorphism Cards */
.glass-panel,
.topic-card,
.mode-card,
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    /* Specific Spec */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s;
}

/* Higher Impact Cards */
.highlight-gold {
    border: 1px solid var(--electric-gold) !important;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), transparent) !important;
}

.highlight-gold .mode-icon {
    filter: drop-shadow(0 0 10px var(--electric-gold));
}

.highlight-neon {
    border: 1px solid var(--neon-cyan) !important;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), transparent) !important;
}

.highlight-neon .mode-icon {
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

/* Tilt & Glow Hover Effect */
.glass-panel:hover,
.topic-card:hover,
.mode-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateX(2deg) translateY(-5px);
    /* Simple CSS 3D Tilt */
}

/* Inputs Refinados */
input,
select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
    font-family: 'Roboto Mono', monospace !important;
    font-size: 16px !important; /* Previene auto-zoom en iOS Safari */
}

input:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: var(--neon-glow) !important;
}

/* ========================================
   AUTENTICACIÓN
   ======================================== */
.auth-container {
    max-width: 450px;
    margin: 4rem auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-tertiary);
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--primary-gradient);
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.toggle-password:hover {
    background: rgba(255, 255, 255, 0.05);
}

.eye-icon {
    font-size: 1.25rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-password:hover .eye-icon {
    opacity: 1;
}

/* Password Hints and Messages */
.password-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.password-match-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.password-match-message.match {
    color: var(--success);
}

.password-match-message.no-match {
    color: var(--error);
}

/* ========================================
   TEST DIAGNÓSTICO
   ======================================== */
.diagnostic-header {
    text-align: center;
    margin-bottom: 3rem;
}

.diagnostic-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.diagnostic-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    margin: 2rem 0 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 100px;
    transition: width var(--transition-normal);
}

.question-counter {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.question-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    min-height: 400px;
}

.question-text {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.options-container {
    display: grid;
    gap: 1rem;
}

.option-btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-tertiary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-btn:hover {
    border-color: var(--primary-light);
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(5px);
}

.option-btn.selected {
    border-color: var(--primary-light);
    background: rgba(0, 212, 255, 0.15);
}

.option-btn.correct {
    border-color: var(--success);
    background: rgba(0, 230, 118, 0.15);
}

.option-btn.incorrect {
    border-color: var(--error);
    background: rgba(255, 61, 113, 0.15);
}

.diagnostic-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ========================================
   RESULTADOS
   ======================================== */
.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.results-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.results-score {
    font-size: 4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-breakdown,
.results-recommendation {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.results-breakdown h3,
.results-recommendation h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.topic-scores {
    display: grid;
    gap: 1rem;
}

.topic-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.topic-name {
    font-weight: 600;
    color: var(--text-primary);
}

.topic-percentage {
    font-size: 1.25rem;
    font-weight: 700;
}

.topic-percentage.strong {
    color: var(--success);
}

.topic-percentage.weak {
    color: var(--warning);
}

/* Attempt Badge */
.attempt-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* Progress Comparison */
.progress-comparison {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.progress-comparison h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comparison-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    text-align: center;
    min-width: 150px;
    transition: all var(--transition-normal);
}

.comparison-card.current {
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.comparison-card.improvement {
    border-color: var(--success);
}

.comparison-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.comparison-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-card.improvement .comparison-value {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-arrow {
    font-size: 2rem;
    color: var(--text-secondary);
}

/* Attempts History */
.attempts-history {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.attempts-history h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

#attemptsTimeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attempt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.attempt-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.attempt-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.attempt-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.attempt-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.attempt-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-small {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
}

.sidebar-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem; /* Más aire entre el icono y el texto */
    padding: 1rem 1.25rem; /* Botones más altos y espaciosos */
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.75rem; /* Más espacio entre botones */
    transition: all var(--transition-fast);
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.06); /* Ligerísimo toque de oro orgánico */
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding-left: calc(1rem - 3px); /* Mantenemos el offset estable */
}

.nav-icon {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Alinear abajo para mejor balance visual */
    margin-bottom: 3rem;
    /* Más aire */
    padding-right: 120px;
    /* Mantener fix de idioma */
}

.content-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    /* Más impacto */
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
}

.user-stats {
    display: flex;
    gap: 2rem;
    margin-right: 140px;
    /* Desplazar a la izquierda para evitar overlap con idioma */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 2rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Stats Grid - Balanced Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    /* Más aire entre tarjetas */
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.stat-card-content {
    flex: 1;
}

.stat-card-content h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0;
    line-height: 1;
}

.progress-bar.small {
    height: 6px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Study Modes - Grid Equilibrada */
.study-modes {
    margin-bottom: 4rem;
}

.study-modes h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.mode-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: var(--shadow-md);
}

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

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.mode-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Topics Grid */
.topics-overview h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Topic Cards */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--tr-smooth);
    position: relative;
    overflow: hidden;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.topic-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.topic-icon {
    font-size: 2rem;
}

.topic-badge {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.topic-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.topic-chapters {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.topic-progress {
    margin-top: 1rem;
}

.topic-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE — BREAKPOINT UNIFICADO 900px
   ========================================
   NOTA: Usamos 900px en styles.css Y en index.html para evitar el
   "gap zone" (769-900px) donde los estilos se contradicen.
   El sidebar usa position:fixed siempre; la visibilidad la controla
   el CSS (left:-320px off-screen / left:0 on-screen via .active).
   El JS (toggleSidebar) SOLO agrega/quita la clase .active. */
@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
    }

    /* SIDEBAR como drawer: position:fixed SIEMPRE — jamás relative */
    .sidebar {
        position: fixed !important;
        top: 0;
        left: -320px !important;    /* Oculto fuera de pantalla */
        width: 280px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        display: flex !important;   /* Siempre en DOM — slide usa left, no display */
        flex-direction: column;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    }

    .sidebar.active {
        left: 0 !important;  /* Slide-in desde la izquierda */
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1rem;
    }

    .welcome-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }

    .content-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   ANIMACIONES ADICIONALES
   ======================================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            var(--bg-tertiary) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}


/* =========================================
   QUIZ PREMIUM STYLES
   ========================================= */
.quiz-container,
.exam-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Quiz Header */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface-glass, rgba(30, 41, 59, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.quiz-progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quiz-progress-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-cyan, #06b6d4);
}

.quiz-stats-inline {
    display: flex;
    gap: 1.5rem;
}

.quiz-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.quiz-stat-item i { font-size: 1.1rem; }
.quiz-stat-item.correct i { color: #10b981; }
.quiz-stat-item.wrong i { color: #ef4444; }

/* Question Card Premium */
.question-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    padding: 2.5rem;
    border-radius: 24px;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.5s ease;
}

.q-text {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #f8fafc;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Option Button Premium */
.option-btn {
    position: relative;
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
    font-size: 1rem;
    color: #e2e8f0;
    overflow: hidden;
}

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

.option-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(8px);
}

.option-btn:hover::before {
    opacity: 1;
}

.option-btn.selected {
    border-color: var(--primary, #3b82f6);
    background: rgba(59, 130, 246, 0.15);
}

.option-btn.selected::before {
    opacity: 1;
}

.option-btn.correct {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
    transform: translateX(8px);
    animation: correctPulse 0.5s ease;
}

.option-btn.correct::before {
    background: #10b981 !important;
    opacity: 1 !important;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.option-btn.wrong {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    animation: wrongShake 0.5s ease;
}

.option-btn.wrong::before {
    background: #ef4444 !important;
    opacity: 1 !important;
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 1rem;
    font-weight: 700;
    color: var(--option-color, #94a3b8);
    transition: all 0.3s ease;
}

.option-btn:hover .option-letter,
.option-btn.selected .option-letter {
    background: var(--option-color, #3b82f6);
    color: #fff;
}

.option-btn.correct .option-letter {
    background: #10b981;
    color: #fff;
}

.option-btn.wrong .option-letter {
    background: #ef4444;
    color: #fff;
}

/* Quiz Feedback Premium */
.quiz-feedback {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.quiz-feedback.correct {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.quiz-feedback.wrong {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.quiz-feedback-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.quiz-feedback.correct .quiz-feedback-header { color: #10b981; }
.quiz-feedback.wrong .quiz-feedback-header { color: #ef4444; }

.quiz-feedback p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Quiz Actions */
.quiz-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-action-btn {
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-next-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: #fff;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.quiz-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

/* Warning Border */
.warning-border {
    border: 2px solid #ef4444;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Quiz Timer Premium */
.quiz-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.quiz-timer.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    animation: timerPulse 1s infinite;
}

.quiz-timer.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: timerPulse 0.5s infinite;
}

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* =========================================
   ANIMATIONS & FEEDBACK
   ========================================= */

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes success-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 230, 118, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pop {
    animation: pop 0.3s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-success {
    animation: success-pulse 0.6s ease-out;
}

.animate-fade-in {
    animation: fade-in-up 0.4s ease-out forwards;
}

/* ========================================
   STUDY PLANNER WIDGET
   ======================================== */
.planner-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
}

.planner-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--electric-gold);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 1rem;
    border-bottom-right-radius: 12px;
    letter-spacing: 1px;
}

.planner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.planner-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.planner-text h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.planner-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.highlight-glow {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .planner-card {
        flex-direction: column;
        text-align: center;
    }

    .planner-content {
        flex-direction: column;
    }
}

/* ========================================
   SCROLLBAR FIX (Layout Stabilization)
   ========================================
   DESKTOP: body fijo, solo .main-content scrollea → sin doble barra
   MOBILE:  body scrollea naturalmente → barra del browser OK
*/

/* ── SCROLL ARCHITECTURE — DESKTOP (> 900px) ──
   El scroll vive en .main-content (overflow-y:auto).
   html y body tienen overflow:hidden para evitar doble scrollbar. */
html,
body {
    height: 100%;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.main-content {
    height: 100vh;
    overflow-y: auto;       /* El scroll vive aquí en desktop */
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: 120px;
}

/* mainContentArea cuando los módulos (Flashcards/Quiz/Examen) lo activan */
#mainContentArea.active-mode {
    display: block;
    overflow-y: visible;    /* El scroll burbujea a .main-content */
    overflow-x: hidden;
    padding-bottom: 2rem;
}

/* ── MOBILE (≤ 900px): scroll natural del body ──
   En mobile, el body es el contenedor de scroll.
   html Y body deben tener overflow:auto/visible para que el scroll funcione. */
@media (max-width: 900px) {
    html,
    body {
        height: auto;           /* No bloquear la altura */
        overflow: auto;         /* Scroll natural — sin bloquear */
    }

    .main-content {
        height: auto;
        min-height: 100vh;
        overflow-y: visible;    /* El scroll lo maneja el body en mobile */
        overflow-x: hidden;
        padding-bottom: 100px; /* Espacio extra para que nada quede cortado */
    }

    #mainContentArea.active-mode {
        min-height: auto;
        overflow-y: visible;
    }
}

/* Asegurar que el contenedor principal ocupe todo */
#app,
.dashboard-container {
    min-height: 100vh;
}

/* ========================================
   DASHBOARD SPECIFIC (ADDED)
   ======================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.dashboard-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.streak-badge {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 69, 0, 0.2));
    border: 1px solid rgba(255, 165, 0, 0.4);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ff9f43;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.streak-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.4);
}

.streak-badge span#streakDays {
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 0 0 10px #ff9f43;
}

/* ========================================
   PHOSPHOR ICONS THEME (PREMIUM UPGRADE)
   ======================================== */

/* General Icon Reset */
i.ph,
i.ph-fill {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    font-size: inherit;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Sidebar Icons */
/* Sidebar Icons - Neon Infused */
.sidebar-nav .nav-icon i {
    font-size: 1.4rem;
    color: #94a3b8;
    /* Slate-400 base */
    filter: drop-shadow(0 0 2px rgba(148, 163, 184, 0.3));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active .nav-icon i {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 12px var(--neon-cyan));
    transform: scale(1.15);
}

.nav-item:hover .nav-icon i {
    color: var(--primary-light);
    filter: drop-shadow(0 0 8px var(--primary-light));
    transform: translateX(3px) scale(1.05);
}

/* Dashboard Header Icons */
.streak-badge i {
    font-size: 1.4rem;
    color: #ff9f43;
    filter: drop-shadow(0 0 10px rgba(255, 159, 67, 0.6));
    animation: pulse-fire 2s infinite ease-in-out;
}

@keyframes pulse-fire {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 159, 67, 0.6));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.8));
    }
}

/* Stat & Mode Cards */
.stat-icon i,
.mode-icon i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.3));
}

.mode-icon i {
    font-size: 3rem;
}

/* Topic Card Icons - Contextual Colors */
.topic-icon i {
    font-size: 2.2rem;
    /* Default fallback */
    color: var(--text-main);
}

/* Dynamic Colors based on Topic (using existing colors logic if applied via style) 
   But since we replaced emoji with <i>, we need to ensure the parent's color applies 
   or we target specific icons if they have unique classes. 
   For now, we let them inherit or rely on the container.
*/

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.18) !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4) !important;
}

.btn-ghost {
    background: transparent !important;
    color: #94a3b8 !important;
    border: 1px solid transparent !important;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

.btn-skip {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
}
.btn-skip:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4) !important;
}

.neon-card {
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.neon-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 0 15px rgba(59, 130, 246, 0.05);
    transform: translateY(-5px);
}
.neon-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(59,130,246,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.neon-card:hover::before {
    opacity: 1;
}

.pulse-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.5px;
    border: 1px solid currentColor;
    animation: pulseGlow 2s infinite alternate;
    margin-top: 0.75rem;
}
@keyframes pulseGlow {
    from { opacity: 0.7; box-shadow: 0 0 5px currentColor; }
    to { opacity: 1; box-shadow: 0 0 12px currentColor; }
}

#authScreen .btn-primary { color: white !important; }

/* ========================================
   DASHBOARD PREMIUM STYLES
   ======================================== */

/* Hero Dashboard */
.dashboard-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    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;
    position: relative;
    overflow: hidden;
}
.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-content { position: relative; z-index: 1; }
.dashboard-hero h1 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 2rem;
    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: 1rem; }
.dashboard-hero p span { color: var(--neon-cyan, #06b6d4); font-weight: 600; }

/* Progress Ring */
.progress-ring-container { position: relative; width: 140px; height: 140px; }
.progress-ring { transform: rotate(-90deg); }
.progress-ring__background { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 8; }
.progress-ring__progress {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    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);
}
.progress-ring-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.progress-ring-percent {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-cyan, #06b6d4);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}
.progress-ring-label { font-size: 0.7rem; color: var(--text-muted, #94a3b8); text-transform: uppercase; letter-spacing: 1px; }

/* Streak Badge Premium */
.streak-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}
.streak-badge-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.streak-fire { font-size: 1.5rem; animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.streak-text { display: flex; flex-direction: column; }
.streak-number { font-size: 1.5rem; font-weight: 800; color: #f59e0b; line-height: 1; }
.streak-label { font-size: 0.7rem; color: var(--text-muted, #94a3b8); text-transform: uppercase; }

/* Premium Stats Grid */
.stats-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-premium-card {
    background: var(--surface-glass, rgba(30, 41, 59, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.stat-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent, var(--primary, #3b82f6)), transparent);
    opacity: 0.8;
}
.stat-premium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.stat-premium-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-premium-value {
    font-size: 2rem;
    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: 0.5px; }

/* Section Header */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-title { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; }
.section-title-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    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.25rem;
}

/* Premium Modes Grid */
.modes-premium-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.mode-premium-card {
    background: var(--surface-glass, rgba(30, 41, 59, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    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(8px);
    border-color: var(--mode-color, #3b82f6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.mode-premium-card:hover::before { width: 6px; }
.mode-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--mode-color, #3b82f6), rgba(139, 92, 246, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}
.mode-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.mode-content p { font-size: 0.85rem; color: var(--text-muted, #94a3b8); }
.mode-arrow { margin-left: auto; font-size: 1.25rem; color: var(--text-muted, #94a3b8); transition: all 0.3s ease; }
.mode-premium-card:hover .mode-arrow { transform: translateX(5px); color: var(--mode-color, #3b82f6); }

/* Topics Section */
.topics-section { margin-top: 2rem; }
.topics-premium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.topic-premium-card {
    background: var(--surface-glass, rgba(30, 41, 59, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.topic-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--topic-color, #3b82f6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.topic-premium-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    border-color: var(--topic-color, #3b82f6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--topic-glow, rgba(59, 130, 246, 0.2));
}
.topic-premium-card:hover::before { opacity: 0.1; }
.topic-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; position: relative; z-index: 1; }
.topic-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.topic-premium-card:hover .topic-card-icon { transform: scale(1.1) rotate(-5deg); border-color: var(--topic-color, #3b82f6); }
.topic-card-badge {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--topic-color, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.topic-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; position: relative; z-index: 1; }
.topic-card-progress { margin-bottom: 0.75rem; position: relative; z-index: 1; }
.progress-mini { height: 6px; background: rgba(0, 0, 0, 0.4); border-radius: 10px; overflow: hidden; margin-top: 0.5rem; }
.progress-mini-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0.2, 0.2, 1);
    box-shadow: 0 0 10px var(--topic-color, #3b82f6);
}
.topic-card-stats { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted, #94a3b8); position: relative; z-index: 1; }
.topic-accuracy { font-weight: 700; color: var(--topic-color, #06b6d4); }
.topic-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.topic-premium-card:hover .topic-card-actions { opacity: 1; transform: translateY(0); }

/* Level Buttons */
.level-buttons { display: flex; gap: 0.4rem; margin-top: 0.75rem; }
.level-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--level-color, #3b82f6);
    background: rgba(0, 0, 0, 0.3);
    color: var(--level-color, #3b82f6);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.level-btn:hover { background: var(--level-color, #3b82f6); color: #000; transform: scale(1.1); }
.level-btn.level-1 { --level-color: #06b6d4; }
.level-btn.level-2 { --level-color: #a855f7; }
.level-btn.level-3 { --level-color: #f59e0b; }
.level-btn.level-4 { --level-color: #10b981; }

/* Quick Actions */
.quick-actions { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 0.75rem; z-index: 100; }
.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.quick-action-btn:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5); }
.quick-action-btn:active { transform: scale(0.95); }

/* Staggered Animations */
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.stagger-item { opacity: 0; animation: slideUp 0.6s cubic-bezier(0.4, 0.2, 0.2, 1) forwards; }
.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }

/* Profile Container */
.profile-container { max-width: 600px; margin: 0 auto; padding: 2rem 1rem; }
.profile-header { text-align: center; margin-bottom: 2rem; }
.profile-avatar-large { font-size: 4rem; margin-bottom: 1rem; }
.profile-role {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--neon-cyan, #06b6d4);
}
.profile-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 0.5rem; }
.profile-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.profile-tab.active { background: rgba(59, 130, 246, 0.2); color: #fff; }
.profile-tab:hover:not(.active) { background: rgba(255, 255, 255, 0.05); }
.profile-section { display: none; }
.profile-section.active { display: block; animation: fadeIn 0.3s ease; }
.setting-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--surface-glass, rgba(30, 41, 59, 0.45)); border-radius: 12px; margin-bottom: 0.75rem; }
.setting-item label { display: flex; align-items: center; gap: 0.5rem; color: var(--text-main, #f8fafc); }
.danger-box { padding: 1.5rem; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 12px; }
.danger-box h3 { color: #ef4444; margin-bottom: 0.5rem; }
.danger-box p { color: var(--text-muted, #94a3b8); font-size: 0.9rem; margin-bottom: 1rem; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; cursor: pointer; font-weight: 600; }
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-top: 0.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; color: var(--text-muted, #94a3b8); font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 600; }
.auth-input { width: 100%; padding: 0.75rem 1rem; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: white; font-size: 1rem; }
.auth-input:focus { outline: none; border-color: var(--primary, #3b82f6); }

/* Responsive */
@media (max-width: 1024px) {
    .stats-premium-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-hero { grid-template-columns: 1fr; text-align: center; }
    .progress-ring-container { margin: 0 auto; }
}
@media (max-width: 768px) {
    .stats-premium-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat-premium-card { padding: 1rem; }
    .stat-premium-icon { width: 44px; height: 44px; font-size: 1.25rem; }
    .stat-premium-value { font-size: 1.5rem; }
    .topics-premium-grid { grid-template-columns: 1fr; }
    .modes-premium-grid { grid-template-columns: 1fr; }
    .quick-actions { bottom: 1rem; right: 1rem; }
    .quick-action-btn { width: 48px; height: 48px; }
}

/* ========================================
   WELCOME SCREEN PREMIUM
   ======================================== */
.welcome-premium-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2rem 4rem;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                var(--bg-deep-space, #0f172a);
}

.welcome-premium-card {
    max-width: 460px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.welcome-brand {
    margin-bottom: 2.5rem;
}

.welcome-logo {
    /* Controlado por inline CSS de index.html — no sobrescribir aqui */
    margin-bottom: 1rem;
}

.welcome-brand h1 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: 1px;
    color: #F2E6C8;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.welcome-brand h1 span {
    background: linear-gradient(160deg, #FFF0A0 0%, #D4AF37 35%, #C9A227 60%, #8B6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-brand p {
    color: #b8a080;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.auth-premium-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 28px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(59, 130, 246, 0.1);
}


.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.2));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.auth-tab:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.auth-form {
    text-align: left;
}

/* License selector scrollbar */
#licenseSelectorContainer::-webkit-scrollbar {
    height: 4px;
}
#licenseSelectorContainer::-webkit-scrollbar-track {
    background: transparent;
}
#licenseSelectorContainer::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}
#licenseSelectorContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.35);
}

.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group label {
    display: block;
    color: var(--text-muted, #94a3b8);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.auth-form-group input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.btn-auth-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-auth-success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-auth-success:hover {
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.auth-hint {
    color: var(--text-muted, #64748b);
    font-size: 0.8rem;
    margin-top: 1rem;
    text-align: center;
}

.auth-hint strong {
    color: #3b82f6;
}

/* ========================================
   PAYWALL SCREEN PREMIUM
   ======================================== */
.paywall-premium-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.paywall-card {
    max-width: 520px;
    width: 100%;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 28px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
                0 0 50px rgba(212, 175, 55, 0.1);
    animation: slideUp 0.6s ease;
}

.paywall-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.paywall-card h2 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.paywall-card p {
    color: var(--text-muted, #94a3b8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.paywall-input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.paywall-input {
    flex: 1;
    max-width: 300px;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.paywall-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-gold-premium {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-gold-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.paywall-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ========================================
   PROGRESS SCREEN PREMIUM
   ======================================== */
.progress-premium-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.progress-header {
    text-align: center;
    margin-bottom: 3rem;
}

.progress-header h2 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.progress-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-stat-card {
    background: var(--surface-glass, rgba(30, 41, 59, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.progress-stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.progress-stat-label {
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-comparison {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 2rem;
    background: var(--surface-glass, rgba(30, 41, 59, 0.45));
    border-radius: 20px;
    margin-bottom: 2rem;
}

.progress-compare-item {
    text-align: center;
}

.progress-compare-item span {
    display: block;
    color: var(--text-muted, #94a3b8);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.progress-compare-item p {
    font-size: 2rem;
    font-weight: 700;
}

.progress-compare-item p.positive { color: #10b981; }
.progress-compare-item p.negative { color: #ef4444; }

.progress-improvement {
    color: #10b981;
}

.progress-detail-section {
    margin-top: 2rem;
}

.progress-detail-section h3 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-item-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--surface-glass, rgba(30, 41, 59, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.progress-item-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.progress-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.progress-item-info { flex: 1; }
.progress-item-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.progress-item-info p { font-size: 0.85rem; color: var(--text-muted, #94a3b8); }

.progress-item-score {
    text-align: right;
}

.progress-item-score .score-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.progress-item-score .score-label {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
}

/* ========================================
   REGLA MAESTRA DESKTOP — SIDEBAR SIEMPRE VISIBLE
   ========================================
   Esta regla garantiza que en pantallas > 900px el sidebar
   sea SIEMPRE visible en todos los paneles (Dashboard, Flashcards,
   Quiz, Examen, Progreso, Perfil, etc.).
   Solo se oculta en login/auth (body.auth-mode / body.theme-welcome).
   Usa !important para ganar a cualquier conflicto de especificidad. */
@media (min-width: 901px) {
    body:not(.auth-mode):not(.theme-welcome) .sidebar,
    body:not(.auth-mode):not(.theme-welcome) .sidebar-premium {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
    }

    /* Main content siempre con margen = ancho del sidebar */
    body:not(.auth-mode):not(.theme-welcome) .main-content {
        margin-left: 280px !important;
        width: calc(100% - 280px) !important;
    }
}

/* ========================================
   SIDEBAR PREMIUM
   ======================================== */
.sidebar-premium {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header-premium {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.sidebar-logo h3 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-nav-premium {
    padding: 1rem 0.75rem;
}

.nav-item-premium {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.nav-item-premium:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item-premium.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-item-premium .nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.nav-item-premium:hover .nav-icon,
.nav-item-premium.active .nav-icon {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.sidebar-footer-premium {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-snippet-premium {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-snippet-premium:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.user-avatar-premium {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.user-info-premium p {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.user-info-premium small {
    color: var(--neon-cyan, #06b6d4);
    font-size: 0.75rem;
}

.sidebar-lang-toggle {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.sidebar-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ========================================
   BUTTONS GLOBAL PREMIUM
   ======================================== */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.5rem;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.btn-premium-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.btn-premium-secondary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-premium-secondary:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.25));
    border-color: rgba(59, 130, 246, 0.5);
}

.btn-premium-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-premium-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.btn-premium-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.btn-premium-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
}

/* ========================================
   SCREEN CONTAINERS
   ======================================== */
.screen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.screen-header {
    margin-bottom: 2rem;
}

.screen-header h2 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.screen-header h2 i {
    color: var(--neon-cyan, #06b6d4);
}

/* ========================================
   ANIMATIONS GLOBAL
   ======================================== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    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(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.5); }
}

/* ========================================
   RESPONSIVE PREMIUM
   ======================================== */
@media (max-width: 1024px) {
    .progress-stats-row { grid-template-columns: 1fr; }
    .auth-premium-card { padding: 2rem; }
}

@media (max-width: 768px) {
.welcome-brand h1 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: 1px;
    color: #F2E6C8;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
    #welcomeScreen .welcome-premium-card,
    #authScreen .auth-container {
        padding: 1.5rem 1.25rem !important;
    }
    .paywall-card { padding: 2rem; }
    .progress-comparison { flex-direction: column; gap: 1rem; }
    .progress-item-card { flex-direction: column; text-align: center; }
    .progress-item-score { text-align: center; }
    .screen-container { padding: 1rem; }
}

/* ========================================
   VISUAL IDENTITY FIXES (ADDED)
   ======================================== */
.btn-outline, .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-outline:hover, .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.auth-form-group input, .auth-input {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.auth-form-group input::placeholder, .auth-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

#langToggle.sidebar-lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

#langToggle.sidebar-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-premium-label, .topic-card-stats {
    color: rgba(255, 255, 255, 0.8) !important;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: relative;
}
input[type="checkbox"]:checked {
    background: var(--primary, #3b82f6);
    border-color: var(--primary, #3b82f6);
}
input[type="checkbox"]:checked::after {
    content: '✓';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

/* ========================================================== */
/* MODO PANTALLA COMPLETA (LOGIN / AUTH) & EST�TICAS PREMIUM */
/* ========================================================== */

body.auth-mode .sidebar {
    display: none !important;
}

body.auth-mode .sidebar-backdrop {
    display: none !important;
}

body.auth-mode .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    display: block;
    overflow-y: auto !important;
    padding: 0 !important;
}

/* Glassmorphism Premium en pantallas Auth */
#welcomeScreen .welcome-premium-card,
#authScreen .auth-container {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 3rem !important;
    max-width: 480px;
    width: 100%;
}

/* Shimmer Effect Animado para Botones Premium */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.btn-shimmer {
    background: linear-gradient(90deg, 
        rgba(37, 99, 235, 1) 0%, 
        rgba(59, 130, 246, 1) 25%, 
        rgba(96, 165, 250, 1) 50%, 
        rgba(59, 130, 246, 1) 75%, 
        rgba(37, 99, 235, 1) 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    position: relative;
    overflow: hidden;
}

.btn-shimmer:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}


body.auth-mode .mobile-header { display: none !important; }
body.auth-mode .sidebar { display: none !important; }
body.auth-mode .main-content { margin-left: 0 !important; width: 100% !important; }

/* =======================================
   FOUNDER TESTIMONIAL WIDGET (SOCIAL PROOF)
   ======================================= */
.founder-testimonial {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    backdrop-filter: blur(10px);
    animation: fadeInSimple 0.6s ease-out 0.3s both;
}

.founder-testimonial .stars {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.testimonial-quote {
    color: #cbd5e1 !important;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

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

.founder-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: 700;
}

.founder-details {
    display: flex;
    flex-direction: column;
}

.founder-name {
    color: white !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.founder-title {
    color: #94a3b8 !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* ========================================= */
/* DUAL SELECTOR: BARBERÍA VS BEAUTYMASTER */
/* ========================================= */
.license-grid {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.license-card {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.license-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.license-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.license-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.license-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}

/* Estado Seleccionado: Barbería */
.license-card.active-barber {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
.license-card.active-barber .license-name {
    color: white;
}

/* Estado Seleccionado: Cosmetología */
.license-card.active-cosmo {
    background: rgba(217, 70, 239, 0.1);
    border-color: rgba(217, 70, 239, 0.5);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
}
.license-card.active-cosmo .license-name {
    color: white;
}


/* ========================================= */
/* MASCARA DUAL-CORE: BEAUTYMASTER THEME     */
/* ESTRATEGIA: SAME DARK DNA + NEON PINK     */
/* ========================================= */

body.theme-beauty {
    /* Mismos fondos oscuros del BarberMaster front */
    --bg-deep-space: #0f172a;
    --bg-void:       #020617;
    --surface-glass: rgba(30, 41, 59, 0.45);
    --surface-glass-hover: rgba(51, 65, 85, 0.6);

    /* Swap: Cyan -> Neon Pink/Fuchsia */
    --neon-cyan:     #e879f9;   /* Neon Fucsia vibrante */
    --primary:       #d946ef;   /* Fuchsia 500 */
    --primary-light: #f0abfc;   /* Fuchsia 300 */
    --accent:        #a21caf;   /* Fuchsia 800 oscuro */

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #d946ef, #f0abfc);
    --gradient-glow:    radial-gradient(circle at top right, rgba(217, 70, 239, 0.15), transparent 40%);

    /* Glassmorphism */
    --glass-border: 1px solid rgba(217, 70, 239, 0.2);
    --shadow-neon:  0 0 20px rgba(217, 70, 239, 0.35);

    /* Tipografia Editorial para headers */
    --font-display: 'Playfair Display', serif;
}

/* Glow ambiental Neon Pink en esquinas */
body.theme-beauty .bg-layer {
    background:
        radial-gradient(ellipse at top right, rgba(217, 70, 239, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(232, 121, 249, 0.07) 0%, transparent 50%),
        #020617 !important;
    opacity: 1 !important;
}

/* Titulos con Playfair (Editorial) */
body.theme-beauty h1.authAppTitle,
body.theme-beauty #authAppTitle,
body.theme-beauty .app-title-text,
body.theme-beauty .sidebar-header h3 {
    font-family: 'Playfair Display', serif !important;
}

/* Progress Ring - Neon Pink */
body.theme-beauty .progress-ring-percent {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 20px rgba(217, 70, 239, 0.6) !important;
}

/* Barras de progreso - Neon Pink */
body.theme-beauty .progress-fill {
    background: linear-gradient(90deg, #d946ef, #f0abfc) !important;
    box-shadow: 0 0 12px rgba(217, 70, 239, 0.6) !important;
}

/* Stats values */
body.theme-beauty .stat-premium-value {
    background: linear-gradient(135deg, #e879f9, #f0abfc) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Nav activo - Neon Pink */
body.theme-beauty .nav-item-premium.active,
body.theme-beauty a.nav-item-premium.active {
    background: rgba(217, 70, 239, 0.15) !important;
    color: var(--neon-cyan) !important;
    border-left: 3px solid var(--primary) !important;
}
body.theme-beauty .nav-item-premium:hover {
    background: rgba(217, 70, 239, 0.1) !important;
    color: var(--primary-light) !important;
}

/* Botones principales CTA - Fuchsia */
body.theme-beauty .freemium-upgrade-btn,
body.theme-beauty .btn-auth-primary,
body.theme-beauty #mobileUpgradeBtn {
    background: linear-gradient(135deg, #d946ef, #a21caf) !important;
    box-shadow: 0 4px 20px rgba(217, 70, 239, 0.5) !important;
    border: none !important;
    color: white !important;
}

/* === BOTONES DE TOPICOS (Panel de Temas) - NEON PINK === */
body.theme-beauty .topic-card-icon,
body.theme-beauty .topic-premium-card .topic-card-icon {
    background: rgba(217, 70, 239, 0.18) !important;
    border: 1px solid rgba(217, 70, 239, 0.4) !important;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.3) !important;
    color: #f0abfc !important;
}

body.theme-beauty .topic-premium-card:hover .topic-card-icon {
    background: rgba(217, 70, 239, 0.3) !important;
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.5) !important;
    transform: scale(1.1) !important;
}

/* Topic cards - mismo glass oscuro pero con borde fucsia */
body.theme-beauty .topic-premium-card {
    border: 1px solid rgba(217, 70, 239, 0.12) !important;
}
body.theme-beauty .topic-premium-card:hover {
    border-color: rgba(217, 70, 239, 0.35) !important;
    box-shadow: 0 8px 30px rgba(217, 70, 239, 0.2) !important;
}

/* Sidebar - mismo oscuro pero con acento fucsia */
body.theme-beauty .sidebar-logo-icon {
    background: linear-gradient(135deg, #d946ef, #7c3aed) !important;
}

/* Glass border en tarjetas */
body.theme-beauty .stat-card-premium,
body.theme-beauty .dashboard-card {
    border: 1px solid rgba(217, 70, 239, 0.1) !important;
}
body.theme-beauty .stat-card-premium:hover {
    border-color: rgba(217, 70, 239, 0.3) !important;
    box-shadow: 0 8px 30px rgba(217, 70, 239, 0.2) !important;
}

/* Link/Highlight color */
body.theme-beauty a,
body.theme-beauty .neon-text {
    color: var(--primary-light) !important;
}

/* ============================================================
   BRAND COLORS — Barber(blanco) Master(dorado) PSI(cyan)
   Coincide con landing page hero — afuera = adentro
   ============================================================ */

/* Barber = blanco */
.app-title-text .brand-barber,
.sidebar-logo h3 .brand-barber,
.mobile-header .brand-barber {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700;
}

/* Master = dorado */
.app-title-text .brand-master,
.sidebar-logo h3 .brand-master,
.mobile-header .brand-master,
#authAppTitle .brand-master {
    background: linear-gradient(135deg, #d4af37 0%, #f0c040 50%, #b8860b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700;
}

/* PSI = cyan */
.app-title-text .brand-psi,
.sidebar-logo h3 .brand-psi,
.mobile-header .brand-psi,
#authAppTitle .brand-psi {
    color: #06b6d4 !important;
    -webkit-text-fill-color: #06b6d4 !important;
    font-weight: 700;
}


/* ========================================= */
/* MASCARA DUAL-CORE: ESTHETICMASTER THEME   */
/* ESTRATEGIA: ROSE GOLD / PEARL WHITE       */
/* ========================================= */

body.theme-esthetician {
    --bg-deep-space: #0f172a;
    --bg-void:       #020617;
    --surface-glass: rgba(30, 41, 59, 0.45);
    --surface-glass-hover: rgba(51, 65, 85, 0.6);

    /* Swap: Cyan -> Rose Gold */
    --neon-cyan:     #fda4af;   /* Rose Gold suave */
    --primary:       #fb7185;   /* Rose Gold vibrante */
    --primary-light: #fecdd3;   /* Pearl white / Soft Rose */
    --accent:        #e11d48;   /* Rose oscuro */

    --gradient-primary: linear-gradient(135deg, #fb7185, #e11d48);
    --gradient-glow:    radial-gradient(circle at top right, rgba(251, 113, 133, 0.15), transparent 40%);

    --glass-border: 1px solid rgba(251, 113, 133, 0.2);
    --shadow-neon:  0 0 20px rgba(251, 113, 133, 0.35);

    --font-display: 'Playfair Display', serif;
}

body.theme-esthetician .bg-layer {
    background:
        radial-gradient(ellipse at top right, rgba(251, 113, 133, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(225, 29, 72, 0.07) 0%, transparent 50%),
        #020617 !important;
    opacity: 1 !important;
}

body.theme-esthetician h1.authAppTitle,
body.theme-esthetician #authAppTitle,
body.theme-esthetician .app-title-text,
body.theme-esthetician .sidebar-header h3 {
    font-family: 'Playfair Display', serif !important;
}

body.theme-esthetician .progress-ring-percent {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 20px rgba(251, 113, 133, 0.6) !important;
}

body.theme-esthetician .progress-fill {
    background: linear-gradient(90deg, #fb7185, #e11d48) !important;
    box-shadow: 0 0 12px rgba(251, 113, 133, 0.6) !important;
}

body.theme-esthetician .stat-premium-value {
    background: linear-gradient(135deg, #fda4af, #fecdd3) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.theme-esthetician .nav-item-premium.active,
body.theme-esthetician a.nav-item-premium.active {
    background: rgba(251, 113, 133, 0.15) !important;
    color: var(--neon-cyan) !important;
    border-left: 3px solid var(--primary) !important;
}
body.theme-esthetician .nav-item-premium:hover {
    background: rgba(251, 113, 133, 0.1) !important;
    color: var(--primary-light) !important;
}

body.theme-esthetician .freemium-upgrade-btn,
body.theme-esthetician .btn-auth-primary,
body.theme-esthetician .btn-premium-primary,
body.theme-esthetician #mobileUpgradeBtn {
    background: linear-gradient(135deg, #fb7185, #e11d48) !important;
    box-shadow: 0 4px 20px rgba(251, 113, 133, 0.5) !important;
    border: none !important;
    color: white !important;
}

body.theme-esthetician .topic-card-icon,
body.theme-esthetician .topic-premium-card .topic-card-icon {
    background: rgba(251, 113, 133, 0.18) !important;
    border: 1px solid rgba(251, 113, 133, 0.4) !important;
    box-shadow: 0 0 15px rgba(251, 113, 133, 0.3) !important;
    color: #fecdd3 !important;
}

body.theme-esthetician .topic-premium-card:hover .topic-card-icon {
    background: rgba(251, 113, 133, 0.3) !important;
    box-shadow: 0 0 25px rgba(251, 113, 133, 0.5) !important;
    transform: scale(1.1) !important;
}

body.theme-esthetician .topic-premium-card {
    border: 1px solid rgba(251, 113, 133, 0.12) !important;
}
body.theme-esthetician .topic-premium-card:hover {
    border-color: rgba(251, 113, 133, 0.35) !important;
    box-shadow: 0 8px 30px rgba(251, 113, 133, 0.2) !important;
}

body.theme-esthetician .sidebar-logo-icon {
    background: linear-gradient(135deg, #fb7185, #e11d48) !important;
}

body.theme-esthetician .stat-card-premium,
body.theme-esthetician .dashboard-card {
    border: 1px solid rgba(251, 113, 133, 0.1) !important;
}
body.theme-esthetician .stat-card-premium:hover {
    border-color: rgba(251, 113, 133, 0.3) !important;
    box-shadow: 0 8px 30px rgba(251, 113, 133, 0.2) !important;
}

body.theme-esthetician a,
body.theme-esthetician .neon-text {
    color: var(--primary-light) !important;
}


/* ESTHETICIAN OVERRIDES */
body.theme-esthetician {
    /* Mismos fondos oscuros del BarberMaster front */
    --bg-deep-space: #0f172a;
    --bg-void:       #020617;
    --surface-glass: rgba(30, 41, 59, 0.45);
    --surface-glass-hover: rgba(51, 65, 85, 0.6);

    /* Swap: Cyan -> Neon Pink/Fuchsia */
    --neon-cyan:     #fda4af;   /* Neon Fucsia vibrante */
    --primary:       #fb7185;   /* Fuchsia 500 */
    --primary-light: #ffe4e6;   /* Fuchsia 300 */
    --accent:        #a21caf;   /* Fuchsia 800 oscuro */

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #fb7185, #ffe4e6);
    --gradient-glow:    radial-gradient(circle at top right, rgba(251, 113, 133, 0.15), transparent 40%);

    /* Glassmorphism */
    --glass-border: 1px solid rgba(251, 113, 133, 0.2);
    --shadow-neon:  0 0 20px rgba(251, 113, 133, 0.35);

    /* Tipografia Editorial para headers */
    --font-display: 'Playfair Display', serif;
}

/* Glow ambiental Neon Pink en esquinas */
body.theme-esthetician .bg-layer {
    background:
        radial-gradient(ellipse at top right, rgba(251, 113, 133, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(232, 121, 249, 0.07) 0%, transparent 50%),
        #020617 !important;
    opacity: 1 !important;
}

/* Titulos con Playfair (Editorial) */
body.theme-esthetician h1.authAppTitle,
body.theme-esthetician #authAppTitle,
body.theme-esthetician .app-title-text,
body.theme-esthetician .sidebar-header h3 {
    font-family: 'Playfair Display', serif !important;
}

/* Progress Ring - Neon Pink */
body.theme-esthetician .progress-ring-percent {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 20px rgba(251, 113, 133, 0.6) !important;
}

/* Barras de progreso - Neon Pink */
body.theme-esthetician .progress-fill {
    background: linear-gradient(90deg, #fb7185, #ffe4e6) !important;
    box-shadow: 0 0 12px rgba(251, 113, 133, 0.6) !important;
}

/* Stats values */
body.theme-esthetician .stat-premium-value {
    background: linear-gradient(135deg, #fda4af, #ffe4e6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Nav activo - Neon Pink */
body.theme-esthetician .nav-item-premium.active,
body.theme-esthetician a.nav-item-premium.active {
    background: rgba(251, 113, 133, 0.15) !important;
    color: var(--neon-cyan) !important;
    border-left: 3px solid var(--primary) !important;
}
body.theme-esthetician .nav-item-premium:hover {
    background: rgba(251, 113, 133, 0.1) !important;
    color: var(--primary-light) !important;
}

/* Botones principales CTA - Fuchsia */
body.theme-esthetician .freemium-upgrade-btn,
body.theme-esthetician .btn-auth-primary,
body.theme-esthetician #mobileUpgradeBtn {
    background: linear-gradient(135deg, #fb7185, #a21caf) !important;
    box-shadow: 0 4px 20px rgba(251, 113, 133, 0.5) !important;
    border: none !important;
    color: white !important;
}

/* === BOTONES DE TOPICOS (Panel de Temas) - NEON PINK === */
body.theme-esthetician .topic-card-icon,
body.theme-esthetician .topic-premium-card .topic-card-icon {
    background: rgba(251, 113, 133, 0.18) !important;
    border: 1px solid rgba(251, 113, 133, 0.4) !important;
    box-shadow: 0 0 15px rgba(251, 113, 133, 0.3) !important;
    color: #ffe4e6 !important;
}

body.theme-esthetician .topic-premium-card:hover .topic-card-icon {
    background: rgba(251, 113, 133, 0.3) !important;
    box-shadow: 0 0 25px rgba(251, 113, 133, 0.5) !important;
    transform: scale(1.1) !important;
}

/* Topic cards - mismo glass oscuro pero con borde fucsia */
body.theme-esthetician .topic-premium-card {
    border: 1px solid rgba(251, 113, 133, 0.12) !important;
}
body.theme-esthetician .topic-premium-card:hover {
    border-color: rgba(251, 113, 133, 0.35) !important;
    box-shadow: 0 8px 30px rgba(251, 113, 133, 0.2) !important;
}

/* Sidebar - mismo oscuro pero con acento fucsia */
body.theme-esthetician .sidebar-logo-icon {
    background: linear-gradient(135deg, #fb7185, #7c3aed) !important;
}

/* Glass border en tarjetas */
body.theme-esthetician .stat-card-premium,
body.theme-esthetician .dashboard-card {
    border: 1px solid rgba(251, 113, 133, 0.1) !important;
}
body.theme-esthetician .stat-card-premium:hover {
    border-color: rgba(251, 113, 133, 0.3) !important;
    box-shadow: 0 8px 30px rgba(251, 113, 133, 0.2) !important;
}

/* Link/Highlight color */
body.theme-esthetician a,
body.theme-esthetician .neon-text {
    color: var(--primary-light) !important;
}

/* ============================================================
   BRAND COLORS — Barber(blanco) Master(dorado) PSI(cyan)
   Coincide con landing page hero — afuera = adentro
   ============================================================ */

/* Barber = blanco */
.app-title-text .brand-barber,
.sidebar-logo h3 .brand-barber,
.mobile-header .brand-barber {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700;
}

/* Master = dorado */
.app-title-text .brand-master,
.sidebar-logo h3 .brand-master,
.mobile-header .brand-master,
#authAppTitle .brand-master {
    background: linear-gradient(135deg, #d4af37 0%, #f0c040 50%, #b8860b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700;
}

/* PSI = cyan */
.app-title-text .brand-psi,
.sidebar-logo h3 .brand-psi,
.mobile-header .brand-psi,
#authAppTitle .brand-psi {
    color: #06b6d4 !important;
    -webkit-text-fill-color: #06b6d4 !important;
    font-weight: 700;
}


/* ========================================= */
/* MASCARA DUAL-CORE: ESTHETICMASTER THEME   */
/* ESTRATEGIA: ROSE GOLD / PEARL WHITE       */
/* ========================================= */

body.theme-esthetician {
    --bg-deep-space: #0f172a;
    --bg-void:       #020617;
    --surface-glass: rgba(30, 41, 59, 0.45);
    --surface-glass-hover: rgba(51, 65, 85, 0.6);

    /* Swap: Cyan -> Rose Gold */
    --neon-cyan:     #fda4af;   /* Rose Gold suave */
    --primary:       #fb7185;   /* Rose Gold vibrante */
    --primary-light: #fecdd3;   /* Pearl white / Soft Rose */
    --accent:        #e11d48;   /* Rose oscuro */

    --gradient-primary: linear-gradient(135deg, #fb7185, #e11d48);
    --gradient-glow:    radial-gradient(circle at top right, rgba(251, 113, 133, 0.15), transparent 40%);

    --glass-border: 1px solid rgba(251, 113, 133, 0.2);
    --shadow-neon:  0 0 20px rgba(251, 113, 133, 0.35);

    --font-display: 'Playfair Display', serif;
}

body.theme-esthetician .bg-layer {
    background:
        radial-gradient(ellipse at top right, rgba(251, 113, 133, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(225, 29, 72, 0.07) 0%, transparent 50%),
        #020617 !important;
    opacity: 1 !important;
}

body.theme-esthetician h1.authAppTitle,
body.theme-esthetician #authAppTitle,
body.theme-esthetician .app-title-text,
body.theme-esthetician .sidebar-header h3 {
    font-family: 'Playfair Display', serif !important;
}

body.theme-esthetician .progress-ring-percent {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 20px rgba(251, 113, 133, 0.6) !important;
}

body.theme-esthetician .progress-fill {
    background: linear-gradient(90deg, #fb7185, #e11d48) !important;
    box-shadow: 0 0 12px rgba(251, 113, 133, 0.6) !important;
}

body.theme-esthetician .stat-premium-value {
    background: linear-gradient(135deg, #fda4af, #fecdd3) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.theme-esthetician .nav-item-premium.active,
body.theme-esthetician a.nav-item-premium.active {
    background: rgba(251, 113, 133, 0.15) !important;
    color: var(--neon-cyan) !important;
    border-left: 3px solid var(--primary) !important;
}
body.theme-esthetician .nav-item-premium:hover {
    background: rgba(251, 113, 133, 0.1) !important;
    color: var(--primary-light) !important;
}

body.theme-esthetician .freemium-upgrade-btn,
body.theme-esthetician .btn-auth-primary,
body.theme-esthetician .btn-premium-primary,
body.theme-esthetician #mobileUpgradeBtn {
    background: linear-gradient(135deg, #fb7185, #e11d48) !important;
    box-shadow: 0 4px 20px rgba(251, 113, 133, 0.5) !important;
    border: none !important;
    color: white !important;
}

body.theme-esthetician .topic-card-icon,
body.theme-esthetician .topic-premium-card .topic-card-icon {
    background: rgba(251, 113, 133, 0.18) !important;
    border: 1px solid rgba(251, 113, 133, 0.4) !important;
    box-shadow: 0 0 15px rgba(251, 113, 133, 0.3) !important;
    color: #fecdd3 !important;
}

body.theme-esthetician .topic-premium-card:hover .topic-card-icon {
    background: rgba(251, 113, 133, 0.3) !important;
    box-shadow: 0 0 25px rgba(251, 113, 133, 0.5) !important;
    transform: scale(1.1) !important;
}

body.theme-esthetician .topic-premium-card {
    border: 1px solid rgba(251, 113, 133, 0.12) !important;
}
body.theme-esthetician .topic-premium-card:hover {
    border-color: rgba(251, 113, 133, 0.35) !important;
    box-shadow: 0 8px 30px rgba(251, 113, 133, 0.2) !important;
}

body.theme-esthetician .sidebar-logo-icon {
    background: linear-gradient(135deg, #fb7185, #e11d48) !important;
}

body.theme-esthetician .stat-card-premium,
body.theme-esthetician .dashboard-card {
    border: 1px solid rgba(251, 113, 133, 0.1) !important;
}
body.theme-esthetician .stat-card-premium:hover {
    border-color: rgba(251, 113, 133, 0.3) !important;
    box-shadow: 0 8px 30px rgba(251, 113, 133, 0.2) !important;
}

body.theme-esthetician a,
body.theme-esthetician .neon-text {
    color: var(--primary-light) !important;
}


/* ROSE GOLD LOGO FILTERS FOR ESTHETICIAN */
body.theme-esthetician .logo-pole-img,
body.theme-esthetician .imparable-mobile-logo {
    filter: sepia(0.4) hue-rotate(-30deg) saturate(1.5) brightness(1.1) !important;
}

/* ── Citizenship Bilingual Display ── */
.citizen-en {
    font-weight: 500;
    line-height: 1.5;
}

.citizen-es {
    font-size: 0.85em;
    color: var(--text-muted, #94a3b8);
    font-style: italic;
    margin-top: 4px;
    line-height: 1.4;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 4px;
}

.option-text .citizen-es {
    font-size: 0.8em;
    margin-top: 2px;
    padding-top: 2px;
}

/* =============================================
   TEMA PREMIUM: US CITIZENSHIP MASTERY
   ESTRATEGIA: DARK LUXURY — NAVY + PRESTIGE GOLD
   Paleta: Azul Navy (#1e3a8a) + Oro Presidencial (#d4af37)
   Inspirado en la bandera americana y logro cívico.
   ============================================= */

body.theme-citizenship {
    /* Fondos oscuros premium */
    --bg-deep-space: #060d1f;
    --bg-void:       #030812;
    --surface-glass: rgba(20, 30, 60, 0.55);
    --surface-glass-hover: rgba(30, 45, 90, 0.7);

    /* Paleta Dorada + Navy */
    --neon-cyan:     #d4af37;   /* Oro Presidencial */
    --primary:       #b8941f;   /* Oro Oscuro */
    --primary-light: #f3e5ab;   /* Champagne Gold */
    --accent:        #1e3a8a;   /* Navy Deep */
    --accent-light:  #3b5bbc;   /* Navy Brillante */

    /* Gradientes Navy-Gold */
    --gradient-primary: linear-gradient(135deg, #d4af37, #f3e5ab);
    --gradient-glow:    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 40%);

    /* Glassmorphism con borde dorado */
    --glass-border: 1px solid rgba(212, 175, 55, 0.2);
    --shadow-neon:  0 0 20px rgba(212, 175, 55, 0.3);
}

/* Background — Ambient Navy + Gold glow */
body.theme-citizenship {
    background:
        radial-gradient(ellipse at top left,  rgba(30, 58, 138, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        #060d1f !important;
}

/* Glow de fondo sobre .bg-layer si existe */
body.theme-citizenship .bg-layer {
    background:
        radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(30, 58, 138, 0.2) 0%, transparent 50%),
        #030812 !important;
    opacity: 1 !important;
}

/* Progress Ring — Dorado Presidencial */
body.theme-citizenship .progress-ring-percent {
    color: #d4af37 !important;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.7) !important;
}
body.theme-citizenship .progress-ring-circle,
body.theme-citizenship [class*="ring-circle"] {
    stroke: #d4af37 !important;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

/* Barras de progreso — Gold Gradient */
body.theme-citizenship .progress-fill,
body.theme-citizenship [class*="progress-bar"] {
    background: linear-gradient(90deg, #1e3a8a, #d4af37) !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.5) !important;
}

/* Stat values — Gold */
body.theme-citizenship .stat-premium-value,
body.theme-citizenship [class*="stat-value"] {
    background: linear-gradient(135deg, #d4af37, #f3e5ab) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Nav items activos — Navy + Gold */
body.theme-citizenship .nav-item-premium.active,
body.theme-citizenship a.nav-item-premium.active {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #d4af37 !important;
    border-left: 3px solid #d4af37 !important;
}
body.theme-citizenship .nav-item-premium:hover {
    background: rgba(30, 58, 138, 0.2) !important;
    color: #f3e5ab !important;
}

/* Sidebar — Logo Icon con borde dorado */
body.theme-citizenship .sidebar-logo-icon {
    border: 2px solid rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.25) !important;
}

/* Botones CTA principales — Navy a Gold gradient */
body.theme-citizenship .freemium-upgrade-btn,
body.theme-citizenship .btn-auth-primary,
body.theme-citizenship #mobileUpgradeBtn {
    background: linear-gradient(135deg, #1e3a8a, #d4af37) !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4) !important;
}

/* Tarjetas de tema/tópico — Glass Navy con glow dorado al hover */
body.theme-citizenship .topic-card,
body.theme-citizenship [class*="topic-card"],
body.theme-citizenship .flashcard-topic-card {
    background: rgba(20, 30, 70, 0.5) !important;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
body.theme-citizenship .topic-card:hover,
body.theme-citizenship .flashcard-topic-card:hover {
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-2px);
}

/* Mobile header — acento dorado */
body.theme-citizenship .mobile-header {
    background: linear-gradient(135deg, #060d1f, #0d1b3e) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}
body.theme-citizenship .mobile-header h3 {
    color: #d4af37 !important;
}

/* Sidebar premium — degradado Navy oscuro */
body.theme-citizenship .sidebar,
body.theme-citizenship .sidebar-premium {
    background: linear-gradient(180deg, #060d1f 0%, #0d1b3e 50%, #060d1f 100%) !important;
    border-right: 1px solid rgba(212, 175, 55, 0.15) !important;
}

/* Dashboard cards — Glass premium */
body.theme-citizenship .stat-card,
body.theme-citizenship .glass-panel,
body.theme-citizenship [class*="glass-card"] {
    background: rgba(14, 22, 50, 0.6) !important;
    border: 1px solid rgba(212, 175, 55, 0.12) !important;
    backdrop-filter: blur(12px) !important;
}

/* Logo — tono dorado sutil */
body.theme-citizenship .logo-pole-img,
body.theme-citizenship .imparable-mobile-logo {
    filter: sepia(0.3) hue-rotate(10deg) saturate(1.2) brightness(1.1) !important;
}

/* Título de la app — Gold gradient text */
body.theme-citizenship .brand-psi,
body.theme-citizenship .brand-master {
    background: linear-gradient(135deg, #d4af37, #f3e5ab) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

