/* ---------- Fonts (Aeonik, as used on fomo.family) ---------- */
@font-face { font-family: "Aeonik"; src: url("fonts/Aeonik-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("fonts/Aeonik-Medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --bg-3: #f3f4f6;
  --navy: #060510;
  --navy-2: #12111a;
  --line: rgba(6, 5, 16, 0.1);
  --line-2: rgba(6, 5, 16, 0.16);
  --text: #0b0a1a;
  --muted: #5f6270;
  --dim: #9899a3;
  --accent: #516af6;
  --accent-2: #eaedff;
  --green: #16a34a;
  --glow: rgba(81, 106, 246, 0.35);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Aeonik", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1160px;
  --r: 20px;
  --r-sm: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; }
h3 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h4 { font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.mono-b { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.up { color: var(--green); }
.flat { color: var(--dim); }
.hi { color: #b9c4ff; font-weight: 600; }
.link { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.page { padding-top: 24px; }
.h-serif { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 14px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.logo { width: 26px; height: 26px; }
.wordmark { display: inline-block; color: var(--navy); font-family: var(--sans); font-weight: 600; font-size: 25px; letter-spacing: -0.05em; line-height: 1; }
.hcard .wordmark { color: #EAEDFF; }
.wm-svg { height: 20px; width: auto; display: block; align-self: center; }
.wm-cash { font-family: var(--sans); font-weight: 500; font-size: 22px; letter-spacing: -0.04em; line-height: 1; color: var(--navy); }
.hcard .wm-cash { color: #EAEDFF; }
.hcard .wordmark, .hcard-brand { color: #EAEDFF; }
.mini { width: 20px; height: 20px; vertical-align: -5px; margin-right: 6px; }
.mini-coin { width: 18px; height: 18px; font-size: 10px; margin-right: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 12px; font: 500 14px/1 var(--sans); letter-spacing: -0.01em; border: 1px solid var(--line-2); background: linear-gradient(180deg, #ffffff, #f4f5f8); color: var(--text); cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(6,5,16,.06), inset 0 1px 0 rgba(255,255,255,.9); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(6,5,16,.10), inset 0 1px 0 rgba(255,255,255,.9); border-color: rgba(6,5,16,.22); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(6,5,16,.08); }
.btn-primary { background: linear-gradient(180deg, #6b7dff 0%, #516af6 55%, #4658e8 100%); color: #fff; border-color: #3f57e6; box-shadow: 0 1px 2px rgba(63,87,230,.25), 0 8px 20px -8px rgba(81,106,246,.6), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-primary:hover { background: linear-gradient(180deg, #7686ff 0%, #5a71f8 55%, #4b5eec 100%); box-shadow: 0 2px 4px rgba(63,87,230,.25), 0 12px 26px -8px rgba(81,106,246,.7), inset 0 1px 0 rgba(255,255,255,.3); border-color: #3f57e6; }
.btn-dark { background: linear-gradient(180deg, #1c1b2c 0%, #0b0a1a 60%, #060510 100%); color: #fff; border-color: #060510; height: 52px; font-size: 15px; font-weight: 600; box-shadow: 0 1px 2px rgba(6,5,16,.3), 0 10px 24px -10px rgba(6,5,16,.7), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-dark:hover { background: linear-gradient(180deg, #262538 0%, #14132a 60%, #0b0a1a 100%); border-color: #060510; box-shadow: 0 2px 4px rgba(6,5,16,.3), 0 14px 30px -10px rgba(6,5,16,.8), inset 0 1px 0 rgba(255,255,255,.14); }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.pill { border-radius: 999px; }
.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.wide { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.icon-btn:hover { border-color: var(--line-2); background: var(--bg-3); }
.icon-btn.round { font-size: 22px; line-height: 1; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 7px; }
.links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.links a:hover, .links a.is-active { color: var(--text); }
.links a.is-active { font-weight: 600; }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-right .btn { height: 40px; }
.x-btn { font-size: 15px; font-weight: 600; text-decoration: none; }
.avatar { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(from 90deg, #516af6, #8f9dfb, #060510, #516af6); margin-right: 8px; vertical-align: -3px; }
.avatar.lg { width: 36px; height: 36px; margin: 0; }
#connect.is-connected { font-family: var(--mono); font-size: 13px; }
.profile { position: absolute; z-index: 60; width: 340px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 24px 60px rgba(6,5,16,.18); }
.profile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile-head div { flex: 1; line-height: 1.2; }
.profile-head b { font-family: var(--mono); font-weight: 500; font-size: 14px; display: block; }
.profile-head small { color: var(--dim); font-size: 12px; }
.profile-holdings { margin-top: 6px; }
.profile-holdings li { padding: 10px 0; }
.profile-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.profile-out { margin-left: auto; color: #b3261e; }
.own-sub-r { font-size: 12px; color: var(--dim); }
.own-sub-r b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.ltv-track { position: relative; height: 6px; border-radius: 999px; background: var(--line); margin-top: 12px; overflow: visible; }
.ltv-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .2s; }
.ltv-track s { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--dim); text-decoration: none; }
#menuBtn { display: none; }
.mobile-menu { display: none; flex-direction: column; padding: 8px 20px 16px; border-top: 1px solid var(--line); }
.mobile-menu a { padding: 10px 0; font-size: 16px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: flex; }

/* ---------- Hero card (carousel + page heroes) ---------- */
.hero-card { position: relative; overflow: hidden; margin-top: 20px; background: var(--navy); color: #fff; border-radius: var(--r); padding: 64px 56px 28px; box-shadow: 0 30px 80px rgba(6,5,16,.25); }
.slides { position: relative; min-height: 320px; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateX(16px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.slide::before, .page-hero::before { content: ""; position: absolute; inset: -64px -56px -76px; background: var(--img) center/cover no-repeat; z-index: 0; }
.slide::after, .page-hero::after { content: ""; position: absolute; inset: -64px -56px -76px; z-index: 0; background: linear-gradient(90deg, rgba(6,5,16,.96) 0%, rgba(6,5,16,.9) 40%, rgba(6,5,16,.4) 75%, rgba(6,5,16,.2) 100%), linear-gradient(0deg, rgba(6,5,16,.85), transparent 45%); }
.page-hero { padding: 64px 56px; }
.page-hero::before, .page-hero::after { inset: 0; }
.slide-copy { position: relative; z-index: 1; max-width: 680px; }
.slide.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.slide p, .page-hero p { margin-top: 20px; font-size: 18px; color: rgba(234,237,255,.75); max-width: 580px; }
.tag { display: inline-flex; align-items: center; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .03em; color: #fff; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 24px -10px rgba(0,0,0,.7); }
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.hero-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -8px rgba(0,0,0,.6); }
.hero-card .btn-ghost:hover { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.1)); border-color: rgba(255,255,255,.4); }
.hero-card .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.slide-nav { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.dots button.is-active { width: 24px; background: #fff; }
.arrows { display: flex; gap: 8px; }
.split-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.split-hero .card-stage { position: relative; z-index: 1; }
.slide-space::after { background: linear-gradient(90deg, rgba(6,5,16,.92) 0%, rgba(6,5,16,.7) 45%, rgba(6,5,16,.15) 100%); }
.slide-art { position: absolute; right: -20px; bottom: -80px; height: 115%; width: auto; z-index: 1; pointer-events: none; }
.page-hero .slide-art { bottom: -60px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0 0; padding: 0; }
.stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 22px; }
.stats dt { font-family: var(--mono); font-size: 24px; font-weight: 500; }
.stats dd { margin: 6px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- Top grid: convert + stats ---------- */
.top-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; margin-top: 16px; }
.stat-col { display: grid; gap: 16px; align-content: start; }
.stat-col .stats { margin: 0; grid-template-columns: repeat(2, 1fr); }
.convert .panel-head { margin-bottom: 16px; }
.field { display: block; background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.field > span { font-size: 12px; color: var(--dim); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.field-row input, .field-row output { font-family: var(--mono); font-size: 24px; font-weight: 500; border: 0; background: transparent; width: 100%; outline: none; color: var(--text); padding: 0; }
.unit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; background: var(--bg-2); border: 1px solid var(--line); padding: 6px 10px 6px 6px; border-radius: 999px; white-space: nowrap; }
.unit img { width: 22px; height: 22px; }
.swap-arrow { text-align: center; color: var(--dim); margin: -4px 0; font-size: 18px; }
.kv { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 10px 0 0; }
.kv b { font-family: var(--mono); }
.convert .btn { margin-top: 16px; }

/* ---------- Panels ---------- */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.panel + .panel, .two-col, .panel.about { margin-top: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.panel-head h3 { display: flex; align-items: center; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); background: var(--bg-3); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip.live { color: var(--green); }

.chip.amber { color: var(--accent); border-color: rgba(81,106,246,.35); background: var(--accent-2); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.asset { display: flex; align-items: center; gap: 12px; }
.asset b { display: block; font-weight: 600; font-size: 14px; }
.asset small, .val small { display: block; font-size: 12px; color: var(--dim); }
.val { text-align: right; }
.val b { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.coin { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; background: var(--accent); color: #fff; }
.coin.alt { background: var(--bg-3); color: var(--muted); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; }
.coin-img { width: 36px; height: 36px; flex: none; }
.bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; margin-top: 14px; background: var(--bg-3); }
.bar i { display: block; height: 100%; }
.bar i:nth-child(1) { background: var(--accent); }
.bar i:nth-child(2) { background: #8f9dfb; }
.bar i:nth-child(3) { background: var(--green); }
.feed li { animation: slidein .4s ease; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }
.payout { display: grid; gap: 6px; padding: 8px 0 14px; }
.payout b { font-family: var(--mono); font-size: 40px; font-weight: 500; line-height: 1; color: var(--accent); }
.payout small { color: var(--muted); font-size: 13px; }

/* ---------- Tables ---------- */
.table-panel { margin-top: 16px; padding-bottom: 8px; }
.tabs { display: flex; gap: 8px; margin: 12px 0 8px; overflow-x: auto; padding-bottom: 4px; }
.tab { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.table-wrap { overflow-x: auto; }
.mkt { width: 100%; border-collapse: collapse; min-width: 640px; }
.mkt th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.mkt td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
.mkt td:first-child { font-family: var(--sans); }
.mkt td:last-child { text-align: right; }
.mkt tr:last-child td { border-bottom: 0; }
.mkt tr.hide { display: none; }
.mkt tbody tr:hover td { background: var(--bg-3); }

/* ---------- Token page ---------- */
.token-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 4px 18px; }
.token-id { display: flex; align-items: center; gap: 14px; }
.token-logo { width: 72px; height: 72px; }
.token-name { font-family: var(--sans); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; line-height: 1; }
.token-name .sym { color: var(--dim); font-weight: 500; }
.price-card { padding: 26px 26px 20px; }
.price-big { font-family: var(--sans); font-weight: 600; font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.unit-lg { font-size: 22px; color: var(--dim); font-weight: 500; }
.price-delta { margin-top: 8px; font-size: 14px; font-weight: 500; }
.seg { display: inline-flex; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-top: 18px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font: 500 13px var(--sans); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; }
.seg button.is-active { background: var(--bg-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg.small { margin-top: 0; }
.chart-wrap { margin-top: 16px; position: relative; }
#chart { width: 100%; height: 300px; display: block; }
.chart-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.sw.peg { background: var(--dim); }
.sw.px { background: var(--navy); }
.sw.yld { background: var(--accent); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trade { padding: 0; overflow: hidden; }
.trade-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.trade-tabs button { border: 0; background: transparent; padding: 18px; font: 500 16px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.trade-tabs button.is-active { color: var(--text); border-bottom-color: var(--navy); }
.trade-body { padding: 20px 22px 22px; display: grid; gap: 12px; }
.tbox { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; position: relative; }
.tlabel { font-size: 13px; color: var(--muted); }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.trow input, .trow output { font-family: var(--sans); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; border: 0; background: transparent; width: 100%; outline: none; color: var(--text); padding: 0; }
.asset-pick { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px 7px 8px; font: 600 14px var(--sans); color: var(--text); cursor: pointer; white-space: nowrap; }
.asset-pick.static { cursor: default; }
.tsub { display: block; font-size: 13px; color: var(--dim); margin-top: 4px; }
.pick-menu { position: absolute; right: 16px; top: 62px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; z-index: 5; box-shadow: 0 12px 30px rgba(6,5,16,.15); display: grid; gap: 2px; }
.pick-menu button { display: flex; align-items: center; border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; font: 500 14px var(--sans); cursor: pointer; color: var(--text); }
.pick-menu button:hover { background: var(--bg-3); }
.tarrow { display: flex; justify-content: center; margin: -18px 0; position: relative; z-index: 2; }
.tarrow span { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.tinfo { margin: 6px 0 0; display: grid; gap: 8px; }
.tinfo div { display: flex; justify-content: space-between; font-size: 14px; }
.tinfo dt { color: var(--muted); }
.tinfo dd { margin: 0; font-weight: 500; }
.position .panel-head { margin-bottom: 14px; }
.plist { margin: 0; display: grid; }
.plist div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plist div:first-child { border-top: 0; }
.plist dt { color: var(--muted); }
.plist dd { margin: 0; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.plist.wide { grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 10px; }
.plist.wide div:nth-child(2) { border-top: 0; }
.claim-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 4px; font-size: 15px; }
.claim-row b { font-family: var(--mono); font-weight: 500; }
.copy { border: 0; background: transparent; cursor: pointer; color: var(--dim); font-size: 14px; }
.about p { color: var(--muted); max-width: 760px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.position .btn { margin-top: 12px; }

/* ---------- Editorial sections ---------- */
.section { padding: 100px 0 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.section > h2 { margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 26px 0 12px; }
.card .num + h3 { margin-top: 26px; }
.card h3:first-child { margin-top: 0; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Calculator ---------- */
.calc { padding: 24px 26px; }
.calc-label { display: block; margin-top: 20px; font-size: 13px; color: var(--dim); }
.calc-amount { font-family: var(--serif); font-size: 56px; line-height: 1; margin: 6px 0 22px; }
input[type=range] { width: 100%; height: 4px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, var(--accent) var(--pct, 5%), var(--line-2) var(--pct, 5%)); border-radius: 999px; outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg-2); box-shadow: 0 0 0 1px var(--line-2), 0 0 16px var(--glow); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg-2); box-shadow: 0 0 0 1px var(--line-2), 0 0 16px var(--glow); }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.calc-out div { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.calc-out strong { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.fine { margin-top: 18px; font-size: 12px; color: var(--dim); }

/* ---------- Card mockup ---------- */
.card-stage { display: flex; justify-content: center; perspective: 1200px; }
.hcard { width: 100%; max-width: 420px; aspect-ratio: 1.586; border-radius: 20px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(81,106,246,.6), transparent 55%), linear-gradient(160deg, #1a1930 0%, #0b0a1a 60%, #060510 100%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px rgba(6,5,16,.45), inset 0 1px 0 rgba(255,255,255,.08);
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .25s ease; will-change: transform; }
.hcard-top { display: flex; align-items: center; gap: 10px; }
.hcard-logo { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.hcard-brand { display: inline-flex; align-items: center; }
.card-wm { height: 18px; width: auto; align-self: center; }
.hcard-chip { width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #dfe4ff, #8f9dfb); position: relative; opacity: .9; }
.hcard-chip::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(0,0,0,.25); border-radius: 3px; }
.hcard-num { font-size: 18px; letter-spacing: .18em; text-transform: none; }
.hcard-foot { display: flex; justify-content: space-between; color: rgba(234,237,255,.6); }

/* ---------- Compare table ---------- */
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare th { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--text); }
.compare .hl { color: var(--accent); font-weight: 500; background: rgba(81,106,246,.06); }

/* ---------- FAQ ---------- */
.faq .acc { max-width: 760px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 17px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 20px; color: var(--dim); transition: transform .2s, color .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
details p { color: var(--muted); padding: 0 0 22px; max-width: 680px; }

/* ---------- CTA card ---------- */
.cta-card { margin-top: 100px; text-align: center; padding: 72px 40px; background: radial-gradient(80% 120% at 50% 120%, rgba(81,106,246,.5), transparent 60%), var(--navy); }
.cta-card h2 { color: #fff; }
.cta-card p { margin: 16px auto 0; color: rgba(234,237,255,.75); font-size: 17px; max-width: 520px; }
.wl-form { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.wl-form input { width: 320px; max-width: 70vw; height: 42px; padding: 0 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; font: 15px var(--sans); outline: none; }
.wl-form input:focus { border-color: var(--accent); }
.cta-card .fine { min-height: 18px; color: rgba(234,237,255,.6); }

/* ---------- Footer ---------- */
.footer { margin-top: 80px; }
.foot-grid { border-top: 1px solid var(--line); padding: 56px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-h { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot-grid a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; }
.foot-grid a:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .panels, .stat-grid { grid-template-columns: 1fr 1fr; }
  .top-grid { grid-template-columns: 1fr; }
  .stat-col .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .links, .nav-right .btn { display: none; }
  #menuBtn { display: inline-flex; }
  .hero-card { padding: 40px 24px 20px; }
  .page-hero { padding: 40px 24px; }
  .slide::before, .slide::after { inset: -40px -24px -70px; }
  .slides { min-height: 380px; }
  .split-hero { grid-template-columns: 1fr; }
  .slide-art { height: 55%; right: -30px; bottom: -30px; opacity: .55; }
  .two-col, .panels, .grid-3, .stat-grid { grid-template-columns: 1fr; }
  .stats, .stat-col .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 72px; }
  .cta-card { margin-top: 72px; padding: 48px 20px; }
  .plist.wide { grid-template-columns: 1fr; }
  .plist.wide div:nth-child(2) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .calc-out { grid-template-columns: 1fr; }
  .wl-form { flex-direction: column; align-items: stretch; }
  .wl-form input { width: 100%; max-width: none; }
  .calc-amount { font-size: 44px; }
  .slides { min-height: 440px; }
  .token-name { font-size: 24px; }
  .price-big { font-size: 36px; }
}

/* ---------- Announcement bar (own.money style) ---------- */
.announce { text-align: center; font-size: 13.5px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); color: var(--muted); }
.announce-k { color: var(--accent); font-weight: 500; }
.announce a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- own.money-style app pages (mint, stake) ---------- */
.own-page { max-width: 1020px; }
.own-title { text-align: center; padding: 56px 0 40px; }
.own-title h1 { font-size: clamp(40px, 5vw, 56px); }
.own-title p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.own-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.own-tabs-row { display: flex; gap: 10px; margin-bottom: 12px; }
.own-seg { flex: 1; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.own-seg button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; }
.own-seg button.is-active { background: var(--bg-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.own-side { display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; font: 500 14px var(--sans); background: var(--bg-2); white-space: nowrap; }
.own-side:hover { background: var(--bg-3); }
.own-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: grid; gap: 10px; }
.own-box { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; position: relative; }
.own-box-head { display: flex; justify-content: space-between; align-items: center; }
.own-label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.own-box-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.own-box-row input, .own-box-row output { font-family: var(--mono); font-weight: 500; font-size: 26px; border: 0; background: transparent; width: 100%; outline: none; color: var(--text); padding: 0; }
.own-box-row output.is-empty, .own-box-row input::placeholder { color: var(--dim); }
.own-asset { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px 6px 8px; font: 600 13px var(--sans); color: var(--text); cursor: pointer; white-space: nowrap; }
.own-asset.static { cursor: default; }
.own-hint { font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.own-boost { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.own-box input[type=range] { margin-top: 14px; }
.own-rows { margin: 0; background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.own-rows div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.own-rows div:first-child { border-top: 0; }
.own-rows dt { color: var(--muted); }
.own-rows dd { margin: 0; font-family: var(--mono); font-weight: 500; text-align: right; }
.own-sub { display: block; font-size: 11px; color: var(--dim); font-weight: 400; }
.own-cta { height: 52px; border-radius: 12px; margin-top: 2px; }
.own-position { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; min-height: 220px; margin-top: 58px; }
.own-position .own-muted { color: var(--muted); font-size: 14px; margin-top: 14px; }
.own-position .own-rows { margin-top: 14px; }
.own-stats { margin-top: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 8px; }
.own-stats-head { display: flex; justify-content: space-between; align-items: center; }
.own-live { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.own-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.own-tiles div { background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.own-tiles span { font-size: 13px; color: var(--muted); }
.own-tiles b { font-family: var(--mono); font-weight: 500; font-size: 22px; }
.own-tiles small { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.own-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.own-cols .own-rows { background: transparent; border: 0; padding: 0; margin-top: 8px; }

/* ---------- Thesis (why page) ---------- */
.thesis { max-width: 640px; margin: 0 auto; padding: 56px 0 40px; }
.thesis h1 { font-size: clamp(34px, 4.4vw, 46px); line-height: 1.12; margin-top: 8px; }
.thesis .lead { margin-top: 22px; }
.thesis h2 { font-size: 24px; line-height: 1.2; margin: 40px 0 12px; }
.thesis p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.thesis a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.thesis-fig { margin: 24px 0 0; }
.thesis-chart { width: 100%; height: auto; display: block; }
.thesis-chart .tick { font-family: var(--mono); font-size: 11px; }
.thesis-fig figcaption { font-size: 12px; color: var(--dim); margin-top: 6px; }
.sliver { position: relative; height: 26px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.sliver i { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.sliver span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.thesis-q { margin-top: 40px; color: var(--text) !important; font-weight: 600; }
.thesis blockquote { margin: 16px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--line-2); color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- Wallet modal ---------- */
.wmodal { position: fixed; inset: 0; z-index: 100; background: rgba(6,5,16,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.wmodal-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; width: 100%; max-width: 380px; padding: 18px 18px 14px; box-shadow: 0 30px 80px rgba(6,5,16,.35); }
.wmodal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wmodal-x { border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); }
.wmodal-list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.wmodal-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--line); background: var(--bg-3); border-radius: 12px; padding: 10px 12px; font: 500 14px var(--sans); color: var(--text); cursor: pointer; text-align: left; }
.wmodal-item:hover { border-color: var(--line-2); background: var(--bg-2); }
.wmodal-item img { width: 28px; height: 28px; border-radius: 8px; }
.wmodal-item small { margin-left: auto; color: var(--green); font-size: 12px; }

@media (max-width: 860px) {
  .own-grid, .own-cols { grid-template-columns: 1fr; }
  .own-position { margin-top: 0; min-height: 0; }
  .own-tiles { grid-template-columns: 1fr 1fr; }
  .own-title { padding: 36px 0 28px; }
}

/* ---------- Token pickers & home borrow widget ---------- */
.pick-menu.tokens { width: 320px; right: 0; top: 48px; padding: 8px; }
.pick-search { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 14px var(--sans); outline: none; margin-bottom: 6px; background: var(--bg-3); color: var(--text); }
.pick-search:focus { border-color: var(--accent); }
.pick-list { max-height: 300px; overflow-y: auto; display: grid; gap: 2px; }
.pick-list button { display: flex; align-items: center; gap: 10px; width: 100%; }
.pick-list img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.pick-list span { flex: 1; line-height: 1.15; text-align: left; }
.pick-list b { display: block; font-size: 14px; }
.pick-list small { color: var(--dim); font-size: 11.5px; }
.pick-list em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.unit.pick { cursor: pointer; }
.field { position: relative; }
.borrow-widget .field-row output { font-family: var(--mono); }
.home-right .borrow-widget { grid-column: 1 / -1; }
.mkt-filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.mkt-filter input { flex: 1; min-width: 200px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 14px var(--sans); outline: none; background: var(--bg-3); }
.mkt-filter .tabs { margin: 0; }
.down { color: #e5484d; }
.own-stats .table-wrap { margin-top: 8px; }

/* ---------- Card application ---------- */
.apply { max-width: 620px; margin: 28px auto 0; text-align: left; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apply label { display: grid; gap: 6px; font-size: 12px; color: rgba(234,237,255,.7); }
.apply input:not([type=checkbox]) { height: 44px; padding: 0 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; color: #fff; font: 14px var(--sans); outline: none; }
.apply input:focus { border-color: var(--accent); }
.apply-check { display: flex !important; align-items: center; gap: 10px; margin: 16px 0; font-size: 13px !important; }
.apply .btn { width: 100%; height: 48px; }
.apply .fine { text-align: center; }
@media (max-width: 640px) { .apply-grid { grid-template-columns: 1fr; } .pick-menu.tokens { width: 100%; left: 0; right: auto; } }

/* ---------- Icons ---------- */
.card-ic { width: 44px; height: 44px; border-radius: 50%; display: block; box-shadow: 0 8px 20px -8px rgba(6,5,16,.35); }
.card .card-ic + h3 { margin-top: 22px; }
.pair-ic { display: inline-flex; flex: none; }
.pair-ic img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg-2); }
.pair-ic img + img { margin-left: -12px; }
.pad { padding: 28px 12px !important; }

/* ---------- Borrow: categories + trending table (FOMO style) ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 22px; }
.cat { position: relative; height: 118px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 14px; display: flex; align-items: flex-end; font-weight: 500; font-size: 15px; color: var(--muted); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(6,5,16,.3); border-color: var(--line-2); }
.cat.is-active { background: var(--bg-3); color: var(--text); }
.cat img { position: absolute; right: -14px; top: -22px; width: 104px; height: 104px; border-radius: 50%; transform: rotate(-14deg); box-shadow: 0 14px 26px -10px rgba(6,5,16,.45), inset 0 2px 0 rgba(255,255,255,.4); }
.trend-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sel { height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-3); padding: 0 14px; font: 500 14px var(--sans); color: var(--text); outline: none; cursor: pointer; }
.trend-bar .seg { margin: 0; border-radius: 999px; }
.trend-bar .seg button { border-radius: 999px; }
.ca-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 8px; height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: var(--bg-2); color: var(--dim); }
.ca-search input { flex: 1; border: 0; outline: none; background: transparent; font: 14px var(--sans); color: var(--text); }
.ca-search:focus-within { border-color: var(--accent); }
.trend-panel { padding: 0; overflow: hidden; }
.trend-panel .fine { padding: 0 20px 14px; margin-top: 10px; }
.mkt.trend th { background: var(--bg-3); padding: 14px 12px; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mkt.trend th[data-s] { cursor: pointer; }
.mkt.trend th:first-child, .mkt.trend td:first-child { padding-left: 20px; }
.mkt.trend td { padding: 14px 12px; font-family: var(--sans); font-size: 14.5px; }
.mkt.trend tbody tr { cursor: pointer; }
.tk { display: flex; align-items: center; gap: 12px; }
.tk b { display: block; font-weight: 500; font-size: 15.5px; }
.tk small { color: var(--dim); font-size: 12.5px; }
.tk-wrap { position: relative; flex: none; display: inline-block; line-height: 0; }
.tk-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-3); }
.tk-img.xl { width: 56px; height: 56px; }
.tk-chain { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--bg-2); background: var(--bg-2); }
.liq-pill { display: inline-block; background: var(--bg-3); border-radius: 8px; padding: 4px 10px; font-size: 13.5px; }

/* ---------- Token detail ---------- */
.back { display: inline-block; color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.back:hover { color: var(--text); }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.tk-main { display: grid; gap: 12px; min-width: 0; }
.tk-main .panel + .panel { margin-top: 0; }
.tk-top { padding: 26px; }
.tk-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tk-head { display: flex; align-items: center; gap: 16px; }
.tk-head h1 { font-family: var(--sans); font-weight: 500; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.tk-head h1 span { color: var(--muted); font-size: 24px; }
.tk-head small { color: var(--dim); }
.ca-chip { font-family: var(--mono); font-size: 13px; background: var(--bg-3); border-radius: 8px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 4px; }
.tk-stats { margin-top: 20px; }
.tk-stats div { background: var(--bg-2); }
.tk-stats b { font-family: var(--sans); font-size: 17px; }
.tk-chart { padding: 22px 22px 12px; }
.tk-chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tk-chart-head .seg { margin: 0; border-radius: 999px; }
.tk-chart-head .seg button { border-radius: 999px; }
.tk-price { display: flex; align-items: center; gap: 10px; }
.tk-price b { font-weight: 600; font-size: 32px; letter-spacing: -0.03em; }
.chg { font-size: 12.5px; padding: 3px 8px; border-radius: 6px; }
.chg.up { background: rgba(22,163,74,.1); }
.chg.down { background: rgba(229,72,77,.1); }
#tkChart { width: 100%; height: 420px; display: block; overflow: hidden; }
.tk-bottom { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.tk-bottom .panel { margin-top: 0; }
.score { text-align: center; display: grid; justify-items: center; gap: 6px; align-content: center; }
.arc { position: relative; width: 230px; height: 124px; margin-top: 10px; }
.arc i { position: absolute; left: 50%; bottom: 0; width: 26px; height: 40px; margin-left: -13px; border-radius: 7px; background: var(--line-2); transform-origin: 50% 118px; }
.arc i.on { background: var(--accent); }
.arc i:nth-child(1) { transform: translateY(-78px) rotate(-81deg); } .arc i:nth-child(2) { transform: translateY(-78px) rotate(-63deg); } .arc i:nth-child(3) { transform: translateY(-78px) rotate(-45deg); }
.arc i:nth-child(4) { transform: translateY(-78px) rotate(-27deg); } .arc i:nth-child(5) { transform: translateY(-78px) rotate(-9deg); } .arc i:nth-child(6) { transform: translateY(-78px) rotate(9deg); }
.arc i:nth-child(7) { transform: translateY(-78px) rotate(27deg); } .arc i:nth-child(8) { transform: translateY(-78px) rotate(45deg); } .arc i:nth-child(9) { transform: translateY(-78px) rotate(63deg); } .arc i:nth-child(10) { transform: translateY(-78px) rotate(81deg); }
.arc b { position: absolute; left: 0; right: 0; bottom: 4px; font-weight: 500; font-size: 26px; letter-spacing: -0.02em; }
.pools { padding: 0; overflow: hidden; }
.pools .mkt { min-width: 0; }
.pools th { background: var(--bg-3); font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 13px; padding: 14px; }
.pools td { font-family: var(--sans); padding: 13px 14px; }
.pools td:last-child, .pools th:last-child { text-align: right; }
.dex { text-transform: capitalize; }
.tk-side { position: sticky; top: 76px; }
.bpanel { background: var(--bg-3); border: 1px solid var(--line); border-radius: 22px; padding: 12px; display: grid; gap: 10px; }
.bpanel-top { display: flex; align-items: center; gap: 10px; }
.bpanel-top .own-seg { background: var(--bg-2); border-radius: 999px; }
.bpanel-top .own-seg button { border-radius: 999px; padding: 8px; }
.bpanel-top .own-seg button.is-active { background: var(--navy); color: #fff; }
.bbox { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(6,5,16,.04); }
.blabel { font-size: 13.5px; color: var(--muted); }
.brow { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.brow input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 500 40px var(--sans); letter-spacing: -0.03em; color: var(--text); padding: 0; }
.brow input::placeholder { color: var(--line-2); }
.brow .own-asset { font-size: 15px; padding: 8px 14px 8px 8px; }
.bsub { font-size: 13.5px; color: var(--muted); }
.bsub-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.pcts { display: inline-flex; gap: 6px; }
.pcts button { border: 0; background: var(--bg-3); border-radius: 8px; padding: 6px 10px; font: 500 13px var(--sans); color: var(--muted); cursor: pointer; }
.pcts button:hover { color: var(--text); background: var(--accent-2); }
.bswap { justify-self: center; width: 36px; height: 36px; margin: -20px 0; z-index: 2; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.bpanel input[type=range] { margin: 6px 4px; width: calc(100% - 8px); }
.brows { background: var(--bg-2); }
.brows dd { display: inline-flex; align-items: center; }
.btn.is-bad { background: #e5484d; border-color: #c93b40; }
.skel { display: inline-block; width: 220px; height: 56px; border-radius: 12px; background: var(--bg-3); }

@media (max-width: 1000px) { .tk-layout { grid-template-columns: 1fr; } .tk-side { position: static; } .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tk-bottom { grid-template-columns: 1fr; } .cats { grid-template-columns: repeat(2, 1fr); } .cat { height: 96px; } .cat img { width: 80px; height: 80px; } .brow input { font-size: 32px; } }

/* ---------- Footer wordmark: engraved, full-bleed, cut off at the baseline ---------- */
.footer { margin-bottom: 0; }
.foot-grid { padding-bottom: 40px; }
.foot-big { width: 100%; overflow: hidden; height: clamp(150px, 21vw, 330px); background: linear-gradient(180deg, #dededa 0%, #e7e7e3 100%); display: flex; justify-content: center; align-items: flex-start; user-select: none; margin-top: 10px; box-shadow: inset 0 10px 24px -14px rgba(6,5,16,.18); }
.foot-big span { font-family: var(--sans); font-weight: 700; font-size: clamp(260px, 40vw, 620px); line-height: .78; letter-spacing: -0.07em; color: #d5d5d1; text-shadow: 0 2px 0 rgba(255,255,255,.55), 0 -1px 0 rgba(6,5,16,.10); padding-top: clamp(14px, 2vw, 34px); white-space: nowrap; }

/* ---------- Category tiles with coin art ---------- */
.cat { cursor: pointer; }
.cat img { object-fit: cover; background: var(--bg-3); }
.rate { font-weight: 500; color: var(--accent); }

/* ---------- Token page: chart, socials, panel ---------- */
.tk-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.socs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.soc { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--bg-3); font-size: 13px; color: var(--text); border: 1px solid transparent; }
.soc:hover { border-color: var(--line-2); background: var(--bg-2); }
.soc span { color: var(--muted); }
.chart-ctl { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chart-ctl .seg { margin: 0; border-radius: 999px; }
.chart-ctl .seg button { border-radius: 999px; padding: 6px 12px; }
.tv { width: 100%; height: 420px; }
.chart-note { display: flex; justify-content: space-between; margin: 6px 2px 0; }
.tv-credit { margin-left: auto; }
#aboutPanel h3 { margin-bottom: 8px; }
.tk-main .pools { margin-top: 0; }
.sym-ic { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin-right: 6px; flex: none; background: var(--bg-3); }
.sm-ic { width: 18px; height: 18px; }
.mini { border-radius: 50%; object-fit: cover; }
.tk-side { position: sticky; top: 84px; align-self: start; z-index: 1; }
.bpanel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 18px 50px -24px rgba(6,5,16,.28); }
.bpanel-top { justify-content: space-between; }
.bpanel-top .own-seg { flex: 1; background: var(--bg-3); border: 0; }
.bbox { background: var(--bg-3); border: 1px solid var(--line); box-shadow: none; }
.bswap { background: var(--bg-2); }
.pcts button { background: var(--bg-2); border: 1px solid var(--line); }
.brows { background: var(--bg-3); }
.rate-card { border-radius: 16px; padding: 14px 16px; background: linear-gradient(135deg, #0b0a1a, #1c1b3a 60%, #2a3aa0); color: #fff; display: grid; gap: 2px; }
.rate-card span { font-size: 12.5px; color: rgba(234,237,255,.7); }
.rate-card b { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.rate-card small { font-size: 12.5px; color: rgba(234,237,255,.7); }

.mkt.trend td:last-child { padding-right: 18px; white-space: nowrap; }
.mkt.trend .tk span { max-width: 190px; }

/* ---------- Borrow panel: contain everything inside the card ---------- */
.tk-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
.tk-side { min-width: 0; width: 100%; }
.bpanel { grid-template-columns: minmax(0, 1fr); width: 100%; box-sizing: border-box; overflow: hidden; }
.bpanel > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.bpanel-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bpanel-top .own-seg { min-width: 0; }
.bpanel-top .chip { flex: none; }
.brow input { width: 100%; }
.bswap { justify-self: center; }
@media (max-width: 1000px) { .tk-layout { grid-template-columns: minmax(0, 1fr); } .tk-side { position: static; } }

/* ---------- Socials: icons only ---------- */
.soc { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 10px; }

/* ---------- Chart controls ---------- */
.chart-ctl .seg button { gap: 6px; }
.chart-ctl .seg svg { opacity: .8; }

/* ---------- Category tiles: 3D coin art ---------- */
.cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cat { height: 124px; background: linear-gradient(180deg, #fff, #f6f6f8); }
.cat.is-active { background: linear-gradient(180deg, #eef0fb, #e6e9fb); border-color: rgba(81,106,246,.35); color: var(--text); }
.cat img { right: -18px; top: -26px; width: 112px; height: 112px; transform: rotate(-16deg); border: 3px solid rgba(255,255,255,.9);
  box-shadow: 5px 7px 0 -1px rgba(6,5,16,.16), 9px 12px 0 -2px rgba(6,5,16,.08), 0 22px 30px -12px rgba(6,5,16,.45), inset 0 3px 0 rgba(255,255,255,.5); transition: transform .25s ease; }
.cat:hover img { transform: rotate(-8deg) translateY(-3px); }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Home: stats, mint + borrow, trending ---------- */
.unit img, .pick-list img { border-radius: 50%; object-fit: cover; background: var(--bg-3); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.duo .panel { margin-top: 0; display: flex; flex-direction: column; }
.duo .panel > .muted { margin-bottom: 14px; }
.duo .panel .btn { margin-top: auto; }
.duo .kv:last-of-type { margin-bottom: 16px; }
.duo .fine { margin-top: 12px; }
.section.tight { padding-top: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head .eyebrow { margin-bottom: 10px; }
.trend-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tcard:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 14px 30px -18px rgba(6,5,16,.35); }
.tcard-name b, .tcard-px b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard small { font-size: 12.5px; color: var(--dim); }
.tcard-px { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.tcard-px b { font-size: 18px; }
.tcard-px small.up { color: var(--green); } .tcard-px small.down { color: #e5484d; }
.tcard-rate { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.tcard-rate b { color: var(--accent); font-weight: 600; }
@media (max-width: 1000px) { .trend-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .trend-cards { grid-template-columns: 1fr; } }

/* ---------- Hero coin art ---------- */
.slide-art.coin-art { height: 96%; right: 4%; bottom: -6%; transform: rotate(-10deg); filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }

/* ---------- Why omo: showcase ---------- */
.why { position: relative; overflow: hidden; margin-top: 100px; border-radius: 28px; padding: 72px 56px 56px; color: #fff;
  background: radial-gradient(90% 120% at 18% 0%, #1b2a8f 0%, rgba(27,42,143,0) 55%), radial-gradient(70% 90% at 100% 100%, #3a1d6e 0%, rgba(58,29,110,0) 60%), #060510; }
.why::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent); -webkit-mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent); pointer-events: none; }
.why-glow { position: absolute; width: 520px; height: 520px; left: 24%; top: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(123,141,255,.5), rgba(123,141,255,0) 65%); filter: blur(30px); pointer-events: none; }
.why > * { position: relative; }
.why .eyebrow { color: #b9c4ff; }
.why h2 { color: #fff; max-width: 760px; }
.why h2 em { font-style: italic; background: linear-gradient(90deg, #c9d2ff, #8f9dfb 60%, #d7b8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.why-grid { display: grid; grid-template-columns: 1.1fr 1.15fr 1fr 1fr; gap: 14px; margin-top: 52px; align-items: stretch; }
.why-labels, .why-col { display: grid; grid-template-rows: 132px repeat(6, 58px); }
.why-labels span { display: flex; align-items: center; font-size: 14.5px; color: rgba(234,237,255,.72); border-top: 1px solid rgba(255,255,255,.08); }
.why-labels span:first-child, .why-labels span:nth-child(2) { border-top: 0; }
.why-col { border-radius: 22px; padding: 0 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(6px); }
.why-col > span { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(234,237,255,.62); border-top: 1px solid rgba(255,255,255,.07); }
.why-col > span:nth-child(2) { border-top: 0; }
.why-top { display: grid; align-content: center; justify-items: start; gap: 2px; }
.why-top img { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 8px; }
.why-top b { font-size: 16px; font-weight: 600; color: #fff; }
.why-top small { font-size: 12.5px; color: rgba(234,237,255,.55); }
.why-stack { display: inline-flex; margin-bottom: 8px; }
.why-stack img { width: 34px; height: 34px; margin: 0 0 0 -10px; border: 2px solid #12112a; }
.why-stack img:first-child { margin-left: 0; }
.why .big { font-family: var(--serif); font-size: 34px; color: #fff; letter-spacing: -0.01em; }
.why .big small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #b9c4ff; margin-left: 2px; }
.why .big.dimmed { color: rgba(234,237,255,.4); font-size: 28px; }
.why-col.is-us { background: linear-gradient(180deg, rgba(123,141,255,.30), rgba(81,106,246,.12)); border-color: rgba(159,176,255,.55); transform: translateY(-14px); box-shadow: 0 30px 70px -20px rgba(81,106,246,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.why-col.is-us > span { color: #fff; border-top-color: rgba(255,255,255,.16); }
.why i { width: 20px; height: 20px; border-radius: 50%; flex: none; display: inline-block; position: relative; }
.why i.ok { background: rgba(95,209,138,.2); } .why i.ok::after { content: ""; position: absolute; left: 6px; top: 4.5px; width: 5px; height: 9px; border: solid #7be3a4; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.why-col.is-us i.ok { background: #fff; } .why-col.is-us i.ok::after { border-color: #3f57e6; }
.why i.mid { background: rgba(255,255,255,.1); } .why i.mid::after { content: ""; position: absolute; left: 5px; right: 5px; top: 9px; height: 2px; background: rgba(234,237,255,.6); border-radius: 2px; }
.why i.no { background: rgba(229,72,77,.18); } .why i.no::before, .why i.no::after { content: ""; position: absolute; left: 5px; right: 5px; top: 9px; height: 2px; background: #ff8c90; border-radius: 2px; transform: rotate(45deg); } .why i.no::after { transform: rotate(-45deg); }
@media (max-width: 900px) {
  .why { padding: 48px 20px 32px; border-radius: 22px; }
  .why-grid { grid-template-columns: repeat(3, minmax(230px, 1fr)); overflow-x: auto; padding: 18px 2px 6px; }
  .why-labels { display: none; }
  .why-col > span::before { content: attr(data-l); }
}

/* ---------- Card page ---------- */
.card-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 40px 0 10px; }
.card-hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
.card-hero p { color: var(--muted); font-size: 17px; margin-top: 20px; max-width: 520px; }
.powered { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: 13px; color: var(--muted); margin-bottom: 22px; box-shadow: 0 1px 2px rgba(6,5,16,.05); }
.powered img { width: 26px; height: 26px; border-radius: 8px; }
.powered b { color: var(--text); font-weight: 600; }
.hcard-top { justify-content: space-between; }
.hcard-whop { width: 30px; height: 30px; border-radius: 8px; }
.hcard { max-width: 460px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: linear-gradient(180deg, #fff, #f7f7fa); overflow: hidden; }
.step-n { position: absolute; right: 18px; top: 4px; font-family: var(--serif); font-size: 96px; line-height: 1; color: rgba(6,5,16,.05); }
.step-ic { width: 46px; height: 46px; border-radius: 14px; display: block; box-shadow: 0 10px 20px -10px rgba(6,5,16,.4); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 22px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step .link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: var(--bg-2); }
.feat h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }
.feat.wide { grid-column: span 2; }
.feat.dark { background: radial-gradient(120% 120% at 100% 0%, #2a3aa0, transparent 60%), #060510; color: #fff; border-color: #060510; }
.feat.dark p { color: rgba(234,237,255,.7); }
.feat-num { display: block; font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; margin-top: 22px; }
.feat-num small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #b9c4ff; margin-top: 8px; }
.feat-art.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.feat-art.pay span { padding: 8px 14px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.card-detail td { padding: 18px 22px; }
.card-detail td:first-child { color: var(--muted); width: 34%; }
.card-detail td:last-child { color: var(--text); }
.inline-ic { display: inline-flex; align-items: center; gap: 8px; }
.inline-ic img { width: 22px; height: 22px; border-radius: 6px; }
.cta-whop { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); }
@media (max-width: 860px) { .card-hero { grid-template-columns: 1fr; gap: 32px; } .steps, .feat-grid { grid-template-columns: 1fr; } .feat.wide { grid-column: auto; } }

/* ---------- Why omo: glow must not take up space ---------- */
.why > .why-glow { position: absolute; }
.why-top img { object-fit: cover; }

/* ---------- Card: themes, FOMO eyes, real numbers, Powered by Whop ---------- */
.card-stage { flex-direction: column; align-items: center; gap: 22px; }
.hcard { position: relative; overflow: hidden; --ink: #fff; --sub: rgba(234,237,255,.62); color: var(--ink); max-width: 460px; padding: 26px 28px 22px; }
.hcard > * { position: relative; z-index: 1; }
.hcard .eyes { position: absolute; z-index: 0; right: -46px; top: 50%; width: 78%; transform: translateY(-50%); color: var(--ink); opacity: .16; pointer-events: none; }
.hcard .wordmark { color: var(--ink); font-size: 27px; }
.hcard-net { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--sub); border: 1px solid currentColor; border-radius: 999px; padding: 3px 9px; }
.hcard-num { font-family: var(--mono); font-weight: 500; font-size: clamp(17px, 2.3vw, 22px); letter-spacing: .1em; color: var(--ink); text-shadow: 0 1px 0 rgba(0,0,0,.18); white-space: nowrap; }
.hcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; color: var(--ink); font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; }
.hcard-foot small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: 3px; }
.hcard-pw { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-family: var(--sans) !important; font-weight: 700; letter-spacing: .04em; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
.hcard-pw small { flex-basis: 100%; text-align: right; margin-bottom: 0; }
.hcard-pw img { width: 22px; height: 22px; border-radius: 6px; }
.hcard[data-theme=midnight] { background: radial-gradient(120% 90% at 100% 0%, rgba(81,106,246,.6), transparent 55%), linear-gradient(160deg, #1a1930 0%, #0b0a1a 60%, #060510 100%); }
.hcard[data-theme=lavender] { --ink: #0b0a1a; --sub: rgba(11,10,26,.55); background: radial-gradient(110% 90% at 0% 0%, #ffffff, transparent 60%), linear-gradient(150deg, #eaedff 0%, #b9c4ff 60%, #8f9dfb 100%); border-color: rgba(255,255,255,.7); }
.hcard[data-theme=volt] { --ink: #0b0a1a; --sub: rgba(11,10,26,.55); background: radial-gradient(110% 90% at 0% 0%, #f2ff9a, transparent 55%), linear-gradient(150deg, #ddff3a 0%, #ccff00 55%, #9fd400 100%); border-color: rgba(255,255,255,.6); }
.hcard[data-theme=ember] { background: radial-gradient(110% 90% at 100% 0%, #ffb15a, transparent 55%), linear-gradient(150deg, #ff7a3c 0%, #ff4a1c 55%, #b3200a 100%); border-color: rgba(255,255,255,.3); --sub: rgba(255,255,255,.75); }
.hcard[data-theme=ice] { --ink: #0b0a1a; --sub: rgba(11,10,26,.5); background: radial-gradient(120% 100% at 0% 0%, #ffffff, transparent 60%), linear-gradient(150deg, #ffffff 0%, #eef0f6 55%, #d7dbe8 100%); border-color: rgba(6,5,16,.1); }
.hcard[data-theme=lavender] .hcard-chip, .hcard[data-theme=ice] .hcard-chip { background: linear-gradient(135deg, #2a2a44, #0b0a1a); opacity: .85; }
.hcard[data-theme=volt] .hcard-chip { background: linear-gradient(135deg, #1c2400, #0b0a1a); opacity: .85; }
.hcard[data-theme=ember] .hcard-chip { background: linear-gradient(135deg, #fff1d6, #ffc98a); }
.swatches { display: flex; align-items: center; gap: 10px; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: var(--s); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; transition: transform .15s, box-shadow .15s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button.is-active { box-shadow: 0 0 0 2px var(--accent); }
.swatches span { font-size: 13px; color: var(--muted); margin-left: 4px; min-width: 70px; }

/* ---------- Realistic card ---------- */
.hcard.real { border-radius: 22px; padding: 26px 28px 22px; border: 0; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -1px 0 rgba(0,0,0,.35) inset, 0 0 0 1px rgba(255,255,255,.10) inset,
    0 2px 2px rgba(0,0,0,.25), 0 8px 12px -4px rgba(6,5,16,.35), 0 30px 50px -18px rgba(6,5,16,.55), 0 60px 90px -40px rgba(6,5,16,.5); }
.hcard.real::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 40px rgba(0,0,0,.18); }
.hc-grain { position: absolute !important; inset: 0; z-index: 0 !important; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hc-sheen { position: absolute !important; inset: -40%; z-index: 2 !important; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 47%, rgba(255,255,255,.12) 53%, transparent 62%); transform: translateX(calc(var(--ry, 0deg) * 3)) rotate(8deg); transition: transform .25s ease; }
.hcard.real .eyes { opacity: .13; stroke-width: 2; }
.chip-svg { width: 52px; height: 39px; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); border-radius: 7px; }
.hc-right { display: inline-flex; align-items: center; gap: 10px; color: var(--sub); }
.nfc { width: 22px; height: 22px; transform: rotate(0deg); opacity: .9; }
.hcard.real .hcard-num { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; font-size: clamp(18px, 2.35vw, 23px); letter-spacing: .13em;
  text-shadow: 0 -1px 0 rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.35), 0 2px 3px rgba(0,0,0,.3); }
.hcard[data-theme=lavender].real .hcard-num, .hcard[data-theme=volt].real .hcard-num, .hcard[data-theme=ice].real .hcard-num { text-shadow: 0 1px 0 rgba(255,255,255,.75), 0 -1px 0 rgba(0,0,0,.18); }
.hcard.real .hcard-foot { text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.hcard[data-theme=lavender].real .hcard-foot, .hcard[data-theme=volt].real .hcard-foot, .hcard[data-theme=ice].real .hcard-foot { text-shadow: none; }
.hcard.real.is-frozen { filter: grayscale(.85) brightness(.92); }
.hcard.real.is-frozen::before { content: "FROZEN"; position: absolute; z-index: 4; right: 22px; top: 50%; transform: translateY(-50%) rotate(-8deg); font: 700 13px var(--sans); letter-spacing: .3em; padding: 6px 12px; border: 2px solid currentColor; border-radius: 8px; opacity: .8; }

/* ---------- Hero slide art ---------- */
.slide-card { position: absolute; z-index: 1; right: 2%; top: 50%; width: min(440px, 40%); transform: translateY(-46%) rotate(-9deg); pointer-events: none; }
.slide-card .hcard { max-width: none; width: 100%; }
.slide-coins { position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 46%; pointer-events: none; }
.slide-coins img { position: absolute; border-radius: 50%; border: 4px solid rgba(255,255,255,.85); object-fit: cover; background: #fff;
  box-shadow: 7px 9px 0 -1px rgba(0,0,0,.35), 0 30px 40px -14px rgba(0,0,0,.7), inset 0 3px 0 rgba(255,255,255,.5); }
.slide-coins img:nth-child(1) { width: 190px; height: 190px; right: 30%; top: 12%; transform: rotate(-14deg); }
.slide-coins img:nth-child(2) { width: 130px; height: 130px; right: 6%; top: 6%; transform: rotate(12deg); }
.slide-coins img:nth-child(3) { width: 120px; height: 120px; right: 58%; top: 46%; transform: rotate(10deg); }
.slide-coins img:nth-child(4) { width: 100px; height: 100px; right: 8%; top: 52%; transform: rotate(-10deg); }
.slide-coins img:nth-child(5) { width: 150px; height: 150px; right: 28%; top: 62%; transform: rotate(8deg); border-color: #fff; box-shadow: 0 0 0 6px rgba(123,141,255,.35), 0 30px 40px -14px rgba(0,0,0,.7); }
@media (max-width: 860px) { .slide-card, .slide-coins { opacity: .28; width: 80%; right: -20%; } }

/* ---------- Card: get + manage ---------- */
.flow { display: grid; gap: 10px; max-width: 760px; }
.flow-step { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); opacity: .55; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.flow-step.is-active { opacity: 1; border-color: rgba(81,106,246,.45); box-shadow: 0 14px 34px -20px rgba(81,106,246,.7); }
.flow-step.is-done { opacity: 1; }
.flow-n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 13px var(--sans); background: var(--bg-3); color: var(--muted); }
.flow-step.is-done .flow-n { background: var(--green); color: #fff; }
.flow-ic { width: 40px; height: 40px; border-radius: 12px; }
.flow-body b { display: block; font-weight: 600; font-size: 15.5px; }
.flow-body small { display: block; color: var(--muted); font-size: 13.5px; }
.flow-body em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.flow-ok { display: none; font-size: 13px; font-weight: 600; color: var(--green); }
.flow-step.is-done .flow-ok { display: inline; }
.flow-step.is-done .btn { display: none; }
.flow-done { font-size: 15px; font-weight: 500; margin-top: 6px; }
.manage { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 28px; align-items: start; }
.manage-card { display: grid; gap: 18px; justify-items: center; position: sticky; top: 90px; }
.manage-card .hcard { width: 100%; }
.manage-side { display: grid; gap: 12px; }
.manage-side .panel { margin-top: 0; }
.manage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.manage-actions.danger .btn { color: #b3261e; }
.manage-side input[type=range] { margin-top: 10px; }
@media (max-width: 860px) { .manage { grid-template-columns: 1fr; } .manage-card { position: static; } .flow-step { grid-template-columns: auto minmax(0, 1fr); } .flow-ic { display: none; } .flow-step .btn, .flow-ok { grid-column: 1 / -1; justify-self: start; } }

.chip-real { display: block; width: 52px; height: 39px; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f7eabb 0%, #dcbc69 38%, #b48f3c 70%, #e6cb82 100%); box-shadow: inset 0 0 0 1px rgba(60,40,0,.45), inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(0,0,0,.4); }
.chip-real::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(rgba(70,45,0,.55), rgba(70,45,0,.55)) 0 33% / 34% 1px no-repeat, linear-gradient(rgba(70,45,0,.55), rgba(70,45,0,.55)) 0 66% / 34% 1px no-repeat,
  linear-gradient(rgba(70,45,0,.55), rgba(70,45,0,.55)) 100% 33% / 34% 1px no-repeat, linear-gradient(rgba(70,45,0,.55), rgba(70,45,0,.55)) 100% 66% / 34% 1px no-repeat,
  linear-gradient(rgba(70,45,0,.55), rgba(70,45,0,.55)) 34% 0 / 1px 100% no-repeat, linear-gradient(rgba(70,45,0,.55), rgba(70,45,0,.55)) 66% 0 / 1px 100% no-repeat; }
.chip-real i { position: absolute; left: 34%; right: 34%; top: 24%; bottom: 24%; border: 1px solid rgba(70,45,0,.55); border-radius: 4px; background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0)); }

/* ---------- Why fUSD: idle vs working ---------- */
.why-sub { color: rgba(234,237,255,.74); font-size: 17px; max-width: 640px; margin-top: 18px; }
.why-math { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 40px; }
.wm-side { border-radius: 20px; padding: 22px 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); display: grid; gap: 6px; }
.wm-side span { font-size: 14px; color: rgba(234,237,255,.65); }
.wm-side b { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1; color: rgba(234,237,255,.4); }
.wm-side.is-us { background: linear-gradient(135deg, rgba(123,141,255,.34), rgba(81,106,246,.12)); border-color: rgba(159,176,255,.55); box-shadow: 0 24px 60px -24px rgba(81,106,246,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.wm-side.is-us span { color: #dfe4ff; }
.wm-side.is-us b { color: #fff; }
.wm-arrow { align-self: center; font-size: 26px; color: #b9c4ff; }
.why-grid.two { grid-template-columns: 1fr 1.2fr 1.2fr; margin-top: 30px; }
.why-grid.two .why-col.is-us { transform: translateY(-10px); }
.why .cta-row { margin-top: 34px; }
.why .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
@media (max-width: 900px) { .why-math { grid-template-columns: 1fr; } .wm-arrow { transform: rotate(90deg); justify-self: center; } .why-grid.two { grid-template-columns: repeat(2, minmax(240px, 1fr)); } }

/* ---------- Proof of reserves ---------- */
.reserves .panel-head { margin-bottom: 4px; }
.reserves .panel-head .h-serif { margin: 0; }
.res-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; margin: 22px 0 10px; }
.res-ring { position: relative; width: 150px; height: 150px; }
.res-ring svg { width: 100%; height: 100%; }
.res-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.res-ring b { font-family: var(--mono); font-weight: 500; font-size: 20px; color: var(--green); }
.res-ring small { font-size: 11px; color: var(--dim); }
.res-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.res-stats div { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.res-stats span { font-size: 13px; color: var(--muted); }
.res-stats b { font-family: var(--mono); font-weight: 500; font-size: 20px; }
@media (max-width: 700px) { .res-top { grid-template-columns: 1fr; justify-items: center; } .res-stats { grid-template-columns: 1fr; width: 100%; } }

/* ---------- Live data ---------- */
.live-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 2px 0; font-size: 12.5px; color: var(--dim); }
.live-dot, [data-live-status] { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.live-dot.is-off, [data-live-status].is-off { color: var(--dim); }
.live-dot { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--bg-3); }
.tx-note { font-size: 13px; margin-top: 10px; color: var(--muted); }
.tx-note.ok { color: var(--green); } .tx-note.warn { color: #b3261e; }
.market-note { margin-top: 10px; } .market-note.ok { color: var(--green); } .market-note.warn { color: var(--muted); }
.my-loan { margin-top: 6px; } .my-loan .own-rows { margin-top: 8px; background: var(--bg-3); }

/* ---------- Wallet balance on the borrow panel, tokens in the profile ---------- */
.col-wallet b { color: var(--text); font-weight: 500; }
.col-wallet button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 1px 9px; margin-left: 6px; font: 500 11.5px var(--sans); color: var(--accent); cursor: pointer; }
.col-wallet button:hover { border-color: var(--accent); }
.profile .own-label { display: block; margin-top: 14px; }
.profile-tokens { max-height: 250px; overflow-y: auto; }
.profile-tokens a.asset { color: inherit; }

/* ---------- Buy on FOMO, contract address ---------- */
.or-line { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.buy-fomo { display: flex; justify-content: center; gap: 8px; height: 52px; align-items: center; border-radius: 14px; }
.ca-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-3); min-width: 0; }
.ca-row .own-label { white-space: nowrap; }
.ca-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px var(--mono); color: var(--text); }
.ca-row button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 12px; font: 500 12px var(--sans); color: var(--accent); cursor: pointer; }
.ca-row button:hover { border-color: var(--accent); }

/* ---------- Get fUSD: buy on FOMO first ---------- */
.buy-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 16px; }
.buy-head { display: flex; align-items: center; gap: 12px; }
.buy-head img { width: 44px; height: 44px; border-radius: 50%; }
.buy-head b { display: block; font-size: 18px; font-weight: 600; }
.buy-head small { color: var(--muted); font-size: 13px; }
.buy-head .chip { margin-left: auto; }
.buy-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.buy-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 64px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-3); border-radius: 12px; font-size: 14px; color: var(--muted); }
.buy-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-2); color: var(--accent); font: 500 12px var(--mono); display: grid; place-items: center; }
.buy-steps b { color: var(--text); font-weight: 600; font-size: 15px; }
.buy-card .buy-fomo { height: 56px; border-radius: 14px; font-size: 16px; }
.buy-card .ca-row { margin-top: 0; }
.direct { margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 0 16px; background: var(--bg-2); }
.direct summary { cursor: pointer; padding: 16px 2px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.direct summary::-webkit-details-marker { display: none; }
.direct summary::after { content: "+"; font-size: 20px; color: var(--dim); }
.direct[open] summary::after { content: "–"; }
.direct[open] { padding-bottom: 16px; }
.direct .own-tabs-row { margin-top: 12px; }
.own-position { margin-top: 0; }
@media (max-width: 520px) { .buy-steps li { grid-template-columns: 34px minmax(0, 1fr); } .buy-steps li span { grid-column: 2; } }

/* ---------- Account ---------- */
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.acct-head h1 { font-size: clamp(36px, 4.4vw, 54px); }
.acct-head .eyebrow { margin-bottom: 8px; }
.acct-empty { text-align: center; padding: 56px 24px; display: grid; gap: 12px; justify-items: center; }
.acct-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 22px; align-items: stretch; }
.acct-balance { border-radius: 24px; padding: 30px 32px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #2b3a9e 0%, rgba(43,58,158,0) 55%), linear-gradient(160deg, #0b0a1a 0%, #15142b 100%); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.acct-balance .own-label { color: rgba(234,237,255,.6); }
.acct-balance > b { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.acct-mini { display: flex; gap: 34px; flex-wrap: wrap; margin: 0; }
.acct-mini dt { font-size: 12.5px; color: rgba(234,237,255,.6); }
.acct-mini dd { margin: 2px 0 0; font-weight: 500; font-size: 17px; }
.acct-mini dd.up { color: #7ee2a0; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.acct-balance .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.acct-card { display: grid; align-content: center; justify-items: center; gap: 14px; min-width: 0; }
.acct-card #cardHave { display: grid; gap: 14px; justify-items: center; width: 100%; }
.acct-card #cardHave[hidden] { display: none; }
.acct-nocard { width: 100%; aspect-ratio: 1.586; max-width: 460px; border: 1.5px dashed var(--line-2); border-radius: 20px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; }
.acct-nocard img { width: 40px; height: 40px; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 22px; align-items: start; margin-top: 22px; }
.acct-col { display: grid; gap: 16px; min-width: 0; }
.acct-col .panel + .panel { margin-top: 0; }
.acct .rows { list-style: none; margin: 0; padding: 0; }
.acct .rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.acct .rows li:first-child { border-top: 0; }
.acct .rows .val { text-align: right; display: grid; }
.acct .rows .val small, .acct .rows .asset small { color: var(--muted); font-size: 12.5px; display: block; }
.acct .rows .asset { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct .rows .coin-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hcard.is-frozen { filter: grayscale(1) brightness(.8); }
.fine.warn, #flowNote.warn { color: #b3261e; }
@media (max-width: 900px) { .acct-top, .acct-grid { grid-template-columns: minmax(0, 1fr); } }

.usage-line { margin-top: 4px; }
.usage-line span { color: var(--text); font-weight: 500; }
