/* JB Values website v2 — dark-first, calm surfaces, one action colour.
   Palette = the app's (app/lib/theme/app_theme.dart): navy dark + cream light, orange accent, cop blue / robber red. */
:root {
  --bg: #0E1422; --bg-2: #0A0F1A; --surface: #161D2F; --surface-2: #1C2438; --surface-3: #252F49;
  --border: rgba(255, 255, 255, .075); --border-2: rgba(255, 255, 255, .13);
  --text: #EEF1F8; --text-2: #C9D0E0; --muted: #8C97AF;
  --accent: #F2871F; --accent-hi: #FF9B3D; --accent-ink: #1A0E02; --accent-soft: rgba(242, 135, 31, .14);
  --blue: #2F6BE6; --blue-t: #6E9BFF; --red: #E0433D; --red-t: #FF7A73; --green: #35C25A; --green-t: #4ADE80;
  --up-bg: rgba(53, 194, 90, .14); --down-bg: rgba(224, 67, 61, .15);
  --brand: linear-gradient(100deg, #2C57D6 0%, #7E3CB0 52%, #CE3F46 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --r: 16px; --r-sm: 12px;
  --head: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F4EEE1; --bg-2: #EDE5D4; --surface: #FFFDF8; --surface-2: #F6F0E3; --surface-3: #ECE3D1;
  --border: #E6DECB; --border-2: #D9CFB8;
  --text: #2B2620; --text-2: #4A4239; --muted: #7A7064;
  --accent: #E8760C; --accent-hi: #F2871F; --accent-ink: #fff; --accent-soft: rgba(242, 135, 31, .13);
  --blue-t: #2F6BE6; --red-t: #D2352F; --green-t: #1E9E46;
  --shadow: 0 8px 24px rgba(60, 45, 20, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
  font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.main { flex: 1; padding-bottom: 56px; }
.section { margin-top: 56px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Icons */
.ic {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
  width: 1em; overflow: hidden; flex-shrink: 0; vertical-align: middle; text-transform: none; letter-spacing: normal;
}
.ic.sm { font-size: 16px; }
.ic.lg { font-size: 26px; }
.ic.xl { font-size: 44px; }
.ic.fill, .fav.on .ic, .btn.on .ic { font-variation-settings: "FILL" 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px rgba(242, 135, 31, .28); }
.btn-accent:hover { background: var(--accent-hi); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-white { background: #fff; color: #141a2a; }
.btn-white:hover { background: #f1f3f8; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn.on { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: var(--surface-2); }

/* Store badges */
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 16px 0 13px; border-radius: 11px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.store svg { width: 24px; height: 24px; flex-shrink: 0; }
.store > span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 10px; letter-spacing: .02em; }
.store b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar-in { display: flex; align-items: center; gap: 10px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand b { font-family: var(--head); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-drop:hover > .nav-link { color: var(--text); background: var(--surface); }
.nav-link.on, .nav-drop.on > .nav-link { color: var(--accent); background: var(--accent-soft); }
.nav-drop { position: relative; }
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.drop-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; padding: 6px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-item { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; }
.drop-item:hover { background: var(--surface-2); }
.drop-item > .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.drop-item > span:not(.ic) { display: flex; flex-direction: column; line-height: 1.3; }
.drop-item b { font-weight: 700; font-size: 14px; }
.drop-item small { color: var(--muted); font-size: 12.5px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Search overlay */
.search-ov { position: fixed; inset: 0; z-index: 80; background: rgba(5, 8, 15, .6); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-box { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.search-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.search-in input { flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: none; font-size: 17px; }
.search-res { max-height: 60vh; overflow: auto; padding: 6px; }
.sr { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.sr.on, .sr:hover { background: var(--surface-2); }
.sr .thumb { width: 46px; height: 46px; }
.sr > span:not(.thumb) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr small { color: var(--muted); font-size: 12.5px; }
.sr em { font-style: normal; font-weight: 800; font-family: var(--head); }
.sr-empty { padding: 18px; color: var(--muted); text-align: center; }
.kbd { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--border-2); border-radius: 6px; padding: 2px 6px; }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow: auto; padding: 0 16px 30px; }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.menu-group { margin-top: 14px; }
.menu-group h4 { font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 4px 8px; }
.menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-links a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.menu-links a .ic { color: var(--accent); }
.menu .stores { justify-content: flex-start; margin-top: 22px; }

/* Page head (accent bar) */
.page-head { position: relative; padding: 4px 0 4px 18px; margin: 30px 0 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), #E0433D); }
.page-head p { margin-top: 6px; color: var(--muted); max-width: 640px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-top: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs span.sep { opacity: .6; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.sec-head p { color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.see-all { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.see-all:hover { color: var(--accent-hi); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.pad { padding: 20px; }
.thumb { border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.thumb img { width: 86%; height: 86%; object-fit: contain; }

/* Pills / tabs */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills.scroll::-webkit-scrollbar { display: none; }
.pill-btn { flex-shrink: 0; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.pill-btn:hover { color: var(--text); border-color: var(--muted); }
.pill-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill-btn small { opacity: .65; font-weight: 700; font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); }
.tag.up { background: var(--up-bg); border-color: transparent; color: var(--green-t); }
.tag.down { background: var(--down-bg); border-color: transparent; color: var(--red-t); }
.tag.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.tag.duped { background: var(--accent-soft); border-color: transparent; color: var(--accent); height: 22px; font-size: 11px; padding: 0 8px; }
.lvl { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.lvl.d0 { color: #8A93A6; } .lvl.d1 { color: #D07A7A; } .lvl.d2 { color: #D9995A; } .lvl.d3 { color: #D9B64B; }
.lvl.d4 { color: #A9C94A; } .lvl.d5 { color: #6CC96C; } .lvl.d6 { color: #3FD06A; } .lvl.d7 { color: #19D489; }
.lvl.r0 { color: #8A93A6; } .lvl.r1 { color: #5DB4E3; } .lvl.r2 { color: #9C7EF0; } .lvl.r3 { color: #E266C4; } .lvl.r4 { color: #EDB04A; }
.lvl.dx, .lvl.rx { color: var(--muted); }
:root[data-theme="light"] .lvl { filter: saturate(1.2) brightness(.82); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.pct { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pct.up { background: var(--up-bg); color: var(--green-t); }
.pct.down { background: var(--down-bg); color: var(--red-t); }
.pct.flat { background: var(--surface-2); color: var(--muted); }
.spark { display: block; overflow: visible; }
.spark .a { opacity: .16; }
.spark.up path { stroke: var(--green-t); } .spark.up .a, .spark.up circle { fill: var(--green-t); }
.spark.down path { stroke: var(--red-t); } .spark.down .a, .spark.down circle { fill: var(--red-t); }
.spark path.l { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: radial-gradient(900px 420px at 18% 0%, rgba(47, 107, 230, .42), transparent 62%), radial-gradient(900px 420px at 82% 0%, rgba(224, 67, 61, .38), transparent 62%), linear-gradient(180deg, #121a2e, var(--bg-2)); }
:root[data-theme="light"] .hero { background: radial-gradient(900px 420px at 18% 0%, rgba(47, 107, 230, .35), transparent 62%), radial-gradient(900px 420px at 82% 0%, rgba(224, 67, 61, .3), transparent 62%), linear-gradient(180deg, #1A2340, #0E1422); color: #EEF1F8; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 210px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 34px); transform: perspective(380px) rotateX(58deg); transform-origin: bottom; mask-image: linear-gradient(0deg, #000, transparent); pointer-events: none; }
.hero-in { position: relative; z-index: 1; text-align: center; padding: 64px 20px 0; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; color: #DDE3F0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); line-height: 1.02; margin: 18px auto 14px; max-width: 900px; letter-spacing: -.03em; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7FA6FF, #FF8A7A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(15.5px, 1.7vw, 18px); color: #C2CADB; max-width: 620px; margin: 0 auto; }
.hero-ctas { position: relative; z-index: 4; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-cars { position: relative; height: clamp(170px, 26vw, 300px); margin: 22px auto 0; max-width: 1000px; }
.hero-cars img { position: absolute; bottom: 8%; max-height: 94%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
.hero-cars img:nth-child(1) { width: 46%; left: 27%; z-index: 3; bottom: 4%; }
.hero-cars img:nth-child(2) { width: 34%; left: 2%; z-index: 2; bottom: 14%; opacity: .92; }
.hero-cars img:nth-child(3) { width: 34%; right: 2%; z-index: 2; bottom: 14%; opacity: .92; }
.hero-cars::before { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 40px; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.hero-stats { position: relative; z-index: 2; display: flex; justify-content: center; gap: 0; margin: 0 auto; max-width: 760px; border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; border-radius: 18px 18px 0 0; background: rgba(10, 15, 26, .72); backdrop-filter: blur(10px); }
.hero-stats div { flex: 1; padding: 16px 10px; text-align: center; }
.hero-stats div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.hero-stats b { display: block; font-family: var(--head); font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; color: #fff; }
.hero-stats small { color: #A3ADC2; font-size: 12.5px; font-weight: 600; }
.under-hero { text-align: center; margin-top: 30px; }

/* Ticker */
.ticker { display: flex; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.ticker-label { display: inline-flex; align-items: center; gap: 5px; padding-left: 20px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); flex-shrink: 0; }
.ticker-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-move { display: inline-flex; gap: 28px; white-space: nowrap; animation: marquee 70s linear infinite; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.tick b { margin-left: 5px; }
.tick.up b { color: var(--green-t); }
.tick.down b { color: var(--red-t); }

/* Item cards (compact, centred) */
.grid { display: grid; gap: 12px; }
.items { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ic-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: border-color .15s, transform .15s, background .15s; }
.ic-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }
.ic-card .thumb { width: 100%; aspect-ratio: 1.35; }
.ic-card .thumb img { transition: transform .2s; }
.ic-card:hover .thumb img { transform: scale(1.06); }
.ic-name { max-width: 100%; overflow-wrap: anywhere; margin-top: 9px; font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.ic-name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ic-val { font-family: var(--head); font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.ic-dup { font-size: 11.5px; color: var(--muted); }
.ic-card .lvl { margin-top: 4px; }
.ic-trend { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 9px; border: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.fav .ic { font-size: 18px; }
.ic-card:hover .fav, .fav.on, .fav:focus-visible { opacity: 1; }
.fav.on { color: #FFC53D; }
@media (hover: none) { .fav { opacity: 1; background: transparent; } }

/* Mover rows (rising / falling) */
.movers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.mv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; }
.mv-list { display: grid; gap: 8px; }
.mv { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: background .15s; }
.mv:hover { background: var(--surface-2); }
.mv .thumb { width: 46px; height: 46px; }
.mv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mv-txt b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-txt small { color: var(--muted); font-size: 12.5px; }
.mv .spark { width: 92px; height: 28px; }

/* Feature + category cards */
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat { padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, background .15s; }
.feat:hover { border-color: var(--border-2); background: var(--surface-2); }
.feat-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); margin-bottom: 6px; }
.feat-ic .ic { font-variation-settings: "FILL" 1; }
.feat h3 { font-size: 17px; }
.feat p { color: var(--muted); font-size: 14px; }
.cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat { display: flex; gap: 12px; align-items: center; padding: 14px; transition: border-color .15s, background .15s; }
.cat:hover { border-color: var(--border-2); background: var(--surface-2); }
.cat .thumb { width: 56px; height: 56px; }
.cat > span:not(.thumb) { min-width: 0; display: flex; flex-direction: column; }
.cat b { font-family: var(--head); font-size: 16.5px; display: flex; align-items: center; gap: 7px; }
.cat b small { font-family: "Plus Jakarta Sans", sans-serif; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.cat em { font-style: normal; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* CTA banner */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 30px 32px; border-radius: 22px; background: var(--brand); color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 90% 0%, rgba(255, 255, 255, .22), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .86); margin-top: 6px; max-width: 520px; }
.cta .stores { justify-content: flex-start; }

/* Lists: change rows */
.list { display: grid; gap: 8px; }
.chg { display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.chg .thumb { width: 54px; height: 54px; }
.chg-main { flex: 1; min-width: 0; }
.chg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chg-name { font-weight: 700; font-size: 15px; }
a.chg-name:hover { color: var(--accent); }
.chg-sec { font-size: 12.5px; color: var(--muted); }
.chg-date { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.chg-vals { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; font-variant-numeric: tabular-nums; }
.chg-vals s { color: var(--muted); font-size: 13.5px; }
.chg-vals b { font-family: var(--head); font-size: 17px; }
.chg-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.sdelta { font-size: 12.5px; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.chg-desc { margin-top: 8px; font-size: 14px; }
.chg-desc summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 13px; list-style: none; display: inline-flex; align-items: center; gap: 2px; }
.chg-desc summary::-webkit-details-marker { display: none; }
.chg-desc[open] summary .ic { transform: rotate(180deg); }
.chg-desc p { margin-top: 6px; color: var(--text-2); line-height: 1.6; }

/* Toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.field { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; }
.field:focus-within { border-color: var(--accent); }
.field.grow { flex: 1; min-width: 220px; }
.field .ic { color: var(--muted); }
.field input, .field select { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.field select { cursor: pointer; appearance: none; padding-right: 18px; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 0 center / 6px 6px no-repeat; }
.field select option { background: var(--surface); }
.filters { padding: 18px; margin-bottom: 14px; display: grid; gap: 16px; }
.filters h4 { font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.range-row { display: flex; gap: 10px; align-items: center; }
.range-row input { height: 42px; width: 170px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); outline: 0; }
.count-line { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; }
.seg button { height: 36px; padding: 0 13px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.seg button.on { background: var(--surface-3); color: var(--text); }
.seg button[data-dir="1"].on { color: var(--green-t); }
.seg button[data-dir="2"].on { color: var(--red-t); }

/* Item page */
.item-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; align-items: center; margin-top: 18px; }
.item-art { aspect-ratio: 1.15; border-radius: 22px; background: radial-gradient(circle at 50% 42%, var(--surface-3), var(--surface) 72%); border: 1px solid var(--border); display: grid; place-items: center; }
.item-art img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .35)); }
.item-top h1 { font-size: clamp(30px, 4.4vw, 46px); }
.item-sub { color: var(--text-2); margin-top: 8px; font-size: 16px; }
.item-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vals { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.val-box { min-width: 180px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.val-box small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.val-box b { font-family: var(--head); font-size: clamp(22px, 3vw, 30px); font-weight: 800; font-variant-numeric: tabular-nums; }
.val-box.main { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.item-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gid { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; border: 0; background: none; padding: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.gid:hover { color: var(--text); }
.chart-card { padding: 18px 18px 14px; }
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--border); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: "Plus Jakarta Sans", sans-serif; }
.chart .ln { fill: none; stroke: var(--green-t); stroke-width: 2.5; stroke-linejoin: round; }
.chart.down .ln.clean { stroke: var(--red-t); }
.chart .ln.duped { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.chart .pt circle { fill: var(--surface); stroke: var(--green-t); stroke-width: 2; }
.chart.down .pt.clean circle { stroke: var(--red-t); }
.chart .pt.duped circle { stroke: var(--accent); }
.chart .pt:hover circle, .chart .pt:focus circle { r: 6; }
.chart-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.lg i { width: 16px; height: 3px; border-radius: 2px; background: var(--green-t); }
.chart.down + .chart-foot .lg.clean i { background: var(--red-t); }
.lg.duped i { background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 7px); }

/* Calculator */
.check { max-width: 560px; margin: 0 auto 16px; padding: 18px; text-align: center; }
.check small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.check .verdict { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 16px; border-radius: 12px; background: var(--surface-2); font-family: var(--head); font-weight: 800; font-size: 22px; }
.check .verdict.win { color: var(--green-t); background: var(--up-bg); }
.check .verdict.loss { color: var(--red-t); background: var(--down-bg); }
.check .verdict.fair { color: var(--blue-t); background: rgba(47, 107, 230, .15); }
.check p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.check .totals { display: flex; justify-content: center; gap: 22px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; }
.check .totals b { font-family: var(--head); font-size: 17px; }
.sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.side { position: relative; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--c); }
.side.give { --c: var(--blue); }
.side.get { --c: var(--red); }
.side-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.side-head b { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.side-head span { color: var(--muted); font-size: 13px; font-weight: 700; }
.side-total { text-align: center; margin-top: 12px; font-family: var(--head); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.side.give .side-total { color: var(--blue-t); }
.side.get .side-total { color: var(--red-t); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 330px; margin: 0 auto; }
.slot { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--border-2); background: var(--bg-2); display: grid; place-items: center; color: var(--muted); cursor: pointer; padding: 0; transition: border-color .15s, color .15s; }
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot .add { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; }
.slot.filled { border-style: solid; border-color: var(--border); background: var(--surface-2); cursor: default; }
.slot.filled img { position: absolute; left: 8%; top: 8%; width: 84%; height: 58%; object-fit: contain; }
.slot-name { position: absolute; left: 4px; right: 4px; bottom: 16px; font-size: 10.5px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-val { position: absolute; left: 4px; right: 4px; bottom: 3px; font-size: 10.5px; font-weight: 800; text-align: center; color: var(--muted); }
.slot-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 7px; border: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); display: grid; place-items: center; cursor: pointer; z-index: 1; }
.slot-x .ic { font-size: 15px; }
.swap { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.swap:hover { color: var(--accent); border-color: var(--accent); }
.calc-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Picker modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(5, 8, 15, .62); backdrop-filter: blur(3px); }
.modal-panel { position: relative; width: min(880px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.modal-head { padding: 16px 16px 12px; display: grid; gap: 12px; border-bottom: 1px solid var(--border); }
.modal-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-title h3 small { color: var(--muted); font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; font-weight: 600; margin-left: 6px; }
.modal-body { overflow: auto; padding: 14px 16px 20px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.modal-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.modal-x { width: 38px; height: 38px; }
.pick-l { position: absolute; top: 5px; right: 5px; z-index: 1; } /* count badge (.pick-n) sits top-left */
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; text-align: center; }
.pick:hover { border-color: var(--accent); }
.pick .thumb { width: 100%; aspect-ratio: 1.35; background: transparent; }
.pick b { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick > span:not(.thumb):not(.pick-n) { font-family: var(--head); font-weight: 800; font-size: 14px; }
.pick-n { position: absolute; top: 6px; left: 6px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; border-radius: 7px; padding: 1px 6px; }

/* Trackers */
.user-form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; max-width: 620px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; }
.user-form:focus-within { border-color: var(--accent); }
.user-form .ic { color: var(--muted); }
.user-form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 16px; }
.result { margin-top: 22px; }
.summary { padding: 22px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 22%, var(--surface)), var(--surface) 55%, color-mix(in srgb, var(--red) 18%, var(--surface))); border: 1px solid var(--border-2); }
.summary-user { display: flex; align-items: center; gap: 12px; }
.summary-user img { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-3); }
.summary-user > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.summary-user b { font-family: var(--head); font-size: 20px; }
.summary-user b a:hover { color: var(--accent); }
.summary-user small { color: var(--muted); }
.summary-big { margin-top: 16px; }
.summary-big small { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; }
.summary-big b { display: block; font-family: var(--head); font-size: clamp(32px, 5vw, 46px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary-big p { margin-top: 4px; color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.summary .stat { background: color-mix(in srgb, var(--bg) 45%, transparent); }
.stat small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat b { font-family: var(--head); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .status { font-family: inherit; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.inv-tile .cnt { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; border-radius: 7px; padding: 1px 7px; }
.inv-tile .dupe-b { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 7px; padding: 1px 7px; }
.trade { padding: 14px; }
.trade-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.trade-head img { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); }
.trade-head > span:not(.pct) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.trade-head a:hover { color: var(--accent); }
.trade-head small { color: var(--muted); font-size: 12.5px; }
.trade-sides { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 8px; align-items: center; }
.trade-side { padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); }
.trade-side.gave { border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.trade-side.got { border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.trade-side h5 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; display: flex; justify-content: space-between; color: var(--muted); }
.trade-side h5 b { color: var(--text); font-family: var(--head); font-size: 13px; letter-spacing: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 5px; }
.thumbs .thumb { width: 42px; height: 42px; border-radius: 9px; }
.trade-arrow { display: grid; place-items: center; color: var(--muted); }
.og { display: flex; align-items: center; gap: 12px; padding: 12px; }
.og .thumb { width: 58px; height: 58px; }
.og-main { flex: 1; min-width: 0; }
.og-main > b { display: block; font-size: 15px; }
.og-main > b a:hover { color: var(--accent); }
.og-owner { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 4px; flex-wrap: wrap; }
.og-owner img { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); }
.og-owner a:hover { color: var(--accent); }
.og-dates { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dupe-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; }
.dupe-row .thumb { width: 48px; height: 48px; }
.dupe-row > span:not(.thumb):not(.rank) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.dupe-row em { font-style: normal; font-family: var(--head); font-weight: 800; color: var(--red-t); white-space: nowrap; }
.rank { width: 26px; text-align: center; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.tracker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Robbery */
.rob-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.rob { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rob-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.rob-head b { color: var(--text); }
.rob-head .btn { margin-left: auto; }
.rob-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rob-item { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 9px; font-size: 13px; font-weight: 700; background: var(--up-bg); color: var(--green-t); }
.rob-item.started { background: var(--accent-soft); color: var(--accent); }
.rob-item small { font-weight: 600; opacity: .85; }

/* Servers */
.server-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.server { overflow: hidden; display: flex; flex-direction: column; }
.server-bg { position: relative; height: 150px; background: var(--brand) center / cover no-repeat; }
.server-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); }
.vip { position: absolute; top: 10px; left: 10px; z-index: 1; height: 24px; padding: 0 9px; border-radius: 8px; background: #FFC53D; color: #3a2a00; font-size: 11px; font-weight: 900; display: grid; place-items: center; letter-spacing: .05em; }
.server-body { padding: 14px 16px 16px; }
.server-body b { font-family: var(--head); font-size: 17px; display: block; }
.server-body small { color: var(--muted); }
.server-actions { display: flex; gap: 8px; margin-top: 12px; }

/* My inventory */
.networth { padding: 22px; border-radius: 20px; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); margin-bottom: 16px; }
.networth small { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; }
.networth b { display: block; font-family: var(--head); font-size: clamp(32px, 5vw, 46px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.networth span { color: var(--muted); font-size: 14px; }
.inv-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; }
.inv-row .thumb { width: 54px; height: 54px; }
.inv-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.inv-row small { color: var(--muted); font-size: 12.5px; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: var(--surface-2); flex-shrink: 0; }
.qty button { width: 32px; height: 32px; border-radius: 9px; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.qty b { min-width: 24px; text-align: center; }

/* Prose / misc */
.prose { line-height: 1.7; color: var(--text-2); }
.prose h3 { margin: 22px 0 8px; color: var(--text); }
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 10px; }
.prose ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.checks li { display: flex; gap: 9px; align-items: center; }
.checks .ic { color: var(--green-t); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty .ic { opacity: .5; }
.empty h3 { color: var(--text); margin: 10px 0 4px; }
.empty a { color: var(--accent); font-weight: 700; }
.empty .btn { margin-top: 14px; }
.empty a.btn-accent { color: var(--accent-ink); }
.loading { display: grid; place-items: center; padding: 40px; grid-column: 1 / -1; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--border-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--down-bg); color: var(--red-t); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 95; background: #1E2740; color: #fff; padding: 11px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; box-shadow: 0 14px 40px rgba(0, 0, 0, .4); max-width: 92vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent-hi); text-decoration: underline; }
.how { margin-top: 26px; }

/* Footer */
.footer { margin-top: 30px; background: var(--bg-2); border-top: 1px solid var(--border); padding: 40px 0 34px; }
.footer-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.footer-in p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 340px; }
.footer h5 { margin: 4px 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.footer ul a:hover { color: var(--accent); }
.footer .stores { justify-content: flex-start; margin-top: 16px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* Responsive */
.only-mobile, .only-mobile-inline { display: none !important; }
@media (max-width: 1000px) {
  .nav, .only-desktop { display: none !important; }
  .only-mobile { display: inline-grid !important; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 14px; }
  .topbar-in { height: 58px; }
  .brand { margin-right: 0; }
  .brand b { font-size: 18px; }
  .section { margin-top: 40px; }
  .page-head { margin: 20px 0 16px; padding-left: 14px; }
  .hero-in { padding-top: 40px; }
  .hero-ctas .btn-lg { height: 48px; padding: 0 18px; font-size: 15px; }
  .hero-cars { height: 150px; margin-top: 14px; }
  .hero-cars img:nth-child(1) { width: 62%; left: 19%; }
  .hero-cars img:nth-child(2), .hero-cars img:nth-child(3) { width: 42%; bottom: 22%; }
  .hero-cars img:nth-child(2) { left: -8%; }
  .hero-cars img:nth-child(3) { right: -8%; }
  .hero-stats { border-radius: 14px 14px 0 0; }
  .hero-stats div { padding: 12px 4px; }
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ic-card { padding: 8px 6px 10px; border-radius: 13px; }
  .ic-name { font-size: 12.5px; margin-top: 6px; }
  .ic-val { font-size: 16px; }
  .ic-dup { display: none; }
  .ic-card .lvl { font-size: 9px; letter-spacing: .04em; }
  .ic-trend { flex-direction: column; gap: 3px; margin-top: 6px; }
  .ic-trend .spark { width: 54px; }
  .pct { height: 21px; font-size: 11.5px; padding: 0 6px; }
  .movers { grid-template-columns: minmax(0, 1fr); }
  .mv .spark { width: 64px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .tracker-grid { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 24px 20px; }
  .item-top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .item-art { max-width: 340px; width: 100%; margin: 0 auto; }
  .vals .val-box { flex: 1; min-width: 0; }
  .item-ctas .btn { flex: 1 1 calc(50% - 8px); }
  .sides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .swap { display: none; }
  .only-mobile-inline { display: inline-flex !important; }
  .side { padding: 10px 8px; border-radius: 14px; }
  .side-head { margin-bottom: 8px; }
  .side-head b { font-size: 11px; }
  .slots { gap: 5px; }
  .slot { border-radius: 9px; }
  .slot .add span:last-child { display: none; }
  .slot-name { font-size: 9px; bottom: 12px; }
  .slot-val { font-size: 9px; bottom: 1px; }
  .slot-x { width: 18px; height: 18px; top: 2px; right: 2px; }
  .side-total { font-size: 17px; }
  .check .verdict { font-size: 19px; }
  .trade-sides { grid-template-columns: minmax(0, 1fr); }
  .trade-arrow { display: none; }
  .chg-date { margin-left: 0; width: 100%; }
  .range-row input { width: 100%; }
  .field.grow { min-width: 0; flex-basis: 100%; }
  .modal { padding: 0; place-items: end stretch; }
  .modal-panel { max-height: 92vh; border-radius: 20px 20px 0 0; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .search-ov { padding-top: 12px; }
}
@media (max-width: 520px) {
  .sides { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .side { padding: 14px; }
  .slots { max-width: 300px; gap: 8px; }
  .slot .add span:last-child { display: inline; }
  .slot-name { font-size: 10.5px; bottom: 16px; }
  .slot-val { font-size: 10.5px; bottom: 3px; }
  .slot-x { width: 22px; height: 22px; top: 4px; right: 4px; }
  .side-total { font-size: 20px; }
  .chart .axis { font-size: 21px; }
  .chart .ln { stroke-width: 4; }
  .chart .ln.duped { stroke-width: 3.5; }
  .chart .pt circle { r: 6; stroke-width: 3; }
}

/* ---------------------------------------------------------------- mobile-first pass
   Most traffic is phones: thumb-reach nav, no input zoom, sticky search/filters,
   batched long lists, full-screen sheets. */
html { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
.ic-card, .chg, .mv { content-visibility: auto; contain-intrinsic-size: auto 250px; }
.mv, .chg { contain-intrinsic-size: auto 80px; }
.more { display: flex; margin: 18px auto 0; min-width: 220px; }

/* Hero search trigger */
.hero-search { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); height: 54px; margin: 24px auto 0; padding: 0 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .09); color: #C2CADB; font-size: 16px; cursor: text; text-align: left; backdrop-filter: blur(6px); }
.hero-search:hover { background: rgba(255, 255, 255, .13); }
.hero-search span:not(.ic) { flex: 1; }
.hero-search kbd { font: 700 12px/1 inherit; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 4px 7px; }
.hero-ctas { margin-top: 14px; }

/* Sticky search + category tabs (values / changes) */
.sticky-bar { position: sticky; top: 64px; z-index: 30; margin: 0 -20px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sticky-bar .toolbar { margin-bottom: 10px; }

/* Tabs above Rising/Falling exist only on phones */
.mv-tabs { display: none; }

/* Touch screens: no sticky hover lifts, give a press feedback instead */
@media (hover: none) {
  .ic-card:hover, .feat:hover, .cat:hover, .mv:hover, .pick:hover { transform: none; background: var(--surface); border-color: var(--border); }
  .ic-card:hover .thumb img { transform: none; }
  .ic-card:active, .feat:active, .cat:active, .mv:active, .pick:active { transform: scale(.98); background: var(--surface-2); }
  .fav { width: 36px; height: 36px; top: 4px; right: 4px; }
}

/* Bottom tab bar — phones only */
.tabbar, .search-close { display: none; }
@media (max-width: 720px) {
  input, select, textarea { font-size: 16px !important; } /* stops iOS zoom-on-focus */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border-2); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--muted); }
  .tabbar a .ic { font-size: 24px; }
  .tabbar a.on { color: var(--accent); }
  .tabbar a.on .ic { font-variation-settings: "FILL" 1; }
  .tab-search { justify-self: center; width: 52px; height: 52px; margin-top: -18px; border-radius: 50%; border: 4px solid var(--bg); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(242, 135, 31, .35); cursor: pointer; }
  .tab-search .ic { font-size: 26px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 24px; }
  .menu { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

  /* Header: brand + search/theme/menu, 58px */
  .top-actions [data-search-open] { display: none; }
  .icon-btn { width: 42px; height: 42px; }

  /* Hero: compact, search first */
  .hero-in { padding: 28px 16px 0; }
  .hero h1 { font-size: 34px; margin: 14px auto 10px; }
  .hero p.lead { font-size: 15px; }
  .hero-search { height: 52px; margin-top: 18px; }
  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-ctas .btn-lg { height: 48px; padding: 0 10px; font-size: 15px; }
  .hero-cars { height: 120px; margin-top: 10px; }
  .hero-stats b { font-size: 20px; }
  .hero-stats small { font-size: 11.5px; }
  .home-top .ic-card:nth-child(n+10) { display: none; }
  .under-hero { margin-top: 20px; }

  /* Sticky bar sits under the 58px header */
  .sticky-bar { top: 58px; margin: 0 -14px; padding: 8px 14px; }
  .sticky-bar .toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
  .sticky-bar .toolbar .field.grow { grid-column: 1 / -1; }
  .sticky-bar .toolbar .field { height: 44px; }
  .sticky-bar .toolbar .btn { height: 44px; }
  .sticky-bar .toolbar .seg { grid-column: 1 / -1; justify-self: start; }
  .pills.scroll { margin: 0 -14px; padding: 0 14px 2px; scroll-padding: 14px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .pill-btn { height: 38px; }
  .count-line { margin: 10px 0 10px; }

  /* Item page: art beside nothing — just smaller */
  .item-top { margin-top: 12px; }
  .item-art { max-width: 260px; aspect-ratio: 1.3; }
  .item-top h1 { font-size: 30px; text-align: center; }
  .item-sub { text-align: center; font-size: 15px; }
  .item-tags { justify-content: center; }
  .vals { margin-top: 14px; }
  .val-box { padding: 10px 12px; }
  .val-box b { font-size: 21px; }
  .gid { display: flex; justify-content: center; width: 100%; }

  /* Calculator: verdict pinned under the header while you build the trade */
  .check { position: sticky; top: 66px; z-index: 20; padding: 12px; margin-bottom: 12px; box-shadow: 0 -8px 0 var(--bg), 0 10px 24px rgba(0, 0, 0, .25); }
  .check small { display: none; }
  .check .verdict { margin-top: 0; font-size: 18px; padding: 6px 12px; }
  .check p { margin-top: 6px; font-size: 13px; }
  .check .totals { margin-top: 8px; padding-top: 8px; }

  /* Picker: full-screen sheet like a native picker */
  .modal { padding: 0; place-items: stretch; }
  .modal-panel { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .modal-head { padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
  .modal-body { padding: 12px 14px calc(24px + env(safe-area-inset-bottom)); }
  .pick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .pick { padding: 6px 4px; border-radius: 10px; }
  .pick b { font-size: 11px; }
  .pick span { font-size: 12.5px; }

  /* Search overlay: full screen */
  .search-ov { padding: 0; background: var(--bg); backdrop-filter: none; }
  .search-box { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
  .search-in { padding-top: env(safe-area-inset-top); }
  .search-res { max-height: none; flex: 1; }
  .search-close { display: grid; }

  /* Home: compact 2-up feature + category cards */
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .feat { padding: 14px; gap: 4px; }
  .feat-ic { width: 34px; height: 34px; margin-bottom: 4px; }
  .feat h3 { font-size: 15px; }
  .feat p { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat { padding: 10px; gap: 10px; }
  .cat .thumb { width: 44px; height: 44px; }
  .cat b { font-size: 14.5px; flex-wrap: wrap; gap: 4px; }
  .cat em { display: none; }

  /* Rising / Falling: one column at a time, switched by tabs */
  .mv-tabs { display: inline-flex; margin-bottom: 12px; }
  .mv-tabs small { opacity: .7; margin-left: 2px; }
  .mv-tabs [data-mv-tab="up"].on { color: var(--green-t); }
  .mv-tabs [data-mv-tab="down"].on { color: var(--red-t); }
  [data-movers] .mv-head { display: none; }
  [data-movers] > div:nth-child(2) { display: none; }
  [data-movers].show-down > div:nth-child(1) { display: none; }
  [data-movers].show-down > div:nth-child(2) { display: block; }

  /* Trackers */
  .user-form { padding: 5px 5px 5px 14px; }
  .user-form .btn { height: 42px; padding: 0 16px; }
  .summary { padding: 18px; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- SEO blocks: guide + FAQ */
.seo-block { display: grid; gap: 22px; }
.prose h2 { font-size: 20px; margin: 22px 0 8px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.faq h2 { margin-bottom: 12px; }
.faq-item { margin-bottom: 8px; padding: 0; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--muted); transition: transform .2s; }
.faq-item[open] summary .ic { transform: rotate(180deg); color: var(--accent); }
.faq-item p { padding: 0 18px 16px; color: var(--text-2); line-height: 1.65; }
.feat .h3 { font-size: 17px; }
.server-body h3 { font-family: var(--head); font-size: 17px; }
.crumbs [aria-current] { color: var(--text-2); }
.count-line .see-all { font-size: 13.5px; margin-left: 4px; }
@media (max-width: 720px) {
  .faq-item summary { padding: 14px; font-size: 15px; }
  .faq-item p { padding: 0 14px 14px; }
  .prose h2 { font-size: 18px; }
}
.hero h1 .h1-kicker { display: block; width: fit-content; margin: 0 auto 12px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font: 700 14px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .02em; color: #FFC88C; }

/* ------------------------------------------------------------------ Trading
   Tiles + marks mirror the app (app/lib/widgets/trade_tile_view.dart):
   C clean (green) · D duped (red) · OG gold · L5 hyper level (purple) · ×2 stack. */
.mk { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 5px; font: 900 10.5px/1 "Plus Jakarta Sans", sans-serif; color: #fff; letter-spacing: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.mk-c { background: #35C25A; } .mk-d { background: #E0433D; } .mk-og { background: #E2A400; } .mk-l { background: #7E5BD8; } .mk-q { background: #1F2533; }
:root[data-theme="light"] .mk-q { background: #3a3329; }
.tt { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.tt.is-d { border-color: color-mix(in srgb, #E0433D 70%, transparent); border-width: 1.5px; }
.tt img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; }
.tt > .ic { position: absolute; inset: 0; margin: auto; height: 1em; color: var(--muted); }
.tt .mks { position: absolute; top: 3px; left: 3px; display: flex; gap: 2px; z-index: 1; }
.tt .mk-l { position: absolute; left: 3px; bottom: 3px; }
.tt .mk-q { position: absolute; right: 3px; bottom: 3px; }
.tt-sp { background: linear-gradient(135deg, var(--sp), color-mix(in srgb, var(--sp) 70%, #000)); border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; padding: 4px; }
.tt-sp .ic { font-size: 26px; position: static; color: #fff; }
.tt-sp b { font-size: 11px; font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.tt-wrap { display: block; }

/* calculator slots now hold tiles */
.slot.filled { cursor: pointer; }
.slot.filled .tt { position: absolute; left: 6%; top: 5%; width: 88%; height: 62%; aspect-ratio: auto; background: transparent; border: 0; }
.slot.filled .tt img { inset: 0; width: 100%; height: 100%; left: 0; top: 0; }
.slot.filled .tt-sp { background: linear-gradient(135deg, var(--sp), color-mix(in srgb, var(--sp) 70%, #000)); border-radius: 9px; }
.slot.filled:has(.tt.is-d) { border-color: color-mix(in srgb, #E0433D 60%, transparent); }
.any-tog { display: flex; margin: 12px auto 0; max-width: 330px; }
.any-tog button { flex: 1; justify-content: center; height: 32px; font-size: 12.5px; }
.any-tog button.on { color: var(--red-t); }
.calc-tip { text-align: center; margin-top: 12px; font-size: 13px; }
.calc-tip .mk { margin: 0 2px; vertical-align: 1px; }
.sp-row .sp-btn .ic { color: var(--sp); }

/* sheets */
.modal-panel.sheet { width: min(460px, 100%); }
.modal-panel.sheet.wide { width: min(560px, 100%); }
.sheet-body { padding: 20px; overflow: auto; display: grid; gap: 12px; }
.sheet-body.center { text-align: center; justify-items: center; }
.sheet-body h3 { font-size: 20px; font-weight: 800; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.lbl { display: grid; gap: 6px; font-weight: 700; font-size: 13.5px; }
.inp { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 500; outline: 0; resize: vertical; }
.inp:focus { border-color: var(--accent); }
select.inp option { background: var(--surface); }
.err-line { color: var(--red-t); font-weight: 700; font-size: 13.5px; }
.si-badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.si-badge .ic { font-size: 30px; }
.btn-google { width: 100%; max-width: 320px; height: 48px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-google b { color: #2F6BE6; font-size: 18px; font-weight: 900; }
.btn-danger { background: var(--down-bg); color: var(--red-t); }
.edit-head { display: flex; gap: 14px; align-items: center; }
.edit-head > span:first-child { width: 78px; flex-shrink: 0; }
.edit-head > span:last-child { display: grid; }
.edit-head b { font-family: var(--head); font-size: 18px; }
.edit-head small { color: var(--muted); }
.edit-head small[data-val] { color: var(--accent); font-weight: 800; font-size: 15px; }
.wide-seg { display: flex; }
.wide-seg button { flex: 1; justify-content: center; }
.wide-seg button[data-dup="1"].on { color: var(--red-t); }
.wide-seg button[data-dup="0"].on { color: var(--green-t); }
.check-row { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.qty { display: flex; align-items: center; gap: 14px; }
.qty b { font-family: var(--head); font-size: 20px; min-width: 40px; text-align: center; }
.pv { padding: 10px; border-radius: 12px; background: var(--bg-2); }
.pv-h { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11.5px; letter-spacing: .07em; }
.pv.give .pv-h { color: var(--blue-t); } .pv.get .pv-h { color: var(--red-t); }
.pv-h span { font-family: var(--head); font-weight: 800; font-size: 14px; letter-spacing: 0; }
.acct { display: flex; gap: 12px; align-items: center; }
.acct > span:not(.av) { display: grid; }
.acct small { color: var(--muted); }
.acct-actions { display: grid; gap: 8px; }
.acct-actions .btn { justify-content: flex-start; }
.av { border-radius: 50%; object-fit: cover; background: var(--surface-3); flex-shrink: 0; }
.av-l { display: inline-grid; place-items: center; background: var(--blue); color: #fff; font-weight: 900; }

/* trade center */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button { height: 42px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-weight: 800; font-size: 14.5px; cursor: pointer; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.trade-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.trade-filters .seg button { height: 30px; font-size: 13px; }
.chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.trade-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; align-items: start; margin-top: 6px; }
.trade-list > p { grid-column: 1 / -1; }
.more-row { display: flex; justify-content: center; margin-top: 16px; }
.tcard { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; }
.tcard.mine { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.tc-top { display: flex; align-items: center; gap: 10px; }
.tc-who { flex: 1; min-width: 0; display: grid; }
.tc-who b, .tc-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-who small { color: var(--muted); font-size: 12.5px; }
.tc-top .st { font-size: 11px; font-weight: 900; text-transform: uppercase; color: var(--muted); background: var(--surface-3); padding: 3px 8px; border-radius: 8px; }
.tc-menu { display: flex; gap: 2px; }
.tc-menu .icon-btn { width: 34px; height: 34px; }
/* Elvebredd layout: GIVES | swap | WANTS side by side, 4 tiles per row (3 on small phones). */
.tc-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: start; }
.tc-side { min-width: 0; }
.tc-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 6px; margin-bottom: 5px; font-size: 10.5px; letter-spacing: .08em; }
.tc-side.give .tc-h { color: var(--blue-t); } .tc-side.get .tc-h { color: var(--red-t); }
.tc-h span { font-family: var(--head); font-weight: 800; font-size: 13.5px; letter-spacing: 0; }
.tc-swap { width: 24px; height: 24px; margin-top: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.tc-swap .ic { font-size: 16px; }
.tcard .tt-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tcard .tt { border-radius: 9px; }
.tcard .tt img { inset: 7%; width: 86%; height: 86%; }
.tcard .tt .mk { min-width: 14px; height: 14px; padding: 0 3px; border-radius: 4px; font-size: 8.5px; }
.tcard .tt .mks { top: 2px; left: 2px; gap: 1px; }
.tcard .tt .mk-l { left: 2px; bottom: 2px; } .tcard .tt .mk-q { right: 2px; bottom: 2px; }
.tcard .tt-sp { padding: 2px; }
.tcard .tt-sp .ic { font-size: 18px; }
.tcard .tt-sp b { font-size: 8.5px; }
@media (max-width: 480px) { .tcard .tt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tc-nlf { font-size: 13px; color: var(--muted); }
.tc-nlf b { color: var(--red-t); font-weight: 900; font-size: 11.5px; margin-right: 4px; }
.tc-note { font-size: 13px; color: var(--muted); font-style: italic; }
.tc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-btns { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.tc-btns .done { color: var(--green-t); font-weight: 800; display: inline-flex; gap: 4px; align-items: center; }
.vchip { padding: 4px 9px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.vchip.win { color: var(--green-t); background: var(--up-bg); } .vchip.loss { color: var(--red-t); background: var(--down-bg); } .vchip.fair { color: var(--blue-t); background: rgba(47, 107, 230, .15); }
.tc-acc { display: grid; gap: 6px; }
.tc-acc > b { font-size: 13px; }
.contact { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--up-bg); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.contact > span:not(.av) { flex: 1; min-width: 0; display: grid; }
.contact small { color: var(--muted); }
.contact .new { font-style: normal; font-size: 9.5px; font-weight: 900; background: var(--accent); color: var(--accent-ink); border-radius: 5px; padding: 1px 5px; margin-left: 4px; }
.contact .dc { justify-self: start; border: 0; background: none; padding: 0; color: #7983F5; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; gap: 3px; align-items: center; }
@media (max-width: 720px) {
  .trade-list { grid-template-columns: 1fr; }
  .tt-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .modal-panel.sheet { align-self: end; height: auto; border-radius: 20px 20px 0 0; border: 1px solid var(--border-2); max-height: 92vh; }
  .modal:has(.sheet) { padding: 0; }
  .sheet-body { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .tabs button { flex: 1; padding: 0 6px; font-size: 14px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
}

/* ------------------------------------------------------------------ Chat (mirror of the app's chat) */
.chat-list { display: grid; gap: 2px; max-width: 720px; }
.chat-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 14px; background: none; cursor: pointer; text-align: left; color: inherit; }
.chat-row:hover { background: var(--surface); }
.cr-main { flex: 1; min-width: 0; display: grid; }
.cr-main b, .cr-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-main small { color: var(--muted); font-size: 13.5px; }
.chat-row.unread .cr-main b { font-weight: 900; }
.chat-row.unread .cr-main small { color: var(--text); font-weight: 700; }
.cr-side { display: grid; justify-items: end; gap: 4px; }
.cr-side small { color: var(--muted); font-size: 12px; }
.chat-row.unread .cr-side small { color: var(--accent); }
.cr-side em { font-style: normal; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 900; border-radius: 10px; padding: 1px 7px; }
.contact .ct-btns { display: grid; gap: 4px; }

.modal-panel.chat-panel { width: min(620px, 100%); height: min(86vh, 820px); }
.ct { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ct-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ct-head .icon-btn { width: 36px; height: 36px; }
.ct-who { flex: 1; min-width: 0; display: grid; }
.ct-who b, .ct-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-who small { color: var(--muted); font-size: 12.5px; }
.ct-menu { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.ct-menu button { border: 1px solid var(--border-2); background: var(--surface); color: var(--text); border-radius: 9px; padding: 6px 10px; font-weight: 700; font-size: 13px; cursor: pointer; }
.ct-trade { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--accent-soft); font-size: 12px; font-weight: 700; }
.ct-trade small { margin-right: 4px; font-weight: 800; }
.tt-row.xs { display: flex; gap: 3px; }
.tt-row.xs .tt { width: 30px; height: 30px; border-radius: 7px; }
.tt-row.xs .mk { min-width: 11px; height: 11px; font-size: 7px; padding: 0 2px; }
.tt-row.sm { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
.ct-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.ct-older { align-self: center; }
.ct-day { align-self: center; font-size: 11.5px; font-weight: 800; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 3px 10px; margin: 8px 0; }
.ct-sys { align-self: center; text-align: center; max-width: 80%; font-size: 12.5px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 6px 12px; }
.bub { max-width: 78%; align-self: flex-start; padding: 8px 12px 5px; border-radius: 16px 16px 16px 4px; background: var(--surface-3); }
.bub.mine { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.bub.pend { opacity: .6; }
.bub p { white-space: pre-wrap; word-break: break-word; }
.bub small { display: block; text-align: right; font-size: 10.5px; opacity: .7; }
.of { align-self: flex-start; width: min(360px, 88%); border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 16px; padding: 10px; display: grid; gap: 8px; background: var(--surface); }
.of.mine { align-self: flex-end; }
.of-h { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.of-h b { color: var(--text); flex: 1; }
.of-h small { color: var(--muted); font-size: 11px; }
.of .pv { padding: 8px; }
.pv.get-g .pv-h { color: var(--green-t); } .pv.give-r .pv-h { color: var(--red-t); }
.of-v { font-weight: 800; font-size: 13px; }
.of-v.win { color: var(--green-t); } .of-v.loss { color: var(--red-t); } .of-v.fair { color: var(--blue-t); }
.of-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.of-st { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; color: var(--muted); }
.of-st.ok { color: var(--green-t); } .of-st.no { color: var(--red-t); }
.of-calc { justify-self: start; border: 0; background: none; color: var(--blue-t); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.ct-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; max-height: 140px; overflow-y: auto; border-top: 1px solid var(--border); }
.ct-blocked { padding: 14px; text-align: center; color: var(--red-t); font-weight: 700; background: var(--down-bg); }
.ct-comp { display: flex; align-items: center; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.ct-comp .inp { flex: 1; min-height: 42px; border-radius: 21px; }
.ct-comp .btn { width: 44px; height: 42px; padding: 0; border-radius: 50%; }
.center { text-align: center; }
@media (max-width: 720px) {
  .modal:has(.chat-panel) { padding: 0; }
  .modal-panel.chat-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; align-self: stretch; }
  .tabs button { padding: 0 4px; font-size: 13px; }
}

/* Read-only Trade Center: app note + verified tick (same blue as the app). */
.app-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 14px; border-color: color-mix(in srgb, #1D9BF0 45%, transparent); }
.app-note > .ic { color: #1D9BF0; font-variation-settings: "FILL" 1; }
.app-note p { font-size: 14px; color: var(--text-2); }
.vtick { color: #1D9BF0; display: inline-flex; vertical-align: -3px; }
.vtick .ic { font-variation-settings: "FILL" 1; }
template { display: none; }

/* Scammer database + shared trade + legal pages */
.scam-list { display: grid; gap: 4px; max-width: 760px; }
.scam-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: inherit; cursor: pointer; text-align: left; }
.scam-row:hover { border-color: var(--red); }
.scam-row .sr-main { flex: 1; min-width: 0; display: grid; }
.scam-row .sr-main small { color: var(--muted); }
.scam-row em, .scam-n { font-style: normal; color: var(--red-t); background: var(--down-bg); border-radius: 10px; padding: 3px 9px; font-weight: 900; font-size: 12.5px; }
.scam-rep { padding: 12px; display: grid; gap: 6px; }
.scam-rep .sr-h { display: flex; justify-content: space-between; gap: 8px; }
.scam-rep .sr-h b { color: var(--red-t); }
.scam-rep .sr-h small { color: var(--muted); }
.proofs { display: flex; gap: 8px; flex-wrap: wrap; }
.proofs img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-2); }
.trade-list.single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.center-box { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 28px; }
.legal h3 { font-size: 16px; margin: 14px 0 6px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal li { color: var(--text-2); line-height: 1.6; }
.legal a { color: var(--accent); }

/* ---------------------------------------------------------------- live trades (home + /trades) */
.live-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #35C25A; vertical-align: 2px; box-shadow: 0 0 0 0 rgba(53, 194, 90, .6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(53, 194, 90, .55); } 70% { box-shadow: 0 0 0 9px rgba(53, 194, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 194, 90, 0); } }
.tcard.fresh { animation: tradeIn .6s ease-out, tradeGlow 2.4s ease-out; }
@keyframes tradeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes tradeGlow { from { border-color: #35C25A; box-shadow: 0 0 0 2px rgba(53, 194, 90, .35); } to { border-color: var(--border); box-shadow: none; } }
.live-note { margin-top: 12px; text-align: center; display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- phones: 2 per row to save space */
@media (max-width: 720px) {
  /* Rising / Falling: compact 2-up cards (name, from → to, sparkline, %) */
  .mv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mv { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "th txt txt" "sp sp pct"; align-items: center; gap: 6px 8px; padding: 9px; border-radius: 13px; }
  .mv .thumb { grid-area: th; width: 38px; height: 38px; }
  .mv-txt { grid-area: txt; }
  .mv-txt b { font-size: 13px; }
  .mv-txt small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mv .spark { grid-area: sp; width: 100%; height: 22px; }
  .mv .pct { grid-area: pct; justify-self: end; }
  .mv-list > p { grid-column: 1 / -1; }

  /* Trackers + VIP servers: 2-up */
  .tracker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tracker-grid .feat { padding: 14px; gap: 4px; }
  .tracker-grid .feat p { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .server-bg { height: 86px; }
  .server-body { padding: 10px; }
  .server-body h3 { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .server-actions { display: grid; gap: 6px; }
  .server-actions .btn { width: 100%; justify-content: center; }

  /* Hero cars: the strip grows with the screen width so the cars never spill up over the buttons */
  .hero-cars { height: auto; aspect-ratio: 2.3 / 1; max-height: 210px; }

  /* Live trades on home: tighter cards */
  [data-home-trades] .tcard { padding: 11px; gap: 8px; }
}
