/* heroaccs — TGFORCE visual language + Apple HIG.
   Black-first blue-night surfaces, one blue accent, liquid glass on the
   floating layer, 8pt grid, SF Pro type scale. */
:root {
  --bg: #000;
  --surface: #0b0b0d;
  --surface-2: #121214;
  --surface-3: #1a1a1f;
  --border: rgba(255,255,255,.07);
  --border-2: rgba(255,255,255,.14);
  --text: #fff;
  --text-2: #9d9da7;
  --muted: #6a6a74;
  --blue-deep: #1024ff;
  --blue: #2f7bff;
  --blue-lit: #74b7ff;
  --amber: #ffb224;
  --green: #22d37a;
  --red: #ff4d5e;
  --grad-blue: linear-gradient(145deg, #1024ff 0%, #2f7bff 52%, #74b7ff 100%);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 12px; --r: 16px; --r-lg: 24px; --r-full: 999px;
  --ease: cubic-bezier(.16,1,.3,1);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.47; letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
/* blue aura behind the top of the page */
body::before {
  content: ""; position: fixed; inset: -20vh -10vw auto; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(16,36,255,.28), rgba(47,123,255,.08) 45%, transparent 75%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }

/* Apple type scale */
.large-title { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -.026em; }
.title-1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.024em; }
.title-2 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.headline { font-size: 17px; line-height: 22px; font-weight: 600; }
.subhead { font-size: 15px; line-height: 20px; color: var(--text-2); }
.footnote { font-size: 13px; line-height: 18px; color: var(--muted); }
.caption { font-size: 12px; line-height: 16px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--s3); }

/* Liquid Glass — only for the floating layer */
.glass {
  background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 62%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px .5px rgba(255,255,255,.45), inset 0 -2px 4px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
}

/* nav */
.nav { position: sticky; top: var(--s2); z-index: 20; margin: var(--s2) auto 0; max-width: 1112px; border-radius: var(--r-full);
  display: flex; align-items: center; gap: var(--s3); padding: var(--s1) var(--s1) var(--s1) var(--s3); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--grad-blue);
  box-shadow: 0 0 18px rgba(47,123,255,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.nav-links { display: flex; gap: var(--s1); margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-full); font-size: 15px; color: var(--text-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 var(--s3);
  border-radius: var(--r-full); border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .2s var(--ease), filter .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .chip:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn.blue { background: var(--grad-blue); color: #fff; box-shadow: 0 6px 22px rgba(47,123,255,.3), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.blue:hover { filter: brightness(1.1); }
.btn.ghost { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.btn.ghost:hover { color: var(--text); background: var(--surface-3); }
.btn.sm { height: 36px; padding: 0 var(--s2); font-size: 14px; }

/* hero — compact, functional: a headline plus the live stock count */
.hero { padding: var(--s8) 0 var(--s5); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.hero p { margin-top: var(--s1); max-width: 520px; }
.stats { display: flex; gap: var(--s2); }
.stat { padding: var(--s2) var(--s3); border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); min-width: 132px; }
.stat b { display: block; font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); margin-right: 6px; vertical-align: middle; }
.dot.live { background: var(--green); box-shadow: 0 0 8px var(--green); }

section { padding: var(--s5) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }

/* iOS squircle icon */
.icon { width: 48px; height: 48px; border-radius: 22%; flex: none; display: block; overflow: hidden;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18), 0 4px 12px rgba(0,0,0,.4); }
.icon svg { width: 100%; height: 100%; display: block; }
.icon.sm { width: 32px; height: 32px; }

/* platform grid */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--s2); }
.plat { display: flex; flex-direction: column; align-items: center; gap: var(--s1); padding: var(--s2) var(--s1); border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.plat:hover { transform: translateY(-2px); border-color: var(--border-2); }
.plat.on { border-color: rgba(47,123,255,.45); box-shadow: 0 0 0 1px rgba(47,123,255,.12), 0 14px 40px rgba(16,36,255,.18); }
.plat .name { font-size: 13px; font-weight: 600; }
.plat .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* toolbar */
.toolbar { display: flex; gap: var(--s1); margin-bottom: var(--s2); flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; height: 44px; padding: 0 var(--s2); border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--border); outline: none; transition: border-color .2s; }
.search:focus { border-color: rgba(47,123,255,.5); }
.chip { height: 44px; padding: 0 var(--s2); border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.chip.on { color: #fff; border-color: rgba(47,123,255,.45); background: rgba(47,123,255,.12); }

/* listing table */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card.glow { border-color: rgba(47,123,255,.3); box-shadow: 0 0 0 1px rgba(47,123,255,.08), 0 20px 60px rgba(16,36,255,.12); }
.list { overflow: hidden; }
.row { display: grid; grid-template-columns: 48px 1fr 96px 96px 96px 104px; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3); border-top: 1px solid var(--border); animation: fade .3s var(--ease) both; }
.row:first-child { border-top: 0; }
.row.head { padding-top: var(--s2); padding-bottom: var(--s1); animation: none; }
.row:not(.head):hover { background: rgba(255,255,255,.02); }
.row .t { font-size: 15px; font-weight: 600; line-height: 20px; }
.row .d { font-size: 13px; color: var(--muted); line-height: 18px; margin-top: 2px; }
.num { font-variant-numeric: tabular-nums; font-size: 15px; }
.price { font-weight: 700; }
.stock.low { color: var(--amber); }
.empty { padding: var(--s6); text-align: center; }

/* services + seller */
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s2); }
.svc { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1); min-height: 168px; transition: border-color .25s; }
.svc:hover { border-color: var(--border-2); }
.svc .tag { margin-top: auto; }
.seller { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); padding: var(--s5); align-items: start; }
.seller ul { list-style: none; padding: 0; margin-top: var(--s3); display: grid; gap: var(--s2); }
.seller li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); font-size: 15px; }
form { display: grid; gap: var(--s2); }
label { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
form input, form select, form textarea { height: 44px; padding: 0 var(--s2); border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--border); outline: none; }
form textarea { height: 88px; padding: 12px var(--s2); resize: vertical; }
form input:focus, form select:focus, form textarea:focus { border-color: rgba(47,123,255,.5); }
.ok { color: var(--green); font-size: 15px; }

footer { padding: var(--s6) 0; border-top: 1px solid var(--border); margin-top: var(--s5); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(0,0,0,.55); padding: var(--s3); }
.modal.open { display: grid; animation: fade .2s ease-out; }
.sheet { width: 100%; max-width: 420px; border-radius: var(--r-lg); padding: var(--s4); animation: pop .25s var(--ease); }
.sheet .row-flex { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s3); }
.sheet .actions { display: flex; gap: var(--s1); margin-top: var(--s3); justify-content: flex-end; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 760px) {
  .nav-links a:not(.keep) { display: none; }
  .row { grid-template-columns: 40px 1fr 80px; }
  .row > :nth-child(3), .row > :nth-child(5) { display: none; }
  .row > :nth-child(6) { grid-column: 2 / -1; justify-self: end; }
  .seller { grid-template-columns: 1fr; padding: var(--s3); }
  .large-title { font-size: 28px; line-height: 34px; }
}
.modal { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet.glass { background: linear-gradient(150deg, rgba(40,40,48,.92), rgba(14,14,18,.94) 62%); }

/* ---- gradients: TGFORCE auras + widget glow ---- */
/* page background: layered blue-night auras, fixed so they sit behind everything */
body::before {
  inset: 0; height: auto;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(16,36,255,.42), rgba(47,123,255,.12) 45%, transparent 72%),
    radial-gradient(45% 40% at 100% 35%, rgba(91,63,224,.22), transparent 70%),
    radial-gradient(50% 45% at 0% 70%, rgba(47,155,255,.16), transparent 70%),
    radial-gradient(60% 50% at 70% 110%, rgba(16,36,255,.28), transparent 70%),
    linear-gradient(180deg, #03040c 0%, #000 55%, #02030a 100%);
}
/* faint grain-free vignette so the edges stay black */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.6));
}

/* stat tiles become TGFORCE widgets: two-hue glow from below */
.stat { position: relative; overflow: hidden; isolation: isolate; border-color: rgba(255,255,255,.1); }
.stat::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(95% 85% at var(--gx,50%) var(--gy,125%), var(--glow) 0%,
    color-mix(in srgb, var(--glow) 60%, var(--glow2)) 20%, color-mix(in srgb, var(--glow2) 50%, #000) 46%, #060608 82%); }
.stat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 45%); }
.stat:nth-child(1) { --glow: #2f7bff; --glow2: #5b3fe0; }
.stat:nth-child(2) { --glow: #2f9bff; --glow2: #10a0a8; --gx: 90%; }
.stat .caption { color: rgba(255,255,255,.65); }

/* cards: subtle top sheen + lift from the surface */
.card, .plat { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 40%), rgba(11,11,13,.82); }
.plat.on { background: radial-gradient(120% 90% at 50% 130%, rgba(47,123,255,.45), rgba(16,36,255,.12) 50%, rgba(11,11,13,.9) 80%); }
.svc { position: relative; overflow: hidden; }
.svc::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: 0; pointer-events: none; opacity: .0;
  background: radial-gradient(50% 50% at 50% 100%, rgba(47,123,255,.35), transparent 70%); transition: opacity .3s var(--ease); }
.svc:hover::before { opacity: 1; }
.svc > * { position: relative; }

/* seller card: big blue→violet aura from the bottom-left */
.seller { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 110% at 0% 120%, rgba(47,123,255,.55), rgba(91,63,224,.25) 35%, rgba(6,6,8,.9) 70%), #060608; }
.seller::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%); }
.seller form input, .seller form select, .seller form textarea { background: rgba(0,0,0,.35); }
/* stronger pass */
body::before {
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(16,36,255,.65), rgba(47,123,255,.2) 42%, transparent 72%),
    radial-gradient(50% 45% at 105% 30%, rgba(91,63,224,.38), transparent 70%),
    radial-gradient(55% 50% at -5% 65%, rgba(47,155,255,.28), transparent 70%),
    radial-gradient(70% 55% at 60% 112%, rgba(16,36,255,.45), transparent 70%),
    linear-gradient(180deg, #050816 0%, #010104 55%, #03051a 100%);
}
body::after { background: radial-gradient(130% 100% at 50% 40%, transparent 60%, rgba(0,0,0,.45)); }
.stat { --gy: 105%; }

/* ---- auth page ---- */
.auth-body { overflow-x: hidden; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: var(--s5);
  border-right: 1px solid var(--border);
  background: radial-gradient(90% 70% at 30% 115%, rgba(47,123,255,.55), rgba(91,63,224,.22) 40%, transparent 72%),
              radial-gradient(60% 50% at 100% 0%, rgba(16,36,255,.3), transparent 70%), #04050c; }
.auth-side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #04050c 0%, transparent 55%); }
.paths { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; color: var(--blue-lit); }
.paths path { stroke: currentColor; stroke-dasharray: .35 .65; animation: drift linear infinite; }
@keyframes drift { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -2; } }
.auth-side-foot { margin-top: auto; max-width: 440px; }
.auth-icons { display: flex; gap: var(--s1); margin-top: var(--s3); }

.auth-main { position: relative; display: grid; place-items: center; padding: var(--s8) var(--s3); }
.auth-back { position: absolute; top: var(--s3); left: var(--s3); }
.auth-card { width: 100%; max-width: 384px; display: grid; gap: var(--s3); animation: pop .3s var(--ease) both; }
.auth-brand-sm { display: none; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-full); }
.seg button { position: relative; z-index: 1; height: 36px; border: 0; background: none; border-radius: var(--r-full); color: var(--text-2);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: color .25s var(--ease); }
.seg button.on { color: #fff; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-full);
  background: var(--grad-blue); box-shadow: 0 4px 16px rgba(47,123,255,.4), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .3s var(--ease); }
.seg[data-mode="up"] .seg-thumb { transform: translateX(100%); }

.auth-social { display: grid; gap: var(--s1); }
.btn.social { width: 100%; justify-content: center; background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn.social:hover { background: rgba(255,255,255,.08); }
.sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--border-2); }
.input-ic { position: relative; display: block; }
.input-ic svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-ic input { width: 100%; padding-left: 40px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.role { display: block; cursor: pointer; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-2); font-size: 14px; transition: all .2s var(--ease); }
.role input:checked + span { color: #fff; border-color: rgba(47,123,255,.5); background: rgba(47,123,255,.14); }
.role input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.link { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--blue-lit); }
#a-ok { font-size: 14px; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-brand-sm { display: flex; }
}
[hidden] { display: none !important; }

/* ---- technical numbers: TGFORCE dot-matrix ---- */
:root { --dot: "Doto", ui-monospace, "SF Mono", monospace; }
.stat b { font-family: var(--dot); font-weight: 800; font-size: 40px; line-height: 44px; letter-spacing: .015em; margin-top: 4px; }
.plat .count, .num, .seller .caption { font-family: var(--mono); }
.num.price { font-family: var(--dot); font-weight: 800; font-size: 20px; letter-spacing: .02em; }

/* ---- services: TGFORCE widgets ---- */
.grid3 { grid-template-columns: repeat(3, 1fr); }
.svc { position: relative; isolation: isolate; overflow: hidden; min-height: 232px; padding: var(--s3); gap: 6px;
  display: flex; flex-direction: column; border-radius: 28px; border: 1px solid rgba(255,255,255,.09); background: #060608;
  transition: transform .3s var(--ease), border-color .3s; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .85; transition: opacity .3s var(--ease);
  background: radial-gradient(90% 80% at var(--gx,85%) var(--gy,120%), var(--glow) 0%,
    color-mix(in srgb, var(--glow) 60%, var(--glow2)) 18%, color-mix(in srgb, var(--glow2) 50%, #000) 42%, #060608 78%); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 42%); }
.svc:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.16); }
.svc:hover::before { opacity: 1; }
.svc > * { position: static; }
.svc.blue { --glow: #2f7bff; --glow2: #5b3fe0; }
.svc.violet { --glow: #7b4fe0; --glow2: #c23fb0; --gx: 15%; }
.svc.teal { --glow: #10b0a0; --glow2: #2f7bff; }
.svc.azure { --glow: #2f9bff; --glow2: #10a0a8; --gx: 15%; }
.svc.green { --glow: #22c074; --glow2: #0f8ea0; }
.svc.amber { --glow: #ffa524; --glow2: #e0564f; --gx: 15%; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.svc-ic { width: 44px; height: 44px; border-radius: 22%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(255,255,255,.04) 62%); border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px .5px rgba(255,255,255,.5), 0 4px 12px rgba(0,0,0,.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.svc-ic svg { width: 22px; height: 22px; }
.pill { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-full);
  color: #ffe0a0; border: 1px solid rgba(255,208,113,.42);
  background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 60%);
  box-shadow: inset 0 1px .5px rgba(255,255,255,.5), 0 2px 9px rgba(0,0,0,.3); -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px); }
.svc-n { font-family: var(--dot); font-weight: 800; font-size: 44px; line-height: 1; color: rgba(255,255,255,.92); margin-top: var(--s3); }
.svc .headline { margin-top: 4px; }
.svc-d { font-size: 14px; line-height: 19px; color: rgba(255,255,255,.6); }
@media (max-width: 960px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } }
.svc::before { height: auto; pointer-events: none; }
