/* ═══════════════════════════════════════════════════════════════════════════════
   ExamCurrator - Sidebar Layout Styles
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Dark Mode (Default) */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-sidebar: #12121f;
    --bg-card: #16213e;
    --bg-card-hover: #1f3460;

    --accent-primary: #0f172a;
    --accent-secondary: #334155;
    --accent-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --success-border: rgba(16, 185, 129, 0.5);

    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.15);
    --error-border: rgba(239, 68, 68, 0.5);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    --sidebar-width: 280px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode */
:root[data-theme="light"] {
    --bg-primary: #F7FBFB;
    --bg-secondary: #ffffff;
    --bg-sidebar: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;

    --accent-primary: #0f172a;
    --accent-secondary: #334155;
    --accent-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.3);

    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.3);

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   App Layout
   ═══════════════════════════════════════════════════════════════════════════════ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BF1-Style Top Navigation Bar
   ═══════════════════════════════════════════════════════════════════════════════ */

/* The BF1 topbar has been removed per request */
.bf1-topbar {
    display: none !important;
}


.bf1-nav-left {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.bf1-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 clamp(12px, 2vw, 26px);
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    user-select: none;
}

.bf1-nav-item:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.bf1-nav-item.bf1-active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.bf1-nav-item.bf1-soon {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dropdown */
.bf1-dropdown-trigger {
    position: relative;
}

.bf1-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(20, 20, 28, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    padding: 6px 0;
    z-index: 300;
    animation: bf1DropIn 0.15s ease;
}

@keyframes bf1DropIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

.bf1-dropdown-trigger:hover .bf1-dropdown {
    display: block;
}

.bf1-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.bf1-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Right side */
.bf1-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.bf1-theme-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.bf1-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.bf1-user:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bf1-user-avatar {
    font-size: 1.1rem;
}

.bf1-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.bf1-logo {
    height: clamp(28px, 3.5vw, 52px);
    /* Scale logo proportionally */
    width: auto;
    object-fit: contain;
    margin-left: 8px;
}

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Exam Selection Screen
   ═══════════════════════════════════════════════════════════════════════════════ */

.exam-selection-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
    /* Restore padding here since main-content now has 0 */
}

.exam-selection-screen.hidden {
    display: none;
}

.exam-selection-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.back-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.exam-selection-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.exam-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.exam-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.exam-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.exam-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.exam-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.exam-card-badge {
    padding: 4px 10px;
    background: var(--accent-gradient);
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* AI Form in Sidebar */
.ai-form-sidebar {
    padding: 12px 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group select {
    width: 100%;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.ai-generate-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.ai-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.user-card:hover {
    background: var(--bg-card-hover);
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-action {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Main Content
   ═══════════════════════════════════════════════════════════════════════════════ */

.main-content {
    flex: 1;
    margin-left: 0;
    padding-top: clamp(48px, 5vw, 72px);
    /* Offset for fixed topbar */
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Global safety to prevent horizontal scroll, internal containers handle their own overflow */
}

/* Content Header */
.content-header {
    margin-bottom: 24px;
}

.stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.stat-item.correct {
    color: var(--success);
    background: var(--success-bg);
}

.stat-item.wrong {
    color: var(--error);
    background: var(--error-bg);
}

.stat-item.clickable {
    cursor: pointer;
}

.progress-bar-container {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.3s;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Welcome Screen / Gamified Dashboard
   ═══════════════════════════════════════════════════════════════════════════════ */

.welcome-screen {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    overflow: visible;
    /* Prevent clipping of horizontal items and their effects */
    position: relative;
}

/* ── Wrapper ── */
.gd-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px clamp(32px, 5vw, 64px) 48px;
    /* Internal content padding that scales but content stretches wide */
}

/* ── Greeting Row ── */
.gd-greeting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.gd-hello {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.gd-subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ── Topbar Search (inside greeting row) ── */
.gd-topbar-search {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 320px;
    max-width: 420px;
    flex-shrink: 0;
}

.gd-stats-row {
    display: flex;
    gap: 12px;
}

.gd-stat-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    min-width: 90px;
}

.gd-stat-xp {
    border-color: rgba(99, 102, 241, 0.4);
}

.gd-stat-streak {
    border-color: rgba(239, 68, 68, 0.4);
}

.gd-stat-words {
    border-color: rgba(16, 185, 129, 0.4);
}

.gd-stat-icon {
    font-size: 1.4rem;
}

.gd-stat-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.gd-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Section Labels ── */
.gd-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: -8px;
}

/* ── Quick Action Cards ── */
.gd-actions-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.gd-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.gd-action-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.gd-action-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gd-action-icon {
    font-size: 1.6rem;
}

.gd-action-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.gd-action-chip {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Main Row ── */
.gd-main-row {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 420px);
    gap: 16px;
    align-items: start;
}

.gd-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Cards ── */
.gd-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gd-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gd-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-card-icon {
    font-size: 1.1rem;
}

.gd-badge-pill {
    padding: 4px 12px;
    background: var(--accent-gradient);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.gd-link {
    font-size: 0.8rem;
    color: var(--accent-primary);
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.gd-link:hover {
    opacity: 0.7;
}

/* ── Daily Challenge ── */
.gd-challenge-q {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    background: var(--bg-secondary);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-primary);
}

.gd-challenge-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gd-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.gd-opt:hover:not([disabled]) {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.gd-opt[disabled] {
    cursor: not-allowed;
}

.gd-opt.gd-correct {
    border-color: var(--success);
    background: var(--success-bg);
    animation: gd-pop 0.35s cubic-bezier(0.17, 0.89, 0.32, 1.27);
}

.gd-opt.gd-wrong {
    border-color: var(--error);
    background: var(--error-bg);
    animation: gd-shake 0.4s ease;
}

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

    50% {
        transform: scale(1.04);
    }

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

@keyframes gd-shake {

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

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

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

.gd-opt-ltr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.gd-challenge-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

.gd-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gd-more-btn {
    padding: 8px 16px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.gd-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ── News Items ── */
.gd-news-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.gd-news-item:hover {
    background: var(--bg-secondary);
}

.gd-news-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.gd-news-txt {
    flex: 1;
    min-width: 0;
}

.gd-news-headline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-news-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Notebook ── */
.gd-nb-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gd-nb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
}

.gd-nb-row:last-child {
    border-bottom: none;
}

.gd-nb-word {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 100px;
}

.gd-nb-def {
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex: 1;
}

.gd-nb-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
}

.gd-nb-footer {
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

.gd-nb-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gd-nb-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.gd-nb-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
}

/* ── Exam Pills ── */
.gd-exams-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gd-exam-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.gd-exam-pill:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BF1-Style Dashboard Redesign
   ═══════════════════════════════════════════════════════════════════════════════ */

.welcome-screen {
    position: relative;
    width: 100vw;
    min-height: 100dvh;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
}

/* Ensure menu grid area takes up proportional space */
.main-menu-grid {
    margin-top: clamp(60px, 8vh, 140px);
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* ── Top Bar ── */
.bf1-main-nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 2vh, 3vh) clamp(16px, 4vw, 6vw);
    width: 100%;
    z-index: 1000;
}

.bf1-main-nav .nav-left,
.bf1-main-nav .nav-right {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 32px);
}

.bf1-main-nav .nav-btn {
    font-size: clamp(0.7rem, 1vw, 1.1rem);
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: clamp(1px, 0.15vw, 2px);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 0;
    /* Straight line borders */
}

.bf1-main-nav .nav-btn.active {
    color: #334155;
    border-bottom: 3px solid #334155;
    padding-bottom: 4px;
}

.bf1-main-nav .nav-btn:hover:not(.active) {
    color: #334155;
    transform: scale(1.05);
}

.bf1-main-nav .stat-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bf1-main-nav .stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #334155;
}

.bf1-main-nav .rank-icon-bf {
    background: #334155;
    color: #fff;
    padding: 4px 10px;
    border-radius: 0;
    /* Straight line borders */
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.bf1-main-nav .stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
}

.bf1-main-nav .top-header-logo {
    height: clamp(36px, 5vw, 70px);
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)) brightness(1.2);
    transition: transform 0.3s ease;
}

.bf1-main-nav .top-header-logo:hover {
    transform: scale(1.05);
}

.bf1-main-nav .nav-center {
    flex: 1;
    min-width: 180px;
    max-width: clamp(220px, 25vw, 440px);
    margin: 0 clamp(12px, 2vw, 40px);
    position: relative;
    z-index: 1001;
}




    cursor: pointer;
}

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

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

.top-header-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}

.main-menu-grid {
    display: flex;
    gap: clamp(8px, 1.5vw, 35px);
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    transition: all 0.5s ease;
    padding: 0 clamp(16px, 4vw, 6vw);
}

.menu-card {
    position: relative;
    width: clamp(90px, 13vw, 260px);
    height: clamp(130px, 18vw, 360px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    scroll-snap-align: center;
}

.menu-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.7) grayscale(0.2);
}

.menu-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Initially show only title area */
    padding: clamp(8px, 1.2vw, 20px);
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.card-title {
    font-size: clamp(0.6rem, 1vw, 1.2rem);
    font-weight: 800;
    letter-spacing: clamp(0.5px, 0.15vw, 2px);
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-desc {
    font-size: clamp(0.55rem, 0.7vw, 0.9rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

/* Hover State */
.menu-card:hover .card-content {
    height: 48%;
    /* Expand to show description */
    background: rgba(0, 0, 0, 0.95);
}

.menu-card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

.menu-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow);
    z-index: 10;
}

.menu-card:hover .card-bg {
    filter: brightness(1) grayscale(0);
    transform: scale(1.1);
}

/* Active State — glowing frame highlight (no shadow blocking) */
.menu-card.active {
    transform: scale(1.08);
    z-index: 11;
    border: 2px solid rgba(139, 92, 246, 0.9);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.35),
        0 0 40px rgba(139, 92, 246, 0.15);
    outline: none;
}

.menu-card.active .card-content {
    height: 38%;
    background: rgba(0, 0, 0, 0.9);
}

.menu-card.active .card-title {
    color: #fff;
}

.menu-card.active .card-desc {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.menu-card.active .card-bg {
    filter: brightness(1.1) grayscale(0);
}

/* Footer Section — pushed to bottom via flex */
.footer-exercises-section {
    width: 100%;
    background: transparent;
    padding: clamp(8px, 1.5vw, 20px) 0 clamp(12px, 2vw, 30px);
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    margin-top: auto;
}

.footer-exercises-section.visible {
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Grammar Bookshelf
   ═══════════════════════════════════════════════════════════════════════════════ */

.grammar-bookshelf-section {
    width: 100%;
    display: none;
    animation: shelfSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    margin-top: auto;
    padding: clamp(10px, 2vw, 30px) 0 0;
}

.grammar-bookshelf-section.visible {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes shelfSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bookshelf-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bookshelf-books {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 60px);
    padding: 0 clamp(10px, 2vw, 30px);
    padding-bottom: clamp(8px, 1.2vw, 16px);
    width: 100%;
}

.book-item {
    flex: 0 1 clamp(140px, 20%, 220px);
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-item:hover {
    transform: translateY(-12px) scale(1.04);
}

.book-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 0.7;
    perspective: 800px;
    border-radius: 4px 12px 12px 4px;
    overflow: visible;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 12px 12px 4px;
    box-shadow:
        6px 6px 18px rgba(0, 0, 0, 0.35),
        2px 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    transform-origin: left center;
}

.book-item:hover .book-cover-img {
    transform: rotateY(-8deg);
    box-shadow:
        10px 10px 30px rgba(0, 0, 0, 0.4),
        4px 4px 10px rgba(0, 0, 0, 0.3);
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 8%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(0,0,0,0.08) 40%, transparent);
    border-radius: 4px 0 0 4px;
    pointer-events: none;
}

.book-shadow {
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 16px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.3), transparent);
    filter: blur(4px);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.book-item:hover .book-shadow {
    opacity: 0.6;
}



/* Pulse Click Animation */
.pulse-click {
    animation: cardPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardPulse {
    0% {
        transform: scale(1.08);
    }

    50% {
        transform: scale(1.12);
    }

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

/* ── Switch-style Bubble Pane ── */
.bubble-pane {
    position: relative;
    background: #fff;
    border: 3px solid #e1e1e1;
    border-radius: 4px;
    /* Match hero section (main-menu-grid) side padding using margin */
    margin: clamp(15px, 2.5vw, 40px) clamp(16px, 4vw, 6vw) clamp(10px, 1.5vw, 25px);
    width: auto !important;
    padding: clamp(12px, 1.8vw, 25px) clamp(16px, 2.5vw, 40px);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: opacity 0.6s ease;
    --arrow-left: 50%;
    --bubble-dur: 0.4s;
    box-sizing: border-box;
}

.bubble-pane::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: var(--arrow-left);
    transform: translateX(-50%);
    transition: left var(--bubble-dur) cubic-bezier(0.16, 1, 0.3, 1);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #fff;
    z-index: 2;
}

.bubble-pane::before {
    content: '';
    position: absolute;
    bottom: -19px;
    left: var(--arrow-left);
    transform: translateX(-50%);
    transition: left var(--bubble-dur) cubic-bezier(0.16, 1, 0.3, 1);
    width: 0;
    height: 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 17px solid #e1e1e1;
    z-index: 1;
}

.ex-detail-mini {
    display: flex;
    align-items: center;
    gap: 20px;
    transform: skewX(4deg);
    /* Un-skew content */
    flex: 1;
}

.ex-num-box {
    background: #222;
    color: #fff;
    width: clamp(24px, 2.5vw, 38px);
    height: clamp(24px, 2.5vw, 38px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    border-radius: 2px;
    flex-shrink: 0;
}

.ex-text-content h3 {
    margin: 0;
    color: #000;
    font-size: clamp(1rem, 1.4vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.ex-text-content p {
    margin: 4px 0 0;
    color: #444;
    font-size: clamp(0.75rem, 0.9vw, 1.1rem);
    font-weight: 500;
}

.ex-action-controls {
    transform: skewX(4deg);
}

.launch-btn {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: none !important;
    padding: 0 10px !important;
}

/* ── Carousel Switch-style ── */
.ex-carousel {
    display: flex;
    gap: clamp(40px, 6vw, 100px);
    padding: clamp(16px, 3vw, 40px) clamp(16px, 4vw, 6vw) clamp(40px, 7vw, 100px);
    /* More bottom padding for reflection */
    align-items: flex-end;
}

.ex-carousel-item {
    flex: 0 0 clamp(120px, 15vw, 200px);
    background: transparent !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding-bottom: clamp(10px, 1.8vw, 25px);
}

.ex-carousel-item .ex-item-icon-emoji {
    font-size: clamp(2.5rem, 5vw, 6rem);
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease;
}

.ex-carousel-item .ex-item-label {
    margin-top: clamp(8px, 1.5vw, 25px);
    font-size: clamp(0.65rem, 0.9vw, 1.1rem);
    font-weight: 700;
    color: #666;
    transition: color 0.3s;
}

.ex-selection-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -10%) rotateX(60deg) scale(0);
    width: clamp(70px, 10vw, 140px);
    height: clamp(70px, 10vw, 140px);
    border: clamp(3px, 0.4vw, 6px) solid #f00;
    /* Thicker for perspective */
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.ex-carousel-item.active .ex-selection-ring {
    opacity: 1;
    transform: translate(-50%, -10%) rotateX(60deg) scale(1);
}

.ex-carousel-item.active .ex-item-label {
    color: #000;
}

.ex-carousel-item.active .ex-item-icon-emoji {
    transform: scale(1.1) translateY(-10px);
}

.ex-scroll-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 10;
}

.ex-scroll-indicator.visible {
    opacity: 1;
    pointer-events: auto;
}


.ex-item-icon {
    width: clamp(60px, 9vw, 140px);
    height: clamp(60px, 9vw, 140px);
    object-fit: contain;
    transition: filter 0.2s ease;
    z-index: 1;
    position: relative;
}

.ex-carousel-item:hover .ex-item-icon {
    filter: none;
}

.ex-item-icon-emoji {
    width: clamp(60px, 9vw, 140px);
    height: clamp(60px, 9vw, 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 5vw, 6rem);
    z-index: 1;
    position: relative;
}

.ex-item-icon-emoji img {
    width: 2.2em;
    height: 2.2em;
    object-fit: contain;
}

.ex-item-label {
    font-size: clamp(0.7rem, 1.1vw, 1.3rem);
    font-weight: 800;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    z-index: 1;
    position: relative;
}




/* ── Action Bar ── */
.ex-action-bar {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.ex-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #0f172a, #818cf8);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.ex-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.ex-action-icon {
    font-size: 0.9rem;
}



/* ── News Slideshow (Article Reader Layout) ── */
.gd-slide-viewport {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    /* Remove fixed height so it can expand to fit paragraph content */
    display: flex;
    flex-direction: column;
}

.gd-slide {
    display: none;
    /* Hide non-active slides */
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}

.gd-slide.active {
    display: flex;
}

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

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

/* Image maintains its natural aspect ratio */
.gd-slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #1e293b;
    border-bottom: 3px solid var(--accent-primary);
}

.gd-slide-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, #1e293b, #334155);
    border-bottom: 3px solid var(--accent-primary);
}

/* Document Body */
.gd-slide-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gd-slide-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.gd-slide-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent-gradient);
    color: #fff;
}

.gd-slide-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.gd-slide-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Paragraphs */
.gd-slide-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 4px;
}

.gd-slide-para {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Footer / XP Row */
.gd-slide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
    margin-top: 12px;
    gap: 10px;
}

.gd-complete-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.gd-complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.gd-completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Loading */
.gd-slide-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 300px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gd-slide-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-secondary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Bottom Controls */
.gd-slide-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 12px;
    margin-bottom: 8px;
}

.gd-slide-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gd-slide-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: scale(1.05);
}

.gd-slide-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.gd-slide-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gd-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.gd-slide-dot.active {
    width: 24px;
    background: var(--accent-primary);
}

.gd-slide-dot.done {
    background: #10b981;
}

/* Drag & Drop Cloze Game (Slideshow Edition) */
.drop-slot {
    display: inline-block;
    min-width: 120px;
    height: 38px;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    vertical-align: middle;
    margin: 0 6px;
    transition: all 0.3s ease;
    background: #f1f5f9;
}

.drop-slot.drag-over {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.drop-slot.correct {
    border: 2px solid var(--success);
    background: rgba(16, 185, 129, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drop-slot.correct .draggable-word {
    background: transparent;
    color: var(--success);
    border: none;
    box-shadow: none;
    font-weight: 600;
    padding: 0;
    cursor: default;
}

.word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    min-height: 60px;
    margin-top: 8px;
}

.draggable-word {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    user-select: none;
}

.draggable-word:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.draggable-word:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.draggable-word.selected-word {
    border-color: var(--success);
    color: var(--success);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

@keyframes shake {

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

    20%,
    60% {
        transform: translateX(-5px);
        border-color: var(--error);
        background: rgba(239, 68, 68, 0.1);
    }

    40%,
    80% {
        transform: translateX(5px);
        border-color: var(--error);
        background: rgba(239, 68, 68, 0.1);
    }
}

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

/* ── My Space Teaser ── */
.gd-myspace-teaser {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.gd-msp-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid var(--border-color);
}

.gd-msp-stat:last-child {
    border-right: none;
}

.gd-msp-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1.1;
}

.gd-msp-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

.gd-msp-recent {
    display: flex;
    flex-direction: column;
}


.welcome-content {
    text-align: center;
    max-width: 600px;
}

.welcome-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-content>p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Loading State
   ═══════════════════════════════════════════════════════════════════════════════ */

.loading-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-secondary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   Quiz Container
   ═══════════════════════════════════════════════════════════════════════════════ */

.quiz-container {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.question-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.question-type {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.question-block {
    margin-bottom: 16px;
}

.passage-block {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-primary);
}

.instruction-block {
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.instruction-label {
    font-weight: 600;
    color: var(--accent-primary);
}

.blank {
    display: inline-block;
    min-width: 80px;
    border-bottom: 2px dashed var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 600;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-btn.correct {
    border-color: var(--success);
    background: var(--success-bg);
}

.option-btn.wrong {
    border-color: var(--error);
    background: var(--error-bg);
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
}

/* Explanation */
.explanation-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.explanation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.result-correct {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 12px;
}

.result-wrong {
    color: var(--error);
    font-weight: 600;
    margin-bottom: 12px;
}

.explanation-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.prev-btn:hover:not(:disabled) {
    background: var(--bg-card-hover);
}

.prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-btn {
    background: var(--accent-gradient);
    color: white;
    margin-left: auto;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Results Screen
   ═══════════════════════════════════════════════════════════════════════════════ */

.results-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 500px;
    width: 100%;
}

.results-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.results-card h2 {
    margin-bottom: 32px;
    font-size: 1.8rem;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.result-stat {
    text-align: center;
}

.result-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-stat:nth-child(1) .result-value {
    color: var(--success);
}

.result-stat:nth-child(2) .result-value {
    color: var(--error);
}

.result-stat:nth-child(3) .result-value {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.restart-btn {
    padding: 14px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Dropdown
   ═══════════════════════════════════════════════════════════════════════════════ */

.unanswered-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 8px;
    z-index: 100;
    box-shadow: var(--shadow);
}

.dropdown-header {
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.unanswered-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.unanswered-item {
    padding: 8px;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.unanswered-item:hover {
    background: var(--bg-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Utilities
   ═══════════════════════════════════════════════════════════════════════════════ */

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Responsive — Dashboard Home Page
   ═══════════════════════════════════════════════════════════════════════════════ */

/* 13" MacBook & similar (≤ 900px viewport height) */
@media (max-height: 900px) {
    .main-menu-grid {
        margin-top: clamp(44px, 6vh, 70px);
    }

    .menu-card {
        height: clamp(100px, 22vh, 240px);
        width: clamp(80px, 12vw, 180px);
    }

    .menu-card .card-content {
        height: 38%;
        padding: 6px 8px;
    }

    .card-title {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    .card-desc {
        font-size: 0.5rem;
        line-height: 1.2;
    }

    .footer-exercises-section {
        padding: 0;
    }

    .bubble-pane {
        margin: clamp(10px, 2vh, 30px) clamp(16px, 4vw, 6vw);
        width: auto !important;
        padding: clamp(4px, 1vh, 12px) clamp(10px, 2vw, 24px);
        border-width: clamp(1px, 0.3vh, 2px);
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        box-sizing: border-box;
    }

    .bubble-pane::after {
        bottom: -8px;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid #fff;
    }

    .bubble-pane::before {
        bottom: -10px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #e1e1e1;
    }

    .ex-detail-mini {
        gap: clamp(6px, 1vw, 12px);
    }

    .ex-text-content h3 {
        font-size: clamp(0.65rem, 2vw, 0.95rem);
    }

    .ex-text-content p {
        font-size: clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .ex-num-box {
        width: clamp(16px, 3vw, 26px);
        height: clamp(16px, 3vw, 26px);
        font-size: clamp(0.55rem, 1.5vw, 0.8rem);
    }

    .ex-carousel {
        gap: clamp(10px, 2vw, 30px);
        padding: 0 4vw 0;
        /* Remove bottom padding */
    }

    .ex-carousel-item {
        flex: 0 0 clamp(60px, 9vw, 110px);
        padding-bottom: 6px;
    }

    .ex-carousel-item .ex-item-icon-emoji {
        font-size: clamp(1.4rem, 2.8vw, 2.8rem);
        -webkit-box-reflect: unset;
        /* Remove reflection to save space */
    }

    .ex-carousel-item .ex-item-label {
        margin-top: 4px;
        font-size: 0.6rem;
    }

    .ex-selection-ring {
        width: clamp(50px, 7vw, 90px);
        height: clamp(50px, 7vw, 90px);
        border-width: 3px;
    }

    .bf1-main-nav .top-header-logo {
        height: clamp(28px, 3.5vw, 44px);
    }

    .bf1-main-nav .nav-center {
        max-width: clamp(150px, 20vw, 280px);
    }

    .global-search-input {
        padding: 6px 10px 6px 32px;
        font-size: 0.78rem;
    }

    .bf1-main-nav {
        padding: 8px clamp(16px, 3vw, 40px);
    }
}

/* Smaller laptops (≤ 1200px wide) */
@media (max-width: 1366px) {
    .bf1-main-nav {
        padding: 8px clamp(14px, 2.4vw, 30px);
    }

    .bf1-main-nav .nav-center {
        max-width: clamp(180px, 24vw, 320px);
        margin: 0 clamp(8px, 1.2vw, 16px);
    }

    .global-search-input {
        font-size: 0.85rem;
        padding: 8px 12px 8px 34px;
    }

    .main-menu-grid {
        gap: clamp(8px, 1.2vw, 20px);
        margin-top: clamp(54px, 7vh, 96px);
        padding: 0 clamp(12px, 2.6vw, 28px);
    }

    .menu-card {
        width: clamp(84px, 11.8vw, 188px);
        height: clamp(120px, 17.5vw, 250px);
    }
}

/* Smaller laptops (≤ 1200px wide) */
@media (max-width: 1200px) {
    .main-menu-grid {
        scroll-snap-type: x proximity;
        padding-bottom: 10px;
    }

    .menu-card {
        width: clamp(80px, 14vw, 180px);
        height: clamp(120px, 22vh, 260px);
    }

    .card-desc {
        display: none;
    }
}

/* Tablets and very small laptops (≤ 1024px) */
@media (max-width: 1024px) {
    .bf1-main-nav {
        padding: 8px 12px;
    }

    .bf1-main-nav .nav-center {
        min-width: 150px;
        max-width: 170px;
        margin: 0 6px;
    }

    .bf1-main-nav .nav-left,
    .bf1-main-nav .nav-right {
        gap: 8px;
    }

    .bf1-main-nav .stat-group {
        gap: 4px;
    }

    .bf1-main-nav .stat-value {
        font-size: 0.8rem;
    }

    .bf1-main-nav .stat-label {
        display: none;
    }

    .menu-card {
        width: clamp(70px, 15vw, 160px);
        height: clamp(100px, 20vh, 220px);
    }

    .card-title {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
}

/* Laptop tuning: 1280x800 and similar */
@media (min-width: 1280px) and (max-width: 1366px) and (max-height: 840px) {
    .bf1-main-nav {
        padding: 6px clamp(12px, 2vw, 24px);
    }

    .bf1-main-nav .nav-center {
        max-width: clamp(190px, 22vw, 300px);
        margin: 0 8px;
    }

    .global-search-input {
        font-size: 0.8rem;
        padding: 7px 12px 7px 34px;
    }

    .main-menu-grid {
        margin-top: clamp(44px, 6vh, 78px);
        gap: clamp(8px, 1vw, 14px);
        padding: 0 clamp(12px, 2.2vw, 22px);
    }

    .menu-card {
        width: clamp(100px, 11vw, 156px);
        height: clamp(140px, 16vw, 220px);
    }
}

/* Laptop tuning: 1440x900 and similar */
@media (min-width: 1367px) and (max-width: 1535px) and (max-height: 940px) {
    .bf1-main-nav .nav-center {
        max-width: clamp(240px, 24vw, 360px);
    }

    .global-search-input {
        font-size: 0.88rem;
        padding: 9px 13px 9px 36px;
    }

    .main-menu-grid {
        margin-top: clamp(56px, 7vh, 96px);
        gap: clamp(10px, 1.3vw, 18px);
    }

    .menu-card {
        width: clamp(120px, 12vw, 198px);
        height: clamp(170px, 17vw, 290px);
    }
}

/* Laptop tuning: 1536x960 and similar */
@media (min-width: 1536px) and (max-width: 1919px) and (max-height: 1020px) {
    .bf1-main-nav .nav-center {
        max-width: clamp(260px, 24vw, 420px);
    }

    .global-search-input {
        font-size: 0.92rem;
    }

    .main-menu-grid {
        margin-top: clamp(64px, 7.6vh, 118px);
        gap: clamp(12px, 1.45vw, 24px);
        padding: 0 clamp(20px, 3vw, 42px);
    }

    .bubble-pane {
        margin: clamp(15px, 2.5vw, 40px) clamp(20px, 3vw, 42px);
    }

    .menu-card {
        width: clamp(136px, 12.2vw, 230px);
        height: clamp(190px, 18.5vw, 336px);
    }
}

@media (min-width: 1920px) {
    .bf1-main-nav {
        padding: 16px clamp(42px, 4vw, 90px);
    }

    .bf1-main-nav .nav-center {
        max-width: 520px;
    }

    .global-search-input {
        font-size: 1rem;
        padding: 12px 18px 12px 42px;
    }

    .main-menu-grid {
        margin-top: clamp(72px, 8vh, 150px);
        gap: clamp(16px, 1.8vw, 36px);
        padding: 0 clamp(32px, 4vw, 86px);
    }

    .bubble-pane {
        margin: clamp(20px, 3vw, 50px) clamp(32px, 4vw, 86px);
    }

    .menu-card {
        width: clamp(180px, 12vw, 320px);
        height: clamp(240px, 20vw, 420px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Responsive — General
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .bf1-main-nav {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "left right"
            "center center";
        row-gap: 8px;
        align-items: center;
    }

    .bf1-main-nav .nav-left {
        grid-area: left;
    }

    .bf1-main-nav .nav-right {
        grid-area: right;
        justify-content: flex-end;
    }

    .bf1-main-nav .nav-center {
        grid-area: center;
        min-width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .bf1-main-nav .nav-btn {
        font-size: 0.72rem;
    }

    .bf1-main-nav .top-header-logo {
        height: 32px;
    }

    .global-search-input {
        font-size: 0.82rem;
    }

    .main-content {
        margin-left: 0;
        padding-top: 90px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 16px;
    }

    .welcome-features {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-wrap: wrap;
    }

    .navigation {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .ex-carousel {
        justify-content: flex-start;
    }

    .ex-item-icon {
        width: 60px;
        height: 60px;
    }
}



.welcome-header {
    margin-bottom: 32px;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.tool-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.tool-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tool-action {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: var(--accent-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover .tool-action {
    opacity: 1;
    transform: translateX(0);
}

/* Left Align Override per user request */
.main-content {
    padding: 12px 24px !important;
}

/* Override to allow hiding */
.welcome-screen.hidden {
    display: none !important;
}

.welcome-header {
    text-align: center;
    margin-bottom: 48px;
    width: 100%;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 500;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: var(--text-primary);
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    overflow: hidden;
    width: 100%;
}

/* Tool Card Reset & New Style */
.tool-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 18px 24px !important;
    min-height: auto !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    background: transparent !important;
    transition: background 0.2s;
}

.tool-card:last-child {
    border-bottom: none !important;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Icon Wrapper */
.tool-icon-wrapper {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.tool-icon {
    width: auto !important;
    height: auto !important;
    font-size: 1.4rem !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Content */
.tool-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    /* Başlık ve tag yan yana olabilir veya alt alta */
    align-items: center;
    gap: 12px;
}

.tool-content h3 {
    font-size: 1rem !important;
    font-weight: 500;
    margin: 0 !important;
    color: var(--text-primary);
}

.tool-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 100px;
    /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Action Icon */
.tool-action-icon {
    color: var(--text-muted);
    opacity: 0.4;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.tool-card:hover .tool-action-icon {
    opacity: 1;
    color: var(--text-primary);
}

/* Hide old action text */
.tool-action {
    display: none !important;
}

/* --- Category Tabs (Google AI Studio Style) --- */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    width: 100%;
    flex-wrap: wrap;
}

.category-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

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

.category-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Tool Description */
.tool-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Tool Actions (right side icons) */
.tool-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.action-icon {
    color: var(--text-muted);
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-card:hover .action-icon {
    opacity: 0.8;
}

.action-icon:hover {
    color: var(--accent-primary);
    opacity: 1 !important;
}

/* Tool Content Column Layout */
.tool-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

/* Fix hidden class override */
.tool-card.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Theme Toggle Switch
   ═══════════════════════════════════════════════════════════════════════════════ */

.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

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

.theme-toggle-track {
    width: 44px;
    height: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-thumb::before {
    content: "🌙";
    font-size: 10px;
}

[data-theme="light"] .theme-toggle-thumb {
    left: 22px;
    background: #f59e0b;
}

[data-theme="light"] .theme-toggle-thumb::before {
    content: "☀️";
}

.theme-toggle-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Split View Layout & Animations
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Main Content - Split Mode */
.main-content.split-active {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 !important;
    overflow: hidden;
}

.main-content.split-active .content-header {
    display: none !important;
}

/* Welcome Screen in Split Mode */
.main-content.split-active .welcome-screen {
    max-width: none !important;
    margin: 0 !important;
    padding: 40px 30px !important;
    border-right: 1px solid var(--border-color);
    height: 100vh;
    overflow-y: auto;
    animation: slideInFromLeft 0.4s ease-out;
}

/* Quiz Panel in Split Mode */
.main-content.split-active .quiz-container {
    display: flex !important;
    flex-direction: column;
    padding: 40px 30px !important;
    height: 100vh;
    overflow-y: auto;
    animation: slideInFromRight 0.5s ease-out;
    background: var(--bg-primary);
}

.main-content.split-active .loading-state {
    grid-column: 2;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

/* Typing Animation Container */
.typing-text {
    overflow: hidden;
}

.typing-text .char {
    opacity: 0;
    animation: fadeInChar 0.03s ease forwards;
}

@keyframes fadeInChar {
    to {
        opacity: 1;
    }
}

/* Quiz Panel Header in Split View */
.quiz-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.quiz-panel-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

.quiz-panel-close {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.quiz-panel-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Fix loading state in split view */
.main-content.split-active .loading-state {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    background: var(--bg-primary);
}

.main-content.split-active .loading-state.hidden {
    display: none !important;
}

.main-content.split-active .quiz-container.hidden {
    display: none !important;
}

/* Split View Options - Better Animation */
.main-content.split-active .options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.main-content.split-active .option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.main-content.split-active .option:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: scale(1.02);
}

.main-content.split-active .option .option-letter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.main-content.split-active .option .option-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.main-content.split-active .option.correct {
    background: var(--success-bg);
    border-color: var(--success);
}

.main-content.split-active .option.correct .option-letter {
    background: var(--success);
    color: white;
}

.main-content.split-active .option.wrong {
    background: var(--error-bg);
    border-color: var(--error);
}

.main-content.split-active .option.wrong .option-letter {
    background: var(--error);
    color: white;
}

/* Option appear animation */
@keyframes optionGrow {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

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

.option-animate-in {
    animation: optionGrow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Authentication Modal
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   Authentication Modal (Premium Redesign)
   ═══════════════════════════════════════════════════════════════════════════════ */

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    perspective: 1000px;
}

.auth-modal.visible {
    opacity: 1;
    visibility: visible;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 20px;
    padding: 48px 40px;
    background: rgba(22, 22, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 80px rgba(99, 102, 241, 0.15);
    transform: scale(0.95) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    color: #fff;
}

.auth-modal.visible .auth-card {
    transform: scale(1) translateY(0);
}

/* Glassmorphism accent */
.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 14px;
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.auth-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Auth Tabs */
.auth-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.auth-tab.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Input Fields */
.auth-form-group {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.auth-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.auth-input:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    margin-top: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

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

/* Divider */
.auth-divider {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    position: relative;
    background: #161626;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Third-party Buttons */
.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: none;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.google-btn:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.trial-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trial-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Error/Success Messages */
.auth-error, .auth-success {
    padding: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 20px;
    animation: authShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.auth-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.auth-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

@keyframes authShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.google-auth-btn svg {
    flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Auth Form */
.auth-form-section {
    display: block;
}

.auth-form-section.hidden {
    display: none;
}

.auth-input-group {
    margin-bottom: 16px;
}

.auth-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-input-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.auth-input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.auth-link-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.auth-link-btn:hover {
    color: var(--accent-primary);
}

.auth-terms {
    margin-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* User card authenticated state */
.user-card.authenticated .user-avatar {
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-card.authenticated .user-action {
    color: var(--error);
}

/* Lock gate overlay for trial expired */
.trial-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
}

.trial-gate-overlay.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Context Learn Feature
   ═══════════════════════════════════════════════════════════════════════════════ */

.context-learn-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px !important;
    max-width: none !important;
    width: 100% !important;
}

.context-learn-screen.hidden {
    display: none;
}

/* Hero Section */
.context-learn-hero {
    text-align: center;
    padding: 60px 20px;
}

.context-learn-hero.hidden {
    display: none;
}

.hero-icon {
    display: inline-flex;
    padding: 20px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    margin-bottom: 24px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-icon span {
    font-size: 3rem;
}

@keyframes pulse-glow {

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

    50% {
        transform: scale(1.05);
    }
}

.context-learn-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.context-learn-hero h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.context-learn-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* Sentence Display Area */
.sentence-display {
    margin-bottom: 24px;
}

.sentence-display.hidden {
    display: none;
}

.sentence-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.sentence-tokens {
    font-size: 1.5rem;
    line-height: 2;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Language Setup Dialog */
.language-setup-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.language-setup-dialog.hidden {
    display: none;
}

.setup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.setup-card h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.setup-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.language-setup-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.setup-field {
    flex: 1;
}

.setup-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.setup-field select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.setup-field select:hover,
.setup-field select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.setup-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* Compatibility Message */
.compatibility-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    min-height: 60px;
}

.compatibility-message.free {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.compatibility-message.pro {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.compatibility-message .msg-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.compatibility-message .msg-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.compatibility-message .msg-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.compatibility-message .suggestion {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.start-learning-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.start-learning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.setup-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Word Tokens */
.word-token {
    display: inline;
    cursor: pointer;
    padding: 4px 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.word-token::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
    transition: width 0.25s ease;
}

.word-token:hover {
    color: var(--accent-primary);
}

.word-token:hover::after {
    width: 100%;
}

.word-token.highlighted {
    color: var(--accent-primary);
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
}

.word-token.highlighted::after {
    width: 100%;
    background: var(--accent-primary);
}

/* Sentence Input */
.sentence-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    margin-bottom: 16px;
}

.sentence-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.sentence-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.sentence-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Language Picker */
.language-picker {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.language-picker select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.language-picker select:hover {
    border-color: var(--accent-primary);
}

.language-picker select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.language-picker select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

/* API Toggle */
.api-toggle {
    display: flex;
    gap: 2px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 2px;
    margin-right: 8px;
}

.api-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.api-btn.active {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
}

.api-btn[data-api="linguee"].active {
    background: #22c55e;
}

.api-btn[data-api="auto"].active {
    background: var(--accent-primary);
}

.api-btn[data-api="gemini"].active {
    background: #f59e0b;
}

.sample-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 0;
}

.sample-link:hover {
    color: var(--text-primary);
}

/* Definition Panel */
.definition-panel {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px - var(--sidebar-width));
    max-width: 520px;
    margin-left: calc(var(--sidebar-width) / 2);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 60vh;
}

.definition-panel.hidden {
    display: none;
}

.panel-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.close-panel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-panel-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.panel-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.inline-panel .panel-content {
    padding: 0 !important;
}

.panel-header-row {
    margin-bottom: 12px;
}

.phrase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: 1px solid;
}

.phrase-badge.phrasal-verb {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border-color: rgba(99, 102, 241, 0.3);
}

.phrase-badge.idiom {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.phrase-badge.collocation {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.phrase-badge.single-word,
.phrase-badge.compound,
.phrase-badge.expression { background: #3b82f6; }
.phrase-badge.sentence-label { background: #10b981; }

.panel-phrase h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.phrase-translation {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.panel-divider {
    height: 1px;
    background: transparent !important;
    margin: 16px 0;
}

.panel-section {
    margin-bottom: 16px;
}

.section-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.section-content {
    font-size: 1.2rem !important;
    line-height: 1.6;
    color: var(--text-secondary);
}

.examples-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.examples-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0 6px 12px;
    border-left: 2px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 6px;
}

.panel-footer {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.save-btn.saved {
    background: var(--success);
}

.btn-icon {
    font-size: 1rem;
}

/* Skeleton loading */
.definition-skeleton {
    padding: 8px 0;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg,
            var(--bg-secondary) 0%,
            var(--bg-card-hover) 50%,
            var(--bg-secondary) 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s ease-in-out infinite;
    margin-bottom: 8px;
}

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

    100% {
        background-position: 200% 0;
    }
}

/* Panel error */
.panel-error {
    text-align: center;
    padding: 20px;
    color: var(--error);
}

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

/* Vocabulary Notebook */
.vocab-notebook {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
}

.vocab-notebook.hidden {
    display: none;
}

.notebook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.notebook-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-notebook-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-notebook-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.vocab-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.vocab-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-hint {
    font-size: 0.85rem;
    margin-top: 8px;
}

.vocab-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.vocab-item:hover {
    border-color: var(--accent-primary);
}

.vocab-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vocab-phrase {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.vocab-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.vocab-delete-btn:hover {
    background: var(--error-bg);
    color: var(--error);
}

.vocab-translation {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.vocab-meaning {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.vocab-sentence {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* Notebook toggle button */
.notebook-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 90;
}

.notebook-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.notebook-toggle .toggle-icon {
    font-size: 1.2rem;
}

.notebook-toggle .vocab-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent-gradient);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.notebook-toggle .vocab-count.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .definition-panel {
        width: calc(100% - 32px);
        margin-left: calc(var(--sidebar-width) / 2);
    }

    .vocab-notebook {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .context-learn-screen {
        padding: 20px;
    }

    .context-learn-hero h1 {
        font-size: 1.8rem;
    }

    .sentence-tokens {
        font-size: 1.2rem;
    }

    .definition-panel {
        bottom: 16px;
        margin-left: 0;
        width: calc(100% - 32px);
        max-width: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Landing Page - Premium Design
   ═══════════════════════════════════════════════════════════════════════════════ */

.landing-page {
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
}

.landing-page.hidden {
    display: none;
}

.app-layout.hidden {
    display: none;
}

/* Animated Background */
.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.landing-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    animation: fadeIn 1s ease-out;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 32px;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn-hero-primary svg {
    transition: transform 0.3s;
}

.btn-hero-primary:hover svg {
    transform: translateX(4px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 24px 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    padding: 0;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Features Section */
.landing-features-section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.feature-card {
    padding: 32px;
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card.glass {
    background: none;
    border: none;
    backdrop-filter: none;
}

.feature.context-learn-layout.single-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    margin-bottom: 20px;
}

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

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Social Proof */
.landing-social-proof {
    position: relative;
    z-index: 1;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.proof-content {
    padding: 40px;
    border-radius: 24px;
    text-align: center;
}

.proof-content.glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.proof-quote {
    margin-bottom: 24px;
}

.quote-icon {
    color: var(--accent-primary);
    opacity: 0.5;
    margin-bottom: 16px;
}

.proof-quote p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

.proof-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-weight: 700;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

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

.author-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Final CTA */
.landing-final-cta {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-cta-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.5);
}

.btn-cta-large svg {
    transition: transform 0.3s;
}

.btn-cta-large:hover svg {
    transform: translateX(6px);
}

/* Footer */
.landing-footer {
    position: relative;
    z-index: 1;
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Auth Form Language Selection
   ═══════════════════════════════════════════════════════════════════════════════ */

.auth-language-section {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.auth-language-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.auth-language-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-language-row .auth-input-group {
    margin-bottom: 0;
}

.auth-language-row select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.auth-language-row select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.auth-language-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* Landing page responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-nav {
        padding: 16px 20px;
    }

    .nav-logo {
        height: 32px;
    }

    .landing-hero {
        padding: 100px 20px 60px;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

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

    .landing-features-section,
    .landing-social-proof,
    .landing-final-cta {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .btn-cta-large {
        padding: 16px 32px;
        font-size: 1rem;
    }

    .auth-language-row {
        grid-template-columns: 1fr;
    }
}

/* Auth Text Button */
.auth-text-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-text-btn:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Hero Tertiary Button (Try without account) */
.btn-hero-tertiary {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-hero-tertiary:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Context Learn 2-Column Redesign
   ═══════════════════════════════════════════════════════════════════════════════ */
.context-learn-layout.single-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px; /* Reduced gap from 24px */
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Input Area Styling */
.sentence-form-styled {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 40px !important;
    box-shadow: none !important;
    width: 100% !important;
}

.sentence-form-styled.hidden {
    display: none;
}

.sentence-input-wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 24px;
}

#sentenceInput {
    width: 100% !important;
    min-height: 120px; /* Adjusted from 200px for a cleaner look */
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--text-primary);
    font-size: 1.2rem !important;
    font-family: inherit;
    line-height: 1.6;
    resize: none;
    overflow-y: hidden;
}

#sentenceInput:focus {
    background: transparent !important;
    box-shadow: none !important;
}

/* Display Area Styling */
.sentence-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 40px;
    position: relative;
    box-shadow: none !important;
}

.sentence-display.hidden {
    display: none;
}

.sentence-tokens {
    font-size: 1.4rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-weight: 500;
}

.edit-sentence-btn {
    position: absolute;
    top: 10px;
    right: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.edit-sentence-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #a855f7;
    transform: scale(1.15) rotate(-10deg);
}

.styled-submit {
    padding: 14px 40px;
    background: #a855f7 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none !important;
}

.styled-submit:hover {
    background: #c084fc !important;
    transform: none !important;
}

.styled-submit:active {
    transform: translateY(0);
}

/* Actions Row */
.form-actions-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 12px 0; /* Consistent vertical spacing */
}

.language-picker-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.lang-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#targetLanguageSelect {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}

/* Analysis Card */
.vocab-card-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
}

.definition-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    flex: 1;
    color: var(--text-muted);
}

.definition-placeholder.hidden {
    display: none;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.4; }
}

.sentence-card, 
.definition-panel.inline-panel {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.sentence-card:hover,
.definition-panel.inline-panel:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
}

.definition-panel.inline-panel {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: none !important;
    padding: 40px !important; /* same padding as sentence-card */
    max-height: none !important;
    display: flex;
    flex-direction: column;
}

.definition-panel.inline-panel .panel-content {
    padding: 0 !important;
    background: transparent !important;
}

.definition-panel.inline-panel .panel-footer {
    background: transparent !important;
    border: none !important;
    padding: 20px 0 0 0 !important;
}

.definition-panel.hidden {
    display: none;
}

.analysis-result-minimal {
    font-size: 1.6rem !important;
    line-height: 1.7;
    color: var(--text-primary);
    padding: 0 !important;
    background: transparent;
    font-weight: 500;
}

/* Token Styling */
.word-token {
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 4px;
    padding: 2px 4px;
    margin: 0 -2px;
}

.word-token:hover {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.word-token.highlighted {
    color: #fff;
    background: #a855f7;
    border-bottom-color: #c084fc;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Dashboard Redesign (Screenshot Match)
   ═══════════════════════════════════════════════════════════════════════════════ */

#welcomeScreen.welcome-screen {
    max-width: none !important;
    /* Allow full spread on large screens */
    padding: 2.5vw !important;
    align-items: stretch !important;
    width: 100% !important;
}

.dashboard-banner {
    position: relative;
    width: 100%;
    min-height: 240px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 32px;
    overflow: hidden;
}

/* Glowing effects in banner */
.dashboard-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    filter: blur(40px);
}

.dashboard-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    filter: blur(50px);
}

.banner-content {
    position: relative;
    z-index: 10;
    padding: 24px;
}

.banner-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.banner-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.banner-btn {
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

.dashboard-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* very light border like image */
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Daily Challenge */
.daily-question {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 24px;
    flex: 1;
}

.question-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

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

.options-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.daily-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.daily-option {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.daily-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.opt-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Context mini */
.dashboard-col-center {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.context-mini-input {
    width: 100%;
    min-height: 160px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--text-primary);
    margin-bottom: 20px;
    resize: none;
}

.context-mini-input:focus {
    outline: none;
    border-color: #a855f7;
}

.context-start-btn {
    background: linear-gradient(90deg, #c084fc, #3b82f6);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    width: max-content;
}

/* Sentence Display Area Styling */
.sentence-display {
    width: 100%;
}

.sentence-card {
    position: relative;
    width: 100%;
}

.selection-toggle-container {
    display: none !important;
}

.selection-mode-btn {
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.selection-mode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.selection-mode-btn.active {
    background: #a855f7 !important;
    border-color: #a855f7 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.sentence-tokens {
    font-size: 1.2rem !important;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

/* Tokens for Sentence Mode */
.sentence-token {
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    padding: 2px 4px;
}

.sentence-token:hover {
    background: rgba(168, 85, 247, 0.15);
}

.sentence-token.highlighted {
    background: rgba(168, 85, 247, 0.25);
    border-bottom: 2px solid #a855f7;
}

.word-token {
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

/* News Mini */
.news-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.news-mini-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 120px;
}

.news-mini-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vocab Notebook */
.vocab-notebook-card {
    border: 1px solid #c084fc;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.vocab-mini-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.vocab-mini-list li {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.vocab-word {
    color: var(--text-primary);
    font-weight: 600;
}

.vocab-def {
    color: var(--text-secondary);
}

.vocab-footer {
    margin-top: 24px;
}

.view-full-notebook {
    color: #38bdf8;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.view-full-notebook:hover {
    text-decoration: underline;
}

@media (max-width: 1300px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Dictionary Search Box
   ═══════════════════════════════════════════════════════════════════════════════ */

.gd-dict-search-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.gd-dict-search-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    pointer-events: none;
}

.gd-dict-search-card:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 8px 32px rgba(99, 102, 241, 0.08);
}

.gd-dict-search-inner {
    position: relative;
    z-index: 1;
}

.gd-dict-search-input-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gd-dict-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    transition: var(--transition);
    overflow: hidden;
}

.gd-dict-input-wrap:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.gd-dict-search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.gd-dict-input {
    width: 100%;
    padding: 14px 130px 14px 44px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
}

.gd-dict-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Focus handling moved to wrapper */

.gd-dict-clear-btn {
    position: absolute;
    right: 96px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card-hover);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gd-dict-clear-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.gd-dict-lang-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-dict-lang-select {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.gd-dict-lang-select.wide {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
}

.gd-dict-lang-select:focus {
    border-color: var(--accent-primary);
}

.gd-dict-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.gd-dict-search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.gd-dict-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.gd-dict-search-btn:active {
    transform: translateY(0);
}

.gd-dict-search-btn.small {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.gd-dict-history-row {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.gd-dict-history-row.hidden {
    display: none;
}

.gd-dict-history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}

.gd-dict-history-item:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.gd-dict-history-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.gd-dict-history-label {
    font-weight: 600;
}

.gd-dict-history-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 2px;
}

.gd-dict-history-translation {
    color: var(--accent-primary);
    font-weight: 600;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Dictionary Results Child View
   ═══════════════════════════════════════════════════════════════════════════════ */

.gd-dict-results-view {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    overflow: hidden;
    animation: dictSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.gd-dict-results-view.hidden {
    display: none;
}

@keyframes dictSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

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

.gd-dict-results-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.gd-dict-back-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.gd-dict-back-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.gd-dict-results-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.gd-dict-results-searchbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.gd-dict-results-searchbox .gd-dict-search-icon {
    position: static;
    flex-shrink: 0;
}

.gd-dict-results-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.gd-dict-results-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.gd-dict-results-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}

/* Loading */
.gd-dict-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gd-dict-loading.hidden {
    display: none;
}

.gd-dict-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* Results list */
.gd-dict-results-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.gd-dict-results-list::-webkit-scrollbar {
    width: 6px;
}

.gd-dict-results-list::-webkit-scrollbar-track {
    background: transparent;
}

.gd-dict-results-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Lemma group */
.gd-dict-lemma-group {
    padding: 12px 20px 8px;
}

.gd-dict-lemma-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.gd-dict-lemma-word {
    font-size: 1.05rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gd-dict-lemma-pos {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
    text-transform: lowercase;
}

/* Meaning row */
.gd-dict-meaning-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 0 4px 4px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.gd-dict-meaning-row:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.gd-dict-meaning-idx {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.gd-dict-meaning-text {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.gd-dict-meaning-pos-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    text-transform: lowercase;
    flex-shrink: 0;
}

.gd-dict-add-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.gd-dict-add-btn:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.25);
}

.gd-dict-add-btn.saved {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    cursor: default;
    pointer-events: none;
}

/* Divider between lemma groups */
.gd-dict-lemma-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 20px;
}

/* Empty state */
.gd-dict-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
}

.gd-dict-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.gd-dict-empty h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 6px;
}

.gd-dict-empty p {
    font-size: 0.85rem;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Save modal */
.gd-dict-save-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: fadeIn 0.2s ease;
}

.gd-dict-save-modal.hidden {
    display: none;
}

.gd-dict-save-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gd-dict-save-inner h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.gd-dict-save-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.gd-dict-cancel-btn {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.gd-dict-cancel-btn:hover {
    background: var(--bg-secondary);
}

.gd-dict-confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.gd-dict-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* ── Other meanings on flashcard back ── */
.ms-fc-other-meanings {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    width: 100%;
}

.ms-fc-other-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 8px;
}

.ms-fc-other-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ms-fc-other-list li {
    font-size: 0.82rem;
    color: var(--text-secondary, #cbd5e1);
    padding: 4px 0 4px 12px;
    position: relative;
}

.ms-fc-other-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--accent-primary, #0f172a);
    font-weight: 700;
}
/* ═══════════════════════════════════════════════════════════════════════════════
   Vocabulary Topics Section
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════ */
/* VOCABULARY CATEGORIES SECTION (Bookshelf-style 3 cards)        */
/* ═══════════════════════════════════════════════════════════════ */

.vocab-categories-section {
    width: 100%;
    display: none;
    animation: shelfSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    margin-top: auto;
    padding: clamp(10px, 2vw, 30px) 0 0;
}

.vocab-categories-section.visible {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vocab-cat-container {
    width: 90%;
    max-width: 1100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vocab-cat-cards {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 60px);
    padding: 0 clamp(10px, 2vw, 30px);
    padding-bottom: clamp(8px, 1.2vw, 16px);
    width: 100%;
}

.vocab-cat-item {
    flex: 1;
    max-width: 30%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vocab-cat-item:hover {
    transform: translateY(-14px) scale(1.04);
}

.vocab-cat-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 0.75;
    perspective: 800px;
    border-radius: 4px 14px 14px 4px;
    overflow: visible;
}

.vocab-cat-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 4px 14px 14px 4px;
    box-shadow:
        6px 6px 18px rgba(0, 0, 0, 0.35),
        2px 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    transform-origin: left center;
    position: relative;
    overflow: hidden;
}

.vocab-cat-item:hover .vocab-cat-cover {
    transform: rotateY(-8deg);
    box-shadow:
        10px 10px 30px rgba(0, 0, 0, 0.4),
        4px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Themed color overlays */
.vocab-cat-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 0.4s ease;
}

.vocab-cat-overlay.themes {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.55) 0%,
        rgba(6, 78, 59, 0.75) 100%);
}

.vocab-cat-overlay.cefr {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.55) 0%,
        rgba(49, 46, 129, 0.75) 100%);
}

.vocab-cat-overlay.frequency {
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.55) 0%,
        rgba(180, 83, 9, 0.75) 100%);
}

.vocab-cat-item:hover .vocab-cat-overlay {
    opacity: 0.85;
}

.vocab-cat-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2.5rem, 5vw, 4rem);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vocab-cat-item:hover .vocab-cat-icon {
    transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
}

.vocab-cat-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 8%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(0,0,0,0.08) 40%, transparent);
    border-radius: 4px 0 0 4px;
    pointer-events: none;
}

.vocab-cat-shadow {
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 16px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.3), transparent);
    filter: blur(4px);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.vocab-cat-item:hover .vocab-cat-shadow {
    opacity: 0.6;
}

.vocab-cat-label {
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    margin-top: 4px;
}

.vocab-cat-desc {
    font-size: clamp(0.55rem, 0.8vw, 0.78rem);
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.04em;
}

.vocab-cat-badge-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.vocab-cat-badge {
    padding: 3px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: clamp(0.55rem, 0.7vw, 0.72rem);
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.vocab-cat-item:hover .vocab-cat-badge {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* Shelf wood matching grammar */
.vocab-cat-shelf-wood {
    width: 105%;
    height: clamp(12px, 1.5vw, 22px);
    background: linear-gradient(180deg, #8B6914, #6B4E0A 30%, #8B6914 60%, #A07B1A 80%, #6B4E0A);
    border-radius: 0 0 6px 6px;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
    position: relative;
}

.vocab-cat-shelf-wood::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #A07B1A, #C9A227, #A07B1A);
    border-radius: 6px 6px 0 0;
}

/* Responsive: stack on small screens */
@media (max-width: 700px) {
    .vocab-cat-cards {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .vocab-cat-item {
        max-width: 70%;
    }

    .vocab-cat-shelf-wood {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* EXAMS HERO SECTION                                             */
/* ═══════════════════════════════════════════════════════════════ */

.exams-hero-section {
    display: none;
    width: 100%;
    padding: 16px 0 24px;
    animation: fadeInUp 0.35s ease both;
}

.exams-hero-section.visible {
    display: block;
}

.exams-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language filter tabs */
.exams-lang-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.exam-lang-tab {
    padding: 8px 20px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.12));
    border-radius: 30px;
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary, #aaa);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.exam-lang-tab:hover {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.4);
    color: var(--text-primary, #fff);
}

.exam-lang-tab.active {
    background: linear-gradient(135deg, #0f172a, #334155);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

/* Year group */
.exams-year-group {
    margin-bottom: 28px;
}

.exams-year-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary, #aaa);
    margin-bottom: 12px;
    padding-left: 4px;
    border-left: 3px solid #0f172a;
    padding-left: 10px;
}

.exams-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Individual exam card */
.exam-hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    min-width: 210px;
    flex: 1 1 210px;
    max-width: 280px;
    position: relative;
    overflow: hidden;
}

.exam-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), transparent);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.exam-hero-card:hover {
    border-color: rgba(99,102,241,0.45);
    background: rgba(99,102,241,0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.2);
}

.exam-hero-card:hover::before {
    opacity: 1;
}

.exam-card-lang {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.exam-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.exam-card-type {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0f172a;
}

.exam-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.exam-card-year {
    font-size: 0.78rem;
    color: var(--text-secondary, #aaa);
}

.exam-card-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary, #aaa);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.exam-hero-card:hover .exam-card-arrow {
    transform: translateX(4px);
    color: #0f172a;
}

.exams-error,
.exams-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary, #aaa);
    font-size: 1rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Underlined Terms (Global) */
.underlined-term {
    text-decoration: none;
    border-bottom: 3px solid var(--accent-primary);
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 1px;
    display: inline;
    transition: all 0.3s ease;
    text-shadow: 0 0 1px rgba(255,255,255,0.1);
}

.underlined-term:hover {
    background: rgba(99, 102, 241, 0.15);
    border-bottom-width: 4px;
    cursor: help;
}

/* ==========================================================================
   User Account Dropdown & Settings Modal Styles (Premium Theme)
   ========================================================================== */

.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: inherit;
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    letter-spacing: 0.03em;
}

.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #334155;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.nav-user-btn .user-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.nav-user-btn .user-arrow {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.nav-user-btn:hover .user-arrow {
    transform: translateY(2px);
}

/* Dropdown Menu Panel */
.dropdown-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 290px;
    background: rgba(18, 18, 30, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.75), 
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 50px rgba(139, 92, 246, 0.05);
    padding: 18px;
    z-index: 1002;
    transform-origin: top right;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dropdown-menu-panel.hidden {
    display: none !important;
}

/* User Info Section */
.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
}

.dropdown-user-info .info-avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.45);
}

.dropdown-user-info .info-details {
    flex: 1;
    min-width: 0;
}

.dropdown-user-info .info-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-info .info-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.dropdown-user-info .info-stats {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a78bfa;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 10px 0;
}

/* Action Buttons inside Dropdown */
.dropdown-item-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(248, 250, 252, 0.85);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding-left: 18px;
}

.dropdown-item-btn i {
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.25s ease;
}

.dropdown-item-btn:hover i {
    color: #334155;
}

.dropdown-item-btn.sign-out-btn {
    color: #f87171;
}

.dropdown-item-btn.sign-out-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
}

.dropdown-item-btn.sign-out-btn i {
    color: rgba(239, 68, 68, 0.6);
}

.dropdown-item-btn.sign-out-btn:hover i {
    color: #ef4444;
}
/* ═══════════════════════════════════════════════════════════════════════════════
   Toast Notifications
   ═══════════════════════════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
}

.toast {
    background: rgba(23, 23, 35, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.visible {
    transform: translateX(0);
}

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

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}

.toast-info {
    border-left: 4px solid var(--accent-primary);
}

/* Global Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton-item {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, var(--surface) 4%, var(--border-color) 25%, var(--surface) 36%);
    background-size: 1000px 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skeleton-sidebar-item {
    height: 48px;
    width: 100%;
    margin: 8px 16px;
    width: calc(100% - 32px);
}
