/*
 * VocabiRise - Premium Brand Redesign
 * Design Philosophy: Calm, Modern, Professional
 * Inspiration: Apple, Notion, Linear, Stripe
 * NO bright colors, NO flashy gradients, NO gold excess
 */

/* ==========================================
   RESET & BASE
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   COLOR PALETTE - Premium & Calm
   ========================================== */

:root {
    /* Primary - Matte & Sophisticated */
    --charcoal: #1a1a1a;
    --soft-black: #2d2d2d;
    --graphite: #3f3f3f;
    
    /* Secondary - Warm & Inviting */
    --warm-white: #fafaf9;
    --ivory: #f5f5f4;
    --soft-cream: #f0f0ee;
    
    /* Accent - Subtle & Elegant (use sparingly) */
    --titanium: #8b8680;
    --soft-champagne: #c9bfb3;
    --warm-beige: #e8e3dc;
    
    /* Semantic Colors - Minimal */
    --success: #2d5f3f;
    --error: #7d3939;
    --warning: #8b7355;
    
    /* Text Hierarchy */
    --text-primary: #1a1a1a;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    --text-inverse: #fafaf9;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #fafaf9;
    --bg-tertiary: #f5f5f4;
    --bg-elevated: #ffffff;
    
    /* Borders & Dividers */
    --border-subtle: #e8e3dc;
    --border-default: #d4cfc8;
    --border-strong: #a8a29e;
    
    /* Shadows - Soft & Premium */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 16px 0 rgba(0, 0, 0, 0.06);
}

/* ==========================================
   TYPOGRAPHY - Modern & Readable
   ========================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 
                 Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hindi Typography */
.word-meaning-hi,
.hindi-text,
.devanagari {
    font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.8;
}

/* Heading Hierarchy */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--text-primary);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ==========================================
   LAYOUT - Generous Spacing
   ========================================== */

.screen {
    display: none;
    min-height: 100vh;
    background: var(--bg-primary);
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.container.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ==========================================
   CARDS - Soft & Premium
   ========================================== */

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-default);
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-2px);
}

.card-interactive:active {
    transform: translateY(0);
}

/* ==========================================
   BUTTONS - Large & Premium
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Primary Button - Charcoal with subtle accent */
.btn-primary {
    background: var(--charcoal);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--soft-black);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button - Outlined */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-strong);
}

/* Ghost Button - Minimal */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-block {
    width: 100%;
}

/* ==========================================
   LOGO - Premium & Minimal
   ========================================== */

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo svg {
    width: 64px;
    height: 64px;
}

/* ==========================================
   NAVIGATION - Clean & Modern
   ========================================== */

.nav {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand svg {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* ==========================================
   WELCOME SCREEN - Warm & Inviting
   ========================================== */

#welcomeScreen {
    background: var(--bg-primary);
    padding: 0;
}

#welcomeScreen .container {
    max-width: 600px;
    padding: 4rem 2rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.description {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================
   AUTH SCREENS - Clean & Professional
   ========================================== */

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 2rem auto;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.auth-btn .icon {
    font-size: 1.25rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-default);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--charcoal);
    background: var(--bg-primary);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.help-text {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 0.375rem;
}

/* ==========================================
   DASHBOARD - Premium & Focused
   ========================================== */

.dashboard-screen {
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 0;
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Welcome Section */
.welcome-section {
    padding: 2.5rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* PRIMARY ACTION CARD - Most Important Element */
.primary-action-card {
    background: var(--charcoal);
    color: var(--text-inverse);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.primary-action-card h3 {
    color: var(--text-inverse);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.primary-action-card p {
    color: rgba(250, 250, 249, 0.8);
    margin-bottom: 1.5rem;
}

.primary-action-card .btn-lg {
    background: var(--warm-white);
    color: var(--charcoal);
}

.primary-action-card .btn-lg:hover {
    background: var(--ivory);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.2s ease;
}

.metric-card:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

.metric-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.2s ease;
}

.action-card:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.action-card p {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
}

/* ==========================================
   ONBOARDING - Clean & Progressive
   ========================================== */

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--charcoal);
    transition: width 0.3s ease;
}

.onboarding-step {
    min-height: 400px;
}

.onboarding-step.hidden {
    display: none;
}

.level-options,
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.level-card,
.option-card {
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.level-card:hover,
.option-card:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.level-card.selected,
.option-card.selected {
    border-color: var(--charcoal);
    background: var(--bg-secondary);
    border-width: 2px;
}

.level-card h3,
.option-card .label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.level-card p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.option-card .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.onboarding-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

/* ==========================================
   LEARNING SCREEN - Focus on Content
   ========================================== */

.lesson-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.lesson-header {
    margin-bottom: 2rem;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: var(--text-primary);
}

.word-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
}

.word-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.word-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.part-of-speech,
.category-badge {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.pronunciation-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pronunciation-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-strong);
}

.word-section {
    margin: 2.5rem 0;
}

.word-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.word-meaning-en,
.word-meaning-hi {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.example-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

/* ==========================================
   PROGRESS BAR - Subtle & Clean
   ========================================== */

.progress-bar-small,
.progress-bar-large {
    width: 100%;
    height: 6px;
    background: var(--border-subtle);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-fill-small,
.progress-fill-large {
    height: 100%;
    background: var(--charcoal);
    transition: width 0.3s ease;
}

.lesson-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================
   MODAL - Clean & Focused
   ========================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-content h3 {
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==========================================
   TOAST NOTIFICATIONS - Subtle
   ========================================== */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    color: var(--text-inverse);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

/* ==========================================
   LOADING STATES - Minimal
   ========================================== */

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--charcoal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-steps {
    max-width: 400px;
    margin: 0 auto;
}

.loading-step {
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

.loading-step.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================
   MOBILE FIRST - Priority Design
   ========================================== */

@media (max-width: 768px) {
    /* Typography Scaling */
    h1,
    .main-title {
        font-size: 2rem;
    }
    
    h2,
    .welcome-title {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Layout */
    .container {
        padding: 2rem 1.25rem;
    }
    
    .dashboard-main {
        padding: 1.25rem;
    }
    
    /* Navigation */
    .nav {
        padding: 1rem 1.25rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Mobile Bottom Nav */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-top: 1px solid var(--border-subtle);
        padding: 0.75rem 1rem;
        display: flex;
        justify-content: space-around;
        z-index: 100;
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        color: var(--text-tertiary);
        text-decoration: none;
        font-size: 0.6875rem;
        font-weight: 500;
        transition: color 0.2s ease;
    }
    
    .mobile-nav-link.active {
        color: var(--text-primary);
    }
    
    .mobile-nav-link .icon {
        font-size: 1.25rem;
    }

    /* Cards & Spacing */
    .card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .welcome-section {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }
    
    .primary-action-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin-bottom: 1.5rem;
        order: -10; /* First on mobile */
    }
    
    /* Grids - Stack on Mobile */
    .metrics-grid,
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .level-options,
    .options-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Forms */
    .cta-buttons {
        max-width: 100%;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Onboarding */
    .onboarding-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-top: 1px solid var(--border-subtle);
        padding: 1rem 1.25rem;
        margin: 0;
        z-index: 100;
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .onboarding-step {
        padding-bottom: 5rem;
    }
    
    /* Learning */
    .lesson-container {
        padding: 1.25rem;
        padding-bottom: 6rem;
    }
    
    .word-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .word-title {
        font-size: 2.25rem;
    }
    
    .lesson-navigation {
        position: fixed;
        bottom: 5rem;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-top: 1px solid var(--border-subtle);
        padding: 1rem 1.25rem;
        z-index: 99;
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* Prevent horizontal scroll */
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
    }
}

/* ==========================================
   EXTRA SMALL DEVICES
   ========================================== */

@media (max-width: 375px) {
    .main-title {
        font-size: 1.75rem;
    }
    
    .welcome-title {
        font-size: 1.375rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .word-title {
        font-size: 2rem;
    }
}

/* ==========================================
   PREMIUM TOUCHES - Micro-interactions
   ========================================== */

/* Smooth transitions everywhere */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states */
*:focus-visible {
    outline: 2px solid var(--charcoal);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--charcoal);
    color: var(--text-inverse);
}

::-moz-selection {
    background: var(--charcoal);
    color: var(--text-inverse);
}

/* Scrollbar - Minimal */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}
/*
 * VocabiRise v1.2 - Dashboard & Learning Page Refinements
 * ONLY polishing existing pages - NO redesign
 * Focus: Premium feel, better spacing, warm subtle colors
 */

/* ==========================================
   DASHBOARD REFINEMENTS
   ========================================== */

/* Header/Navigation Improvements */
.premium-navbar {
    padding: 1.25rem 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-left {
    margin-right: 3rem; /* More space between logo and nav */
}

.nav-brand {
    gap: 1rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.nav-brand svg {
    width: 36px;
    height: 36px;
}

.nav-center {
    gap: 1.5rem; /* More spacing between nav items */
}

.nav-link {
    padding: 0.625rem 1.25rem;
    font-size: 1rem; /* Slightly larger */
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(26, 26, 26, 0.05);
    color: #1a1a1a;
}

.nav-link.active {
    background: rgba(26, 26, 26, 0.08);
    color: #1a1a1a;
    font-weight: 600;
}

/* Profile Menu - Clean Top Right */
.nav-profile {
    cursor: pointer;
    position: relative;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a, #3f3f3f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.75rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a, #3f3f3f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.profile-level {
    font-size: 0.875rem;
    color: #737373;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #525252;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.9375rem;
}

.dropdown-item:hover {
    background: rgba(26, 26, 26, 0.04);
    color: #1a1a1a;
}

.dropdown-icon {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0;
}

.logout-item {
    color: #7d3939;
}

.logout-item:hover {
    background: rgba(125, 57, 57, 0.06);
    color: #7d3939;
}

/* Dashboard Content - Better Hierarchy */
.dashboard-main {
    max-width: 1400px;
    padding: 2.5rem 3rem;
}

/* Welcome Section - More Prominent */
.welcome-section {
    padding: 2.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(250, 250, 249, 0.8), rgba(245, 245, 244, 0.8));
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: #525252;
    font-weight: 400;
}

.streak-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(255, 142, 83, 0.08));
    border: 1.5px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    backdrop-filter: blur(10px);
}

.streak-flame {
    font-size: 2.25rem;
}

.streak-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ff6b6b;
}

/* Metrics Grid - Premium Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    padding: 2rem;
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(26, 26, 26, 0.1);
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.gradient-icon-1 {
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.12), rgba(201, 191, 179, 0.12));
}

.gradient-icon-2 {
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.15), rgba(201, 191, 179, 0.15));
}

.gradient-icon-3 {
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.18), rgba(201, 191, 179, 0.18));
}

.gradient-icon-4 {
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.21), rgba(201, 191, 179, 0.21));
}

.metric-label {
    font-size: 0.9375rem;
    color: #737373;
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}

/* Primary Action Card - More Prominent */
.primary-action-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2.75rem 2.5rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-action-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.primary-action-card .btn-large {
    background: white;
    color: #1a1a1a;
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.primary-action-card .btn-large:hover {
    background: rgba(250, 250, 249, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Quick Actions - Polished Cards */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.action-card {
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(26, 26, 26, 0.1);
}

.action-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.1), rgba(201, 191, 179, 0.1));
    border: 1px solid rgba(139, 134, 128, 0.2);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #525252;
    margin-bottom: 1.25rem;
}

.action-badge.soon {
    background: linear-gradient(135deg, rgba(255, 142, 83, 0.1), rgba(255, 107, 107, 0.1));
    border-color: rgba(255, 142, 83, 0.2);
    color: #8b7355;
}

.action-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.625rem;
}

.action-card p {
    color: #737373;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.revision-btn {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1.5px solid rgba(26, 26, 26, 0.1);
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.revision-btn:hover {
    background: rgba(26, 26, 26, 0.04);
    border-color: rgba(26, 26, 26, 0.2);
    transform: translateY(-1px);
}

/* ==========================================
   LEARNING PAGE REFINEMENTS
   ========================================== */

/* Lesson Container - Better Layout */
.lesson-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    padding-bottom: 10rem; /* Space for fixed controls */
}

.lesson-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    background: white;
    border: 1.5px solid rgba(26, 26, 26, 0.1);
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    color: #525252;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(26, 26, 26, 0.04);
    border-color: rgba(26, 26, 26, 0.2);
    color: #1a1a1a;
}

/* Word Card - Premium Polish */
.word-card {
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 24px;
    padding: 3rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.word-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.word-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.part-of-speech,
.category-badge {
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.08), rgba(201, 191, 179, 0.08));
    color: #525252;
    border: 1px solid rgba(139, 134, 128, 0.15);
}

.pronunciation-btn {
    background: linear-gradient(135deg, rgba(250, 250, 249, 0.9), rgba(245, 245, 244, 0.9));
    border: 1.5px solid rgba(26, 26, 26, 0.1);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a1a;
}

.pronunciation-btn:hover {
    background: white;
    border-color: rgba(26, 26, 26, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.word-section {
    margin: 2.5rem 0;
}

.word-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.word-meaning-en,
.word-meaning-hi {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #525252;
}

.example-box {
    background: linear-gradient(135deg, rgba(250, 250, 249, 0.9), rgba(245, 245, 244, 0.9));
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 14px;
    padding: 1.75rem;
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.example-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.example-box p {
    color: #1a1a1a;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.625rem 1.125rem;
    background: white;
    border: 1.5px solid rgba(26, 26, 26, 0.1);
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #525252;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(26, 26, 26, 0.04);
    border-color: rgba(26, 26, 26, 0.2);
    color: #1a1a1a;
}

.usage-tip-box {
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.06), rgba(201, 191, 179, 0.06));
    border: 1px solid rgba(139, 134, 128, 0.15);
    border-radius: 14px;
    padding: 1.75rem;
    margin-top: 1rem;
}

.usage-tip-box p {
    color: #1a1a1a;
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 500;
}

/* CRITICAL: Fixed Learning Controls - Always Visible */
.lesson-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    padding: 1.5rem 2.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

.lesson-navigation .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    min-height: 52px;
    transition: all 0.2s ease;
}

.lesson-navigation .btn-primary {
    background: #1a1a1a;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lesson-navigation .btn-primary:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.lesson-navigation .btn-secondary {
    background: white;
    color: #525252;
    border: 1.5px solid rgba(26, 26, 26, 0.15);
}

.lesson-navigation .btn-secondary:hover {
    background: rgba(26, 26, 26, 0.04);
    border-color: rgba(26, 26, 26, 0.25);
    color: #1a1a1a;
}

#saveWordBtn {
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.12), rgba(201, 191, 179, 0.12));
    color: #1a1a1a;
    border: 1.5px solid rgba(139, 134, 128, 0.2);
}

#saveWordBtn:hover {
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.18), rgba(201, 191, 179, 0.18));
    border-color: rgba(139, 134, 128, 0.3);
}

/* Lesson Progress - Visible Above Controls */
.lesson-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lesson-progress span {
    font-size: 0.9375rem;
    color: #525252;
    font-weight: 500;
}

.progress-bar-small {
    width: 200px;
    height: 6px;
    background: rgba(26, 26, 26, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a, #3f3f3f);
    transition: width 0.3s ease;
}

/* ==========================================
   RESPONSIVE MOBILE REFINEMENTS
   ========================================== */

@media (max-width: 768px) {
    /* Navigation - Mobile */
    .premium-navbar {
        padding: 1rem 1.25rem;
    }
    
    .nav-brand {
        font-size: 1.125rem;
    }
    
    .nav-brand svg {
        width: 28px;
        height: 28px;
    }
    
    .nav-center {
        display: none; /* Use bottom mobile nav */
    }
    
    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    /* Dashboard - Mobile */
    .dashboard-main {
        padding: 1.5rem 1.25rem;
        padding-bottom: 6rem;
    }
    
    .welcome-section {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
        margin-bottom: 1.75rem;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-bottom: 1.75rem;
    }
    
    .metric-card {
        padding: 1.5rem;
        border-radius: 14px;
    }
    
    .metric-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .metric-value {
        font-size: 1.875rem;
    }
    
    .primary-action-card {
        padding: 2rem 1.75rem;
        border-radius: 16px;
        margin-bottom: 1.75rem;
        order: -10; /* Keep at top on mobile */
    }
    
    .primary-action-card h3 {
        font-size: 1.5rem;
    }
    
    .primary-action-card .btn-large {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.0625rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .action-card {
        padding: 1.75rem;
        border-radius: 14px;
    }
    
    /* Learning - Mobile */
    .lesson-container {
        padding: 1.25rem;
        padding-bottom: 9rem;
    }
    
    .lesson-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .word-card {
        padding: 2rem 1.75rem;
        border-radius: 18px;
    }
    
    .word-title {
        font-size: 2.5rem;
    }
    
    .word-meta {
        gap: 0.75rem;
    }
    
    .part-of-speech,
    .category-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .word-section {
        margin: 2rem 0;
    }
    
    .word-section h3 {
        font-size: 1.0625rem;
    }
    
    .word-meaning-en,
    .word-meaning-hi {
        font-size: 1.0625rem;
    }
    
    .example-box {
        padding: 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Fixed Learning Controls - Mobile */
    .lesson-navigation {
        padding: 1.25rem 1rem;
        flex-direction: column;
        gap: 0.875rem;
        left: 0;
        right: 0;
        transform: none;
        max-width: 100%;
    }
    
    .lesson-navigation .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .lesson-progress {
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .progress-bar-small {
        width: 100%;
    }
}

/* ==========================================
   SUBTLE ANIMATIONS - Keep Premium
   ========================================== */

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.metric-card:hover .metric-icon {
    animation: subtleFloat 2s ease-in-out infinite;
}

/* Smooth transitions everywhere */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states - Accessible */
*:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Selection - Premium */
::selection {
    background: rgba(26, 26, 26, 0.15);
    color: #1a1a1a;
}

/* Scrollbar - Minimal */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(250, 250, 249, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(26, 26, 26, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 26, 26, 0.3);
}
/*
 * VocabiRise v1.2 - Enhanced Learning Experience
 * Focus: Calm, enjoyable, satisfying learning with challenges and XP
 */

/* ==========================================
   CLEAN LEARNING PAGE - LESS OVERWHELMING
   ========================================== */

/* Word Card - Simpler, Cleaner */
.word-card {
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Reduce spacing between sections for cleaner look */
.word-section {
    margin: 2rem 0;
}

.word-section:first-of-type {
    margin-top: 2.5rem;
}

/* More Details Toggle Button */
.more-details-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.06), rgba(201, 191, 179, 0.06));
    border: 1.5px solid rgba(139, 134, 128, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #525252;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-details-toggle:hover {
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.1), rgba(201, 191, 179, 0.1));
    border-color: rgba(139, 134, 128, 0.25);
    transform: translateY(-1px);
}

.toggle-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.more-details-toggle.active .toggle-icon {
    transform: rotate(90deg);
}

/* More Details Content - Collapsible */
.more-details-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(26, 26, 26, 0.06);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-section {
    margin: 1.75rem 0;
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.875rem;
}

.detail-section p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #525252;
}

/* Master the Word Button - Primary CTA */
.btn-master {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    padding: 1.125rem 2.5rem !important;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.btn-master::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-master:hover::before {
    left: 100%;
}

.btn-master:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================
   CHALLENGE SCREEN
   ========================================== */

.challenge-screen {
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.4s ease;
}

.challenge-header {
    text-align: center;
    margin-bottom: 3rem;
}

.challenge-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.challenge-subtitle {
    font-size: 1.0625rem;
    color: #737373;
}

/* Challenge Question Container */
.challenge-question {
    margin: 2.5rem 0;
}

.question-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.08), rgba(201, 191, 179, 0.08));
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #525252;
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Challenge Options */
.challenge-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.challenge-option {
    padding: 1.25rem 1.5rem;
    background: white;
    border: 2px solid rgba(26, 26, 26, 0.1);
    border-radius: 14px;
    font-size: 1.0625rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.challenge-option:hover {
    background: rgba(26, 26, 26, 0.02);
    border-color: rgba(26, 26, 26, 0.2);
    transform: translateX(4px);
}

.challenge-option.selected {
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.08), rgba(201, 191, 179, 0.08));
    border-color: #8b8680;
    border-width: 2px;
}

.challenge-option.correct {
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.08), rgba(45, 95, 63, 0.12));
    border-color: #2d5f3f;
    color: #2d5f3f;
}

.challenge-option.incorrect {
    background: linear-gradient(135deg, rgba(125, 57, 57, 0.08), rgba(125, 57, 57, 0.12));
    border-color: #7d3939;
    color: #7d3939;
}

.challenge-option .option-letter {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(26, 26, 26, 0.06);
    border-radius: 8px;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    margin-right: 1rem;
    font-size: 0.9375rem;
}

.challenge-option.selected .option-letter {
    background: #8b8680;
    color: white;
}

.challenge-option.correct .option-letter {
    background: #2d5f3f;
    color: white;
}

.challenge-option.incorrect .option-letter {
    background: #7d3939;
    color: white;
}

/* Challenge Navigation */
.challenge-navigation {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 3rem;
}

.challenge-navigation .btn {
    min-width: 180px;
}

/* Challenge Feedback */
.challenge-feedback {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.challenge-feedback.correct {
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.08), rgba(45, 95, 63, 0.12));
    border: 1px solid rgba(45, 95, 63, 0.2);
    color: #2d5f3f;
}

.challenge-feedback.incorrect {
    background: linear-gradient(135deg, rgba(125, 57, 57, 0.08), rgba(125, 57, 57, 0.12));
    border: 1px solid rgba(125, 57, 57, 0.2);
    color: #7d3939;
}

.feedback-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

/* ==========================================
   XP REWARD SCREEN
   ========================================== */

.xp-reward-screen {
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reward-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.reward-icon {
    font-size: 5rem;
    animation: celebrate 0.6s ease;
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    75% {
        transform: scale(1.2) rotate(-10deg);
    }
}

.reward-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.xp-earned {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2d5f3f, #3f7d4f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.reward-message {
    font-size: 1.25rem;
    font-weight: 600;
    color: #525252;
    margin: 0;
}

.progress-updates {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 1rem;
    width: 100%;
}

.update-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 134, 128, 0.06), rgba(201, 191, 179, 0.06));
    border: 1px solid rgba(139, 134, 128, 0.15);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #525252;
}

.update-icon {
    font-size: 1.25rem;
}

.xp-reward-screen .btn-large {
    margin-top: 1.5rem;
    min-width: 280px;
    font-size: 1.125rem;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .word-card,
    .challenge-screen {
        padding: 2rem 1.75rem;
        border-radius: 18px;
    }
    
    .more-details-toggle {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .challenge-header h2 {
        font-size: 1.75rem;
    }
    
    .question-text {
        font-size: 1.125rem;
    }
    
    .challenge-option {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .challenge-option .option-letter {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.875rem;
    }
    
    .challenge-navigation {
        flex-direction: column;
        gap: 0.875rem;
    }
    
    .challenge-navigation .btn {
        width: 100%;
        min-width: auto;
    }
    
    .xp-reward-screen {
        padding: 3rem 2rem;
        border-radius: 18px;
    }
    
    .reward-icon {
        font-size: 4rem;
    }
    
    .reward-title {
        font-size: 2rem;
    }
    
    .xp-earned {
        font-size: 3rem;
    }
    
    .xp-reward-screen .btn-large {
        width: 100%;
        min-width: auto;
    }
    
    .btn-master {
        font-size: 1rem !important;
        padding: 1rem 2rem !important;
    }
}

/* ==========================================
   SMOOTH TRANSITIONS
   ========================================== */

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        display: none;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   VOCABIRISE v1.3 - ACTIVITY-FIRST LEARNING
   Appended from learning-experience-v1.3.css
   ============================================ */

/* Activity Screen */
#activityScreen {
    display: none;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.activity-header {
    text-align: center;
    margin-bottom: 2rem;
}

.activity-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.activity-question {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.activity-situation {
    background: #f5f5f4;
    padding: 1.5rem;
    border-radius: 16px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #2d2d2d;
    margin: 1.5rem 0;
    border-left: 4px solid #6366f1;
    font-style: italic;
}

.activity-prompt {
    font-size: 1rem;
    color: #525252;
    margin: 1rem 0;
    text-align: center;
}

.activity-sentence {
    background: #fafaf9;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1a1a1a;
    margin: 1.5rem 0;
    text-align: center;
    font-weight: 500;
}

.activity-statement {
    background: #fafaf9;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1a1a1a;
    margin: 1.5rem 0;
    font-style: italic;
}

.activity-hint {
    background: #fffbeb;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #78350f;
    margin: 1rem 0;
    border-left: 3px solid #fbbf24;
}

/* Activity Options */
.activity-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.activity-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.activity-option:hover {
    border-color: #8b8680;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.activity-option.selected {
    background: linear-gradient(135deg, #f5f5f4 0%, #fafaf9 100%);
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f4;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    flex-shrink: 0;
}

.activity-option.selected .option-letter {
    background: #6366f1;
    color: white;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.5;
}

/* Activity Actions */
.activity-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

#submitActivityBtn {
    padding: 1rem 3rem;
    font-size: 1.0625rem;
}

#submitActivityBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Activity Feedback */
.activity-feedback {
    text-align: center;
    padding: 3rem 2rem;
    animation: feedbackEntrance 0.5s ease;
}

@keyframes feedbackEntrance {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feedback-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.activity-feedback.correct .feedback-icon {
    color: #16a34a;
}

.activity-feedback.incorrect .feedback-icon {
    color: #dc2626;
}

.activity-feedback h3 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.activity-feedback.correct h3 {
    color: #16a34a;
}

.activity-feedback.incorrect h3 {
    color: #dc2626;
}

.activity-feedback p {
    font-size: 1.125rem;
    color: #525252;
    margin: 0 0 2rem 0;
}

/* Word Reveal Card */
#wordRevealCard {
    display: none;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.word-reveal-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.reveal-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: #6366f1;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#wordMeaningSimple {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #2d2d2d;
    margin: 1rem 0;
    font-weight: 400;
}

#wordExample {
    background: #fffbeb;
    padding: 1.25rem;
    border-radius: 14px;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #78350f;
    margin: 1.5rem 0;
    border-left: 4px solid #fbbf24;
}

/* Progress Indicator */
#dailyProgressText {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

/* Daily Mastery Screen */
#dailyMasteryScreen {
    display: none;
}

.mastery-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.mastery-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.mastery-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

#masteryQuestionNumber {
    text-align: center;
    font-size: 0.9375rem;
    color: #525252;
    margin-bottom: 1rem;
}

/* Daily Completion Screen */
#dailyCompletionScreen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
}

.completion-celebration {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: celebrationBounce 1s ease infinite;
}

@keyframes celebrationBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.completion-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.completion-subtitle {
    font-size: 1.25rem;
    color: #525252;
    margin: 0 0 2rem 0;
}

.completion-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.completion-stat {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: #525252;
    margin-top: 0.5rem;
}

.completion-actions {
    margin-top: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #activityScreen,
    #wordRevealCard {
        padding: 1rem;
    }
    
    .activity-question {
        font-size: 1.375rem;
    }
    
    .activity-situation,
    .activity-sentence,
    .activity-statement {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .activity-option {
        padding: 1rem;
    }
    
    .option-letter {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }
    
    .option-text {
        font-size: 0.9375rem;
    }
    
    #dailyProgressText {
        position: static;
        width: 100%;
        text-align: center;
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .completion-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .completion-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Simple English Emphasis */
.simple-meaning {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d2d2d;
}

/* Friendly but Professional Tone */
.encouragement-text {
    color: #16a34a;
    font-weight: 500;
}

.learning-tip {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid #3b82f6;
    color: #1e40af;
    font-size: 0.9375rem;
    margin: 1rem 0;
}


/* ============================================
   DAILY COMPLETION CELEBRATION MODAL
   ============================================ */

.celebration-modal {
    text-align: center;
    max-width: 500px;
    padding: 3rem 2rem;
}

.celebration-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: celebrate 0.6s ease-in-out;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    75% { transform: scale(1.2) rotate(-10deg); }
}

.completion-stats {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f5f4 0%, #fafaf9 100%);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: #8b8680;
    font-weight: 500;
}

.completion-message {
    font-size: 1.125rem;
    color: #1a1a1a;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.celebration-modal .btn-large {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .celebration-modal {
        padding: 2rem 1.5rem;
    }
    
    .celebration-icon {
        font-size: 4rem;
    }
    
    .completion-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
}


/* ============================================
   LEARNING COMPLETE TRANSITION
   ============================================ */

.learning-complete-transition {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.learning-complete-transition .transition-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.learning-complete-transition h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.learning-complete-transition .transition-subtitle {
    font-size: 1.125rem;
    color: #8b8680;
    margin-bottom: 2rem;
}

.learning-complete-transition .transition-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f5f5f4;
    border-radius: 12px;
}

.learning-complete-transition .transition-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.learning-complete-transition .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.learning-complete-transition .stat-label {
    font-size: 0.875rem;
    color: #8b8680;
}

.learning-complete-transition .transition-next {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

/* ============================================
   COMPLETION OVERLAY (MASTERY DONE)
   ============================================ */

.completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.completion-modal {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.completion-modal .completion-celebration {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease 0.2s both;
}

.completion-modal .completion-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.completion-modal .completion-subtitle {
    font-size: 1rem;
    color: #8b8680;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.completion-modal .completion-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f5f4 0%, #fafaf9 100%);
    border-radius: 12px;
}

.completion-modal .completion-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.completion-modal .stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.completion-modal .stat-label {
    font-size: 0.875rem;
    color: #8b8680;
    font-weight: 500;
}

.completion-modal .completion-actions {
    margin-top: 1.5rem;
}

.completion-modal .completion-actions .btn {
    width: 100%;
    max-width: 280px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .learning-complete-transition {
        padding: 2rem 1rem;
    }
    
    .learning-complete-transition .transition-icon {
        font-size: 3rem;
    }
    
    .learning-complete-transition h2 {
        font-size: 1.5rem;
    }
    
    .completion-modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .completion-modal .stat-number {
        font-size: 1.5rem;
    }
}


/* ============================================
   WORD MASTERY SYSTEM
   ============================================ */

.mastery-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.mastery-word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mastery-word-card {
    background: white;
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mastery-word-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.mastery-word-card.mastered {
    border-color: #e8e5e1;
    opacity: 0.7;
    cursor: default;
}

.mastery-word-card.mastered:hover {
    transform: none;
    box-shadow: none;
}

.mastery-word-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.mastery-word-meaning {
    font-size: 0.875rem;
    color: #8b8680;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mastery-word-status {
    display: flex;
    align-items: center;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.status-badge.learned {
    background: #f0f9ff;
    color: #0369a1;
}

.status-badge.mastered {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.new {
    background: #f0fdf4;
    color: #166534;
}

.mastery-challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f5f5f4;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #8b8680;
    font-weight: 500;
}

.mastery-result {
    text-align: center;
    padding: 3rem 1.5rem;
}

.mastery-result .result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.5s ease;
}

.mastery-result h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.mastery-result p {
    color: #8b8680;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.mastery-result .xp-earned {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.mastery-result .btn {
    margin-top: 1rem;
    margin-right: 0.5rem;
}

/* Mastery card on dashboard */
.action-card.mastery-card {
    cursor: pointer;
    border-left: 3px solid #6366f1;
}

.action-card.mastery-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .mastery-word-grid {
        grid-template-columns: 1fr;
    }
    
    .mastery-challenge-header {
        font-size: 0.8rem;
    }
}


/* ============================================
   MASTERY SUMMARY FLASHCARD
   ============================================ */

.mastery-summary-card {
    background: white;
    border: 2px solid #e8e5e1;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 360px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.mastery-summary-card .summary-word {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.mastery-summary-card .summary-meaning {
    font-size: 1.0625rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.mastery-actions-bottom {
    text-align: center;
    margin-top: 1.5rem;
}

.mastery-actions-bottom .btn {
    margin: 0 0.5rem;
}

.mastery-feedback-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Skip button */
.btn-skip {
    font-size: 0.8125rem;
    color: #8b8680;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-skip:hover {
    opacity: 1;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .mastery-summary-card {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
    }
    
    .mastery-summary-card .summary-word {
        font-size: 1.75rem;
    }
    
    .mastery-feedback-row {
        flex-direction: column;
        align-items: stretch;
    }
}


/* ============================================
   TARGET WORD DISPLAY (Activity Header)
   ============================================ */

.activity-target-word {
    text-align: center;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8f8f7 0%, #fafaf9 100%);
    border: 1px solid #e8e5e1;
    border-radius: 12px;
}

.activity-target-word .target-word-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b8680;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.activity-target-word .target-word-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.activity-target-word .target-word-pronunciation {
    font-size: 0.9375rem;
    color: #6366f1;
    font-style: italic;
}

@media (max-width: 768px) {
    .activity-target-word {
        padding: 1rem 0.75rem;
    }
    
    .activity-target-word .target-word-name {
        font-size: 1.5rem;
    }
}


/* ============================================
   SAVE TO LIBRARY BUTTON
   ============================================ */

.btn-save-word {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #8b8680;
    border: 1px solid #e8e5e1;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-word:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.lesson-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Library sort dropdown */
.library-sort {
    max-width: 200px;
    font-size: 0.875rem;
}

.library-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.library-toolbar .form-control {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .lesson-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-save-word {
        justify-content: center;
    }
    
    .library-toolbar {
        flex-direction: column;
    }
    
    .library-sort {
        max-width: 100%;
    }
}


/* ============================================
   WORD MASTERY SYSTEM (word-mastery.js)
   ============================================ */

/* Dashboard Card */
.wm-dash-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
    border: 1px solid #e8e5e1;
    border-left: 4px solid #6366f1;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wm-dash-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.wm-dash-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wm-dash-icon {
    font-size: 1.75rem;
}

.wm-dash-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.25rem;
}

.wm-dash-text p {
    font-size: 0.875rem;
    color: #8b8680;
    margin: 0;
}

.wm-dash-arrow {
    font-size: 0.875rem;
    color: #6366f1;
    font-weight: 500;
}

/* Ready List */
.wm-header-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.wm-ready-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.wm-mastered-count {
    font-size: 0.875rem;
    color: #8b8680;
    font-weight: 500;
}

.wm-word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.wm-word-card {
    background: white;
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wm-word-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.wm-word-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.wm-word-hint {
    font-size: 0.8125rem;
    color: #8b8680;
    line-height: 1.4;
}

.wm-resume-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: #6366f1;
    font-weight: 500;
}

/* Challenge Screen */
.wm-progress-bar {
    font-size: 0.8125rem;
    color: #8b8680;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.wm-target-header {
    text-align: center;
    padding: 1.25rem;
    background: #f8f8f7;
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.wm-target-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8b8680;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wm-target-word {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.wm-target-pron {
    font-size: 0.875rem;
    color: #6366f1;
    font-style: italic;
    margin-top: 0.25rem;
}

.wm-question {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.wm-context {
    background: #f8f8f7;
    border: 1px solid #e8e5e1;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: #4a4a4a;
    line-height: 1.6;
    font-style: italic;
}

/* Options */
.wm-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.wm-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1.5px solid #e8e5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wm-option:hover {
    border-color: #8b8680;
}

.wm-option.selected {
    border-color: #6366f1;
    background: #f8f7ff;
}

.wm-option.correct {
    border-color: #22c55e;
    background: #f0fdf4;
}

.wm-option.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
}

.wm-opt-letter {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f4;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b8680;
    flex-shrink: 0;
}

.wm-option.selected .wm-opt-letter {
    background: #6366f1;
    color: white;
}

.wm-opt-text {
    font-size: 0.9375rem;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Sentence Input */
.wm-sentence-input {
    margin-bottom: 1.5rem;
}

.wm-textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid #e8e5e1;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

.wm-textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.wm-hint {
    font-size: 0.8125rem;
    color: #8b8680;
    margin-top: 0.5rem;
}

/* Actions */
.wm-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wm-feedback {
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.wm-feedback.correct { color: #22c55e; }
.wm-feedback.incorrect { color: #8b8680; }

/* Retry / Review */
.wm-retry-screen, .wm-review-card {
    text-align: center;
    padding: 2rem 1rem;
}

.wm-retry-icon, .wm-review-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.wm-retry-screen h3, .wm-review-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.wm-retry-screen p, .wm-review-card p {
    color: #8b8680;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.wm-review-content {
    text-align: left;
    background: #f8f8f7;
    border: 1px solid #e8e5e1;
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.wm-review-item {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: #1a1a1a;
    line-height: 1.5;
}

.wm-review-item:last-child { margin-bottom: 0; }

/* Celebration */
.wm-celebration {
    text-align: center;
    padding: 3rem 1.5rem;
}

.wm-celeb-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.5s ease;
}

.wm-celebration h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.wm-celeb-word {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.wm-celeb-xp {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.wm-celeb-msg {
    font-size: 1rem;
    color: #8b8680;
    margin-bottom: 2rem;
    font-style: italic;
}

.wm-celeb-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .wm-dash-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .wm-dash-arrow { align-self: flex-end; }
    .wm-word-grid { grid-template-columns: 1fr; }
    .wm-celeb-actions { flex-direction: column; }
    .wm-target-word { font-size: 1.5rem; }
}


/* ============================================
   HOME SCREEN REDESIGN (Compact)
   ============================================ */

.home-greeting {
    padding: 1.5rem 0 1rem;
}

.home-greeting h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem;
}

.home-greeting p {
    font-size: 0.9375rem;
    color: #8b8680;
    margin: 0;
}

/* Compact Stats Row */
.home-stats {
    display: flex;
    gap: 0;
    background: #f8f8f7;
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    padding: 0.875rem 0;
    margin-bottom: 1.25rem;
}

.home-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    border-right: 1px solid #e8e5e1;
}

.home-stat:last-child { border-right: none; }

.home-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-stat-label {
    font-size: 0.6875rem;
    color: #8b8680;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* Primary Action Card */
.home-primary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1.5px solid #e8e5e1;
    border-radius: 14px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-primary-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.home-primary-left {
    flex: 1;
    min-width: 0;
}

.home-primary-left h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.625rem;
}

.home-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-progress-row .progress-bar-large {
    flex: 1;
    height: 6px;
}

.home-progress-text {
    font-size: 0.75rem;
    color: #8b8680;
    white-space: nowrap;
    font-weight: 500;
}

/* Secondary Action Cards */
.home-secondary {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.home-sec-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #e8e5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.home-sec-card:hover { border-color: #8b8680; }

.home-sec-icon { font-size: 1.25rem; flex-shrink: 0; }

.home-sec-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.home-sec-text strong {
    font-size: 0.9375rem;
    color: #1a1a1a;
}

.home-sec-text span {
    font-size: 0.8125rem;
    color: #8b8680;
}

.home-sec-arrow {
    font-size: 0.875rem;
    color: #8b8680;
    flex-shrink: 0;
}

/* Journey Link */
.home-journey {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: #f8f8f7;
    border: 1px solid #e8e5e1;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 5rem; /* space for mobile nav */
}

.home-journey-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1a1a1a;
}

.home-journey-icon { font-size: 1.125rem; }

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e8e5e1;
    padding: 0.5rem 0 env(safe-area-inset-bottom, 0.5rem);
    z-index: 1000;
    justify-content: space-around;
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #8b8680;
    font-size: 0.6875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.mob-nav-item.active { color: #6366f1; }
.mob-nav-item:hover { color: #1a1a1a; }

.mob-nav-icon { font-size: 1.25rem; }
.mob-nav-label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* More Menu Overlay */
.more-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
}

.more-menu-overlay.active { display: flex; }

.more-menu-sheet {
    background: white;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 1.5rem 1.25rem 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.more-menu-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #8b8680;
    cursor: pointer;
    padding: 0.25rem;
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 0.5rem;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.more-menu-item:hover { background: #f5f5f4; }
.more-menu-item.logout { color: #ef4444; }
.more-menu-divider { height: 1px; background: #e8e5e1; margin: 0.5rem 0; }

/* Mobile responsive */
@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; }
    .premium-navbar .nav-center { display: none; }
    .premium-navbar .nav-right { display: none; }
    
    .dashboard-main {
        padding: 0 1rem;
        padding-bottom: 4.5rem;
    }
    
    .home-greeting { padding: 1rem 0 0.75rem; }
    .home-greeting h1 { font-size: 1.25rem; }
    
    .home-primary-card { padding: 1rem 1.25rem; }
    .home-journey { margin-bottom: 6rem; }
    
    .dashboard-background { display: none; }
}

/* Desktop: hide mobile nav, use padding */
@media (min-width: 769px) {
    .mobile-bottom-nav { display: none; }
    .more-menu-overlay { display: none !important; }
    
    .dashboard-main {
        max-width: 720px;
        margin: 0 auto;
        padding: 0 2rem;
    }
}


/* ============================================
   JOURNEY TRANSITION SCREEN
   ============================================ */

.journey-transition {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.journey-transition .journey-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.journey-transition h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.journey-transition .journey-subtitle {
    font-size: 0.9375rem;
    color: #8b8680;
    margin-bottom: 1rem;
}

.journey-transition .journey-next-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.journey-transition .journey-next-info {
    font-size: 1.0625rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.journey-transition .journey-choice {
    font-size: 0.9375rem;
    color: #8b8680;
    margin-bottom: 1.5rem;
}

.journey-transition .journey-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.journey-transition .journey-actions .btn {
    min-width: 200px;
}

@media (max-width: 768px) {
    .journey-transition { padding: 2rem 1rem; }
    .journey-transition h2 { font-size: 1.25rem; }
}
