/* ═══════════════════════════════════════════════════════
   Greek Words — Complete UI Styles
   ═══════════════════════════════════════════════════════ */

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

/* ─── Design Tokens ─────────────────────────────────── */
:root {
    --bg:          #0d0d1a;
    --bg2:         #12122a;
    --bg3:         #1a1a35;
    --glass:       rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.08);
    --text:        #f0f0ff;
    --text2:       #8888aa;
    --accent:      #6c63ff;
    --accent2:     #9b8ffc;
    --grad:        linear-gradient(135deg, #6c63ff 0%, #9b8ffc 100%);
    --grad-warm:   linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --green:       #22c55e;
    --yellow:      #f59e0b;
    --red:         #ef4444;
    --blue:        #3b82f6;
    --r:           20px;
    --r-sm:        12px;
    --r-xs:        8px;
    --nav-h:       68px;
    --shadow:      0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(108,99,255,0.25);
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: var(--nav-h);
}

/* ─── App Shell ──────────────────────────────────────── */
.app { min-height: 100vh; position: relative; }

.view {
    padding: 16px 16px 8px;
    animation: viewIn 0.25s ease;
    max-width: 480px;
    margin: 0 auto;
}

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

.transition-overlay {
    position: fixed; inset: 0;
    background: var(--bg);
    opacity: 0; pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 500;
}
.transition-overlay.active { opacity: 1; }

/* ─── Typography Helpers ─────────────────────────────── */
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Level Chips ────────────────────────────────────── */
.level-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.level-chip-sm {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}
.lv-A1 { background: rgba(34,197,94,0.15); color: #22c55e; }
.lv-A2 { background: rgba(245,158,11,0.15); color: #f59e0b; }
.lv-B1 { background: rgba(239,68,68,0.15);  color: #ef4444; }

/* ─── Glass Card ─────────────────────────────────────── */
.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: var(--r);
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════ */
.dashboard { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }

/* Header */
.dash-header { display: flex; align-items: center; justify-content: space-between; }
.dash-greeting { display: flex; align-items: center; gap: 12px; }
.greek-flag { font-size: 32px; }
.dash-title { font-size: 20px; font-weight: 700; }
.dash-subtitle { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* Stats pills */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stat-pill {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r);
    padding: 16px 12px;
    text-align: center;
}
.stat-pill-value { font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-pill-label { font-size: 11px; color: var(--text2); margin-top: 4px; }
.stat-pill.streak .stat-pill-value { -webkit-text-fill-color: initial; background: none; }

/* Today card */
.today-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r);
    padding: 16px 18px;
}
.today-header { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.today-header span:first-child { color: var(--text2); }
.today-count { font-weight: 700; color: var(--accent2); }
.progress-track {
    height: 6px; border-radius: 3px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 3px;
    background: var(--grad);
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Word of day */
.wod-card {
    background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(155,143,252,0.1) 100%);
    border: 1px solid rgba(108,99,255,0.25);
    border-radius: var(--r);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.wod-card::before {
    content: 'Α';
    position: absolute; right: 16px; top: 8px;
    font-size: 80px; font-weight: 900;
    color: rgba(108,99,255,0.08);
    line-height: 1;
}
.wod-label { font-size: 11px; color: var(--accent2); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.wod-word { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.wod-translation { font-size: 15px; color: var(--text2); margin-bottom: 10px; }

/* Start button */
.btn-start {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: var(--r);
    padding: 18px 22px;
    font-size: 17px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108,99,255,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-start:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(108,99,255,0.3); }
.btn-start-icon { font-size: 22px; }
.btn-start-arrow { font-size: 20px; opacity: 0.8; }

/* Secondary button */
.btn-secondary {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    padding: 14px;
    color: var(--text);
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-secondary:active { background: var(--bg3); }

/* ═══════════════════════════════════════════════════════
   STUDY / FLASHCARD
   ═══════════════════════════════════════════════════════ */
.view-study {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--nav-h));
}

/* Study header */
.study-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    position: sticky; top: 0;
    background: var(--bg);
    z-index: 10;
}
.btn-icon-back {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text2);
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.btn-icon-back:active { background: var(--bg3); }

.session-progress-wrap { flex: 1; display: flex; align-items: center; gap: 10px; }
.session-track { flex: 1; height: 6px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.session-fill {
    height: 100%; border-radius: 3px;
    background: var(--grad);
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.session-counter { font-size: 12px; font-weight: 600; color: var(--text2); white-space: nowrap; }

/* Flashcard area */
.flashcard-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px 16px;
    gap: 16px;
}

/* Swipe hints */
.swipe-hints {
    width: 100%; display: flex; justify-content: space-between;
    padding: 0 8px;
}
.hint-left  { font-size: 12px; color: rgba(239,68,68,0.5); font-weight: 600; }
.hint-right { font-size: 12px; color: rgba(34,197,94,0.5);  font-weight: 600; }

/* Card 3D scene */
.card-scene {
    width: 100%;
    max-width: 380px;
    perspective: 1200px;
    cursor: pointer;
    touch-action: pan-y;
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s;
    border-radius: var(--r);
}

.card-scene.swipe-right {
    animation: flyRight 0.35s cubic-bezier(0.23,1,0.32,1) forwards;
}
.card-scene.swipe-left {
    animation: flyLeft 0.35s cubic-bezier(0.23,1,0.32,1) forwards;
}

@keyframes flyRight {
    to { transform: translateX(120%) rotate(15deg); opacity: 0; }
}
@keyframes flyLeft {
    to { transform: translateX(-120%) rotate(-15deg); opacity: 0; }
}

.card-3d {
    position: relative;
    width: 100%;
    min-height: 320px;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--r);
}

.card-3d.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    gap: 12px;
    min-height: 320px;
}

/* Front */
.card-front {
    background: linear-gradient(145deg, #1c1c38 0%, #141428 100%);
    border: 1px solid rgba(108,99,255,0.2);
    box-shadow: var(--shadow), var(--shadow-glow);
}

/* Back */
.card-back {
    background: linear-gradient(145deg, #1a2e1a 0%, #141a14 100%);
    border: 1px solid rgba(34,197,94,0.2);
    box-shadow: var(--shadow), 0 0 40px rgba(34,197,94,0.15);
    transform: rotateY(180deg);
    justify-content: flex-start;
    padding-top: 36px;
    overflow-y: auto;
}

.card-main-word {
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.card-tap-hint {
    margin-top: 16px;
    font-size: 12px; color: var(--text2);
    display: flex; align-items: center; gap: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

.card-front-word {
    font-size: 20px; font-weight: 600;
    color: var(--text2); text-align: center;
}

.card-divider {
    width: 40px; height: 2px;
    background: var(--grad);
    border-radius: 1px;
    margin: 4px 0;
}

.card-translation {
    font-size: 30px; font-weight: 800;
    color: var(--green);
    text-align: center;
}

.card-examples, .card-phrases {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border-radius: var(--r-sm);
    padding: 12px 14px;
}

.examples-label {
    font-size: 10px; font-weight: 700; color: var(--text2);
    text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.examples-text {
    font-size: 13px; color: var(--text2);
    line-height: 1.6;
}

/* Rating buttons */
.rating-row {
    width: 100%; max-width: 380px;
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 8px;
}
.btn-rate {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    border: none; border-radius: var(--r-sm);
    padding: 14px 6px;
    font-size: 11px; font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s, opacity 0.12s;
}
.btn-rate:active { transform: scale(0.92); opacity: 0.8; }
.rate-emoji { font-size: 20px; }

.btn-again { background: rgba(239,68,68,0.15); color: #ef4444; }
.btn-hard  { background: rgba(245,158,11,0.15); color: #f59e0b; }
.btn-good  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.btn-easy  { background: rgba(59,130,246,0.15);  color: #3b82f6; }

/* Flip button */
.flip-hint-row { width: 100%; max-width: 380px; }
.btn-flip {
    width: 100%;
    background: var(--glass);
    border: 1px solid rgba(108,99,255,0.3);
    border-radius: var(--r-sm);
    padding: 14px;
    color: var(--accent2);
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.btn-flip:active { background: rgba(108,99,255,0.15); }

/* Session done */
.session-done {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 24px;
    text-align: center;
}
.done-icon { font-size: 72px; margin-bottom: 16px; }
.done-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.done-sub { font-size: 15px; color: var(--text2); }

/* ═══════════════════════════════════════════════════════
   DICTIONARY
   ═══════════════════════════════════════════════════════ */
.dict-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.search-wrap {
    display: flex; align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    padding: 0 14px;
    gap: 8px;
    transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--accent); }
.search-icon { font-size: 16px; opacity: 0.5; }
.search-input {
    flex: 1; background: none; border: none;
    padding: 13px 0;
    color: var(--text); font-size: 15px;
    outline: none;
}
.search-input::placeholder { color: var(--text2); }

.level-tabs { display: flex; gap: 6px; }
.level-tab {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xs);
    padding: 8px 4px;
    color: var(--text2);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.level-tab.active {
    background: rgba(108,99,255,0.15);
    border-color: var(--accent);
    color: var(--accent2);
}

.dict-count { font-size: 12px; color: var(--text2); margin-bottom: 6px; padding: 0 2px; }

.words-list { display: flex; flex-direction: column; gap: 6px; }

.word-row {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.word-row:active { background: var(--bg3); border-color: var(--accent); }
.word-row-main { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.word-gr { font-size: 16px; font-weight: 700; }
.word-ru { font-size: 13px; color: var(--text2); line-height: 1.4; }

.dict-loading { text-align: center; padding: 24px; color: var(--text2); font-size: 14px; }
.dict-empty   { text-align: center; padding: 40px; color: var(--text2); font-size: 15px; }

.btn-load-more {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    padding: 12px;
    color: var(--accent2);
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.15s;
}
.btn-load-more:active { background: var(--bg3); }

/* Word detail modal */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex; align-items: flex-end;
    z-index: 300;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
    width: 100%; max-height: 85vh;
    background: var(--bg2);
    border: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 40px;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 50%; color: var(--text2);
    font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.modal-word { font-size: 32px; font-weight: 800; margin: 12px 0 6px; }
.modal-translation { font-size: 20px; color: var(--green); margin-bottom: 20px; font-weight: 600; }
.modal-section { margin-bottom: 16px; }
.modal-section-label {
    font-size: 10px; font-weight: 700; color: var(--text2);
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px;
}
.modal-section-text { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════
   STATISTICS
   ═══════════════════════════════════════════════════════ */
.stats-page { display: flex; flex-direction: column; gap: 20px; padding-bottom: 20px; }
.stats-title { font-size: 22px; font-weight: 800; }

.section-label {
    font-size: 11px; font-weight: 700; color: var(--text2);
    text-transform: uppercase; letter-spacing: 1px;
}

/* Key metrics */
.metrics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.metric-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r);
    padding: 16px 10px;
    text-align: center;
}
.metric-value { font-size: 28px; font-weight: 800; }
.metric-label { font-size: 11px; color: var(--text2); margin-top: 4px; }

/* Level rings */
.levels-row { display: flex; gap: 12px; justify-content: space-around; }
.level-ring-card { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.ring-svg { width: 80px; height: 80px; }

.ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.07);
    stroke-width: 7;
}
.ring-fill {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    transform-origin: center;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4,0,0.2,1);
}
.ring-text {
    font-size: 13px;
    font-weight: 700;
    fill: var(--text);
    text-anchor: middle;
    font-family: 'Inter', sans-serif;
}

.ring-label { }
.ring-count { font-size: 12px; color: var(--text2); }

/* 7-day streak row */
.week-row { display: flex; gap: 6px; justify-content: space-between; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.week-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.08);
    transition: background 0.2s, border-color 0.2s;
}
.week-dot.active {
    background: rgba(108,99,255,0.3);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(108,99,255,0.4);
}
.week-label { font-size: 10px; color: var(--text2); font-weight: 600; }

/* Heatmap */
.heatmap {
    display: flex; gap: 3px; overflow-x: auto;
    padding-bottom: 4px;
}
.heatmap-col { display: flex; flex-direction: column; gap: 3px; }
.heatmap-cell {
    width: 12px; height: 12px;
    border-radius: 2px;
}
.heat-0 { background: rgba(255,255,255,0.05); }
.heat-1 { background: rgba(108,99,255,0.25); }
.heat-2 { background: rgba(108,99,255,0.55); }
.heat-3 { background: rgba(108,99,255,0.9); }

/* ═══════════════════════════════════════════════════════
   PROFILE / SETTINGS
   ═══════════════════════════════════════════════════════ */
.profile-page { display: flex; flex-direction: column; gap: 20px; }

.profile-hero {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    padding: 24px 0 8px;
}
.profile-avatar-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}
.profile-avatar-letter {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 800;
}
.profile-name { font-size: 20px; font-weight: 700; }

.settings-block {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r);
    overflow: hidden;
}
.settings-title {
    font-size: 13px; font-weight: 700; color: var(--text2);
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--glass-border);
}
.setting-row {
    display: flex; align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    gap: 12px;
}
.setting-row:last-child { border-bottom: none; }
.setting-info { flex: 1; }
.setting-name { font-size: 14px; font-weight: 600; }
.setting-desc { font-size: 11px; color: var(--text2); margin-top: 2px; }
.setting-select {
    background: var(--bg3);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xs);
    padding: 8px 10px;
    color: var(--text);
    font-size: 13px; font-weight: 500;
    outline: none;
    max-width: 130px;
}
.setting-num {
    background: var(--bg3);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xs);
    padding: 8px 10px;
    color: var(--text);
    font-size: 14px; font-weight: 600;
    outline: none;
    width: 70px; text-align: center;
}

/* ═══════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════ */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(13,13,26,0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px;
    background: none; border: none;
    color: var(--text2);
    cursor: pointer;
    transition: color 0.15s;
    border-radius: var(--r-xs);
    padding: 6px 4px;
    position: relative;
}
.nav-btn::before {
    content: '';
    position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--grad);
    border-radius: 1px;
    transition: width 0.2s cubic-bezier(0.4,0,0.2,1);
}
.nav-btn.active { color: var(--accent2); }
.nav-btn.active::before { width: 24px; }
.nav-icon  { font-size: 22px; line-height: 1; }
.nav-lbl   { font-size: 10px; font-weight: 600; }
.nav-avatar {
    width: 22px; height: 22px;
    border-radius: 50%; object-fit: cover;
    border: 1.5px solid var(--accent);
}

/* ═══════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════ */
.loading-screen {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px;
    background: var(--bg);
}
.loading-logo { font-size: 64px; animation: float 2s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.loader {
    width: 36px; height: 36px;
    border: 3px solid rgba(108,99,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 16px; font-weight: 700; color: var(--text2); letter-spacing: 1px; }

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 2px; }
