/* LJNS Finds — design system. Monochrome, chrome headlines, one accent (profit green). */
:root {
  --bg: #050505;
  --bg-2: #0b0b0c;
  --surface: #141415;
  --surface-2: #1c1c1e;
  --surface-3: #2a2a2d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --green: #30d158;
  --green-2: #28b84c;
  --green-soft: rgba(48, 209, 88, 0.12);
  --amber: #ffd60a;
  --amber-soft: rgba(255, 214, 10, 0.12);
  --red: #ff453a;
  --blue: #2997ff;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* System fonts: San Francisco on Apple devices, Segoe UI on Windows — no third-party font requests */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
  --tab-h: 0px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  font-feature-settings: 'ss01', 'cv11', 'tnum';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(255, 255, 255, 0.9); color: #050505; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.green { color: var(--green); }
.amber { color: var(--amber); }
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-2); }
.display { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 0; }
.h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text-2); letter-spacing: -0.015em; margin: 0; }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
/* Apple-style two-tone headlines: solid white, then a quiet grey continuation */
.chrome { color: var(--text); }
.chrome-soft { color: #86868b; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- layout ---------- */
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { width: min(880px, 100%); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.spacer { flex: 1; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 22px; }
.liquid {
  background-color: rgba(255, 255, 255, 0.045);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.015) 45%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.glow-card { position: relative; isolation: isolate; overflow: hidden; }
.glow-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.06), transparent 45%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.glow-card:hover::after { opacity: 0.6; }

/* ---------- buttons & pills ---------- */
.press { transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s; }
.press:active { transform: scale(0.96); transition-duration: 80ms; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 44px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn-white { background: #fff; color: #050505; }
.btn-white:hover { box-shadow: 0 0 40px -6px rgba(255, 255, 255, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-quiet { color: var(--text-2); padding: 0 10px; }
.btn-quiet:hover { color: var(--text); }
.btn-green { background: var(--green); color: #04130a; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.icon-btn svg { width: 18px; height: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  font-size: 13.5px; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.pill:hover { color: var(--text); border-color: var(--line-2); }
.pill.on { color: #050505; background: #fff; border-color: #fff; }
.pill .count { font-size: 12px; opacity: 0.6; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, 0.06); white-space: nowrap; }
.chip.green { color: var(--green); background: var(--green-soft); }
.chip.amber { color: var(--amber); background: var(--amber-soft); }
.chip svg { width: 13px; height: 13px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--green); animation: ping 1.8s var(--ease) infinite; }
.live-dot.off { background: var(--text-3); }
.live-dot.off::after, .live-dot.warn::after { display: none; }
.live-dot.warn { background: var(--amber); }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }

.scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: none; }
.bleed { margin: 0 -24px; padding: 0 24px; scroll-padding: 0 24px; }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; outline: none;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { height: auto; min-height: 84px; padding: 11px 14px; resize: vertical; font-size: 13.5px; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background 0.25s var(--ease); cursor: pointer; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.3s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.toggle-row:first-child { border-top: 0; }
.toggle-row .t { font-weight: 500; }
.toggle-row .d { font-size: 13px; color: var(--text-2); }

input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 50%), var(--surface-3) var(--p, 50%)); }
input[type='range']::-moz-range-track { height: 4px; border-radius: 4px; background: var(--surface-3); }
input[type='range']::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
input[type='range']::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; }

/* ---------- top nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(5, 5, 5, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 16px; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 15px; height: 15px; color: #050505; }
.logo small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--text-3); font-weight: 500; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; }
.nav-link { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); }
.nav-link:hover { color: var(--text); }
.nav-link.on { color: var(--text); background: rgba(255, 255, 255, 0.08); }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --nav-h: 56px; --tab-h: 64px; }
  .wrap { padding: 0 16px; }
  .bleed { margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .nav-links { display: none; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(12, 12, 13, 0.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; color: var(--text-3); font-weight: 500; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--text); }
  body.has-tabbar main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px); }
}

/* ---------- deal card ---------- */
.deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 18px; }
.deal { display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%; }
.deal-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.deal-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.deal:hover .deal-media img { transform: scale(1.035); }
.deal-media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }
.deal-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; }
.deal-badges .chip { background: rgba(10, 10, 12, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; }
.deal-badges .chip.green { background: var(--green); color: #04130a; }
.deal-body { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.deal-meta { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-title { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-prices { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.deal-price { font-size: 15px; font-weight: 600; }
.deal-resell { font-size: 13px; color: var(--text-3); }
.deal-profit { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--green); }
.deal.hot .deal-media { box-shadow: 0 0 0 1.5px var(--green), 0 18px 50px -24px rgba(48, 209, 88, 0.6); }
.deal.bought { opacity: 0.5; }
.deal.fresh { animation: rise 0.8s var(--ease) both; }
.deals.row-scroll { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; gap: 16px; }
.deals.row-scroll::-webkit-scrollbar { display: none; }
.deals.row-scroll .deal { width: 240px; flex: none; scroll-snap-align: start; }
@media (max-width: 760px) {
  .deals { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .deals.row-scroll .deal { width: 62vw; max-width: 260px; }
  .deal-media { border-radius: 16px; }
  .deal-title { font-size: 14px; }
  .deal-profit { margin-left: 0; width: 100%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat {
  position: relative; text-align: left; padding: 20px; border-radius: var(--r-lg); min-height: 168px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; overflow: hidden;
}
.cat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cat-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); }
.cat-icon svg { width: 24px; height: 24px; }
.cat-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.cat-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.cat-best { font-size: 13px; color: var(--green); font-weight: 500; }
.cat .arrow { position: absolute; top: 20px; right: 20px; color: var(--text-3); transition: transform 0.4s var(--ease), color 0.3s; }
.cat:hover .arrow { color: var(--text); transform: translate(2px, -2px); }
.cat .arrow svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat { min-height: 140px; padding: 16px; border-radius: 22px; }
  .cat-icon { width: 40px; height: 40px; }
  .cat-name { font-size: 17px; }
}

/* ---------- sheet (modal on desktop, bottom sheet on phone) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.35s var(--ease); display: flex; align-items: center; justify-content: center; padding: 24px; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: relative; width: min(560px, 100%); max-height: min(88vh, 900px); overflow: auto; overscroll-behavior: contain;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
  transform: translateY(24px) scale(0.98); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
}
.sheet.wide { width: min(980px, 100%); }
.sheet-backdrop.open .sheet { transform: none; opacity: 1; }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; background: linear-gradient(var(--bg-2) 70%, transparent); }
.sheet-head .h3 { flex: 1; }
.sheet-body { padding: 4px 22px 24px; }
.sheet-handle { display: none; }
@media (max-width: 760px) {
  .sheet-backdrop { align-items: flex-end; padding: 0; }
  .sheet, .sheet.wide { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; border-bottom: 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .sheet-backdrop.open .sheet { transform: translateY(var(--drag, 0px)); }
  .sheet.dragging { transition: none; }
  .sheet-handle { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 8px auto 0; }
  .sheet-head { padding: 10px 16px 10px; }
  .sheet-body { padding: 4px 16px 24px; }
}

/* ---------- deal detail ---------- */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); aspect-ratio: 4 / 5; background: var(--surface); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); transition: background 0.3s, transform 0.3s; }
.gallery-dots i.on { background: #fff; transform: scale(1.2); }
.gallery-nav { position: absolute; top: calc(50% - 30px); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 12, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; opacity: 0; transition: opacity 0.3s; }
.gallery:hover .gallery-nav { opacity: 1; }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-nav svg { width: 18px; height: 18px; }
.profit-hero { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.profit-hero .big { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.045em; color: var(--green); line-height: 1; }
.profit-hero .roi { font-size: 15px; color: var(--text-2); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; }
.kv .k { color: var(--text-2); }
.kv .v { text-align: right; font-variant-numeric: tabular-nums; }
.kv .sep { grid-column: 1 / -1; height: 1px; background: var(--line); }
.kv .total { font-weight: 600; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.note.warn { color: #f5e6a3; background: var(--amber-soft); border-color: rgba(255, 214, 10, 0.22); }
.note.warn svg { color: var(--amber); }
.note.good svg { color: var(--green); }
.actions-sticky { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 14px 0 2px; background: linear-gradient(transparent, var(--bg-2) 30%); flex-wrap: wrap; }
.actions-sticky .btn { flex: 1; }
@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .gallery-track { border-radius: 18px; }
}

/* market band chart */
.band { position: relative; height: 92px; margin: 6px 4px 0; }
.band-track { position: absolute; left: 0; right: 0; top: 40px; height: 6px; border-radius: 6px; background: var(--surface-3); }
.band-range { position: absolute; top: 40px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.35); }
.band-mark { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; white-space: nowrap; transition: left 0.9s var(--ease); }
.band-mark .lbl { color: var(--text-2); }
.band-mark .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.band-mark .pin { width: 2px; height: 20px; border-radius: 2px; background: #fff; }
.band-mark.buy .pin { background: #fff; height: 22px; }
.band-mark.sell .pin { background: var(--green); }
.band-mark.sell .val { color: var(--green); }
.band-mark.median { top: 54px; flex-direction: column-reverse; }
.band-mark.median .pin { height: 12px; background: var(--text-3); }
.band-mark.median .lbl, .band-mark.median .val { color: var(--text-3); font-weight: 500; }

/* ---------- stats / kpis ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.kpi .v { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--text-2); margin-top: 6px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .col { width: 100%; max-width: 44px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #fff, #8b909b); transform-origin: bottom; animation: grow 1s var(--ease) both; min-height: 3px; }
.bars .col.today { background: linear-gradient(180deg, var(--green), var(--green-2)); }
.bars .n { font-size: 12px; font-weight: 600; }
.bars .d { font-size: 11px; color: var(--text-3); }
@keyframes grow { from { transform: scaleY(0); } }
.hbar { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 14px; padding: 10px 0; font-size: 14px; border-top: 1px solid var(--line); }
.hbar:first-child { border-top: 0; }
.hbar .track { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 8px; background: #fff; transform-origin: left; animation: growx 1s var(--ease) both; }
@keyframes growx { from { transform: scaleX(0); } }
@media (max-width: 600px) { .hbar { grid-template-columns: 96px 1fr auto; gap: 10px; font-size: 13px; } }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.calc-inputs { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.calc-out { padding: 28px; background: linear-gradient(180deg, #101011, #0b0b0c); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.slider-row .top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.slider-row .top b { color: var(--text); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.slider-row .hint { font-size: 12px; color: var(--text-3); }
.calc-big { font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.calc-big.neg { color: var(--text-2); }
.calc-range { font-size: 13.5px; color: var(--text-2); }
.calc-steps { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.calc-steps .s { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.calc-steps .s b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-steps .s.lim b { color: var(--amber); }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .calc-inputs, .calc-out { padding: 22px; }
}

/* ---------- misc ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: calc(24px + var(--tab-h) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; font-size: 14px; background: rgba(28, 28, 30, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line-2); box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.7); animation: toastIn 0.5s var(--ease) both; max-width: calc(100vw - 32px); }
.toast img { width: 36px; height: 44px; object-fit: cover; border-radius: 8px; }
.toast svg { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; margin-right: 4px; }
.toast.out { animation: toastOut 0.3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.empty { text-align: center; padding: 64px 20px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty svg { width: 34px; height: 34px; color: var(--text-3); }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: 16px; background: rgba(28, 28, 30, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.7); z-index: 60; animation: toastIn 0.3s var(--ease) both; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text); text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, 0.07); }
.menu svg { width: 16px; height: 16px; color: var(--text-2); }
.menu .who { padding: 10px 12px 8px; font-size: 12.5px; color: var(--text-3); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: linear-gradient(135deg, #3a3a3e, #1c1c1e); border: 1px solid var(--line-2); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* flip plan + legit check */
.plan-step { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.plan-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 600; background: #fff; color: #050505; margin-top: 1px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tier { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tier b { font-size: 16px; font-weight: 600; }
.legit { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.legit summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 14px; font-weight: 500; }
.legit summary::-webkit-details-marker { display: none; }
.legit summary svg { width: 17px; height: 17px; color: var(--text-2); flex: none; }
.legit summary span { flex: 1; }
.legit summary svg:last-child { transition: transform 0.35s var(--ease); }
.legit[open] summary svg:last-child { transform: rotate(45deg); }
.legit ol { margin: 0; padding: 0 18px 16px 36px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-2); }

/* ---------- layout safety: the page never scrolls sideways, only the strips that should ---------- */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
html { overscroll-behavior-x: none; }
/* grid tracks may shrink below their content (long titles, photos) instead of widening the page */
.deals { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.cats { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.grid-fields { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.deal, .deal-body, .cat, .card, .detail > *, .kpi, .tier, .field, .sheet-body { min-width: 0; }
/* horizontal strips scroll on their own; reaching their end never drags the page */
.scroller, .row-scroll, .seg, .gallery-track { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
pre, code { max-width: 100%; overflow-x: auto; }
@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .deals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(0, 1fr); }
  /* iOS zooms the whole page into any field under 16px */
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .bleed { margin: 0 -14px; padding: 0 14px; scroll-padding: 0 14px; }
}
/* toasts: one readable line on desktop, full width above the tab bar on phones */
.toast { width: max-content; max-width: min(460px, calc(100vw - 32px)); }
.toast > span { min-width: 0; }
@media (max-width: 760px) {
  .toast-wrap { left: 12px; right: 12px; transform: none; align-items: stretch; }
  .toast { width: 100%; max-width: none; }
}
.tier b, .tier .tiny:not(.faint) { white-space: nowrap; }
@media (max-width: 420px) {
  .tiers { gap: 6px; }
  .tier { padding: 10px 9px; }
  .tier b { font-size: 15px; }
}
@media (max-width: 760px) { .btn.sm-tight { padding: 0 10px; } }
.logo { white-space: nowrap; flex: none; }
.nav .wrap > .btn { flex: none; }
@media (max-width: 370px) {
  .nav .btn { height: 34px; padding: 0 12px; font-size: 13.5px; }
  .nav .btn.sm-tight { padding: 0 8px; }
  .logo { gap: 8px; font-size: 15px; }
}
/* "not open yet" sheet */
.soon { text-align: center; padding: 4px 0 6px; }
.soon .h2 { margin: 22px 0 8px; }
.soon .muted { max-width: 400px; margin: 0 auto; }
.soon-photo { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px dashed var(--line-2); }
.soon-photo img { width: 100%; height: 100%; object-fit: cover; }
.soon-ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; color: var(--text-3); font-size: 14px; }
.soon-ph svg { width: 28px; height: 28px; }
.soon-form { margin: 22px auto 0; max-width: 440px; text-align: left; }
.soon-row { display: flex; gap: 8px; }
.soon-row .input { flex: 1; min-width: 0; }
.soon-row .btn { flex: none; }
.soon-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; color: var(--text-3); line-height: 1.45; cursor: pointer; }
.soon-consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: #fff; }
.soon-consent a { color: var(--text-2); text-decoration: underline; }
.soon-err { margin-top: 10px; }
.soon-done { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 22px auto 0; max-width: 440px; padding: 14px 16px; border-radius: 14px; background: var(--green-soft); color: var(--text-2); font-size: 14px; text-align: left; }
.soon-done svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.soon-done b { color: var(--text); font-weight: 500; }
.soon-demo { margin-top: 14px; }
@media (max-width: 480px) {
  .soon-row { flex-direction: column; }
  .soon-row .btn { width: 100%; }
  .soon-row .input { flex: none; width: 100%; }
}
