[hidden] { display: none !important; }
:root {
  --bg: #f7f7fa;
  --surface: #ffffff;
  --surface-2: #f2f2f6;
  --text: #14141c;
  --muted: #62626f;
  --border: #e4e4ec;
  --brand: #e1214f;
  --brand-ink: #b8173e;
  --brand-soft: #fde8ee;
  --ink: #15151f;
  --gold: #d4a017;
  --silver: #8f98a8;
  --bronze: #b8743f;
  --good: #188a4a;
  --warn: #c27c0e;
  --bad: #cc2f2f;
  --good-soft: #e5f5ec;
  --warn-soft: #fbf1df;
  --bad-soft: #fbe9e9;
  --shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 8px 24px rgba(20, 20, 40, .06);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e13; --surface: #17171f; --surface-2: #20202a; --text: #ececf2; --muted: #a0a0b0;
    --border: #2b2b38; --brand: #ff4d74; --brand-ink: #ff7593; --brand-soft: #3a1622; --ink: #ececf2;
    --gold: #e8bb3a; --silver: #b0b8c6; --bronze: #d38f58; --good: #46c27c; --warn: #e8a93a; --bad: #ff6b6b;
    --good-soft: #15291e; --warn-soft: #2e2412; --bad-soft: #321818; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e13; --surface: #17171f; --surface-2: #20202a; --text: #ececf2; --muted: #a0a0b0;
  --border: #2b2b38; --brand: #ff4d74; --brand-ink: #ff7593; --brand-soft: #3a1622; --ink: #ececf2;
  --gold: #e8bb3a; --silver: #b0b8c6; --bronze: #d38f58; --good: #46c27c; --warn: #e8a93a; --bad: #ff6b6b;
  --good-soft: #15291e; --warn-soft: #2e2412; --bad-soft: #321818; --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Inter", "Hind Siliguri", system-ui, sans-serif; }
.bn, h1, h2, h3 { font-family: "Hind Siliguri", "Inter", system-ui, sans-serif; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.logo img { height: 34px; width: auto; border-radius: 6px; background: #fff; }
.logo span small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.nav nav { margin-left: auto; display: flex; gap: 4px; }
.nav nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav nav a:hover, .nav nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }

/* Search */
.search-card { margin: 28px 0 8px; padding: 20px; border-radius: var(--radius); background: var(--ink); color: #fff; position: relative; }
:root[data-theme="dark"] .search-card { background: var(--surface); border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .search-card { background: var(--surface); border: 1px solid var(--border); } }
.search-card h2 { margin: 0 0 4px; font-size: 20px; }
.search-card p { margin: 0 0 14px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.search-box { position: relative; }
.search-box > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }
.search-box input { width: 100%; padding: 15px 16px 15px 46px; font-size: 16px; border-radius: 12px; border: 2px solid transparent; background: #fff; color: #14141c; }
.search-box.light input { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 12px 14px 12px 44px; font-size: 15px; }
.search-box input:focus { outline: none; border-color: var(--brand); }
.hits { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; display: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); max-height: min(420px, 60vh); overflow: auto; }
.hits.open { display: block; }
.hit { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); text-decoration: none; }
.hit:last-child { border-bottom: 0; }
.hit:hover, .hit.active { background: var(--surface-2); }
.hit .meta { flex: 1; min-width: 0; }
.hit .nm { font-weight: 600; }
.hit .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-absent { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag-top { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #fff; white-space: nowrap; }
.empty { padding: 16px; color: var(--muted); }

/* Avatar */
.av { flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Shared bits */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 13px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.stat .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 700; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.muted { background: var(--surface-2); color: var(--muted); }
.chip.gold { background: var(--gold); color: #fff; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
footer { color: var(--muted); font-size: 13px; padding: 48px 0 32px; text-align: center; }

/* Flash / banner / empty */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-weight: 600; }
.flash.warning { background: var(--warn-soft); color: var(--warn); }
.flash.error { background: var(--bad-soft); color: var(--bad); }
.claim { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.claim.done { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.claim-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface); }
.claim.done .claim-ic { color: var(--good); font-weight: 800; }
.claim-tx { flex: 1; display: flex; flex-direction: column; }
.claim-tx span { color: var(--muted); font-size: 14px; }
.claim-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; font-family: "Hind Siliguri", "Inter", sans-serif; font-size: 15px; }
.claim-btn:hover { background: var(--brand-ink); }
.claim-btn.ghost { background: var(--surface-2); color: var(--text); }
.empty-page { text-align: center; padding: 80px 0 40px; }
.empty-page p { color: var(--muted); }
@media (max-width: 720px) {
  .claim { flex-wrap: wrap; }
  .claim-btn { width: 100%; }
}

/* Mobile: nav ek line e */
@media (max-width: 720px) {
  .nav .wrap { gap: 8px; }
  .logo span small { display: none; }
  .nav nav a { padding: 8px; font-size: 13px; }
}
@media (max-width: 480px) {
  .logo span { display: none; }
  .logo img { height: 32px; }
}
.nav nav a.dash-link { background: var(--brand-soft); color: var(--brand-ink); }
