:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #f3f4f8;
  --muted: #9097ab;
  --faint: #5d6478;
  --accent: #a78bfa;
  --accent-2: #f472b6;
  --sell: #3ddc97;
  --buy: #5aa9ff;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(167, 139, 250, 0.35); }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; will-change: transform; }
.b1 { width: 520px; height: 520px; background: #6d4aff; top: -160px; left: -120px; animation: drift1 22s ease-in-out infinite alternate; }
.b2 { width: 460px; height: 460px; background: #0ea5a4; top: 30%; right: -160px; opacity: 0.28; animation: drift2 26s ease-in-out infinite alternate; }
.b3 { width: 380px; height: 380px; background: #db2777; bottom: -140px; left: 30%; opacity: 0.22; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, 80px) scale(0.9); } }
@keyframes drift3 { to { transform: translate(120px, -140px) scale(1.2); } }
.grain {
  position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 60; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 8, 12, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--border); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand b { font-weight: 800; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-icon { width: 16px; height: 26px; border-radius: 5px; border: 2px solid var(--accent); position: relative; }
.brand-icon::after { content: ''; position: absolute; top: 2px; left: 50%; width: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); }
.pill-my { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 99px; background: linear-gradient(90deg, #cc0001 50%, #010066 50%); color: #fff; }
.nav-status { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.nav-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 0 currentColor; }
.nav-status.ok .dot { background: var(--sell); animation: ping 2s infinite; color: rgba(61, 220, 151, 0.6); }
.nav-status.warn .dot { background: var(--warn); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-2); background: var(--surface-2); }
.user-btn { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); padding: 4px 12px 4px 4px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.menu { position: absolute; right: clamp(16px, 4vw, 40px); top: 60px; min-width: 200px; background: #12141d; border: 1px solid var(--border-2); border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); animation: pop 0.25s var(--spring); transform-origin: top right; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 9px; font-size: 14px; }
.menu button:hover { background: var(--surface-2); }
@keyframes pop { from { opacity: 0; transform: scale(0.92) translateY(-6px); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform 0.25s var(--spring), background 0.2s, border-color 0.2s, box-shadow 0.3s; white-space: nowrap; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; box-shadow: 0 8px 30px -8px rgba(124, 58, 237, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(124, 58, 237, 0.9); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 12px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.threads-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fff; color: #000; font-weight: 800; font-size: 13px; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 0; }
.link:hover { text-decoration: underline; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #0b0b12; font-size: 11px; font-weight: 800; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; padding: clamp(36px, 7vw, 90px) clamp(16px, 4vw, 40px) 40px; min-height: min(88vh, 820px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 600; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 12px #ff4d6d; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.headline { font-size: clamp(36px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin: 22px 0 18px; }
.headline .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.headline .w > span { display: inline-block; transform: translateY(105%); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 0.05s); }
.headline .grad { background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 60%, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { to { transform: none; } }
.sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 560px; margin: 0 0 28px; }
.sub b { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 38px; max-width: 600px; }
.stat { padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat.sell b { color: var(--sell); }
.stat.buy b { color: var(--buy); }

.hero-visual { position: relative; display: grid; place-items: center; perspective: 1200px; min-height: 520px; }
.phone {
  position: relative; width: 270px; height: 550px; border-radius: 48px; padding: 12px;
  background: linear-gradient(145deg, #2b2d36, #0e0f14 45%, #22242d);
  box-shadow: 0 0 0 2px #3a3d48, 0 40px 90px -20px rgba(109, 74, 255, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; transition: transform 0.6s var(--ease);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -14px; } }
.island { position: absolute; top: 22px; left: 50%; width: 90px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: linear-gradient(180deg, #0f1220, #0a0b11); }
.screen::before, .screen::after { content: ''; position: absolute; left: 0; right: 0; height: 70px; z-index: 2; pointer-events: none; }
.screen::before { top: 0; background: linear-gradient(#0f1220, transparent); }
.screen::after { bottom: 0; background: linear-gradient(transparent, #0a0b11); }
.feed { display: flex; flex-direction: column; gap: 10px; padding: 56px 12px 12px; animation: feed 28s linear infinite; }
@keyframes feed { to { transform: translateY(-50%); } }
.mini { padding: 11px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 11.5px; }
.mini .top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.mini .m { font-weight: 700; font-size: 13px; }
.mini .p { font-weight: 800; color: var(--sell); }
.mini.buy .p { color: var(--buy); }
.float-chip { position: absolute; padding: 9px 14px; border-radius: 14px; background: rgba(18, 20, 29, 0.85); border: 1px solid var(--border-2); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); animation: bob 5s ease-in-out infinite; }
.c1 { top: 12%; left: -4%; animation-delay: -1s; }
.c2 { bottom: 20%; right: -6%; animation-delay: -2.5s; }
.c3 { bottom: 6%; left: 6%; animation-delay: -4s; }

/* ---------- banner ---------- */
.banner { max-width: 1200px; margin: 0 auto 10px; padding: 0 clamp(16px, 4vw, 40px); }
.banner-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(167, 139, 250, 0.08)); border: 1px solid rgba(251, 191, 36, 0.3); }
.banner-card h4 { margin: 0 0 4px; font-size: 15px; }
.banner-card p { margin: 0; color: var(--muted); font-size: 14px; }
.banner-card ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.banner-card ol li.done { color: var(--sell); }
.banner-ico { font-size: 22px; line-height: 1; }

/* ---------- sections ---------- */
section { position: relative; }
.listings, .market, .how { max-width: 1200px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.035em; margin: 0; }
.section-head p { color: var(--muted); margin: 0; }
.t-sell { color: var(--sell); }

/* ---------- toolbar ---------- */
.toolbar { position: sticky; top: 62px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; margin: 0 -10px; border-radius: 18px; transition: background 0.3s, box-shadow 0.3s; }
.toolbar.stuck { background: rgba(13, 15, 22, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--border); }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.seg button { position: relative; z-index: 1; background: none; border: 0; padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); transition: color 0.25s; }
.seg button.active { color: #0b0b12; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 10px; background: #fff; transition: transform 0.45s var(--spring), width 0.45s var(--spring), background 0.3s; }
.seg[data-active='sell'] .seg-pill { background: var(--sell); }
.seg[data-active='buy'] .seg-pill { background: var(--buy); }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: border-color 0.2s, box-shadow 0.2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 100%; color: var(--text); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.track { width: 42px; height: 24px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border-2); position: relative; transition: background 0.25s; }
.thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.35s var(--spring); }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track .thumb { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.filters { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease), opacity 0.3s, margin 0.3s; opacity: 0; }
.filters.open { grid-template-rows: 1fr; opacity: 1; margin: 6px 0 10px; }
.filters-inner { overflow: hidden; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 20px; }
.filters.open .filters-inner { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.fgroup { display: flex; flex-direction: column; gap: 8px; }
.fgroup > label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.fgroup-end { justify-content: flex-end; flex-direction: row; align-items: center; gap: 16px; }
select, .range input { height: 42px; padding: 0 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-2); outline: 0; width: 100%; }
select:focus, .range input:focus { border-color: var(--accent); }
.range { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--border-2); font-size: 13px; font-weight: 600; transition: all 0.2s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #0b0b12; transform: scale(1.04); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border); cursor: pointer; text-align: left; overflow: hidden;
  opacity: 0; transform: translateY(26px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.25s, box-shadow 0.3s;
  transition-delay: var(--d, 0s);
}
.card.in { opacity: 1; transform: none; }
.card.out { opacity: 0 !important; transform: scale(0.94) !important; transition-duration: 0.2s; transition-delay: 0s !important; }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(167, 139, 250, 0.16), transparent 45%); }
.card:hover { border-color: var(--border-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7); }
.card:hover::before { opacity: 1; }
.card.sell { --c: var(--sell); }
.card.buy { --c: var(--buy); }
.card.unknown { --c: var(--muted); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.intent { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.new-dot { font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: var(--accent-2); color: #fff; animation: blink 2s infinite; }
.c-time { margin-left: auto; white-space: nowrap; }
.c-model { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.c-model.none { color: var(--muted); font-size: 16px; font-weight: 700; }
.c-price { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.c-price small { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-right: 6px; }
.c-price.none { font-size: 14px; font-weight: 600; color: var(--faint); }
.c-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.spec.cond-baru { color: #34d399; border-color: rgba(52, 211, 153, 0.35); }
.spec.cond-likenew { color: #a7f3d0; }
.spec.cond-rosak { color: var(--danger); border-color: rgba(251, 113, 133, 0.35); }
.spec.cond-refurb { color: var(--warn); }
.spec.tag { background: transparent; color: var(--muted); }
.c-text { color: #c7cbd8; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; word-break: break-word; }
.c-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.c-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.c-user { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-loc { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-go { margin-left: auto; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); transition: transform 0.3s var(--spring), background 0.2s; flex: none; }
.card:hover .c-go { transform: translateX(3px) rotate(-45deg); background: var(--c); color: #0b0b12; }

mark.hl { background: none; color: inherit; border-radius: 4px; padding: 0 2px; font-weight: 700; }
.hl-model { color: #c4b5fd; background: rgba(167, 139, 250, 0.14) !important; }
.hl-storage { color: #7dd3fc; background: rgba(125, 211, 252, 0.12) !important; }
.hl-price { color: #fde68a; background: rgba(253, 230, 138, 0.12) !important; }
.hl-battery { color: #86efac; background: rgba(134, 239, 172, 0.1) !important; }
.hl-cond { color: #f9a8d4; background: rgba(249, 168, 212, 0.12) !important; }
.hl-sell { color: var(--sell); }
.hl-buy { color: var(--buy); }

.skeleton { height: 250px; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; border: 1px solid var(--border); animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); animation: fadeUp 0.6s var(--ease); }
.empty h3 { color: var(--text); margin: 18px 0 6px; font-size: 20px; }
.empty-phone { width: 60px; height: 100px; border-radius: 16px; border: 3px solid var(--border-2); margin: 0 auto; position: relative; animation: wobble 3s ease-in-out infinite; }
.empty-phone::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: var(--accent); }
@keyframes wobble { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
#sentinel { height: 1px; }

/* ---------- market bars ---------- */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(130px, 220px) 1fr auto; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-align: left; transition: border-color 0.2s, transform 0.25s var(--spring); }
.bar:hover { border-color: var(--accent); transform: translateX(4px); }
.bar-name { font-weight: 700; font-size: 14px; }
.bar-name small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.bar-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.2s var(--ease); transition-delay: var(--d, 0s); }
.bar-val { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.bars-empty { color: var(--muted); padding: 20px; border: 1px dashed var(--border-2); border-radius: 14px; text-align: center; }

/* ---------- how ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-n { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin: 10px 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); }

.foot { max-width: 1200px; margin: 40px auto 0; padding: 30px clamp(16px, 4vw, 40px) 50px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 8, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade 0.3s; }
.modal-card { position: relative; width: min(680px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px; border-radius: 26px; background: #10121a; border: 1px solid var(--border-2); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); animation: modalIn 0.5s var(--spring); }
.modal.closing .modal-card { animation: modalOut 0.22s var(--ease) forwards; }
.modal.closing .modal-backdrop { animation: fade 0.22s reverse forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.94); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(16px) scale(0.97); } }
@keyframes fade { from { opacity: 0; } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 22px; line-height: 1; transition: transform 0.3s var(--spring); }
.modal-x:hover { transform: rotate(90deg); }
.m-head { display: flex; flex-direction: column; gap: 8px; padding-right: 40px; }
.m-title { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; margin: 0; line-height: 1.1; }
.m-price { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.m-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; margin-top: 16px; }
.m-text { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); white-space: pre-line; word-break: break-word; font-size: 15px; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 16px; }
.detail { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); opacity: 0; animation: detailIn 0.5s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms + 0.15s); }
@keyframes detailIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.detail span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.detail b { font-size: 15px; }
.detail b.none { color: var(--faint); font-weight: 500; }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.reply { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.reply h4 { margin: 0 0 4px; font-size: 16px; }
.reply p.note { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.reply textarea { width: 100%; min-height: 96px; resize: vertical; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); font: inherit; outline: 0; }
.reply textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15); }
.reply-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.counter { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.login-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--border-2); color: var(--muted); font-size: 14px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 18px; border-radius: 14px; background: #1a1d29; border: 1px solid var(--border-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 14px; font-weight: 600; animation: toastIn 0.5s var(--spring); }
.toast.err { border-color: rgba(251, 113, 133, 0.5); }
.toast.ok { border-color: rgba(61, 220, 151, 0.5); }
.toast.bye { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.95); } }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot 0.7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 440px; order: -1; display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (min-width: 700px) and (max-width: 960px) { .hero-visual { display: grid; } }
@media (max-width: 640px) {
  .nav-status { display: none; }
  .nav-actions { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .toolbar { top: 56px; }
  .seg { flex: 1; }
  .seg button { flex: 1; padding: 8px 6px; }
  .grid { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr auto; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .modal { padding: 0; align-items: end; }
  .modal-card { border-radius: 24px 24px 0 0; max-height: 92dvh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .user-btn .uname { display: none; }
  .user-btn { padding-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .headline .w > span { transform: none; }
  .reveal, .card { opacity: 1; transform: none; }
}
