/* Public website (landing, /learn, /faq). Every rule is scoped under .site so
   it never reaches the mini app, which shares index.html with the landing. */

.site {
  /* Black and gold, the mini app's palette (src/index.css --color-cta). */
  --bg: #070708;
  --bg-2: #0f0f11;
  --card: #141417;
  --line: rgb(255 255 255 / 0.07);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #f6f4ee;
  --dim: rgb(246 244 238 / 0.62);
  --faint: rgb(246 244 238 / 0.4);
  --accent: #f5b301;
  --accent-2: #ffcb3d;
  --ink: #1a1300;
  --gold-soft: rgb(245 179 1 / 0.12);
  --up: #22c55e;
  --down: #ef4444;

  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.site *,
.site *::before,
.site *::after {
  box-sizing: border-box;
}
.site a {
  color: var(--accent-2);
  text-decoration: none;
}
.site a:hover {
  text-decoration: underline;
}
.site h1,
.site h2,
.site h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
.site p {
  margin: 0 0 1em;
}
.site :focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

.s-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* header */
.s-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(7 7 8 / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.s-header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.site .s-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.site .s-brand:hover {
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.s-word {
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.s-word i {
  font-style: normal;
  color: var(--accent);
}
/* The glowing candle standing in for the "i" of BINVIX (same drawing as src/shell/Logo.tsx). */
.logo-i {
  display: inline-block;
  width: 0.3em;
  height: 1.14em;
  margin: 0 0.07em;
  vertical-align: -0.2em;
  filter: drop-shadow(0 0 0.1em rgba(255, 160, 0, 0.75));
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 100'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ffe24a'/><stop offset='.55' stop-color='%23ffb400'/><stop offset='1' stop-color='%23ff8a00'/></linearGradient></defs><rect x='11.6' y='0' width='2.8' height='100' rx='1.4' fill='url(%23g)'/><rect x='1' y='20' width='24' height='63' rx='3' fill='url(%23g)'/></svg>") center / contain no-repeat;
}
.s-gold {
  background: linear-gradient(180deg, #ffd766, #f5b301 60%, #d98e00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.s-nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
}
.site .s-nav a {
  color: var(--dim);
  font-size: 15px;
}
.site .s-nav a:hover,
.site .s-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* buttons */
.site .s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 14px 36px -12px rgb(245 179 1 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.35);
  transition: filter 0.15s, transform 0.15s;
  white-space: nowrap;
}
.site .s-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  text-decoration: none;
}
.site .s-btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: none;
}
.site .s-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.site .s-btn-ghost:hover {
  background: rgb(255 255 255 / 0.05);
}

/* hero */
.s-hero {
  position: relative;
  background:
    radial-gradient(50% 70% at 78% 30%, rgb(245 179 1 / 0.16), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgb(245 179 1 / 0.05), transparent 70%),
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 48px 48px;
  border-bottom: 1px solid var(--line);
}
.s-hero-in {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.s-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgb(245 179 1 / 0.35);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.s-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.s-sub {
  color: var(--dim);
  font-size: 18px;
  max-width: 560px;
}
.s-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* terminal mock */
.s-terminal {
  position: relative;
  background: linear-gradient(168deg, #17171a, #0d0d0f);
  border: 1px solid rgb(245 179 1 / 0.22);
  border-radius: 22px;
  padding: 18px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    0 0 0 6px rgb(245 179 1 / 0.04),
    0 40px 90px -30px rgb(0 0 0 / 0.9),
    0 20px 80px -40px rgb(245 179 1 / 0.35);
}
.s-term-chart .cu {
  stroke: var(--up);
  fill: var(--up);
}
.s-term-chart .cd {
  stroke: var(--down);
  fill: var(--down);
}
.s-term-chart line {
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.s-term-chart .s-term-price {
  stroke: var(--accent);
  stroke-dasharray: 4 4;
}
.s-term-toast {
  position: absolute;
  top: 56px;
  left: -28px;
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border: 1px solid rgb(34 197 94 / 0.35);
  border-radius: 14px;
  background: rgb(15 15 17 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.9);
  font-size: 12px;
  color: var(--dim);
}
.s-term-toast b {
  color: var(--up);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.s-term-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}
.s-term-live {
  color: var(--up);
  font-size: 12px;
}
.s-term-chart {
  display: block;
  width: 100%;
  height: 160px;
  margin: 12px 0;
}
.s-term-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.s-term-row span {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.02);
  color: var(--faint);
  font-size: 12px;
}
.s-term-row b {
  color: var(--text);
  font-size: 15px;
}
.s-term-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.s-term-btns span {
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  color: #fff;
}
.s-term-btns .up {
  background: linear-gradient(180deg, #2bd46a, #16a34a);
}
.s-term-btns .down {
  background: linear-gradient(180deg, #f25a5a, #dc2626);
}

/* stats */
.s-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 8px;
}
.s-stats div {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}
.s-stats b {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.s-stats span {
  color: var(--dim);
  font-size: 14px;
}

/* sections */
.s-section {
  padding-top: 64px;
}
.s-section > h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}
.s-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
}
.s-steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}
.s-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 6px;
}
.s-steps b {
  font-size: 18px;
}
.s-steps span {
  color: var(--dim);
}
.s-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.s-feature {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(168deg, #141417, #0e0e10);
  transition: border-color 0.15s, transform 0.15s;
}
.s-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 36px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}
.s-feature:hover {
  border-color: rgb(245 179 1 / 0.35);
  transform: translateY(-2px);
}
.s-feature h3 {
  font-size: 18px;
}
.s-feature p {
  color: var(--dim);
  margin: 0;
}

/* article cards */
.s-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.site .s-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  color: var(--text);
  transition: border-color 0.15s;
}
.site .s-card:hover {
  border-color: rgb(245 179 1 / 0.45);
  text-decoration: none;
}
.s-card h2,
.s-card h3 {
  font-size: 19px;
}
.s-card p {
  color: var(--dim);
  font-size: 15px;
}
.s-more-link {
  margin-top: auto;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 15px;
}

/* faq */
.s-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.s-faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}
.s-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.s-faq summary::-webkit-details-marker {
  display: none;
}
.s-faq summary::after {
  content: "+";
  color: var(--accent-2);
  font-size: 20px;
  line-height: 1;
}
.s-faq[open] summary::after {
  content: "−";
}
.s-faq p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--dim);
}

/* cta */
.s-cta {
  margin: 64px 0 0;
  padding: 40px 24px;
  border: 1px solid rgb(245 179 1 / 0.3);
  border-radius: 20px;
  text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgb(245 179 1 / 0.16), transparent 70%), var(--bg-2);
}
.s-cta h2 {
  font-size: clamp(24px, 3vw, 30px);
}
.s-cta p {
  color: var(--dim);
  max-width: 520px;
  margin: 0 auto 24px;
}

/* article pages */
.s-article {
  max-width: 780px;
  padding-top: 32px;
}
.s-crumbs {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 24px;
}
.site .s-crumbs a {
  color: var(--dim);
}
.s-article h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 800;
}
.s-lead {
  font-size: 19px;
  color: var(--dim);
}
.s-article article h2 {
  font-size: 24px;
  margin-top: 1.6em;
}
.s-article article ul,
.s-article article ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.s-article article li {
  margin-bottom: 0.5em;
}
.s-article article li::marker {
  color: var(--accent-2);
}
.s-more {
  margin-top: 48px;
}
.s-more h2 {
  font-size: 22px;
}
.s-more ul {
  padding-left: 1.2em;
}

/* footer */
.s-footer {
  margin-top: 80px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  background: #050505;
}
.s-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.s-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site .s-footer-nav a {
  color: var(--dim);
  font-size: 15px;
}
.s-risk {
  color: var(--faint);
  font-size: 13px;
  max-width: 820px;
}
.s-copy {
  color: var(--faint);
  font-size: 13px;
  margin: 0;
}

/* responsive */
@media (max-width: 900px) {
  .s-hero-in {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 36px;
  }
  .s-grid,
  .s-steps {
    grid-template-columns: 1fr 1fr;
  }
  .s-stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .s-term-toast {
    left: auto;
    right: 12px;
    top: 48px;
  }
  .s-nav {
    display: none;
  }
  .s-header-in {
    justify-content: space-between;
  }
  .s-grid,
  .s-steps,
  .s-cards {
    grid-template-columns: 1fr;
  }
  .s-stats b {
    font-size: 24px;
  }
  .s-actions .s-btn {
    flex: 1 1 100%;
  }
  .s-section {
    padding-top: 48px;
  }
}

/* ─── header actions (all pages) ───────────────────────────────────────── */
.s-header-act {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site .s-login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.site .s-login:hover {
  background: rgb(255 255 255 / 0.06);
  text-decoration: none;
}

/* The page itself (not the mini app sharing index.html): no browser margin frame. */
html:not(.in-app) body {
  margin: 0;
  background: #07080a;
}

/* ─── landing (index.html) ─────────────────────────────────────────────── */
.l-page {
  --bg: #07080a;
  --card: #111215;
  background:
    linear-gradient(rgb(255 255 255 / 0.022) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgb(255 255 255 / 0.022) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--bg);
}
.l-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.site .up {
  color: var(--up);
}
.site .down {
  color: var(--down);
}

.l-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 8px;
}
.l-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 900px;
  height: 700px;
  background:
    radial-gradient(closest-side, rgb(245 179 1 / 0.16), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgb(47 111 237 / 0.12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.l-hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}
.site .l-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgb(245 179 1 / 0.28);
  border-radius: 999px;
  background: rgb(245 179 1 / 0.08);
  color: #ffd766;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
  transition: background 0.15s;
}
.site .l-pill:hover {
  background: rgb(245 179 1 / 0.14);
  text-decoration: none;
}
.l-hero h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.l-sub {
  max-width: 520px;
  color: var(--dim);
  font-size: 18px;
  line-height: 1.55;
}
.l-signup {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin-top: 28px;
}
.l-signup input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.l-signup input::placeholder {
  color: var(--faint);
}
.l-signup input:focus {
  border-color: var(--accent);
  background: rgb(255 255 255 / 0.06);
}
.l-signup button {
  height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 36px -12px rgb(245 179 1 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.35);
  transition: filter 0.15s, transform 0.15s;
}
.l-signup button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.l-or {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 500px;
  margin: 20px 0 14px;
  color: var(--faint);
  font-size: 13px;
}
.l-or::before,
.l-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.l-alt {
  display: flex;
  gap: 10px;
  max-width: 500px;
}
.site .l-alt-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.03);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.site .l-alt-btn:hover {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(255 255 255 / 0.22);
  text-decoration: none;
}

/* hero visual */
.l-visual {
  position: relative;
  padding: 36px 28px 36px 40px;
}
.l-term {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: linear-gradient(180deg, #16171b, #0d0e11);
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(245 179 1 / 0.06), 0 30px 120px -40px rgb(245 179 1 / 0.35);
}
.l-term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.l-term-head b,
.l-float b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.l-term-head small,
.l-float small {
  display: block;
  color: var(--faint);
  font-size: 12px;
}
.l-term-price {
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.l-term-price b {
  font-size: 20px;
}
.l-term-chart {
  display: block;
  width: 100%;
  height: 190px;
}
.l-term-chart .cu line,
.l-term-chart .cu rect {
  stroke: var(--up);
  fill: var(--up);
}
.l-term-chart .cd line,
.l-term-chart .cd rect {
  stroke: var(--down);
  fill: var(--down);
}
.l-term-chart line {
  stroke-width: 1;
}
.l-term-chart .s-term-price {
  stroke: var(--accent);
  stroke-dasharray: 3 3;
  stroke-width: 1;
}
.l-term-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.l-term-row span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.025);
  color: var(--faint);
  font-size: 12px;
}
.l-term-row b {
  display: block;
  color: var(--text);
  font-size: 15px;
}
.l-term-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.l-term-btns span {
  padding: 13px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
}
.site .l-term-btns .up {
  background: linear-gradient(180deg, #2ad46c, #16a34a);
  color: #fff;
}
.site .l-term-btns .down {
  background: linear-gradient(180deg, #f75a5a, #dc2626);
  color: #fff;
}
.l-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgb(20 21 25 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.9);
  animation: l-bob 6s ease-in-out infinite;
}
.l-float-a {
  top: 30%;
  left: 0;
}
.l-float-b {
  bottom: -18px;
  right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  animation-delay: -3s;
}
.l-float-b b {
  font-size: 20px;
}
@keyframes l-bob {
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .l-float {
    animation: none;
  }
}
.l-coin {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  color: var(--c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
  font-size: 14px;
  font-weight: 900;
}

/* trust strip */
.l-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 56px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.l-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 14.5px;
}
.l-trust svg {
  flex: none;
  color: var(--accent);
}
.l-trust b {
  color: var(--text);
  font-weight: 600;
}

/* sections */
.l-section {
  padding-top: 96px;
}
.l-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.l-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.site .l-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site .l-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.site .l-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* market table */
.l-market {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(17 18 21 / 0.8);
}
.site .l-mrow {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr 0.8fr 1.1fr 110px;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--text);
  transition: background 0.15s;
}
.site a.l-mrow:hover {
  background: rgb(255 255 255 / 0.03);
  text-decoration: none;
}
.site .l-mrow-head {
  border-top: 0;
  padding-top: 16px;
  padding-bottom: 12px;
  color: var(--faint);
  font-size: 13px;
}
.l-asset {
  display: flex;
  align-items: center;
  gap: 12px;
}
.l-asset small {
  color: var(--faint);
  font-size: 13px;
}
.l-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.l-trade {
  justify-self: end;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.site a.l-mrow:hover .l-trade {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}
.site .l-note {
  margin: 12px 4px 0;
  color: var(--faint);
  font-size: 13px;
}

/* stats */
.l-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 96px;
}
.l-stats div {
  padding: 8px 24px;
  border-left: 1px solid var(--line);
}
.l-stats div:first-child {
  padding-left: 16px;
  border-left: 0;
}
.l-stats b {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff, #c9c4b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.l-stats span {
  color: var(--dim);
  font-size: 15px;
}

/* features */
.l-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.l-card,
.l-steps li,
.l-plat {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01));
  transition: border-color 0.2s, transform 0.2s;
}
.l-card:hover {
  border-color: rgb(245 179 1 / 0.35);
  transform: translateY(-2px);
}
.site .l-card h3,
.site .l-steps h3,
.site .l-plat h3 {
  margin: 16px 0 8px;
  font-size: 19px;
  font-weight: 700;
}
.site .l-card p,
.site .l-steps p,
.site .l-plat p {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.55;
}
.l-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(245 179 1 / 0.18);
}

/* steps */
.l-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.l-step-n {
  display: block;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(245 179 1 / 0.7);
}

/* platforms */
.l-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.l-plat {
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(245 179 1 / 0.1), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01));
}
.site .l-plat {
  padding: 34px;
}
.l-plat + .l-plat {
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(47 111 237 / 0.14), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01));
}
.site .l-plat h3 {
  font-size: 24px;
}
.site .l-plat p {
  max-width: 400px;
  margin-bottom: 24px;
}

/* articles */
.l-articles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.site .l-article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.02);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.site .l-article:hover {
  border-color: var(--line-2);
  background: rgb(255 255 255 / 0.04);
  text-decoration: none;
}
.site .l-article h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
}
.l-article span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.l-faq-wrap .s-faq-list {
  max-width: none;
}

/* closing call to action */
.l-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 96px 0 72px;
  padding: 48px;
  border: 1px solid rgb(245 179 1 / 0.25);
  border-radius: 28px;
  background:
    radial-gradient(70% 120% at 100% 50%, rgb(245 179 1 / 0.2), transparent 60%),
    linear-gradient(135deg, #17140b, #0e0f12 60%);
}
.site .l-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
}
.site .l-cta p {
  margin: 0;
  color: var(--dim);
}
.l-cta .l-signup {
  flex: none;
  width: 440px;
  margin-top: 0;
}

@media (max-width: 1000px) {
  .l-hero-in {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .l-visual {
    max-width: 560px;
  }
  .l-articles,
  .l-bento {
    grid-template-columns: 1fr 1fr;
  }
  .l-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .l-cta .l-signup {
    width: auto;
  }
}
@media (max-width: 760px) {
  .l-trust,
  .l-stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }
  .l-stats div:nth-child(3) {
    padding-left: 16px;
    border-left: 0;
  }
  .l-steps,
  .l-platforms {
    grid-template-columns: 1fr;
  }
  .site .l-mrow {
    grid-template-columns: 1.5fr 1fr 0.8fr;
    padding: 13px 16px;
  }
  .l-hide-sm,
  .l-trade {
    display: none;
  }
}
@media (max-width: 640px) {
  .l-hero {
    padding-top: 40px;
  }
  .l-sub {
    font-size: 16px;
  }
  .l-signup {
    flex-direction: column;
  }
  .l-signup input {
    flex: none;
  }
  .l-signup button {
    width: 100%;
  }
  .l-visual {
    padding: 20px 0 46px;
  }
  .l-float-b {
    bottom: -12px;
    right: 8px;
  }
  .l-bento,
  .l-articles {
    grid-template-columns: 1fr;
  }
  .l-section {
    padding-top: 64px;
  }
  .l-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .l-cta {
    padding: 28px 20px;
    margin: 64px 0 48px;
  }
  .l-asset small {
    display: none;
  }
  .site .s-login {
    display: none;
  }
  .l-stats {
    margin-top: 64px;
  }
}

/* ─── 404 ──────────────────────────────────────────────────────────────── */
.site .s-404 {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.site .s-404-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* ─── Binvix AI (landing) ──────────────────────────────────────────────── */
.site .l-pill-ai {
  border-color: rgb(110 125 255 / 0.4);
  background: linear-gradient(90deg, rgb(84 110 255 / 0.18), rgb(160 120 255 / 0.08));
  color: #d6dcff;
}
.site .l-pill-ai:hover {
  background: linear-gradient(90deg, rgb(84 110 255 / 0.28), rgb(160 120 255 / 0.14));
}
.l-pill-ai img {
  margin: -3px 0 -3px -4px;
  filter: drop-shadow(0 0 6px rgb(84 110 255 / 0.6));
}
.l-pill-ai b {
  color: #fff;
}
.l-float-ai {
  border-color: rgb(110 125 255 / 0.35);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.9), 0 0 40px -12px rgb(84 110 255 / 0.55);
}
.l-ai-ava {
  flex: none;
  filter: drop-shadow(0 0 8px rgb(84 110 255 / 0.6));
}
.l-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.2);
  vertical-align: 2px;
  animation: l-pulse 2s ease-in-out infinite;
}
@keyframes l-pulse {
  50% {
    box-shadow: 0 0 0 6px rgb(34 197 94 / 0);
  }
}

.l-ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.l-ai-stage {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.l-ai-halo {
  position: absolute;
  top: 0;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(84 110 255 / 0.38), rgb(150 110 255 / 0.12) 45%, transparent 70%);
  filter: blur(10px);
}
.l-ai-ring {
  position: absolute;
  left: 50%;
  border: 1px solid rgb(140 150 255 / 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}
.l-ai-ring-1 {
  top: 30px;
  width: 340px;
  height: 340px;
}
.l-ai-ring-2 {
  top: -10px;
  width: 420px;
  height: 420px;
  border-style: dashed;
  border-color: rgb(140 150 255 / 0.12);
  animation: l-spin 60s linear infinite;
}
@keyframes l-spin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}
.l-ai-hero {
  position: relative;
  margin-top: 70px;
  filter: drop-shadow(0 30px 60px rgb(40 50 220 / 0.55));
  animation: l-bob 7s ease-in-out infinite;
}
.l-ai-chat {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(400px, 100%);
  transform: translateX(-50%);
  padding: 16px;
  border: 1px solid rgb(140 150 255 / 0.25);
  border-radius: 20px;
  background: rgb(16 17 26 / 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.95), 0 0 60px -20px rgb(84 110 255 / 0.45);
}
.l-ai-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.l-ai-auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--faint);
  font-size: 12px;
}
.l-ai-auto i {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--up);
}
.l-ai-auto i::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.site .l-msg {
  max-width: 88%;
  margin: 0 0 8px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.site .l-msg-me {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: #2f4fe0;
  color: #fff;
}
.site .l-msg-ai {
  border-bottom-left-radius: 4px;
  background: rgb(255 255 255 / 0.06);
  color: var(--text);
}
.l-msg-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(34 197 94 / 0.12);
  color: var(--up);
  font-size: 12.5px;
  font-weight: 700;
}
.l-ai-text h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.site .l-ai-lead {
  color: var(--dim);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 26px;
}
.l-ai-list {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.l-ai-list li {
  display: flex;
  gap: 14px;
}
.l-ai-list .l-ico {
  flex: none;
  color: #9fb0ff;
  background: rgb(84 110 255 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(110 125 255 / 0.3);
}
.site .l-ai-list h3 {
  margin: 2px 0 4px;
  font-size: 16.5px;
}
.site .l-ai-list p {
  margin: 0;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.5;
}
.l-ai-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.l-ai-act .s-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .l-ai-hero,
  .l-ai-ring-2,
  .l-live {
    animation: none;
  }
}
@media (max-width: 1000px) {
  .l-ai {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .l-ai-stage {
    min-height: 470px;
  }
  .l-ai-halo,
  .l-ai-ring-2 {
    width: 320px;
    height: 320px;
  }
  .l-ai-ring-1 {
    width: 260px;
    height: 260px;
  }
  .l-ai-hero {
    width: 200px;
    height: 200px;
    margin-top: 50px;
  }
}
.l-nowrap {
  white-space: nowrap;
}

/* public forum pages (rendered by api/_lib/forumPublic.ts) */
.f-page h2 {
  margin-top: 1.6em;
}
.f-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}
.f-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.site .f-item a {
  font-weight: 700;
  font-size: 16.5px;
  color: inherit;
}
.f-meta {
  display: block;
  color: var(--faint);
  font-size: 13.5px;
  margin-top: 4px;
}
.f-pin {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}
.f-page article blockquote {
  margin: 0 0 1em;
  padding: 10px 14px;
  border-left: 3px solid var(--accent-2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: var(--dim);
}
.f-img {
  max-width: 100%;
  border-radius: 14px;
  margin: 8px 0 18px;
}
.f-replies {
  margin-top: 40px;
}
.f-reply {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.f-reply p {
  margin: 0 0 0.6em;
}
.f-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 24px;
}
.f-pager a,
.f-pager span {
  min-width: 36px;
  padding: 6px 10px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.f-pager span {
  background: rgba(255, 255, 255, 0.08);
}

/* ===========================================================================
 * Forum, public pages (api/_lib/forumPublic.ts): the app's forum look
 * (src/features/forum) - the same board, rows, avatars, counters and panels.
 * ======================================================================== */

.fx {
  --fx-surface: #141922;
  --fx-line: rgb(255 255 255 / 0.06);
  --fx-text: #f5f5fb;
  --fx-dim: rgb(245 245 251 / 0.56);
  --fx-faint: rgb(245 245 251 / 0.34);
  --fx-cta: #f5b301;
  --fx-ink: #1a1300;
  --fx-down: #f5455e;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 16px 56px;
  box-sizing: border-box;
  color: var(--fx-text);
  font-size: 14px;
  line-height: 1.45;
}
.fx a { color: inherit; text-decoration: none; }
.fx svg { flex-shrink: 0; }
.fx-faint { color: var(--fx-faint); font-size: 13px; margin: 0; }

.fx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--fx-faint); }
.site .fx-crumbs a { color: var(--fx-faint); }
.site .fx-crumbs a:hover { color: var(--fx-text); }
.fx-crumbs span { color: var(--fx-dim); }
.fx-h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.fx-lead { margin: 8px 0 0; max-width: 720px; color: var(--fx-dim); font-size: 14.5px; }

.fx-toolbar { display: flex; gap: 10px; margin: 22px 0 20px; }
.fx-search { position: relative; flex: 1; min-width: 0; margin: 0; }
.fx-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fx-faint); pointer-events: none; }
.fx-search input {
  width: 100%; height: 48px; box-sizing: border-box; padding: 0 14px 0 40px;
  border: 1px solid var(--fx-line); border-radius: 14px; background: var(--fx-surface);
  color: var(--fx-text); font: inherit; font-size: 14px; outline: none;
}
.fx-search input::placeholder { color: var(--fx-faint); }
.fx-search input:focus { border-color: var(--fx-cta); }
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
  height: 48px; padding: 0 16px; border-radius: 14px; box-sizing: border-box;
  background: linear-gradient(180deg, #ffcb3d, #f5b301); color: var(--fx-ink) !important;
  font-weight: 800; font-size: 14px; white-space: nowrap;
  box-shadow: 0 10px 26px -12px rgb(245 179 1 / 0.7);
  transition: filter 0.15s;
}
.fx-btn:hover { filter: brightness(1.06); }
.fx-btn-ghost { background: rgb(255 255 255 / 0.06); color: var(--fx-text) !important; box-shadow: none; }
.fx-show-sm, .fx-show-md { display: none; }

.fx-grid { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr) 330px; }
.fx-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fx-side { display: flex; flex-direction: column; gap: 16px; }

.fx-card { border: 1px solid var(--fx-line); background: var(--fx-surface); border-radius: 22px; overflow: hidden; }

/* Board */
.fx-board { display: flex; flex-direction: column; gap: 16px; }
.fx-group h2 { margin: 0; padding: 14px 20px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.fx-group-rows { display: flex; flex-direction: column; padding: 0 8px 8px; }
.fx-cat-row {
  position: relative; display: grid; align-items: center; gap: 12px;
  grid-template-columns: minmax(0, 1fr) 150px 250px;
  padding: 12px 10px; border-top: 1px solid rgb(255 255 255 / 0.05); border-radius: 16px;
  transition: background 0.15s;
}
.fx-cat-row:first-child { border-top: 0; }
.fx-cat-row:hover { background: rgb(255 255 255 / 0.03); }
.fx-cat-link { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fx-cat-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 14px; background: rgb(245 179 1 / 0.12); color: var(--fx-cta); }
.fx-cat-text { min-width: 0; display: flex; flex-direction: column; }
.fx-cat-title { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-cat-link:hover .fx-cat-title { color: var(--fx-cta); }
.fx-cat-desc { margin-top: 2px; font-size: 12.5px; color: var(--fx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-cat-mobile { display: none; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--fx-dim); }
.fx-new { border-radius: 999px; background: var(--fx-cta); color: var(--fx-ink); padding: 2px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.fx-counters { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.fx-counters > div + div { border-left: 1px solid var(--fx-line); }
.fx-counters b { display: block; font-size: 16px; font-weight: 800; color: var(--fx-cta); }
.fx-counters small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fx-faint); }
.fx-cat-last { min-width: 0; }
.fx-last, .fx-recent-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-last span, .fx-recent-item span { min-width: 0; display: flex; flex-direction: column; }
.fx-last b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-last:hover b, .fx-recent-item:hover b { color: var(--fx-cta); }
.fx-last small, .fx-recent-item small { font-size: 11.5px; color: var(--fx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Avatars and names */
.fx-av { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 999px; object-fit: cover; overflow: hidden; }
.fx-av-letter { background: linear-gradient(140deg, #2f6fed, #16337d); color: #fff; font-weight: 800; }
.fx-av-team { background: #0d0d0d; box-shadow: inset 0 0 0 1px rgb(245 179 1 / 0.4); }
.fx-name { font-weight: 700; color: var(--fx-text); }
.fx-name-team { color: var(--fx-cta); }
.fx-team { margin-left: 6px; border-radius: 999px; background: var(--fx-cta); color: var(--fx-ink); padding: 2px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.fx-badge { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; border-radius: 7px; padding: 2px 6px; font-size: 10.5px; font-weight: 800; vertical-align: 2px; }
.fx-badge-pin { background: var(--fx-down); color: #fff; }
.fx-badge-lock { background: rgb(255 255 255 / 0.1); color: var(--fx-dim); }

/* Thread list */
.fx-thread-row {
  position: relative; display: grid; align-items: center; gap: 12px;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  padding: 12px 16px; border-top: 1px solid rgb(255 255 255 / 0.05);
  transition: background 0.15s;
}
.fx-thread-row:first-child { border-top: 0; }
.fx-thread-row:hover { background: rgb(255 255 255 / 0.03); }
.fx-pinned { box-shadow: inset 3px 0 0 var(--fx-cta); }
.fx-thread-link { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fx-thread-text { min-width: 0; display: flex; flex-direction: column; }
.fx-thread-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; line-height: 1.3; word-break: break-word; }
.fx-thread-title > svg { color: var(--fx-faint); }
.fx-thread-link:hover .fx-thread-title > span:not(.fx-badge) { color: var(--fx-cta); }
.fx-thread-text small { margin-top: 2px; font-size: 12px; color: var(--fx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-thread-text small .fx-name { font-weight: 600; }
.fx-thread-counts { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; margin: 0; font-size: 12px; }
.fx-thread-counts dt { color: var(--fx-faint); }
.fx-thread-counts dd { margin: 0; text-align: right; font-weight: 700; }
.fx-thread-last { min-width: 0; text-align: right; }
.fx-thread-last b { display: block; font-size: 12.5px; }
.fx-thread-last small { display: block; font-size: 11.5px; color: var(--fx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fx-cat-head { display: flex; align-items: center; gap: 12px; }
.fx-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; text-align: center; }
.fx-empty b { font-size: 17px; }
.fx-empty p { margin: 0; max-width: 340px; font-size: 13px; color: var(--fx-faint); }
.fx-empty-text { margin: 0; padding: 48px 20px; text-align: center; font-size: 13.5px; color: var(--fx-faint); }

.fx-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-pager a, .fx-pager span[aria-current] {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 36px; padding: 0 10px; box-sizing: border-box;
  border-radius: 11px; background: var(--fx-surface); color: var(--fx-dim); font-size: 13px; font-weight: 700;
}
.fx-pager a:hover { color: var(--fx-text); }
.fx-pager span[aria-current] { background: var(--fx-cta); color: var(--fx-ink); }

/* Thread page */
.fx-thread-head .fx-h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 26px; }
.fx-thread-head .fx-faint { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.fx-post { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.fx-post-author {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px;
  border-right: 1px solid var(--fx-line); background: rgb(255 255 255 / 0.015); text-align: center; font-size: 13px;
}
.fx-post-author > span { display: flex; flex-direction: column; align-items: center; gap: 6px; word-break: break-word; }
.fx-post-author .fx-team { margin-left: 0; }
.fx-post-main { min-width: 0; padding: 14px 20px 18px; }
.fx-post-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; color: var(--fx-faint); }
.fx-post-img { display: block; max-width: 100%; max-height: 520px; margin-bottom: 12px; border-radius: 14px; }
.fx-body { font-size: 14.5px; line-height: 1.65; color: rgb(245 245 251 / 0.9); word-break: break-word; }
.fx-body > :first-child { margin-top: 0; }
.fx-body p { margin: 0 0 10px; }
.fx-body h2, .fx-body h3 { margin: 18px 0 8px; color: var(--fx-text); font-size: 16.5px; font-weight: 800; line-height: 1.3; }
.fx-body ul { margin: 0 0 10px; padding-left: 20px; }
.fx-body li::marker { color: var(--fx-cta); }
.fx-body blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--fx-cta); border-radius: 12px; background: rgb(255 255 255 / 0.04); color: var(--fx-dim); font-size: 13px; }
.fx-reply-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 14px 20px; color: var(--fx-dim); }
.fx-reply-cta span { display: flex; align-items: center; gap: 8px; }
.fx-related { padding: 16px 20px; }
.fx-related h2 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.fx-related ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fx-related a { color: var(--fx-dim); font-size: 13.5px; }
.fx-related a:hover { color: var(--fx-cta); }

/* Sidebar */
.fx-panel { border: 1px solid var(--fx-line); background: var(--fx-surface); border-radius: 20px; padding: 16px; }
.fx-panel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.fx-panel h3 svg { color: var(--fx-cta); }
.fx-join { background: radial-gradient(90% 120% at 0% 0%, rgb(245 179 1 / 0.14), transparent 60%), var(--fx-surface); border-color: rgb(245 179 1 / 0.22); }
.fx-join p { margin: 0 0 14px; font-size: 13px; color: var(--fx-dim); }
.fx-join-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-join-actions .fx-btn { height: 42px; font-size: 13.5px; }
.fx-recent { display: flex; flex-direction: column; gap: 12px; }
.fx-recent-item { align-items: flex-start; }
.fx-recent-item b { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-online { margin: 0; font-size: 13px; color: var(--fx-dim); line-height: 1.6; }
.fx-online .fx-name { font-weight: 600; }
.fx-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: rgb(255 255 255 / 0.04); font-size: 12px; color: var(--fx-faint); }
.fx-note b { color: var(--fx-dim); }
.fx-stats { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; margin: 0; font-size: 13px; }
.fx-stats dt { color: var(--fx-faint); }
.fx-stats dd { margin: 0; text-align: right; font-weight: 700; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1279px) {
  .fx-cat-row { grid-template-columns: minmax(0, 1fr) 150px; }
  .fx-cat-last { display: none; }
  .fx-thread-row { grid-template-columns: minmax(0, 1fr) 170px; }
  .fx-thread-last { display: none; }
}
@media (max-width: 1023px) {
  .fx-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .fx { padding-top: 18px; }
  .fx-h1 { font-size: 24px; }
  .fx-cat-row, .fx-thread-row { grid-template-columns: minmax(0, 1fr); }
  .fx-counters, .fx-thread-counts { display: none; }
  .fx-show-md { display: inline; }
  .fx-cat-mobile { display: block; }
  .fx-group h2 { padding: 14px 16px; font-size: 17px; }
  .fx-post { grid-template-columns: minmax(0, 1fr); }
  .fx-post-author { flex-direction: row; justify-content: flex-start; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--fx-line); text-align: left; }
  .fx-post-author > span { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .fx-post-main { padding: 12px 16px 16px; }
  .fx-reply-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .fx-reply-cta span { justify-content: center; }
}
@media (max-width: 479px) {
  .fx-hide-sm { display: none; }
  .fx-show-sm { display: inline; }
}

/* Forum: prefixes, reactions, author stats, best answer (as the app's forum) */
.fx-prefix { font-weight: 800; }
.fx-tone-blue { background: rgb(59 130 246 / 0.16); color: #7fb0ff; }
.fx-tone-green { background: rgb(34 197 94 / 0.16); color: #5fdc8f; }
.fx-tone-violet { background: rgb(139 92 246 / 0.18); color: #b69bff; }
.fx-tone-cyan { background: rgb(6 182 212 / 0.16); color: #5fd6ea; }
.fx-tone-gray { background: rgb(255 255 255 / 0.08); color: var(--fx-dim); }
.fx-tone-orange { background: rgb(245 158 11 / 0.18); color: #f5b84a; }
.fx-tone-red { background: rgb(239 68 68 / 0.18); color: #ff8a8a; }
.fx-solved { display: inline-flex; color: #5fdc8f; }
.fx-rank { font-size: 11.5px; font-weight: 600; color: var(--fx-faint); }
.fx-post-stats { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; width: 100%; margin: 10px 0 0; font-size: 11.5px; }
.fx-post-stats dt { color: var(--fx-faint); text-align: left; }
.fx-post-stats dd { margin: 0; text-align: right; font-weight: 600; color: var(--fx-dim); }
.fx-post-head a { color: inherit; font-weight: 600; text-decoration: none; }
.fx-post-head a:hover { color: var(--fx-text, #fff); }
.fx-reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fx-reactions span { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.06); padding: 2px 8px; font-size: 12px; color: var(--fx-dim); }
.fx-post-solution { border-color: rgb(34 197 94 / 0.45); }
.fx-solution-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; border-radius: 999px; background: rgb(34 197 94 / 0.14); padding: 4px 10px; font-size: 11.5px; font-weight: 800; color: #5fdc8f; }
.fx-solution { border-color: rgb(34 197 94 / 0.35); background: rgb(34 197 94 / 0.06); padding: 16px 18px; }
.fx-solution h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 800; color: #5fdc8f; }
.fx-solution p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
.fx-solution a { font-size: 13px; font-weight: 700; color: #5fdc8f; }
@media (max-width: 760px) {
  .fx-post-stats { display: none; }
}

/* Forum: polls, profiles and walls (as the app's forum) */
.fx-plain { color: inherit; text-decoration: none; }
.fx-plain:hover .fx-name { text-decoration: underline; }
.fx-poll { border-color: rgb(245 179 1 / 0.25); padding: 16px 18px; }
.fx-poll-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fx-cta); }
.fx-poll h2 { margin: 0 0 12px; font-size: 16.5px; font-weight: 800; line-height: 1.35; }
.fx-poll ol { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fx-poll-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; }
.fx-poll-row b { flex-shrink: 0; font-size: 12.5px; color: var(--fx-dim); }
.fx-poll-row small { font-weight: 600; color: var(--fx-faint); }
.fx-poll-bar { height: 10px; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / 0.06); }
.fx-poll-bar i { display: block; height: 100%; border-radius: 999px; background: rgb(255 255 255 / 0.25); }
.fx-poll-bar i.fx-poll-lead { background: var(--fx-cta); }
.fx-poll-foot { margin: 12px 0 0; font-size: 12px; color: var(--fx-faint); }
.fx-poll-foot a { font-weight: 700; color: var(--fx-cta); }
.fx-profile { overflow: hidden; padding: 0; }
.fx-profile-cover { height: 88px; background: linear-gradient(120deg, rgb(245 179 1 / 0.22), rgb(59 130 246 / 0.14) 60%, transparent); }
.fx-profile-body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: -44px; padding: 0 20px 18px; }
.fx-profile-av { position: relative; display: inline-flex; border-radius: 999px; box-shadow: 0 0 0 4px var(--fx-surface, #141922); }
.fx-online-dot { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; border: 3px solid var(--fx-surface, #141922); border-radius: 999px; background: #22c55e; }
.fx-profile-name { flex: 1; min-width: 200px; }
.fx-profile-name .fx-h1 { margin: 0; font-size: 22px; }
.fx-profile-name p { margin: 2px 0 0; font-size: 13px; }
.fx-profile-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 300px; max-width: 100%; margin: 0; }
.fx-profile-counts div { border-radius: 14px; background: rgb(255 255 255 / 0.04); padding: 10px 6px; text-align: center; }
.fx-profile-counts dd { margin: 0; font-size: 17px; font-weight: 800; color: var(--fx-cta); }
.fx-profile-counts dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fx-faint); }
.fx-h2 { margin: 22px 0 10px; font-size: 18px; font-weight: 800; }
.fx-wall { display: flex; gap: 12px; padding: 14px 16px; }
.fx-wall > div { min-width: 0; flex: 1; }
.fx-wall p.fx-faint { margin: 0 0 4px; font-size: 12px; }
.fx-empty { padding: 28px 16px; text-align: center; color: var(--fx-faint); }
.fx-wall-snip { font-weight: 500 !important; color: var(--fx-dim); }
