/* CHECKER mini app — matte dark by default, light on request. One type scale, one spacing scale, one icon set. */
@font-face { font-family: "Vazirmatn"; src: url("/static/fonts/Vazirmatn-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0b0c0f; --bg-2: #0f1115; --card: #14161b; --card-2: #1b1e24; --press: #22262d;
  --line: rgba(255, 255, 255, .065); --line-2: rgba(255, 255, 255, .11);
  --text: #f3f4f6; --text-2: #a3a9b4; --text-3: #6d7481;
  --gold: #e8b84f; --gold-2: #f7da92; --gold-3: #b7872b; --gold-ink: #1d1505; --gold-soft: rgba(232, 184, 79, .12);
  --up: #2fc48c; --up-soft: rgba(47, 196, 140, .13); --down: #f25570; --down-soft: rgba(242, 85, 112, .13);
  --glow: radial-gradient(120% 70% at 50% -10%, rgba(232, 184, 79, .10), transparent 60%);
  --shadow: 0 10px 30px rgba(0, 0, 0, .38);
  --r-sm: 12px; --r: 16px; --r-lg: 22px;
  --pad: 16px; --bar-h: 56px; --tab-h: 64px;
  --font: "Vazirmatn", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: dark;
}
:root.light {
  --bg: #f3f4f7; --bg-2: #f7f8fa; --card: #ffffff; --card-2: #f0f1f4; --press: #e6e8ee;
  --line: rgba(15, 18, 24, .07); --line-2: rgba(15, 18, 24, .12);
  --text: #12141a; --text-2: #565d6b; --text-3: #8b92a0;
  --gold: #b98a22; --gold-2: #d9a93c; --gold-3: #8f6912; --gold-ink: #ffffff; --gold-soft: rgba(185, 138, 34, .11);
  --up: #10a06b; --up-soft: rgba(16, 160, 107, .1); --down: #de3550; --down-soft: rgba(222, 53, 80, .09);
  --glow: radial-gradient(120% 70% at 50% -10%, rgba(185, 138, 34, .09), transparent 60%);
  --shadow: 0 8px 24px rgba(20, 24, 33, .08);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.5; font-weight: 450;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; min-height: 100vh;
  background-image: var(--glow); background-repeat: no-repeat; background-size: 100% 420px;
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
.n { font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; display: inline-block; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.up { color: var(--up); } .down { color: var(--down); } .gold { color: var(--gold); }
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ------------------------------------------------------------------ app bar */
.bar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #f7da92, #e8b84f 55%, #b7872b); box-shadow: 0 4px 14px rgba(232, 184, 79, .25); }
.logo svg { width: 18px; height: 18px; stroke: #1d1505; stroke-width: 2.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.word { font-weight: 800; font-size: 16px; letter-spacing: .6px; direction: ltr; line-height: 1; }
.word b { font-weight: 800; color: var(--gold); }
.live { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); margin-top: 3px; direction: ltr; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 196, 140, .55); } 70% { box-shadow: 0 0 0 6px rgba(47, 196, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 196, 140, 0); } }
.bar-actions { display: flex; align-items: center; gap: 6px; }
.pill-btn { height: 32px; padding: 0 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 650;
  display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.pill-btn .i { width: 15px; height: 15px; color: var(--text-3); }
.icon-btn { width: 32px; height: 32px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); }
.icon-btn .i { width: 17px; height: 17px; }
.pill-btn:active, .icon-btn:active { background: var(--press); }

/* ------------------------------------------------------------------ layout */
.view { padding: 4px var(--pad) calc(var(--tab-h) + 30px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; outline: none; }
.page { animation: in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 2px 14px; }
.head h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.2px; }
.head p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
.head .obj3d { width: 64px; height: 64px; flex: none; }
.sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 2px 10px; }
.sec h2 { margin: 0; font-size: 15.5px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.sec h2 .count { color: var(--text-3); font-weight: 600; font-size: 13px; }
.sec .link { color: var(--gold); font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 2px; }
.sec .link .i { width: 15px; height: 15px; }
.hint { color: var(--text-3); font-size: 12px; margin: -4px 2px 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 16px; }
.stack { display: grid; gap: 10px; }
.note { color: var(--text-3); font-size: 12px; text-align: center; margin: 14px 0 0; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px 18px 18px 18px; min-height: 172px;
  background: linear-gradient(155deg, #251d0e 0%, #17140e 38%, var(--card) 70%);
  border: 1px solid rgba(232, 184, 79, .22); display: flex; align-items: center; gap: 6px; }
:root.light .hero { background: linear-gradient(155deg, #fff4dc 0%, #fffaf0 40%, #ffffff 75%); border-color: rgba(185, 138, 34, .25); }
.hero::before { content: ""; position: absolute; inset-inline-end: -12%; top: -30%; width: 62%; height: 160%; background: radial-gradient(closest-side, rgba(232, 184, 79, .17), transparent); pointer-events: none; }
.hero .copy { position: relative; z-index: 2; flex: 1; min-width: 0; }
.eyebrow { font-size: 11.5px; font-weight: 750; letter-spacing: .3px; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.eyebrow .i { width: 14px; height: 14px; }
.hero h2 { margin: 7px 0 4px; font-size: 19px; line-height: 1.4; font-weight: 800; }
.hero p { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.6; }
.hero .stage { position: relative; z-index: 1; width: 128px; height: 140px; flex: none; margin-inline-end: -8px; }
.hero .cta { margin-top: 14px; display: flex; gap: 8px; }
model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-height: 0px; }
.m3d-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); }
.m3d-fallback .i { width: 56px; height: 56px; stroke-width: 1.2; }

/* the live price strip */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.quote { padding: 11px 12px 10px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); text-align: start; min-width: 0; }
.quote:active { background: var(--card-2); }
.quote .top { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; color: var(--text-2); }
.quote .val { margin-top: 7px; font-weight: 800; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.quote .chg { font-size: 11.5px; font-weight: 700; margin-top: 1px; }

/* ------------------------------------------------------------------ services grid */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.svc { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 2px 6px; border-radius: var(--r-sm); font-size: 12px; font-weight: 650; color: var(--text-2); text-align: center; line-height: 1.3; }
.svc:active { background: var(--card); }
.tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--gold); flex: none; }
.tile .i { width: 23px; height: 23px; stroke-width: 1.7; }
.tile.soft { background: linear-gradient(150deg, var(--gold-soft), transparent 70%), var(--card); border-color: rgba(232, 184, 79, .2); }

/* ------------------------------------------------------------------ search + chips + segmented */
.search { position: relative; margin-bottom: 10px; }
.search .i { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; }
.search input { width: 100%; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); padding-inline: 40px 14px; outline: none; font-size: 14px; }
.search input:focus { border-color: rgba(232, 184, 79, .45); }
.search input::placeholder { color: var(--text-3); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1) 12px; padding: 0 var(--pad) 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 650; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip .i { width: 15px; height: 15px; }
.chip .c { opacity: .7; font-weight: 600; font-size: 12px; }
.seg { display: flex; padding: 3px; gap: 3px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.seg button { flex: 1; height: 34px; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.seg button.on { background: var(--card-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset, 0 2px 6px rgba(0, 0, 0, .18); }
.seg.mini { margin: 0; flex: none; }
.seg.mini button { height: 30px; padding: 0 11px; font-size: 12.5px; flex: none; }

/* ------------------------------------------------------------------ list rows */
.list { overflow: hidden; }
.thead { display: flex; gap: 12px; padding: 0 14px 7px; color: var(--text-3); font-size: 11.5px; font-weight: 700; }
.thead .a { flex: 1; } .thead .b { text-align: end; } .thead .c { width: 70px; text-align: end; }
.row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; text-align: start; position: relative; color: inherit; }
.row + .row::before { content: ""; position: absolute; top: 0; inset-inline: 64px 14px; height: 1px; background: var(--line); }
button.row:active, a.row:active { background: var(--card-2); }
.row .main { flex: 1; min-width: 0; }
.row .t1 { font-weight: 750; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.row .t2 { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .side { text-align: end; flex: none; max-width: 46%; }
.row .p1 { font-weight: 750; font-size: 14.5px; white-space: nowrap; }
.row .p2 { font-size: 11.5px; color: var(--text-3); margin-top: 1px; white-space: nowrap; }
.row .chgc { width: 70px; flex: none; display: flex; justify-content: flex-end; }
.row .chev { color: var(--text-3); width: 18px; height: 18px; }
.star { width: 24px; height: 24px; display: grid; place-items: center; color: var(--text-3); flex: none; margin-inline-start: -4px; }
.star .i { width: 18px; height: 18px; }
.star.on { color: var(--gold); }
.star.on .i { fill: currentColor; }

/* logos: real coin logos and flags; a badge when there is none */
.lg { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--card-2); }
.lg img { width: 100%; height: 100%; object-fit: cover; }
.lg .ltr { font-size: 11.5px; font-weight: 800; color: #fff; letter-spacing: -.2px; direction: ltr; }
.lg.flag { box-shadow: 0 0 0 1px var(--line-2) inset; }
.lg.au { background: radial-gradient(circle at 35% 28%, #fff4cf, #f0c75a 36%, #b98a22 74%, #7b5a12); box-shadow: inset 0 0 0 2px rgba(255, 236, 170, .45), inset 0 -3px 6px rgba(0, 0, 0, .25); }
.lg.au .ltr { color: #3b2a05; font-size: 11px; }
.lg.ag { background: radial-gradient(circle at 35% 28%, #ffffff, #d7dbe2 40%, #9aa1ad 78%, #6b7280); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), inset 0 -3px 6px rgba(0, 0, 0, .2); }
.lg.ag .ltr { color: #2a2f38; }
.lg.cu { background: radial-gradient(circle at 35% 28%, #ffd2b0, #d9844e 40%, #9c4f22 78%, #6b3415); box-shadow: inset 0 0 0 2px rgba(255, 210, 170, .4); }
.lg.cu .ltr { color: #2b1405; }
.lg.oil { background: radial-gradient(circle at 35% 28%, #5a5f6b, #23262d 55%, #0e1013); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.lg.oil .ltr { color: #f7da92; font-size: 10.5px; }
.lg.s { width: 20px; height: 20px; }
.lg.s .ltr { font-size: 7.5px; }
.gimg { width: 44px; height: 44px; border-radius: 12px; flex: none; overflow: hidden; background: var(--card-2); display: grid; place-items: center; color: var(--text-3); }
.gimg img { width: 100%; height: 100%; object-fit: cover; }
.fb { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text-3); background: radial-gradient(circle at 50% 40%, var(--gold-soft), transparent 70%); }
.fb .i { width: 40%; height: 40%; max-width: 40px; stroke-width: 1.4; }

/* change pills */
.cp { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 66px; height: 26px; padding: 0 7px; border-radius: 8px; font-size: 12px; font-weight: 750; direction: ltr; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp.up { background: var(--up-soft); color: var(--up); } .cp.down { background: var(--down-soft); color: var(--down); } .cp.flat { background: var(--card-2); color: var(--text-3); }
.cp svg { width: 8px; height: 8px; fill: currentColor; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 750; background: var(--card-2); color: var(--text-2); white-space: nowrap; }
.tag.gold { background: var(--gold-soft); color: var(--gold); }
.tag.green { background: var(--up-soft); color: var(--up); }
.prizes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

/* ------------------------------------------------------------------ buttons */
.btn { height: 46px; border-radius: 13px; padding: 0 18px; font-weight: 750; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: linear-gradient(180deg, #f5d27e, #e3ad3c); color: #1d1505; box-shadow: 0 6px 18px rgba(232, 184, 79, .2); }
:root.light .btn { background: linear-gradient(180deg, #d4a33a, #b4841c); color: #fff; }
.btn.ghost { background: var(--card-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.sm { height: 38px; font-size: 13px; width: auto; padding: 0 14px; border-radius: 11px; }
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: scale(.985); filter: brightness(.96); }
.btns { display: flex; gap: 8px; margin-top: 14px; }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.stat { padding: 13px 13px 12px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.stat b { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; }
.stat small { color: var(--text-3); font-size: 12px; font-weight: 600; }

.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 13.5px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv > span { color: var(--text-2); }
.kv b { font-weight: 750; }

.set { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; min-height: 58px; text-align: start; position: relative; }
.set + .set::before { content: ""; position: absolute; top: 0; inset-inline: 60px 14px; height: 1px; background: var(--line); }
.set .lab { display: flex; align-items: center; gap: 12px; font-weight: 650; min-width: 0; }
.set .lab .tile { width: 34px; height: 34px; border-radius: 10px; }
.set .lab .tile .i { width: 18px; height: 18px; }
.set .lab small { display: block; color: var(--text-3); font-size: 12px; font-weight: 500; }
button.set:active { background: var(--card-2); }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); position: relative; flex: none; transition: background .2s, border-color .2s; }
.switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: inset-inline-start .2s; }
.switch.on { background: var(--up); border-color: var(--up); }
.switch.on::after { inset-inline-start: 20px; }

/* ------------------------------------------------------------------ deal cards */
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.deal { width: 160px; flex: none; scroll-snap-align: start; text-align: start; padding: 8px 8px 11px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.deal:active { background: var(--card-2); }
.deal .pic { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--card-2); display: grid; place-items: center; color: var(--text-3); }
.deal .pic img { width: 100%; height: 100%; object-fit: cover; }
.deal .off { position: absolute; top: 7px; inset-inline-start: 7px; height: 22px; padding: 0 7px; border-radius: 7px; background: var(--up); color: #03170e; font-weight: 800; font-size: 11.5px; display: grid; place-items: center; direction: ltr; }
.deal .mk { position: absolute; bottom: 7px; inset-inline-start: 7px; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.deal .nm { margin: 9px 2px 0; font-weight: 750; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal .md { margin: 0 2px; color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal .pr { margin: 8px 2px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.deal .pr b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.deal .pr s { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.deals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deals-grid .deal { width: auto; }

/* ------------------------------------------------------------------ leaderboard */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 8px; align-items: end; margin-bottom: 12px; }
.pod { text-align: center; padding: 14px 8px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.pod.first { padding-top: 18px; border-color: rgba(232, 184, 79, .35); background: linear-gradient(180deg, var(--gold-soft), transparent 70%), var(--card); }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; margin: 0 auto 8px; position: relative; flex: none; font-size: 16px; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pod.first .av { width: 54px; height: 54px; font-size: 19px; }
.av .md { position: absolute; bottom: -4px; inset-inline-end: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #1d1505; border: 2px solid var(--card); }
.pod b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod small { color: var(--text-3); font-size: 12px; }
.rank { width: 24px; text-align: center; font-weight: 800; color: var(--text-3); flex: none; }
.row.me { background: var(--gold-soft); }
.row .av { width: 36px; height: 36px; margin: 0; font-size: 14px; }

/* ------------------------------------------------------------------ sheet + toast + skeleton + empty */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fade .2s; }
.sheet { position: absolute; inset-inline: 0; bottom: 0; max-height: 90vh; overflow-y: auto; background: var(--bg-2); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line-2);
  padding: 8px var(--pad) calc(22px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2, .8, .2, 1); max-width: 640px; margin: 0 auto; }
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 4px auto 14px; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.sh-head { display: flex; align-items: center; gap: 12px; }
.sh-head .lg, .sh-head .gimg { width: 48px; height: 48px; }
.sh-head h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.sh-head small { color: var(--text-3); font-size: 12.5px; }
.big { font-size: 31px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; margin-top: 16px; }
.big small { font-size: 14px; color: var(--text-3); font-weight: 650; letter-spacing: 0; }
.chart-box { position: relative; margin-top: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 8px 4px 4px; }
.chart { width: 100%; height: 180px; display: block; touch-action: none; }
.chart-tip { position: absolute; transform: translate(-50%, -135%); padding: 4px 8px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 11.5px; font-weight: 750; white-space: nowrap; pointer-events: none; direction: ltr; }
.toast { position: fixed; inset-inline: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); bottom: calc(var(--tab-h) + 26px + env(safe-area-inset-bottom)); z-index: 80;
  padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 650; font-size: 13px; box-shadow: var(--shadow); animation: up .2s; }
.skel { border-radius: 8px; background: linear-gradient(90deg, var(--card-2) 0%, var(--press) 40%, var(--card-2) 80%); background-size: 300% 100%; animation: shim 1.3s infinite linear; }
@keyframes shim { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.empty { text-align: center; padding: 28px 18px; color: var(--text-3); font-size: 13px; line-height: 1.7; }
.empty .tile { margin: 0 auto 12px; color: var(--text-3); }
.demo { margin: 2px 0 12px; padding: 8px 12px; border-radius: 11px; background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 650; text-align: center; }

/* ------------------------------------------------------------------ floating converter button + converter */
.fab { position: fixed; inset-inline-end: 18px; bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(160deg, #f7da92, #e8b84f 60%, #b7872b); color: #1d1505; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(232, 184, 79, .35); animation: pop .3s cubic-bezier(.2, .8, .2, 1.3); }
.fab .i { width: 24px; height: 24px; stroke-width: 2.2; }
.fab:active { transform: scale(.95); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.conv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.conv .side { min-width: 0; }
.conv input { width: 100%; }
.conv .side { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.conv input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 22px; font-weight: 800; direction: ltr; text-align: left; }
[dir="rtl"] .conv input { text-align: right; }
.conv select { max-width: 48%; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); padding: 0 8px; font-weight: 700; font-size: 13px; outline: none; }
.conv .swap { justify-self: center; width: 40px; height: 40px; margin: -20px 0; z-index: 2; position: relative; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--gold); }
.conv .swap .i { width: 18px; height: 18px; transform: rotate(90deg); }

/* ------------------------------------------------------------------ bottom tabs */
.tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--line); }
.tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 650; }
.tabs button .i { width: 23px; height: 23px; stroke-width: 1.7; }
.tabs button.on { color: var(--gold); }
.tabs button.on .i { stroke-width: 2.1; }

.splash { display: grid; place-items: center; min-height: 64vh; }
.splash .logo { width: 58px; height: 58px; border-radius: 18px; animation: breathe 1.6s ease-in-out infinite; }
.splash .logo svg { width: 32px; height: 32px; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 8px 30px rgba(232, 184, 79, .45); } }

@media (min-width: 520px) { .deals-grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
