/* ============================================================
   LearnLanguageAi — Premium design system  (v2)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    /* Brand */
    --primary: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --accent: #8b5cf6;
    --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --grad-soft: linear-gradient(135deg, rgba(99,102,241,.12), rgba(217,70,239,.12));

    /* Semantic (color-coded actions) */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #f43f5e;
    --danger-bg: #fff1f2;
    --info: #0ea5e9;
    --info-bg: #f0f9ff;

    /* Neutrals */
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-2: #eef2f7;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;

    /* Sidebar (dark, premium) */
    --side-bg: linear-gradient(185deg, #1e1b4b 0%, #0f172a 100%);
    --side-ink: #c7d2fe;
    --side-muted: #8089b3;

    /* Shape & depth */
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
    --shadow: 0 4px 12px rgba(15,23,42,.06), 0 12px 28px rgba(15,23,42,.06);
    --shadow-lg: 0 18px 50px rgba(79,70,229,.18);
    --ring: 0 0 0 4px rgba(99,102,241,.18);

    --sidebar-w: 264px;
    --topbar-h: 68px;
}

html, body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -.02em; }

a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary-700); }

::selection { background: rgba(99,102,241,.18); }

/* Premium scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }

/* ============================================================
   App shell
   ============================================================ */
.app-shell { display: flex; min-height: 100vh; }

.nav-toggle-cb { display: none; }

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-w);
    background: var(--side-bg);
    color: var(--side-ink);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    z-index: 50;
    box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1.4rem 1.4rem 1.1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.18rem;
    color: #fff;
}

.brand-logo {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--grad);
    display: grid; place-items: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px rgba(124,58,237,.45);
}

.side-section {
    padding: .4rem 1.4rem;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--side-muted);
    margin-top: .6rem;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 .8rem; }

.side-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .68rem .8rem;
    border-radius: 12px;
    color: var(--side-ink);
    font-weight: 500;
    font-size: .95rem;
    border: none; background: none; cursor: pointer;
    width: 100%; text-align: left;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.side-link svg { width: 20px; height: 20px; flex-shrink: 0; opacity: .9; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.side-link.active {
    background: rgba(99,102,241,.22);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(165,180,252,.25);
}
.side-link.active svg { opacity: 1; }

.side-spacer { flex: 1; }

.side-user {
    margin: .8rem;
    padding: .8rem;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    display: flex; align-items: center; gap: .7rem;
}
.side-avatar {
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--grad);
    display: grid; place-items: center;
    color: #fff; font-weight: 700;
    flex-shrink: 0;
}
.side-user-meta { overflow: hidden; }
.side-user-meta .nm { color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-meta .sub { color: var(--side-muted); font-size: .78rem; }
.side-logout {
    display: flex; align-items: center; gap: .5rem;
    margin: 0 .8rem .9rem;
    padding: .6rem .8rem;
    width: calc(100% - 1.6rem);
    border-radius: 11px;
    background: rgba(244,63,94,.12);
    color: #fda4af;
    border: none; cursor: pointer; font-weight: 600; font-size: .88rem;
}
.side-logout:hover { background: rgba(244,63,94,.2); color: #fff; }
.side-logout svg { width: 18px; height: 18px; }

/* Main column */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
    height: var(--topbar-h);
    background: rgba(255,255,255,.8);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 1rem;
    padding: 0 1.6rem;
    position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; }
.topbar-spacer { flex: 1; }

.hamburger {
    display: none;
    width: 42px; height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    align-items: center; justify-content: center;
    color: var(--ink-2);
}
.hamburger svg { width: 22px; height: 22px; }

.app-content { padding: 1.8rem; max-width: 1180px; width: 100%; margin: 0 auto; }

.app-backdrop { display: none; }

/* Mobile */
@media (max-width: 860px) {
    .app-sidebar {
        position: fixed; left: 0; top: 0;
        transform: translateX(-100%);
        transition: transform .28s cubic-bezier(.4,0,.2,1);
        box-shadow: 0 0 60px rgba(0,0,0,.5);
    }
    .nav-toggle-cb:checked ~ .app-shell .app-sidebar,
    .app-shell:has(.nav-toggle-cb:checked) .app-sidebar { transform: translateX(0); }
    .hamburger { display: flex; }
    .app-content { padding: 1.1rem; }
    .nav-toggle-cb:checked ~ .app-shell .app-backdrop,
    .app-shell:has(.nav-toggle-cb:checked) .app-backdrop {
        display: block; position: fixed; inset: 0; z-index: 45;
        background: rgba(15,23,42,.5); backdrop-filter: blur(2px);
    }
}

/* ============================================================
   Buttons — color coded
   ============================================================ */
.btn2 {
    --b: var(--primary);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .68rem 1.3rem;
    border-radius: var(--r-pill);
    font-weight: 600; font-size: .95rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn2 svg { width: 18px; height: 18px; }
.btn2:hover { transform: translateY(-2px); }
.btn2:active { transform: translateY(0); }
.btn2:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn2.solid { background: var(--b); color: #fff; box-shadow: 0 8px 18px -6px var(--b); }
.btn2.solid:hover { box-shadow: 0 12px 24px -6px var(--b); color: #fff; }
.btn2.gradient { background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn2.gradient:hover { color: #fff; }
.btn2.soft { background: color-mix(in srgb, var(--b) 12%, white); color: var(--b); }
.btn2.soft:hover { background: color-mix(in srgb, var(--b) 20%, white); color: var(--b); }
.btn2.outline { border-color: var(--line); color: var(--ink-2); background: var(--surface); }
.btn2.outline:hover { border-color: var(--b); color: var(--b); }

.btn2.primary { --b: var(--primary); }
.btn2.success { --b: var(--success); }
.btn2.warning { --b: var(--warning); }
.btn2.danger  { --b: var(--danger); }
.btn2.info    { --b: var(--info); }

.btn2.sm { padding: .45rem .9rem; font-size: .85rem; }
.btn2.block { width: 100%; }

/* ============================================================
   Cards & stat cards
   ============================================================ */
.card2 {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card2.pad { padding: 1.5rem; }
.card2.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.6rem;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat::after {
    content: ""; position: absolute; right: -30px; top: -30px;
    width: 110px; height: 110px; border-radius: 50%;
    background: var(--grad-soft); opacity: .7;
}
.stat-icon {
    width: 46px; height: 46px; border-radius: 13px;
    display: grid; place-items: center; font-size: 1.35rem;
    margin-bottom: .9rem; position: relative; z-index: 1;
}
.stat-icon.i-primary { background: var(--grad-soft); color: var(--primary-600); }
.stat-icon.i-success { background: var(--success-bg); color: var(--success); }
.stat-icon.i-warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.i-info    { background: var(--info-bg); color: var(--info); }
.stat-icon.i-danger  { background: var(--danger-bg); color: var(--danger); }
.stat-value { font-size: 1.9rem; font-weight: 800; font-family: 'Plus Jakarta Sans'; line-height: 1; position: relative; z-index: 1; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: .35rem; position: relative; z-index: 1; }

/* ============================================================
   Badges / chips / pills
   ============================================================ */
.badge2 {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .7rem; border-radius: var(--r-pill);
    font-size: .76rem; font-weight: 700;
}
.badge2.grad { background: var(--grad); color: #fff; }
.badge2.new { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge2.success { background: var(--success-bg); color: var(--success); }
.badge2.warning { background: var(--warning-bg); color: var(--warning); }
.badge2.info { background: var(--info-bg); color: var(--info); }

/* ============================================================
   Section headers
   ============================================================ */
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.7rem; font-weight: 800; }
.page-head p { color: var(--muted); margin: .3rem 0 0; }

/* ============================================================
   Forms
   ============================================================ */
.field { display: block; margin-bottom: 1rem; }
.field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink-2); }
.input2 {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .75rem 1rem;
    font-size: 1rem;
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
    outline: none;
}
.input2:focus { border-color: var(--primary); box-shadow: var(--ring); }

/* ============================================================
   Hero / landing
   ============================================================ */
.hero { padding: 3.2rem 1rem 2rem; text-align: center; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--grad-soft); color: var(--primary-600);
    font-weight: 700; padding: .4rem 1rem; border-radius: var(--r-pill);
    margin-bottom: 1.3rem; font-size: .85rem;
    border: 1px solid rgba(99,102,241,.2);
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.1; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; margin: 1.1rem auto 2rem; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.lang-chips { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.chip {
    background: var(--surface); border: 1px solid var(--line);
    padding: .45rem 1rem; border-radius: var(--r-pill);
    font-weight: 600; box-shadow: var(--shadow-sm);
}

.features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem; margin-top: 1rem;
}
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: .9rem; background: var(--grad-soft); }
.feature-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .3rem; }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.55; }

/* ============================================================
   Language grid
   ============================================================ */
.language-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.language-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--shadow-sm);
    padding: 1.5rem; text-align: center; position: relative; overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.language-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.language-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.language-flag { font-size: 3rem; line-height: 1; margin-top: .4rem; }
.language-card h3 { margin: .6rem 0 .1rem; font-weight: 700; }
.native-name { color: var(--muted); margin-bottom: .9rem; font-size: 1.05rem; }
.card-actions { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }

/* ============================================================
   Assessment
   ============================================================ */
.assessment { max-width: 720px; margin: 0 auto; }
.progress-track { height: 12px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.progress-fill { height: 100%; background: var(--grad); border-radius: var(--r-pill); transition: width .4s cubic-bezier(.4,0,.2,1); }
.progress-label { color: var(--muted); font-size: .9rem; margin: .5rem 0 1.3rem; font-weight: 500; }
.question-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 2rem; }
.question-card h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.3rem; }
.options { display: grid; gap: .7rem; }
.option-btn {
    text-align: start; padding: .9rem 1.15rem; border-radius: 13px;
    border: 1.5px solid var(--line); background: var(--surface-2);
    font-size: 1.05rem; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .12s ease;
    display: flex; align-items: center; gap: .8rem;
}
.option-btn::before {
    content: ""; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--line); flex-shrink: 0; transition: all .15s ease;
}
.option-btn:hover { border-color: var(--accent); transform: translateX(3px); }
.option-btn.selected { border-color: var(--primary); background: var(--grad-soft); font-weight: 600; }
.option-btn.selected::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.assessment-result { text-align: center; padding: 3rem 1rem; max-width: 620px; margin: 0 auto; }
.result-flag { font-size: 4rem; }
.assessment-result h1 { font-size: 2.2rem; font-weight: 800; margin: .5rem 0; }
.result-desc { color: var(--muted); font-size: 1.1rem; margin: 0 auto 1.4rem; line-height: 1.6; }

/* ============================================================
   Chat
   ============================================================ */
.chat-page { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h) - 3.6rem); max-width: 880px; margin: 0 auto; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.chat-title { display: flex; align-items: center; gap: .9rem; }
.chat-flag { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; font-size: 1.8rem; }
.chat-title h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.chat-header-actions { display: flex; gap: .5rem; }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 1.3rem;
    display: flex; flex-direction: column; gap: .7rem;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    border: 1px solid var(--line); border-radius: var(--r-lg);
}
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.bubble-row.theirs { justify-content: flex-start; }
.bubble {
    max-width: 76%; padding: .8rem 1.1rem; border-radius: 18px;
    font-size: 1.05rem; line-height: 1.5; position: relative; white-space: pre-wrap;
    animation: pop .2s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.bubble.user { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 6px 16px -6px rgba(99,102,241,.6); }
.bubble.tutor { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.voice-tag { margin-inline-end: .3rem; }
.speak-btn { border: none; background: none; cursor: pointer; font-size: 1rem; margin-inline-start: .45rem; opacity: .55; }
.speak-btn:hover { opacity: 1; }
.bubble.typing { display: inline-flex; gap: .35rem; padding: 1rem 1.2rem; }
.bubble.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: blink 1.2s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; }
.bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.chat-error { background: var(--danger-bg); color: #be123c; border: 1px solid #fecdd3; border-radius: 12px; padding: .6rem 1rem; margin-top: .6rem; font-size: .92rem; }

.chat-input-bar { display: flex; gap: .6rem; padding-top: 1rem; align-items: center; }
.chat-input { flex: 1; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: .8rem 1.3rem; font-size: 1.05rem; outline: none; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.chat-input:focus { border-color: var(--primary); box-shadow: var(--ring); }
.mic-btn, .send-btn { width: 52px; height: 52px; border-radius: 50%; border: none; font-size: 1.3rem; cursor: pointer; flex-shrink: 0; display: grid; place-items: center; transition: transform .12s ease, box-shadow .15s; }
.mic-btn { background: var(--surface); border: 1.5px solid var(--line); }
.mic-btn:hover, .send-btn:hover { transform: scale(1.08); }
.mic-btn.recording { background: var(--danger); color: #fff; border-color: var(--danger); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,63,94,.5); } 70% { box-shadow: 0 0 0 14px rgba(244,63,94,0); } 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); } }
.send-btn { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -6px rgba(99,102,241,.7); }
.mic-btn:disabled, .send-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ============================================================
   WhatsApp page
   ============================================================ */
.wa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.2rem; }
.wa-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 1.6rem; }
.wa-card h3 { font-weight: 700; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.wa-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.wa-form .chat-input { min-width: 200px; }
.wa-success { margin-top: 1rem; background: var(--success-bg); color: #047857; border: 1px solid #a7f3d0; border-radius: 12px; padding: .7rem 1rem; font-weight: 600; }
.wa-steps { padding-inline-start: 1.1rem; color: var(--ink-2); display: grid; gap: .7rem; line-height: 1.5; }
.wa-note { margin-top: 1.2rem; background: var(--info-bg); border: 1px solid #bae6fd; border-radius: 12px; padding: .85rem 1rem; color: var(--ink-2); font-size: .9rem; }

/* ============================================================
   Identity / Bootstrap harmonization (Login, Register, Manage…)
   ============================================================ */
.app-content > h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 1.2rem; }

.app-content section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.2rem;
}
.app-content section h2 { font-size: 1.15rem; font-weight: 700; }
.app-content section h3 { font-size: 1.05rem; font-weight: 700; }
.app-content section hr { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }

.app-content .form-control {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .8rem 1rem;
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.app-content .form-control:focus { border-color: var(--primary); box-shadow: var(--ring); }
.app-content .form-floating > label { color: var(--muted); }

.app-content .btn-primary,
.app-content .btn-lg.btn-primary {
    background: var(--grad);
    border: none;
    border-radius: var(--r-pill);
    padding: .8rem 1.4rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: transform .14s ease;
}
.app-content .btn-primary:hover { transform: translateY(-2px); }
.app-content .btn-link { color: var(--primary-600); font-weight: 600; }

.app-content .nav-pills .nav-link.active { background: var(--grad); border-radius: 10px; }
.app-content .nav-pills .nav-link { color: var(--ink-2); }

/* Make the auth pages feel centered & focused */
body:has(.app-content > h1) .app-content { max-width: 980px; }

/* ============================================================
   Utilities
   ============================================================ */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Achievement toast */
.achv-toast {
    display: flex; align-items: center; gap: .8rem;
    background: var(--grad); color: #fff;
    padding: .8rem 1.2rem; border-radius: 14px;
    box-shadow: var(--shadow-lg); margin-bottom: 1rem; cursor: pointer;
    animation: slideDown .35s ease;
}
.achv-toast .achv-ico { font-size: 1.8rem; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
