/* ===== chhota ===== */
:root {
  --bg: #faf7ff; --text: #1a1530; --muted: #6e6886; --border: rgba(60, 40, 120, .12);
  --glass: rgba(255, 255, 255, .72); --glass-strong: rgba(255, 255, 255, .92); --input: rgba(255, 255, 255, .9);
  --a1: #7c3aed; --a2: #ec4899; --a3: #f97316;
  --grad: linear-gradient(110deg, var(--a1), var(--a2) 55%, var(--a3));
  --err: #dc2626; --ok: #059669; --shadow: 0 10px 40px -12px rgba(76, 29, 149, .25);
  --blob1: #c4b5fd; --blob2: #f9a8d4; --blob3: #fdba74;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0a17; --text: #f1eefc; --muted: #9b94b8; --border: rgba(200, 180, 255, .12);
    --glass: rgba(26, 21, 48, .6); --glass-strong: rgba(30, 24, 56, .95); --input: rgba(12, 10, 23, .6);
    --a1: #a78bfa; --a2: #f472b6; --a3: #fb923c; --err: #f87171; --ok: #34d399;
    --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
    --blob1: #4c1d95; --blob2: #831843; --blob3: #7c2d12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0a17; --text: #f1eefc; --muted: #9b94b8; --border: rgba(200, 180, 255, .12);
  --glass: rgba(26, 21, 48, .6); --glass-strong: rgba(30, 24, 56, .95); --input: rgba(12, 10, 23, .6);
  --a1: #a78bfa; --a2: #f472b6; --a3: #fb923c; --err: #f87171; --ok: #34d399;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --blob1: #4c1d95; --blob2: #831843; --blob3: #7c2d12;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, sans-serif;
       overflow-x: hidden; min-height: 100vh; }
h1, h2, h3, .logo { font-family: "Bricolage Grotesque", Inter, sans-serif; letter-spacing: -.02em; }
a { color: inherit; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .82rem; }
.center { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* animated background blobs */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .55;
           animation: float 22s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { background: var(--blob1); top: -18vmax; left: -10vmax; }
.blobs i:nth-child(2) { background: var(--blob2); top: 10vmax; right: -16vmax; animation-delay: -7s; }
.blobs i:nth-child(3) { background: var(--blob3); bottom: -22vmax; left: 20vmax; animation-delay: -14s; opacity: .4; }
@keyframes float { to { transform: translate(6vmax, 5vmax) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .blobs i, .caret { animation: none !important; } }

.glass { background: var(--glass); border: 1px solid var(--border); border-radius: 20px;
         backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow); }

/* nav */
.nav { max-width: 1100px; margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #4a9bf0, #2f6ea8);
             color: #fff; font-size: 1.05rem; transform: rotate(-12deg); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }
.icon-btn { background: var(--glass); border: 1px solid var(--border); color: var(--text); width: 38px; height: 38px;
            border-radius: 50%; cursor: pointer; font-size: 1.05rem; display: grid; place-items: center; }

/* hero */
.hero { max-width: 820px; margin: 0 auto; padding: 40px 16px 20px; text-align: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border);
        font-size: .85rem; font-weight: 500; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1.05; margin: 22px 0 16px; font-weight: 800; }
.caret { font-weight: 300; color: var(--a2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sub { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin: 0 auto 28px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); margin-bottom: 14px; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; font: 600 .92rem Inter, sans-serif; cursor: pointer; }
.tab.active { background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.shorten { padding: 10px; text-align: left; }
.big-input { display: flex; align-items: center; gap: 8px; background: var(--input); border: 1px solid var(--border);
             border-radius: 14px; padding: 6px 6px 6px 14px; transition: .2s; }
.big-input:focus-within { border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 18%, transparent); }
.big-input input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 1.05rem; outline: none; padding: 10px 0; }
.big-input .lead { font-size: 1.1rem; }
.prefix-text { color: var(--muted); font-size: .95rem !important; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px;
       padding: 12px 20px; font: 600 .98rem Inter, sans-serif; color: #fff; background: var(--grad); background-size: 150%;
       cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .15s, background-position .4s, box-shadow .2s;
       box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--a2) 60%, transparent); }
.btn:hover { background-position: 100%; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: var(--glass-strong); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { border-color: var(--a1); }
.btn.full { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.link-btn { background: none; border: 0; color: var(--a1); font: 600 .88rem Inter, sans-serif; cursor: pointer; padding: 10px 8px 4px; text-decoration: none; }

.options { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; padding: 10px 6px 6px; }
label, .label { display: block; font-size: .82rem; font-weight: 600; text-align: left; }
.label { margin: 14px 0 8px; }
input, textarea { width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border);
                  background: var(--input); color: var(--text); font: 400 .95rem Inter, sans-serif; outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--a1); }
.prefix { display: flex; align-items: center; margin-top: 6px; border: 1px solid var(--border); border-radius: 11px; background: var(--input); overflow: hidden; }
.prefix:focus-within { border-color: var(--a1); }
.prefix span { padding-left: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; font-size: .9rem; }
.prefix input { border: 0; margin: 0; padding-left: 1px; background: transparent; }
.error { color: var(--err); font-size: .9rem; margin: 10px 6px 4px; text-align: left; }

/* result */
.result { margin-top: 16px; padding: 22px; display: flex; gap: 22px; text-align: left; align-items: center;
          border-color: color-mix(in srgb, var(--a1) 40%, transparent); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.result-main { flex: 1; min-width: 0; }
.result-main > a { display: block; font: 800 clamp(1.3rem, 4vw, 1.8rem) "Bricolage Grotesque", sans-serif; text-decoration: none;
                   margin: 4px 0; word-break: break-all; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qr-box { text-align: center; }
.qr-box .link-btn { display: block; margin: 0 auto; }
.qr { background: #fff; padding: 10px; border-radius: 14px; line-height: 0; display: inline-block; }
.qr img { width: 132px; height: 132px; image-rendering: pixelated; }

/* features */
.features { max-width: 1100px; margin: 40px auto; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; transition: transform .2s; }
.feature:hover { transform: translateY(-4px); }
.f-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
         background: color-mix(in srgb, var(--a1) 14%, transparent); }
.feature h3 { margin: 14px 0 4px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

/* sections */
.section { max-width: 1100px; margin: 60px auto; padding: 0 16px; scroll-margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.9rem; }
.count { font-size: 1rem; color: var(--muted); font-weight: 600; }
.search { width: 220px; margin: 0; border-radius: 999px; }

.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { padding: 16px 18px; border-radius: 16px; }
.stat b { display: block; font: 800 1.6rem "Bricolage Grotesque", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat span { color: var(--muted); font-size: .85rem; }

.link-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.link-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; }
.link-item .info { min-width: 0; }
.link-item .short { font-weight: 700; color: var(--a1); text-decoration: none; }
.link-item .long { color: var(--muted); font-size: .85rem; }
.badges { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.badge { font-size: .7rem; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--a1) 14%, transparent); font-weight: 600; }
.badge.warn { background: color-mix(in srgb, var(--err) 16%, transparent); color: var(--err); }
.spark { width: 90px; height: 30px; }
.clicks { text-align: right; min-width: 52px; }
.clicks b { display: block; font: 800 1.25rem "Bricolage Grotesque", sans-serif; line-height: 1.1; }
.clicks span { font-size: .75rem; color: var(--muted); }
.actions { display: flex; gap: 6px; }
.act { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--glass-strong);
       color: var(--text); cursor: pointer; font-size: .95rem; display: grid; place-items: center; }
.act:hover { border-color: var(--a1); }
.act.del:hover { border-color: var(--err); color: var(--err); }
.empty { text-align: center; padding: 34px; color: var(--muted); }
.empty-emoji { font-size: 2.4rem; }

/* bio builder */
.bio-builder { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
.bio-editor { padding: 22px; }
.bio-editor > label { margin-top: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.themes { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-dot { width: 42px; height: 42px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0;
             outline: 2px solid var(--border); }
.theme-dot.active { border-color: var(--bg); outline: 2px solid var(--a1); }
.blink-row { display: grid; grid-template-columns: 1fr 1.4fr 36px; gap: 8px; margin-bottom: 8px; }
.blink-row input { margin: 0; }
.bio-save { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.phone { position: sticky; top: 20px; width: 330px; height: 640px; border-radius: 44px; padding: 12px; background: #111;
         box-shadow: var(--shadow), inset 0 0 0 2px #333; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #111; border-radius: 20px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 34px; overflow-y: auto; padding: 56px 18px 24px; }
.phone-screen .bio-link { pointer-events: none; }

/* bio page (public + preview) */
.bio-page { --bt: #fff; --bl: rgba(255,255,255,.18); --bb: rgba(255,255,255,.35); color: var(--bt); min-height: 100vh; }
.bio-page .blobs { display: none; }
.theme-aurora { background: linear-gradient(160deg, #6d28d9, #db2777 60%, #f97316); }
.theme-sunset { background: linear-gradient(170deg, #f97316, #e11d48 55%, #7e22ce); }
.theme-ocean { background: linear-gradient(165deg, #0ea5e9, #2563eb 55%, #312e81); }
.theme-midnight { background: radial-gradient(circle at 30% 0%, #312e81, #0b0a14 70%); }
.theme-mint { background: linear-gradient(165deg, #6ee7b7, #a7f3d0 50%, #fef9c3); --bt: #064e3b; --bl: rgba(255,255,255,.55); --bb: rgba(6,78,59,.2); }
.theme-candy { background: linear-gradient(160deg, #fbcfe8, #ddd6fe 55%, #bfdbfe); --bt: #3b0764; --bl: rgba(255,255,255,.6); --bb: rgba(59,7,100,.15); }
.bio-wrap { max-width: 560px; margin: 0 auto; padding: 60px 18px 40px; text-align: center; }
.bio-avatar { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 3rem;
              background: var(--bl); border: 2px solid var(--bb); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.phone .bio-avatar { width: 76px; height: 76px; font-size: 2.3rem; }
.bio-name { font: 800 1.7rem "Bricolage Grotesque", sans-serif; margin: 0; }
.bio-handle { margin: 2px 0 0; opacity: .75; font-size: .92rem; }
.bio-text { margin: 12px auto 0; max-width: 420px; opacity: .92; }
.bio-links { display: grid; gap: 12px; margin-top: 26px; }
.bio-link { display: block; padding: 15px 18px; border-radius: 16px; background: var(--bl); border: 1px solid var(--bb); color: var(--bt);
            text-decoration: none; font-weight: 600; backdrop-filter: blur(10px); transition: transform .15s, background .2s; }
.bio-link:hover { transform: scale(1.025); background: var(--bb); }
.mini-brand { display: inline-block; margin-top: 34px; font-size: .8rem; opacity: .8; text-decoration: none; }

/* small pages (404, password, expired) */
.mini-page { display: grid; place-items: center; padding: 16px; }
.mini-card { max-width: 420px; width: 100%; padding: 36px 28px; text-align: center; }
.mini-card h1 { margin: 6px 0; font-size: 1.7rem; }
.mini-card p { color: var(--muted); }
.mini-emoji { font-size: 3rem; }
.mini-card .mini-brand { color: var(--muted); }
.pw-form { display: flex; gap: 8px; margin-top: 10px; }
.pw-form input { margin: 0; }

/* modal */
.modal { width: min(720px, calc(100vw - 32px)); max-height: 88vh; padding: 26px; color: var(--text); background: var(--glass-strong); }
.modal::backdrop { background: rgba(10, 6, 25, .55); backdrop-filter: blur(4px); }
.close { position: absolute; top: 14px; right: 14px; }
.modal h3 { margin: 0 0 4px; font-size: 1.5rem; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.chart-grid > * { min-width: 0; }
.chart-card { padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--glass); }
.chart-card h4 { margin: 0 0 10px; font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.chart-card.wide { grid-column: 1 / -1; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: .88rem; margin-bottom: 8px; }
.hbar .track { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--a1) 12%, transparent); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 99px; background: var(--grad); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.bars .bar { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad); min-height: 3px; position: relative; }
.bars .bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
                          background: var(--text); color: var(--bg); font-size: .72rem; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.bar-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.big-num { font: 800 2.6rem "Bricolage Grotesque", sans-serif; line-height: 1; }
.qr-modal { text-align: center; }
.qr-modal .qr img { width: 240px; height: 240px; }

.footer { max-width: 1100px; margin: 80px auto 0; padding: 30px 16px 40px; text-align: center; border-top: 1px solid var(--border); }
.small-logo { font-size: 1.2rem; }
.small-logo .logo-mark { width: 28px; height: 28px; font-size: .9rem; }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg);
         padding: 11px 20px; border-radius: 999px; font-weight: 500; opacity: 0; transition: .25s; pointer-events: none; z-index: 99; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* stats page */
.stats-page .wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; }

/* flags, places, tables */
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; vertical-align: -2px; margin-right: 8px; box-shadow: 0 0 0 1px var(--border); }
.flag.globe { box-shadow: none; display: inline-block; text-align: center; font-size: .85rem; line-height: 15px; }
.hbar-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar b small { color: var(--muted); font-weight: 500; font-size: .75rem; margin-left: 2px; }
.bars.dense { gap: 2px; }
.bars.dense .bar { border-radius: 3px 3px 1px 1px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { animation: fadein .4s; }
@keyframes fadein { from { opacity: 0; } }
.nowrap { white-space: nowrap; }
.code-pill { font-weight: 600; color: var(--a1); background: color-mix(in srgb, var(--a1) 10%, transparent); padding: 2px 8px; border-radius: 999px; font-size: .82rem; }

/* auth */
.auth-wrap { display: grid; place-items: center; padding: 20px 16px 60px; }
.auth-card { width: 100%; max-width: 420px; padding: 28px; }
.auth-card h1 { margin: 18px 0 4px; font-size: 1.7rem; }
.auth-card > p.muted { margin: 0 0 6px; }
.auth-card label { margin-top: 14px; }
.auth-card .btn.full { margin-top: 20px; padding: 14px; }
.auth-card .small a { color: var(--a1); font-weight: 600; }
.full-tabs { display: flex; width: 100%; margin: 0; }
.full-tabs .tab { flex: 1; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-40%); background: none; border: 0; cursor: pointer; font-size: 1rem; opacity: .6; }
.hint { margin: 8px 6px 2px; }

/* landing showcase */
.showcase { max-width: 1000px; margin: 50px auto 0; padding: 0 16px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.showcase-card { padding: 22px; transform: rotate(-1.5deg); }
.showcase-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.showcase-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.showcase-kpis div { background: var(--glass-strong); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.showcase-kpis b { display: block; font: 800 1.3rem "Bricolage Grotesque", sans-serif; }
.showcase-kpis span { font-size: .75rem; color: var(--muted); }
.showcase-text h2 { font-size: 2.2rem; margin: 0 0 10px; }
.showcase-text p { margin: 0 0 20px; font-size: 1.05rem; }

/* dashboard */
.dash-nav { max-width: 1200px; gap: 16px; }
.dash-tabs { margin: 0; }
.dash-tabs .tab { text-decoration: none; }
.dash { max-width: 1200px; margin: 0 auto; padding: 10px 16px 60px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 14px 0 18px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; font-size: 2rem; }
.dash-head p { margin: 2px 0 0; }
.range { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); }
.range button { border: 0; background: none; color: var(--muted); font: 600 .85rem Inter, sans-serif; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.range button.active { background: var(--glass-strong); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; border-radius: 18px; }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi b { display: block; font: 800 2.1rem "Bricolage Grotesque", sans-serif; line-height: 1.15; margin: 4px 0 2px; }
.kpi em { font-style: normal; font-size: .8rem; font-weight: 600; }
.kpi em.up { color: var(--ok); }
.kpi em.down { color: var(--err); }
.dash-grid { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.dash-grid .chart-card { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.live-card { margin-top: 14px; padding: 18px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 4px; vertical-align: 1px;
            box-shadow: 0 0 0 0 var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } }
.top-link { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.top-link:last-child { border-bottom: 0; }
.top-link .info { min-width: 0; }
.rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .8rem;
        background: color-mix(in srgb, var(--a1) 14%, transparent); color: var(--a1); }
.empty h3 { margin: 6px 0; color: var(--text); }
.user-menu { position: relative; }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font: 700 1rem Inter, sans-serif; cursor: pointer; }
.user-drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 14px 16px; z-index: 20; display: flex; flex-direction: column; gap: 2px;
             background: var(--glass-strong); }
.user-drop hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0 0; }
.user-drop .link-btn { text-align: left; padding: 8px 0 0; color: var(--err); }

@media (max-width: 900px) {
  .bio-builder { grid-template-columns: 1fr; }
  .phone { position: relative; top: 0; margin: 0 auto; width: 300px; height: 580px; }
  .features { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase { grid-template-columns: 1fr; }
  .dash-nav { flex-wrap: wrap; }
  .dash-tabs { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-tabs .tab { padding: 8px 10px; font-size: .85rem; }
  .kpi b { font-size: 1.6rem; }
  .top-link { grid-template-columns: 28px 1fr auto; }
  .top-link .btn { display: none; }
  .big-input { flex-wrap: wrap; padding: 6px; }
  .big-input .lead { padding-left: 8px; }
  .big-input .btn { width: 100%; }
  .options { grid-template-columns: 1fr; }
  .result { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .result-actions { justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr 1fr; }
  .totals .stat:last-child { grid-column: 1 / -1; }
  .link-item { grid-template-columns: 1fr auto; }
  .link-item .spark { display: none; }
  .link-item .actions { grid-column: 1 / -1; }
  .search { width: 100%; }
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .row2 { grid-template-columns: 1fr 90px; }
}
