/* TalabaOvozi v2 — design system (calm variant + light/dark)
   Tokens mirror NewDesign_v2/tokens.jsx (calm, hue 240, comfortable) */

:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-alt: #fafbfd;
    --surface-elev: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
    --text: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --accent: oklch(54% 0.20 240);
    --accent-soft: oklch(96% 0.04 240);
    --accent-text: oklch(42% 0.20 240);
    --accent-bg: oklch(96% 0.03 240);

    --success: oklch(58% 0.16 155);
    --success-soft: oklch(95% 0.05 155);
    --danger: oklch(60% 0.19 18);
    --danger-soft: oklch(95% 0.04 18);
    --warning: oklch(72% 0.15 70);
    --warning-soft: oklch(96% 0.06 70);

    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .04);
    --shadow-lg: 0 4px 16px rgba(15, 23, 42, .06), 0 12px 40px rgba(15, 23, 42, .08);

    --font: "Plus Jakarta Sans", "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-pill: 999px;

    --pad: 18px;
    --gap: 12px;
    --card-pad: 18px;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0a0d14;
    --surface: #11151f;
    --surface-alt: #161b27;
    --surface-elev: #1c2230;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #eef1f7;
    --text-muted: #8b94a8;
    --text-dim: #5b6478;

    --accent: oklch(70% 0.18 240);
    --accent-soft: oklch(28% 0.10 240);
    --accent-text: oklch(82% 0.13 240);
    --accent-bg: oklch(20% 0.08 240 / 0.5);

    --success: oklch(72% 0.16 155);
    --success-soft: oklch(28% 0.08 155);
    --danger: oklch(68% 0.19 18);
    --danger-soft: oklch(28% 0.10 18);
    --warning: oklch(78% 0.15 70);
    --warning-soft: oklch(28% 0.08 70);

    --shadow: 0 2px 8px rgba(0, 0, 0, .4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .5);

    color-scheme: dark;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-feature-settings: "ss01", "ss02", "cv11";
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .2s, color .2s;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--accent-text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--accent-bg); color: var(--accent-text); }

/* ── Layout ──────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding-bottom: 32px; }

/* ── Desktop header ──────────────────────────────────────────────────── */
.header {
    height: 64px; background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(150%) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--accent); display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 14px; border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 600; color: var(--text-muted);
    transition: background .15s, color .15s;
}
.nav-link:hover { color: var(--text); background: var(--accent-bg); }
.nav-link.active { color: var(--accent-text); background: var(--accent-soft); }

.header-search { flex: 1; max-width: 360px; margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent;
    background: transparent; color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--accent-bg); }
.icon-btn--bordered { border-color: var(--border); }
.icon-btn--bordered:hover { border-color: var(--border-strong); }

.nav-toggle { display: none; }
@media (max-width: 900px) {
    .nav-links { display: none; }
    .header-search { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }
}

/* Mobile drawer */
.nav-drawer {
    position: fixed; inset: 0; z-index: 200; display: none;
}
.nav-drawer.open { display: block; }
.nav-drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.nav-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 86vw; max-width: 320px;
    background: var(--surface); padding: 20px;
    display: flex; flex-direction: column; gap: 6px;
    transform: translateX(100%); animation: drawerIn .25s ease-out forwards;
}
@keyframes drawerIn { to { transform: translateX(0); } }
.nav-drawer .nav-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 15px; }
.nav-drawer-close { align-self: flex-end; margin-bottom: 8px; }

/* ── Bottom nav (mobile + Telegram WebApp) ──────────────────────────── */
.bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 8px 0 calc(22px + var(--tg-safe-bottom, 0px));
    justify-content: space-around; align-items: center;
}
.bottom-nav__item {
    background: none; border: none; padding: 4px 10px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--text-muted); font-weight: 600; font-size: 10px;
    text-decoration: none;
}
.bottom-nav__item.active { color: var(--accent-text); }
.bottom-nav__item.active svg { stroke-width: 2.2; }
.bottom-nav__add {
    width: 48px; height: 48px; border-radius: 16px;
    background: var(--accent); color: #fff; margin-top: -16px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
@media (max-width: 768px) { .bottom-nav { display: flex; } .page-main { padding-bottom: 96px; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--surface-alt); padding: 32px 0; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.footer-col__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col__items { display: flex; flex-direction: column; gap: 8px; }
.footer-col__items a { font-size: 13px; font-weight: 500; color: var(--text); }
.footer-col__items a:hover { color: var(--accent-text); }
.footer-bot {
    padding-top: 18px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 12px; color: var(--text-dim); font-weight: 500;
}
@media (max-width: 768px) {
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-cols > div:first-child { grid-column: span 2; }
}
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } .footer-cols > div:first-child { grid-column: span 1; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; letter-spacing: -.005em;
    background: var(--accent); color: #fff; border: 1px solid transparent;
    border-radius: var(--radius-lg); transition: filter .15s, transform .1s, box-shadow .15s;
    text-decoration: none;
}
.btn:hover { filter: brightness(1.05); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 48px; padding: 0 20px; font-size: 15px; }
.btn--xl { height: 56px; padding: 0 24px; font-size: 16px; }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-alt); color: var(--text); border-color: var(--text-dim); }
.btn--ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn--ghost:hover { background: var(--accent-bg); color: var(--text); }
.btn--soft { background: var(--accent-soft); color: var(--accent-text); }
.btn--soft:hover { background: var(--accent-bg); color: var(--accent-text); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--dark { background: var(--text); color: var(--surface); }
.btn--dark:hover { background: var(--text); color: var(--surface); filter: brightness(1.1); }
.btn--full { width: 100%; }
.btn--icon-only { padding: 0; width: 40px; }
.btn--icon-only.btn--sm { width: 32px; }

/* ── Badge / Chip ────────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    height: 22px; padding: 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .01em;
    background: var(--accent-bg); color: var(--text-muted);
    border-radius: var(--radius-pill); border: 1px solid transparent;
    white-space: nowrap;
}
.badge--xs { height: 18px; padding: 0 6px; font-size: 10px; }
.badge--md { height: 26px; padding: 0 10px; font-size: 12px; }
.badge--accent { background: var(--accent-soft); color: var(--accent-text); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--warn { background: var(--warning-soft); color: oklch(50% 0.14 70); }
[data-theme=dark] .badge--warn { color: oklch(78% 0.14 70); }
.badge--solid { background: var(--accent); color: #fff; }
.badge--dark { background: var(--text); color: var(--surface); }
.badge--outline { background: transparent; color: var(--text-muted); border-color: var(--border); }

.chip {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    height: 34px; padding: 0 12px; font-size: 13px; font-weight: 600;
    background: var(--surface); color: var(--text-muted);
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    transition: background .15s, color .15s, border-color .15s;
    text-decoration: none;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.chip.active:hover { color: var(--surface); }

/* ── Input ───────────────────────────────────────────────────────────── */
.input-wrap {
    display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 14px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.input-wrap--sm { height: 36px; padding: 0 12px; }
.input-wrap--lg { height: 52px; padding: 0 16px; }
.input-wrap--xl { height: 60px; padding: 0 18px; }
.input-wrap input, .input-wrap textarea {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: 14px; font-weight: 500; color: var(--text);
}
.input-wrap--lg input, .input-wrap--xl input { font-size: 16px; }
.input-wrap input::placeholder { color: var(--text-dim); }
.input-wrap__icon { color: var(--text-muted); flex-shrink: 0; }

textarea.input-area {
    width: 100%; padding: 14px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border); resize: vertical;
    font-size: 15px; line-height: 1.6; color: var(--text); min-height: 140px;
}
textarea.input-area:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

/* ── Card ────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: var(--card-pad);
}
.card--filled { background: var(--surface-alt); box-shadow: none; }
.card--bordered { background: var(--surface); box-shadow: none; border: 1px solid var(--border); }
.card--accent { background: var(--accent-soft); }
.card--dark { background: var(--text); color: var(--surface); }
.card--dark .text-muted { color: rgba(255,255,255,.6); }
.card--interactive { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.card--interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card--dashed { border: 1.5px dashed var(--border-strong); background: var(--surface-alt); box-shadow: none; }

/* ── Avatar ──────────────────────────────────────────────────────────── */
.avatar {
    --av-h: 240; /* default hue (overridable via inline style --av-h) */
    width: 40px; height: 40px; border-radius: 50%;
    background: oklch(92% 0.06 var(--av-h));
    color: oklch(35% 0.18 var(--av-h));
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; letter-spacing: -.02em;
    flex-shrink: 0; overflow: hidden;
}
[data-theme=dark] .avatar { background: oklch(28% 0.06 var(--av-h)); color: oklch(80% 0.18 var(--av-h)); }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--lg { width: 56px; height: 56px; font-size: 21px; }
.avatar--xl { width: 88px; height: 88px; font-size: 33px; }
.avatar--xxl { width: 104px; height: 104px; font-size: 38px; border-radius: 50%; }
.avatar--square { border-radius: 14px; }
.avatar--square.avatar--xl { border-radius: 22px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Sentiment indicators ────────────────────────────────────────────── */
.sent-bar {
    display: flex; flex-direction: column; gap: 6px; width: 100%;
}
.sent-bar__head { display: flex; justify-content: space-between; align-items: baseline; }
.sent-bar__pct { font-size: 13px; font-weight: 700; }
.sent-bar__pct.is-good { color: var(--success); }
.sent-bar__pct.is-mid { color: var(--accent); }
.sent-bar__pct.is-bad { color: var(--danger); }
.sent-bar__total { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.sent-bar__track { height: 8px; border-radius: var(--radius-pill); background: var(--danger-soft); overflow: hidden; }
.sent-bar__fill { height: 100%; background: var(--success); transition: width .8s ease-out; }
.sent-bar--sm .sent-bar__track { height: 6px; }
.sent-bar--lg .sent-bar__track { height: 10px; }

.sent-chip { display: inline-flex; gap: 6px; }

/* ── Stat card ───────────────────────────────────────────────────────── */
.stat-card { padding: var(--card-pad); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.stat-card__icon-wrap {
    --st-h: 240;
    width: 38px; height: 38px; border-radius: 12px;
    background: oklch(95% 0.05 var(--st-h));
    color: oklch(45% 0.18 var(--st-h));
    display: flex; align-items: center; justify-content: center;
}
[data-theme=dark] .stat-card__icon-wrap { background: oklch(22% 0.05 var(--st-h)); color: oklch(78% 0.18 var(--st-h)); }
.stat-card__delta { font-size: 11px; font-weight: 700; color: var(--success); display: inline-flex; align-items: center; gap: 2px; }
.stat-card__value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.stat-card__label { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.stat-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
}
.stat-row--scroll {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.stat-row--scroll::-webkit-scrollbar { display: none; }
.stat-row--scroll > * { min-width: 168px; flex-shrink: 0; }

/* ── Section header ──────────────────────────────────────────────────── */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.section-head__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; color: var(--text); }
.section-head__title--sm { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.section-head__action { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent-text); }

/* ── University card ─────────────────────────────────────────────────── */
.uni-card {
    display: flex; flex-direction: column; gap: 12px;
    padding: var(--card-pad); border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: var(--shadow);
    cursor: pointer; transition: transform .15s, box-shadow .15s;
    text-decoration: none; color: var(--text);
}
.uni-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.uni-card__top { display: flex; gap: 12px; align-items: flex-start; }
.uni-card__logo { position: relative; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: var(--accent-bg); }
.uni-card__logo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.uni-card__logo .avatar { width: 100%; height: 100%; border-radius: 14px; position: absolute; inset: 0; z-index: 0; }
.uni-card__logo.no-img img { display: none; }
.uni-card__logo.no-img .avatar { z-index: 1; }
.uni-card__body { flex: 1; min-width: 0; }
.uni-card__name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.uni-card__name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.uni-card__full { font-size: 12px; color: var(--text-muted); line-height: 1.4; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.uni-card__meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }

/* ── Staff card ──────────────────────────────────────────────────────── */
.staff-card {
    display: flex; flex-direction: column; gap: 12px;
    padding: var(--card-pad); border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: var(--shadow);
    cursor: pointer; transition: transform .15s, box-shadow .15s;
    text-decoration: none; color: var(--text);
}
.staff-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.staff-card__top { display: flex; gap: 12px; align-items: center; }
.staff-card__info { flex: 1; min-width: 0; }
.staff-card__name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.staff-card__role { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-card__uni { font-size: 11px; color: var(--text-dim); margin-top: 2px; font-weight: 500; }
.staff-card__bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.staff-card__count { font-size: 11px; color: var(--text-dim); font-weight: 600; }

/* ── Review card ─────────────────────────────────────────────────────── */
.review-card {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: var(--card-pad);
}
.review-head { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.review-head__info { flex: 1; min-width: 0; }
.review-head__name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.review-head__meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; font-weight: 500; }
.review-text { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 12px; word-wrap: break-word; }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.review-tag {
    font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px;
    background: var(--accent-bg); color: var(--text-muted);
}
.review-foot {
    display: flex; align-items: center; gap: 4px;
    padding-top: 10px; border-top: 1px solid var(--border);
}
.vote-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 10px; border-radius: 8px; border: none; background: transparent;
    color: var(--text-muted); font-size: 12px; font-weight: 600;
    transition: background .12s, color .12s;
}
.vote-btn:hover { background: var(--accent-bg); }
.vote-btn.is-active--up { color: var(--success); background: var(--success-soft); }
.vote-btn.is-active--down { color: var(--danger); background: var(--danger-soft); }
.vote-btn--icon { padding: 6px; }
.vote-btn--spacer { flex: 1; }

/* ── Tabs ────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 12px 16px; font-size: 14px; font-weight: 600;
    background: transparent; border: 0; border-bottom: 2px solid transparent;
    color: var(--text-muted); white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: -1px; text-decoration: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.pill-tabs { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px; background: var(--surface-alt); border-radius: var(--radius-pill); width: fit-content; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tab {
    padding: 8px 14px; font-size: 13px; font-weight: 600;
    border: 0; border-radius: var(--radius-pill);
    background: transparent; color: var(--text-muted); white-space: nowrap;
    text-decoration: none;
}
.pill-tab.active { background: var(--text); color: var(--surface); }

/* ── Trust item ──────────────────────────────────────────────────────── */
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item__icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: var(--accent-soft); color: var(--accent-text);
    display: flex; align-items: center; justify-content: center;
}
.trust-item__title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.trust-item__body { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.empty-state {
    padding: 32px 16px; text-align: center; border-radius: var(--radius-lg);
    border: 1.5px dashed var(--border-strong); background: var(--surface-alt);
}
.empty-state__icon {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
    background: var(--accent-soft); color: var(--accent-text);
    display: flex; align-items: center; justify-content: center;
}
.empty-state__title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.empty-state__body { font-size: 13px; color: var(--text-muted); margin: 6px auto 0; max-width: 320px; line-height: 1.5; }

/* ── Info row (sidebar list) ────────────────────────────────────────── */
.info-row {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid var(--border); font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-row__k { color: var(--text-muted); font-weight: 500; }
.info-row__v { color: var(--text); font-weight: 600; text-align: right; }
.info-row__v.is-link { color: var(--accent-text); }

.bar { height: 6px; border-radius: var(--radius-pill); background: var(--accent-bg); overflow: hidden; }
.bar__fill { height: 100%; background: var(--accent); border-radius: inherit; transition: width .8s ease-out; }

/* ── Recommend ring ─────────────────────────────────────────────────── */
.recommend-ring { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.recommend-ring svg { width: 180px; height: 180px; }
.recommend-ring__center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.recommend-ring__value { font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.recommend-ring__label { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 48px 0 24px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__title { font-size: 56px; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 14px 0 16px; color: var(--text); text-wrap: balance; }
.hero__title-accent { color: var(--accent-text); }
.hero__lead { font-size: 17px; color: var(--text-muted); line-height: 1.55; margin: 0 0 24px; max-width: 520px; }
.hero__searchbar { background: var(--surface); padding: 8px; border-radius: var(--radius-xl); border: 1px solid var(--border); display: flex; gap: 8px; box-shadow: var(--shadow-lg); max-width: 540px; }
.hero__searchbar .input-wrap { flex: 1; border: 0; box-shadow: none; }
.hero__visual { position: relative; }
.hero__chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.hero__chips-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); align-self: center; margin-left: 4px; }
@media (max-width: 900px) {
    .hero { padding: 28px 0 16px; }
    .hero__grid { grid-template-columns: 1fr; gap: 24px; }
    .hero__title { font-size: 36px; margin: 10px 0 12px; }
    .hero__lead { font-size: 15px; margin-bottom: 16px; }
    .hero__visual { display: none; }
}

/* ── Detail hero ─────────────────────────────────────────────────────── */
.detail-hero { padding: 40px 0 24px; }
.detail-hero__row { display: flex; gap: 20px; align-items: flex-start; }
.detail-hero__logo { flex-shrink: 0; width: 88px; height: 88px; border-radius: 22px; overflow: hidden; position: relative; background: var(--accent-bg); }
.detail-hero__logo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.detail-hero__logo .avatar { width: 100%; height: 100%; border-radius: 22px; position: absolute; inset: 0; z-index: 0; }
.detail-hero__logo.no-img img { display: none; }
.detail-hero__logo.no-img .avatar { z-index: 1; }
.detail-hero__body { flex: 1; min-width: 0; }
.detail-hero__badges { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.detail-hero__title { font-size: 32px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 0; color: var(--text); }
.detail-hero__sub { font-size: 14px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.detail-hero__cta { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 768px) {
    .detail-hero { padding: 20px 0 16px; }
    .detail-hero__row { gap: 14px; }
    .detail-hero__logo { width: 64px; height: 64px; border-radius: 14px; }
    .detail-hero__logo .avatar { border-radius: 14px; }
    .detail-hero__title { font-size: 22px; }
    .detail-hero__cta { flex-direction: row; }
    .detail-hero__cta .btn { flex: 1; }
}

/* ── Detail layout (content + sidebar) ──────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 16px 0 56px; }
.detail-sidebar { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; gap: 16px; padding: 12px 0 24px; }
    .detail-sidebar { order: 2; }
}

.sticky-tabs { position: sticky; top: 64px; z-index: 10; background: var(--bg); padding-top: 4px; }
@media (max-width: 768px) { .sticky-tabs { top: 0; } }

/* ── Filter bar ──────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar__input { flex: 1; min-width: 240px; max-width: 480px; }
.filter-bar__spacer { flex: 1; }

/* ── Grids ───────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; }
.pagination button {
    min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; font-weight: 600;
    background: transparent; color: var(--text-muted); border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer;
}
.pagination button:hover { background: var(--accent-bg); border-color: var(--border-strong); }
.pagination button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination button:disabled { opacity: .35; pointer-events: none; }
.pagination .pg-info { font-size: 12px; color: var(--text-dim); margin: 0 6px; }

/* ── Toggle ──────────────────────────────────────────────────────────── */
.toggle { width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--border-strong); padding: 3px; position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.toggle__dot { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.toggle.is-on { background: var(--accent); }
.toggle.is-on .toggle__dot { transform: translateX(18px); }

/* ── Utilities ───────────────────────────────────────────────────────── */
.hide-mobile { display: initial; }
.hide-desktop { display: none; }
@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .hide-desktop { display: initial; }
}
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent-text); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.f-num { font-variant-numeric: tabular-nums; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .flex-1 { flex: 1; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ── Prose (long-form text: terms, privacy) ───────────────────────── */
.prose { font-size: 15px; line-height: 1.75; color: var(--text-muted); max-width: 720px; }
.prose h1 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; color: var(--text); margin: 0 0 8px; }
.prose h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; color: var(--text); margin: 36px 0 12px; padding-top: 4px; }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent-text); }
.prose .meta { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.prose .callout { background: var(--accent-soft); border-radius: var(--radius-md); padding: 14px 16px; margin: 14px 0; }
.prose .callout--success { background: var(--success-soft); }
.prose .callout p:last-child { margin-bottom: 0; }

/* ── Page enter anim ──────────────────────────────────────────────── */
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.page-enter { animation: pageIn .35s ease-out both; }

/* ── Telegram WebApp tweaks ──────────────────────────────────────────── */
.tg-fullscreen { min-height: 100vh; min-height: -webkit-fill-available; }
html.tg-fullscreen::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--tg-safe-top, 0px); background: var(--bg); z-index: 99; pointer-events: none; }
.tg-webapp .header { display: none !important; }
.tg-webapp .footer { display: none; }
.tg-webapp .container { padding-top: calc(var(--tg-safe-top, 0px) + 12px); padding-bottom: calc(72px + var(--tg-safe-bottom, 0px)); }
.tg-webapp #page-content { animation: none !important; }

body.tg-verifying::before { content: ''; position: fixed; inset: 0; background: var(--bg); z-index: 9000; }
body.tg-verifying::after { content: ''; position: fixed; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; z-index: 9001; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Phone block overlay */
.tvo-block-overlay { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; }
.tvo-block-card { max-width: 380px; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; box-shadow: var(--shadow-lg); }
.tvo-block-icon { font-size: 48px; margin-bottom: 14px; }
.tvo-block-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.tvo-block-desc { font-size: 14px; color: var(--text-muted); margin: 8px 0 18px; line-height: 1.55; }
