/* ==========================================================================
   Design system — extracted from the COSMOQ Framer template.
   Fonts: Inter (body), Inter Display (headings). Black canvas, near-black
   cards, blue / peach glow accents.
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; src: url("../assets/fonts/Inter-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; src: url("../assets/fonts/Inter-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; src: url("../assets/fonts/Inter-600.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; src: url("../assets/fonts/Inter-700.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 900; font-style: normal; src: url("../assets/fonts/Inter-900.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Display"; font-weight: 400; font-style: normal; src: url("../assets/fonts/InterDisplay-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Display"; font-weight: 500; font-style: normal; src: url("../assets/fonts/InterDisplay-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; src: url("../assets/fonts/InterDisplay-700.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #000000;
  --card: #06070a;
  --card-2: #0c0f16;
  --card-3: #10141c;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.18);
  --fg: #ffffff;
  --fg-2: #d1d4e3;
  --muted: #9ba9c4;
  --grey: #8491ab;
  --dark-line: #2f3950;
  --blue: #0175ff;
  --peach: #ffcd7d;
  --orange: #ffac0a;
  --glow: rgba(125, 164, 255, 0.16);
  --peach-glow: rgba(255, 179, 73, 0.25);
  --green: #3ee27a;
  --red: #ff4b4b;
  --yellow: #ffcd7d;
  --font: "Inter", "Inter Placeholder", ui-sans-serif, system-ui, sans-serif;
  --display: "Inter Display", "Inter Display Placeholder", "Inter", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 10px;
  --container: 1200px;
  --gutter: 30px;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --btn-shadow: rgba(0,0,0,.18) 0 .83px .83px -.75px, rgba(0,0,0,.18) 0 2.26px 2.26px -1.5px, rgba(0,0,0,.17) 0 4.96px 4.96px -2.25px, rgba(0,0,0,.14) 0 11px 11px -3px, rgba(0,0,0,.06) 0 28px 28px -3.75px, var(--blue) -4px 3px 9px 0 inset, var(--peach) 3px -2px 8px 0 inset;
  --btn-shadow-hover: rgba(0,0,0,.18) 0 .83px .83px -.75px, rgba(0,0,0,.18) 0 2.26px 2.26px -1.5px, rgba(0,0,0,.17) 0 4.96px 4.96px -2.25px, rgba(0,0,0,.14) 0 11px 11px -3px, rgba(0,0,0,.06) 0 28px 28px -3.75px, var(--blue) -6px 4px 14px 0 inset, var(--peach) 5px -3px 12px 0 inset;
}

:root[data-theme="light"] {
  --bg: #f6f5f1;
  --card: #ffffff;
  --card-2: #f0efea;
  --card-3: #e9e8e2;
  --line: rgba(0, 0, 0, 0.10);
  --line-soft: rgba(0, 0, 0, 0.07);
  --line-strong: rgba(0, 0, 0, 0.18);
  --fg: #0b0d12;
  --fg-2: #2a2f3b;
  --muted: #5b6577;
  --grey: #6f7a8f;
  --dark-line: #c9cdd6;
  --glow: rgba(1, 117, 255, 0.10);
  --green: #12a150;
  --red: #d63b3b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
svg { display: inline-block; vertical-align: middle; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(1, 117, 255, 0.35); color: #fff; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.grey { color: var(--grey); }
.green { color: var(--green); }
.red { color: var(--red); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Typography ---------- */
.h1 { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 5.7vw, 82px); line-height: 1.2; letter-spacing: -0.03em; color: var(--fg); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.2; letter-spacing: -0.02em; color: var(--fg); }
.h3 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.3; color: var(--fg); }
.h4 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.5; color: var(--fg); }
.lead { font-family: var(--font); font-size: 18px; line-height: 1.5; color: var(--fg); }
.body { font-size: 16px; line-height: 1.5; color: var(--muted); }
.card-text { font-family: var(--display); font-size: 18px; line-height: 1.4; color: var(--muted); }
.small { font-size: 14px; line-height: 1.4; }
.label { font-family: var(--font); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.gradient-text { background: linear-gradient(90deg, #fff 0%, #ffcd7d 45%, #7da4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 20px; }
.section-head .body { max-width: 320px; text-align: left; }
.section-tag { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.section-tag svg { width: 22px; height: 22px; color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding-top: 80px; } .section-head { flex-direction: column; align-items: flex-start; gap: 16px; } :root { --gutter: 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: -0.02em;
  color: #fff; background: #000; box-shadow: var(--btn-shadow);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  white-space: nowrap; user-select: none;
}
.btn:hover { box-shadow: var(--btn-shadow-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.btn-ghost { background: transparent; box-shadow: none; border: 1px solid var(--line); color: var(--fg); }
.btn.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,.03); }
.btn.btn-ghost .accent { color: var(--blue); }
.btn.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn.btn-block { width: 100%; }
.btn.btn-yes { background: rgba(62, 226, 122, .12); box-shadow: none; border: 1px solid rgba(62,226,122,.35); color: var(--green); }
.btn.btn-no { background: rgba(255, 75, 75, .10); box-shadow: none; border: 1px solid rgba(255,75,75,.35); color: var(--red); }
.btn.btn-yes:hover { background: rgba(62, 226, 122, .2); }
.btn.btn-no:hover { background: rgba(255, 75, 75, .18); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.btn-danger { background: transparent; box-shadow: none; border: 1px solid rgba(255,75,75,.35); color: var(--red); }

/* ---------- Pills / chips / tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 14px; color: var(--fg); backdrop-filter: blur(10px); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); font-size: 14px; color: var(--fg-2); }
.chip svg { width: 16px; height: 16px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.06); border: 1px solid var(--line-soft); color: var(--fg-2); white-space: nowrap; }
.tag.venue-polymarket { color: #7fa9ff; background: rgba(29,92,245,.14); border-color: rgba(29,92,245,.3); }
.tag.venue-kalshi { color: #4ee38f; background: rgba(0,198,107,.14); border-color: rgba(0,198,107,.3); }
.tag.venue-limitless { color: #e2ff6a; background: rgba(215,255,63,.12); border-color: rgba(215,255,63,.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(62,226,122,.15); display: inline-block; }
.dot.off { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,172,10,.15); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.card-2 { background: var(--card-2); }
.card-pad { padding: 28px; }
.glass { background: rgba(255, 254, 250, 0); border: 1px solid var(--line-soft); border-radius: var(--radius-xs); padding: 20px; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.card .pattern { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card .pattern-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,10,0) 30%, var(--card) 80%); pointer-events: none; }
.card-hover { transition: transform .4s var(--ease), border-color .3s var(--ease); }
.card-hover:hover { transform: translateY(-3px); border-color: var(--line); }
.divider { height: 1px; background: var(--line); }
.check-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,.02); color: var(--fg-2); font-size: 15px; }
.check-row svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #0c0f16; border: 1px solid var(--line); box-shadow: var(--blue) -3px 2px 8px 0 inset, var(--peach) 2px -2px 6px 0 inset; color: #fff; }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-tile.lg svg { width: 28px; height: 28px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 16px 30px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav .brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-pill { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 100px; background: rgba(0,0,0,.55); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: absolute; left: 50%; top: 16px; transform: translateX(-50%); }
.nav-pill a { padding: 8px 14px; border-radius: 100px; font-size: 14px; color: var(--fg); transition: background .25s var(--ease), color .25s; }
.nav-pill a:hover, .nav-pill a.active { background: rgba(255,255,255,.08); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.55); backdrop-filter: blur(12px); place-items: center; }
.nav-burger svg { width: 20px; height: 20px; }
.nav-mobile { display: none; }
@media (max-width: 900px) {
  .nav { padding: 12px 16px; }
  .nav-pill { display: none; }
  .nav-burger { display: grid; }
  .nav-mobile { display: none; position: fixed; top: 68px; left: 16px; right: 16px; z-index: 59; background: rgba(6,7,10,.96); border: 1px solid var(--line); border-radius: 20px; padding: 12px; backdrop-filter: blur(16px); flex-direction: column; }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .nav-mobile a:hover { background: rgba(255,255,255,.06); }
}

/* Brand wordmark (white-label placeholder) */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.wordmark .mark { width: 30px; height: 30px; border-radius: 9px; background: conic-gradient(from 210deg, #0175ff, #7da4ff, #ffcd7d, #ff9d3d, #0175ff); position: relative; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px rgba(1,117,255,.25); }
.wordmark .mark::after { content: ""; position: absolute; inset: 7px; border-radius: 6px; background: #06070a; }
.wordmark .mark::before { content: ""; position: absolute; left: 12px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; z-index: 1; box-shadow: 0 0 10px #fff; }
.wordmark img { height: 30px; width: auto; }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: 140px; padding: 0 0 40px; overflow: hidden; }
.footer-glow { position: absolute; left: 0; right: 0; top: 0; height: 420px; background: radial-gradient(60% 80% at 50% 100%, rgba(1,117,255,.35), rgba(255,205,125,.18) 40%, rgba(0,0,0,0) 70%); pointer-events: none; }
.footer-mark { position: relative; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(90px, 18vw, 250px); line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; user-select: none;
  background: linear-gradient(90deg, #ff8a3d 0%, #ffcd7d 25%, #ffffff 50%, #7da4ff 75%, #0175ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 20px 60px rgba(255,172,10,.25)); padding: 60px 0 30px; }
.footer-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 40px; }
.footer-grid h4 { font-family: var(--font); font-weight: 400; font-size: 16px; color: var(--fg); margin-bottom: 18px; }
.footer-grid a { display: block; font-size: 16px; color: var(--muted); padding: 6px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--fg); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reveal animations (Framer-style appear) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s } .reveal[data-delay="2"] { transition-delay: .2s } .reveal[data-delay="3"] { transition-delay: .3s } .reveal[data-delay="4"] { transition-delay: .4s }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(8px) } to { opacity: 1; transform: none } }
@keyframes pulse { 0%,100% { opacity: .5 } 50% { opacity: 1 } }
.animate-in { animation: popIn .35s var(--ease) both; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.10), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* ---------- Modals ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-root.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); animation: fadeIn .25s both; }
.modal { position: relative; width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; animation: popIn .3s var(--ease) both; box-shadow: 0 40px 100px rgba(0,0,0,.6); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal.wide { max-width: 720px; }
.modal.xl { max-width: 900px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-head .h4 { font-size: 20px; }
.modal-body { padding: 24px; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-soft); color: var(--muted); }
.modal-close:hover { color: var(--fg); border-color: var(--line); }
.modal-close svg { width: 16px; height: 16px; }

/* ---------- Forms ---------- */
.input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--fg); font-size: 15px; outline: none; transition: border-color .2s; }
.input:focus { border-color: rgba(1,117,255,.6); box-shadow: 0 0 0 3px rgba(1,117,255,.15); }
.input::placeholder { color: var(--grey); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); gap: 4px; }
.seg button { padding: 8px 14px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: all .25s var(--ease); }
.seg button.active { background: #0c0f16; color: var(--fg); box-shadow: var(--blue) -2px 1px 6px 0 inset, var(--peach) 2px -1px 5px 0 inset; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.switch { width: 44px; height: 26px; border-radius: 100px; background: rgba(255,255,255,.1); border: 1px solid var(--line); position: relative; transition: background .25s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch.on { background: var(--blue); border-color: var(--blue); }
.switch.on::after { transform: translateX(18px); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 12px 16px; border-radius: 12px; background: #0c0f16; border: 1px solid var(--line); font-size: 14px; animation: popIn .3s var(--ease) both; box-shadow: 0 20px 40px rgba(0,0,0,.5); max-width: 360px; }
.toast.ok { border-color: rgba(62,226,122,.4); }
.toast.err { border-color: rgba(255,75,75,.4); }

/* ---------- Command palette ---------- */
.palette { position: relative; width: 100%; max-width: 640px; background: #0c0f16; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; animation: popIn .25s var(--ease) both; box-shadow: 0 40px 100px rgba(0,0,0,.7); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.palette-input svg { width: 18px; height: 18px; color: var(--muted); }
.palette-input input { flex: 1; background: none; border: 0; outline: none; font-size: 16px; color: var(--fg); }
.palette-list { max-height: 400px; overflow-y: auto; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer; border-left: 2px solid transparent; }
.palette-item.active, .palette-item:hover { background: rgba(1,117,255,.10); border-left-color: var(--blue); }
.palette-item img, .palette-item .ph { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; background: rgba(255,255,255,.06); flex-shrink: 0; }
.palette-item .t { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-foot { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line-soft); color: var(--grey); font-size: 12px; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); }

/* ---------- Scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 8px; }

/* ---------- Market table (landing preview + app) ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.mkt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mkt-table th { text-align: left; font-family: var(--font); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.mkt-table th.r, .mkt-table td.r { text-align: right; }
.mkt-table th.sortable { cursor: pointer; }
.mkt-table th.sortable.active { color: var(--peach); }
.mkt-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
.mkt-table tbody tr { cursor: pointer; transition: background .2s; }
.mkt-table tbody tr:hover { background: rgba(255,255,255,.03); }
.mkt-table .mk { display: flex; align-items: center; gap: 12px; min-width: 240px; max-width: 420px; }
.mkt-table .mk img, .mkt-table .mk .vicon { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,.05); }
.mkt-table .mk .t { font-size: 14px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; margin-bottom: 3px; }
.mkt-table .star { color: var(--grey); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.mkt-table .star svg { width: 15px; height: 15px; }
.mkt-table .star.on { color: var(--peach); }
.mkt-table .star:hover { background: rgba(255,255,255,.06); color: var(--fg); }

/* ---------- Walkthrough modal ---------- */
.hiw { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 480px; }
.hiw-visual { position: relative; background: radial-gradient(60% 60% at 50% 45%, rgba(255,205,125,.14), transparent 70%), radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.35), transparent), #06070a; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line-soft); overflow: hidden; }
.orbit { position: relative; width: 340px; height: 340px; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); animation: spin 40s linear infinite; }
.orbit-ring.r2 { inset: 60px; animation-duration: 25s; animation-direction: reverse; border-style: solid; border-color: rgba(255,255,255,.08); }
@keyframes spin { to { transform: rotate(360deg) } }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 22px; background: #0c0f16; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 0 60px rgba(255,205,125,.25), var(--blue) -3px 2px 10px 0 inset, var(--peach) 3px -2px 8px 0 inset; }
.orbit-core .wordmark { font-size: 0; gap: 0; }
.orbit-node { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 100px; background: rgba(12,15,22,.9); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; animation: float 6s ease-in-out infinite; }
.orbit-node.n1 { right: -30px; top: 40px; } .orbit-node.n2 { left: 20px; bottom: 30px; animation-delay: -2s; } .orbit-node.n3 { left: -40px; top: 90px; animation-delay: -4s; }
.hiw-quote { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px; background: rgba(12,15,22,.9); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; animation: popIn .5s var(--ease) both; }
.hiw-quote svg { width: 14px; height: 14px; }
.hiw-side { padding: 24px 28px; display: flex; flex-direction: column; }
.hiw-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hiw-top .wordmark { font-size: 12px; gap: 6px; } .hiw-top .wordmark .mark { width: 20px; height: 20px; border-radius: 6px; } .hiw-top .wordmark .mark::after { inset: 5px; } .hiw-top .wordmark .mark::before { left: 8px; top: 8px; width: 4px; height: 4px; }
.hiw-steps { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hiw-steps li { display: flex; gap: 14px; padding: 12px 14px; border-radius: 12px; cursor: pointer; border-left: 2px solid transparent; }
.hiw-steps li .n { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 5px; }
.hiw-title { font-family: var(--display); font-size: 18px; color: var(--muted); transition: color .3s; }
.hiw-text { display: none; color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 6px; }
.hiw-steps li.active { border-left-color: var(--peach); }
.hiw-steps li.active .hiw-title { color: var(--fg); }
.hiw-steps li.active .hiw-text { display: block; animation: fadeIn .4s both; }
.hiw-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
@media (max-width: 800px) { .hiw { grid-template-columns: 1fr; } .hiw-visual { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line-soft); } .orbit { width: 240px; height: 240px; } }

/* ---------- Avatars / account menu / misc ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted); flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 18px; height: 18px; }
.avatar.sm { width: 26px; height: 26px; } .avatar.sm svg { width: 13px; height: 13px; }
.avatar.lg { width: 72px; height: 72px; } .avatar.lg svg { width: 30px; height: 30px; }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 100px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 14px; }
.acct-btn svg:last-child { width: 14px; height: 14px; color: var(--muted); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; background: #0c0f16; border: 1px solid var(--line); border-radius: 16px; padding: 6px; z-index: 70; box-shadow: 0 30px 60px rgba(0,0,0,.6); animation: popIn .2s var(--ease) both; }
.acct-menu button, .acct-menu a { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: left; flex-wrap: wrap; }
.acct-menu button:hover, .acct-menu a:hover { background: rgba(255,255,255,.05); }
.acct-menu svg { width: 16px; height: 16px; color: var(--muted); }
.acct-menu small { width: 100%; padding-left: 26px; color: var(--grey); font-size: 12px; }
.acct-menu .divider { margin: 6px 0; }
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.addr-row { display: flex; gap: 8px; align-items: center; }
.addr-row code { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.qr-wrap { display: grid; place-items: center; padding: 16px; border-radius: 16px; background: #fff; width: 200px; margin: 0 auto; }
.qr-wrap svg { width: 168px; height: 168px; }
.chart-empty { display: grid; place-items: center; height: 240px; color: var(--muted); font-size: 14px; }
.chart-tip { position: absolute; padding: 6px 10px; border-radius: 8px; background: #0c0f16; border: 1px solid var(--line); font-size: 12px; pointer-events: none; white-space: nowrap; }
.chart-tip b { font-family: var(--mono); margin-right: 6px; }
.chart-tip span { color: var(--muted); }

.market-note svg { vertical-align: -2px; }
#x-btn svg { width: 16px; height: 16px; }

/* ---------- Money cursor + bills ---------- */
@media (pointer: fine) {
  html.money-cursor-on, html.money-cursor-on * { cursor: none !important; }
}
.money-cursor { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; transform-origin: 0 0; }
.money-cursor img { transition: transform .12s var(--ease); }
.money-cursor.down img { transform: scale(.9) rotate(-6deg); }
.money-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.money-bill { position: absolute; left: 0; top: 0; will-change: transform, opacity; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.money-bill svg { display: block; }
.money-wad { display: block; width: 54px; height: auto; margin: 2px 0 0 2px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)); }
.money-dot { position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.6), 0 0 6px rgba(0,0,0,.5); z-index: 1; }
.money-bill img { display: block; border-radius: 2px; }
