/* ==========================================================================
   Scanly — iOS / iPadOS design language (dark)
   Rules: SF Pro only · iOS system colors · Liquid Glass for floating chrome
   No divider lines. No borders. No sharp corners. Space + filled surfaces.
   ========================================================================== */
:root {
  --tint: #0a84ff;
  --tint-hi: #3d9bff;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --yellow: #ffd60a;

  --bg: #000;
  --bg-2: #1c1c1e;
  --bg-3: #2c2c2e;
  --bg-4: #3a3a3c;
  --fill: rgba(120, 120, 128, 0.36);
  --fill-2: rgba(120, 120, 128, 0.32);
  --fill-3: rgba(118, 118, 128, 0.24);
  --fill-4: rgba(116, 116, 128, 0.18);
  --label: #fff;
  --label-2: rgba(235, 235, 245, 0.6);
  --label-3: rgba(235, 235, 245, 0.3);
  --label-4: rgba(235, 235, 245, 0.18);

  --glass: rgba(30, 30, 32, 0.58);
  --glass-strong: rgba(36, 36, 38, 0.82);
  --glass-hi: inset 0 1px 0.5px rgba(255, 255, 255, 0.09), inset 0 -1px 0.5px rgba(255, 255, 255, 0.03);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Apple SD Gothic Neo", "Noto Sans SC", "Noto Sans KR", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue",
    "PingFang SC", "Apple SD Gothic Neo", sans-serif;

  --side-w: 256px;
  --gap: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font-family: var(--font); font-size: 15px; line-height: 1.4; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
svg { display: block; }
::selection { background: rgba(10, 132, 255, 0.4); }

.l2 { color: var(--label-2); }
.l3 { color: var(--label-3); }
.green { color: var(--green); }
.red { color: var(--red); }
.r { text-align: right; justify-self: end; }
.c { text-align: center; justify-self: center; }

.sf { width: 18px; height: 18px; flex: none; }
.sf-s { width: 13px; height: 13px; flex: none; }
.sf-xs { width: 11px; height: 11px; flex: none; }

/* ==========================================================================
   Controls
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  font-size: 15px; font-weight: 600; letter-spacing: -0.015em;
  background: var(--tint); color: #fff;
  transition: background 0.2s, transform 0.2s var(--ease), opacity 0.2s;
}
.btn:hover { background: var(--tint-hi); }
.btn:active { transform: scale(0.97); }
.btn.lg { height: 50px; padding: 0 26px; font-size: 17px; }
.btn.sm { height: 30px; padding: 0 13px; font-size: 13px; }
.btn.gray { background: var(--fill-3); color: var(--tint); }
.btn.gray:hover { background: var(--fill-2); }
.btn.gray.w { color: var(--label); }
.btn.plain { background: none; color: var(--tint); padding: 0 4px; }
.btn.plain:hover { color: var(--tint-hi); }
.btn.block { width: 100%; }
.btn.get { height: 28px; padding: 0 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; background: var(--fill-3); color: var(--tint); }
.btn.get:hover { background: var(--fill-2); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(190%); -webkit-backdrop-filter: blur(40px) saturate(190%);
  box-shadow: var(--glass-hi);
}

.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0; background: var(--fill-3); color: var(--label-2); white-space: nowrap; }
.badge.tint { background: var(--tint); color: #fff; }
.badge.green { background: rgba(48, 209, 88, 0.16); color: var(--green); }
.badge.orange { background: rgba(255, 159, 10, 0.16); color: var(--orange); }

.lockcap {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--label);
  background: rgba(44, 44, 46, 0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-hi); white-space: nowrap;
}

.seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--fill-3); }
.seg > * { height: 30px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--label); display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; transition: background 0.25s var(--ease); }
.seg > .on { background: #636366; }
.seg .save { color: var(--green); font-size: 12px; }
.seg.full { display: flex; }
.seg.full > * { flex: 1; }

.searchbar { position: relative; display: flex; align-items: center; height: 36px; border-radius: 12px; background: var(--fill-3); min-width: 240px; }
.searchbar .sf-s { position: absolute; left: 10px; color: var(--label-2); }
.searchbar input { width: 100%; height: 100%; border: 0; outline: 0; background: none; padding: 0 12px 0 32px; font-size: 15px; }
.searchbar input::placeholder { color: var(--label-2); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.35; } }

/* app-icon squircle */
.appi { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(180deg, #48484a 0%, #2c2c2e 100%); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.03em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.appi.s { width: 32px; height: 32px; border-radius: 8px; font-size: 11.5px; }
.appi.xs { width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }
.appi.xl { width: 118px; height: 118px; border-radius: 27px; font-size: 40px; }
.appi.brand { background: linear-gradient(160deg, #0a84ff 0%, #0040dd 100%); }

/* ==========================================================================
   Shell — floating glass sidebar + glass capsules
   ========================================================================== */
.side {
  position: fixed; top: 10px; left: 10px; bottom: 10px; z-index: 30; width: var(--side-w);
  border-radius: 26px; padding: 14px 10px 10px; display: flex; flex-direction: column; overflow-y: auto;
  scrollbar-width: none;
}
.side::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand .appi { width: 30px; height: 30px; border-radius: 8px; }
.mark { position: relative; width: 14px; height: 14px; }
.mark i { position: absolute; width: 9px; height: 9px; border-radius: 2.5px; }
.mark i:first-child { left: 0; top: 0; box-shadow: inset 0 0 0 1.5px #fff; }
.mark i:last-child { right: 0; bottom: 0; background: #fff; }
.side-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 6px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.side-row {
  display: flex; align-items: center; gap: 11px; width: 100%; height: 38px; padding: 0 10px; border-radius: 12px;
  font-size: 15px; color: var(--label); transition: background 0.2s;
}
.side-row .sf { color: var(--tint); }
.side-row:hover { background: rgba(255, 255, 255, 0.06); }
.side-row.on { background: var(--tint); }
.side-row.on .sf { color: #fff; }
.side-row .end { margin-left: auto; display: inline-flex; align-items: center; color: var(--label-3); }
.side-row .end .badge { height: 18px; font-size: 10.5px; }
.side-pro { margin-top: auto; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.side-pro b { display: block; font-size: 15px; font-weight: 600; }
.side-pro p { margin: 3px 0 12px; font-size: 13px; color: var(--label-2); line-height: 1.35; }

.top { position: fixed; z-index: 40; top: 10px; left: calc(var(--side-w) + 20px); right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.top > * { pointer-events: auto; }
.cap { display: flex; align-items: center; gap: 2px; height: 44px; padding: 4px; border-radius: 999px; }
.cap-link { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--label); transition: background 0.2s; }
.cap-link:hover { background: rgba(255, 255, 255, 0.07); }
.cap-link.on { background: rgba(255, 255, 255, 0.14); }
.cap .btn { height: 36px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; }

.menu-wrap { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); min-width: 250px; padding: 6px; z-index: 60; border-radius: 18px;
  background: var(--glass-strong); backdrop-filter: blur(40px) saturate(190%); -webkit-backdrop-filter: blur(40px) saturate(190%); box-shadow: var(--glass-hi);
  opacity: 0; visibility: hidden; transform: scale(0.96) translateY(-4px); transform-origin: top center;
  transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0.2s;
}
.menu.left { left: 0; transform-origin: top left; }
.menu.right { right: 0; transform-origin: top right; }
.menu.wide { min-width: 320px; }
.menu-wrap.open .menu { opacity: 1; visibility: visible; transform: none; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.mi:hover { background: rgba(255, 255, 255, 0.08); }
.mi .sf { color: var(--tint); align-self: flex-start; margin-top: 1px; }
.mi small { display: block; margin-top: 1px; font-size: 13px; color: var(--label-2); }
.mi .end { margin-left: auto; color: var(--label-3); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.mi.on .end::before { content: "✓"; color: var(--tint); font-size: 15px; font-weight: 600; }

.scrim { display: none; }
.main { margin-left: calc(var(--side-w) + 20px); padding-top: 64px; min-height: 100vh; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 1160px; margin: 0 auto; padding: 28px 28px 64px; flex: 1; animation: pageIn 0.5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* ==========================================================================
   Typography — iOS large titles
   ========================================================================== */
.lt { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.lt h1 { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; display: flex; align-items: center; gap: 12px; }
.lt p { margin: 6px 0 0; font-size: 15px; color: var(--label-2); max-width: 620px; }
.lt-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title2 { margin: 44px 0 14px; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.title2 a, .title2 button { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--tint); display: inline-flex; align-items: center; gap: 3px; }
.foot-note { font-size: 13px; color: var(--label-2); padding: 8px 4px 0; }
.status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--label-2); margin: -8px 0 16px; }
.status b { color: var(--label); font-weight: 600; }

/* ==========================================================================
   Grouped surfaces (no separators — rows are separate rounded cells)
   ========================================================================== */
.stack { display: grid; gap: 6px; }
.cellx { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 16px; background: var(--bg-2); transition: background 0.2s; }
a.cellx:hover, button.cellx:hover, .cellx.hov:hover { background: #242426; }
.cellx .end { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--label-2); }
.cellx .chev { color: var(--label-3); }
.surface { border-radius: 22px; background: var(--bg-2); }

/* ==========================================================================
   Stocks-style rows
   ========================================================================== */
.st-head { display: grid; grid-template-columns: var(--cols); gap: 14px; padding: 0 16px 8px; font-size: 12px; font-weight: 500; color: var(--label-3); }
.st { position: relative; display: grid; grid-template-columns: var(--cols); align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 16px; background: var(--bg-2); transition: background 0.2s; }
.st.hov:hover, a.st:hover { background: #242426; }
.st .rk { font-size: 13px; font-weight: 600; color: var(--label-3); }
.tick { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tick b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.tick small { display: block; font-size: 13px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.two-l { display: flex; flex-direction: column; min-width: 0; }
.two-l b { font-size: 15px; font-weight: 500; white-space: nowrap; }
.two-l small { font-size: 13px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.two-l.r { align-items: flex-end; }
.val { font-size: 15px; font-weight: 500; }
.pillv { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 82px; height: 30px; padding: 0 9px; border-radius: 8px; font-size: 15px; font-weight: 600; color: #fff; background: var(--green); transition: background 0.4s; }
.pillv.dn { background: var(--red); }
.pillv.fl-up { animation: popUp 0.9s var(--ease); }
.pillv.fl-dn { animation: popDn 0.9s var(--ease); }
@keyframes popUp { 0% { transform: scale(1.06); filter: brightness(1.35); } }
@keyframes popDn { 0% { transform: scale(0.96); filter: brightness(0.75); } }
.st-wrap { overflow-x: auto; scrollbar-width: none; }
.st-wrap::-webkit-scrollbar { display: none; }
.st-in { min-width: var(--minw, 900px); }
.st.locked { cursor: pointer; }
.st.locked > :not(.lock-over) { filter: blur(8px); opacity: 0.55; user-select: none; pointer-events: none; }
.lock-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.verified { width: 15px; height: 15px; color: var(--tint); flex: none; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.stars .sf-xs { color: var(--label-2); }

.gate { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 16px; border-radius: 18px; background: var(--bg-2); cursor: pointer; flex-wrap: wrap; }
.gate .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(10, 132, 255, 0.16); color: var(--tint); flex: none; }
.gate b { display: block; font-size: 17px; font-weight: 600; }
.gate span { font-size: 13px; color: var(--label-2); }
.gate .btn { margin-left: auto; }
.tfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 6px 0; font-size: 12px; color: var(--label-3); }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { text-align: center; padding: 56px 0 8px; }
.hero h1 { margin: 0 auto; max-width: 820px; font-family: var(--display); font-size: clamp(44px, 6.4vw, 80px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 span { display: block; color: var(--label-2); }
.hero p { margin: 20px auto 0; max-width: 600px; font-size: 19px; line-height: 1.45; color: var(--label-2); letter-spacing: -0.015em; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--label-3); }

.widget-big { margin: 52px auto 0; max-width: 820px; padding: 18px; border-radius: 30px; background: var(--bg-2); text-align: left; }
.wb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; flex-wrap: wrap; }
.wb-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.wb-title small { font-size: 13px; color: var(--label-2); font-weight: 400; }
.wb-rows { display: grid; gap: 6px; }
.wb-rows .st { background: var(--bg-3); min-height: 60px; }
.wb-rows .st.hov:hover { background: #343437; }
.wb-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 2px; font-size: 13px; color: var(--label-2); }
.wb-foot a { color: var(--tint); display: inline-flex; align-items: center; gap: 3px; }

.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.wgt { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 18px; border-radius: 24px; background: var(--bg-2); cursor: pointer; transition: transform 0.35s var(--ease), background 0.2s; }
.wgt:hover { background: #222224; }
.wgt:active { transform: scale(0.985); }
.wgt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wgt-cap { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.wgt-cap .sf { color: var(--tint); width: 17px; height: 17px; }
.wgt h3 { margin: 14px 0 0; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.wgt p { margin: 4px 0 0; font-size: 15px; color: var(--label-2); }
.wgt-viz { margin-top: auto; padding-top: 18px; display: grid; gap: 6px; }
.mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg-3); font-size: 14px; }
.mini b { font-weight: 600; }
.mini small { color: var(--label-2); font-size: 13px; }
.mini .pillv { min-width: 70px; height: 24px; font-size: 13px; border-radius: 6px; }
.mini.bl > * { filter: blur(6px); opacity: 0.6; }
.big-num { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: var(--green); }

.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px var(--gap); }
.chart-i { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--bg-2); min-width: 0; transition: background 0.2s; }
a.chart-i:hover { background: #242426; }
.chart-i .rk { width: 18px; font-size: 15px; font-weight: 700; color: var(--label-2); flex: none; text-align: center; }
.chart-i .nm { flex: 1; min-width: 0; }
.chart-i .nm b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-i .nm small { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--label-2); }
.chart-i.locked { cursor: pointer; }
.chart-i.locked > :not(.lock-over) { filter: blur(7px); opacity: 0.5; }
.center { display: flex; justify-content: center; margin-top: 18px; }

.plans { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--gap); }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: 26px; background: var(--bg-2); }
.plan.hl { box-shadow: inset 0 0 0 2px var(--tint); }
.plan-top { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.plan-top b { font-size: 17px; font-weight: 600; }
.plan .d { margin: 6px 0 0; font-size: 14px; color: var(--label-2); min-height: 40px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; min-height: 52px; }
.price b { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.price b.w { font-size: 32px; }
.price span { font-size: 15px; color: var(--label-2); }
.price-n { font-size: 12px; color: var(--label-3); min-height: 17px; }
.plan .btn { margin-top: 16px; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--label-2); line-height: 1.35; }
.plan li .sf-s { color: var(--green); margin-top: 2px; }
.pay { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--label-3); }

.faq { display: grid; gap: 6px; }
.faq-i { border-radius: 16px; background: var(--bg-2); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 54px; padding: 14px 18px; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.faq-q .sf-s { color: var(--label-3); transition: transform 0.4s var(--ease); }
.faq-i.open .faq-q .sf-s { transform: rotate(90deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 18px 18px; font-size: 15px; color: var(--label-2); line-height: 1.5; max-width: 780px; }
.faq-i.open .faq-a { grid-template-rows: 1fr; }

.cta { margin-top: 56px; padding: 56px 24px; border-radius: 30px; background: var(--bg-2); text-align: center; }
.cta h2 { margin: 0 auto; max-width: 700px; font-family: var(--display); font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
.cta p { margin: 12px 0 0; font-size: 17px; color: var(--label-2); }
.cta .hero-cta { margin-top: 24px; }

.foot { padding: 28px 28px 36px; max-width: 1160px; width: 100%; margin: 0 auto; font-size: 12px; color: var(--label-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot a { color: var(--label-2); }
.foot a:hover { color: var(--label); }
.foot .disc { width: 100%; line-height: 1.5; }

/* ==========================================================================
   Widgets row (stats)
   ========================================================================== */
.wrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 18px; }
.wsm { padding: 16px 18px; border-radius: 22px; background: var(--bg-2); }
.wsm span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.wsm span .sf-s { color: var(--tint); }
.wsm b { display: block; margin-top: 8px; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.wsm.locked { position: relative; cursor: pointer; }
.wsm.locked b { filter: blur(8px); opacity: 0.5; }

/* ==========================================================================
   Exchange page — App Store product page
   ========================================================================== */
.app-h { display: flex; gap: 22px; align-items: center; padding: 8px 0 26px; }
.app-h h1 { margin: 0; font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -0.025em; display: flex; align-items: center; gap: 8px; }
.app-h h1 .verified { width: 22px; height: 22px; }
.app-h p { margin: 4px 0 0; font-size: 17px; color: var(--label-2); }
.app-h .acts { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.infostrip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.infostrip::-webkit-scrollbar { display: none; }
.info-i { flex: 1 0 140px; padding: 14px 12px; border-radius: 18px; background: var(--bg-2); text-align: center; }
.info-i span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--label-3); }
.info-i b { display: block; margin-top: 6px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--label-2); }
.info-i small { display: block; margin-top: 2px; font-size: 12px; color: var(--label-3); }
.ratings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; border-radius: 26px; background: var(--bg-2); }
.ratings .bigr b { display: block; font-family: var(--display); font-size: 72px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.ratings .bigr span { font-size: 15px; font-weight: 600; color: var(--label-2); }
.histo { display: grid; gap: 10px; }
.histo div { display: grid; grid-template-columns: 170px minmax(0, 1fr) 40px; gap: 14px; align-items: center; font-size: 13px; color: var(--label-2); }
.histo i { height: 6px; border-radius: 3px; background: var(--fill-3); position: relative; overflow: hidden; }
.histo i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--label-2); }
.histo b { text-align: right; color: var(--label); font-weight: 600; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.kv-grid .cellx span { color: var(--label-2); }
.kv-grid .cellx b { margin-left: auto; font-weight: 500; }

/* ==========================================================================
   Content pages
   ========================================================================== */
.tiles { display: grid; gap: var(--gap); }
.tiles.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { padding: 20px; border-radius: 24px; background: var(--bg-2); }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(10, 132, 255, 0.16); color: var(--tint); }
.tile .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fill-3); font-size: 13px; font-weight: 700; color: var(--label-2); }
.tile h4 { margin: 14px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.tile p { margin: 4px 0 0; font-size: 14px; color: var(--label-2); line-height: 1.45; }
.tile .big { display: block; margin-top: 10px; font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.tile.hl { box-shadow: inset 0 0 0 2px var(--tint); }
.tile.click { cursor: pointer; transition: background 0.2s; }
.tile.click:hover { background: #222224; }
.tile .meta { display: flex; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--label-3); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }

.chat { padding: 20px; border-radius: 28px; background: var(--bg-2); }
.chat-body { display: grid; gap: 12px; }
.bub { max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.45; }
.bub.me { justify-self: end; background: var(--tint); color: #fff; border-bottom-right-radius: 6px; }
.bub.ai { background: var(--bg-3); border-bottom-left-radius: 6px; }
.bub.ai b { font-weight: 600; }
.bub .mini { background: rgba(0, 0, 0, 0.25); margin-top: 6px; }
.bub.locked { position: relative; cursor: pointer; }
.bub.locked .bl { filter: blur(7px); opacity: 0.5; user-select: none; }
.chat-in { display: flex; gap: 8px; margin-top: 16px; cursor: pointer; }
.chat-in .fake { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--fill-3); color: var(--label-2); }
.chat-in .send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: #fff; }
.sugg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
.docs-nav { position: sticky; top: 76px; align-self: start; display: grid; gap: 2px; padding: 8px; border-radius: 20px; background: var(--bg-2); }
.docs-nav .h { font-size: 12px; font-weight: 600; color: var(--label-3); padding: 10px 10px 4px; }
.docs-nav button { height: 34px; padding: 0 10px; border-radius: 10px; font-size: 14px; color: var(--label); }
.docs-nav button:hover { background: rgba(255, 255, 255, 0.06); }
.ep { padding: 22px; border-radius: 24px; background: var(--bg-2); margin-bottom: var(--gap); }
.ep h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ep p { margin: 6px 0 14px; color: var(--label-2); }
.mline { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.verb { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: var(--green); background: rgba(48, 209, 88, 0.15); font-family: var(--font); }
.verb.ws { color: var(--orange); background: rgba(255, 159, 10, 0.15); }
pre.code { margin: 0; padding: 16px 18px; border-radius: 16px; background: #0b0b0c; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.65; color: var(--label-2); overflow-x: auto; }
pre.code .k { color: #fff; }
pre.code .s { color: #ff9f0a; }
.params { display: grid; gap: 4px; margin: 12px 0; }
.params > div { display: grid; grid-template-columns: 130px 80px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg-3); font-size: 14px; color: var(--label-2); }
.params > div:first-child { background: none; font-size: 12px; font-weight: 600; color: var(--label-3); padding-top: 0; padding-bottom: 2px; }
.params code { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #fff; font-size: 13px; }
.keybox { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--bg-3); cursor: pointer; flex-wrap: wrap; }
.keybox code { font-family: ui-monospace, "SF Mono", Menlo, monospace; filter: blur(5px); color: var(--label-2); user-select: none; }

.article { max-width: 760px; display: grid; gap: 6px; }
.article .cellx { display: block; padding: 16px 18px; }
.article h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.article p { margin: 0; color: var(--label-2); line-height: 1.55; }

.form-card { padding: 20px; border-radius: 26px; background: var(--bg-2); }
.success { text-align: center; padding: 28px 8px; }
.success .ok { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(48, 209, 88, 0.16); color: var(--green); }
.success h4 { margin: 0; font-size: 20px; font-weight: 700; }
.success p { margin: 6px 0 0; color: var(--label-2); }

.nf { text-align: center; padding: 120px 0; }
.nf b { display: block; font-family: var(--display); font-size: 80px; font-weight: 700; letter-spacing: -0.04em; color: var(--label-3); }
.nf p { color: var(--label-2); margin: 8px 0 20px; }

/* ==========================================================================
   iOS forms — grouped fields (no separators: each field its own cell)
   ========================================================================== */
.fgroup { display: grid; gap: 6px; }
.fcell { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 14px; background: var(--bg-3); transition: box-shadow 0.2s; }
.fcell .sf-s { color: var(--label-2); }
.fcell input, .fcell textarea { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: none; font-size: 17px; letter-spacing: -0.02em; }
.fcell textarea { height: 100px; padding: 14px 0; resize: vertical; }
.fcell input::placeholder, .fcell textarea::placeholder { color: var(--label-3); }
.fcell:focus-within { box-shadow: inset 0 0 0 2px var(--tint); }
.fcell .eye { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--label-3); }
.fcell .eye:hover { color: var(--label); }
.fcell.inv input { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.fcell.inv input::placeholder { text-transform: none; font-family: var(--font); letter-spacing: -0.02em; }
.field.err .fcell { box-shadow: inset 0 0 0 2px rgba(255, 69, 58, 0.85); }
.field.shake .fcell { animation: shake 0.42s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.field-lbl { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 6px; font-size: 13px; color: var(--label-2); }
.field-lbl em { font-style: normal; color: var(--red); }
.field-lbl button { color: var(--tint); font-size: 13px; }
.field { margin-bottom: 12px; }
.ferr { display: none; align-items: center; gap: 6px; padding: 7px 6px 0; font-size: 13px; color: var(--red); }
.field.err .ferr { display: flex; }
.fhint { padding: 7px 6px 0; font-size: 13px; color: var(--label-3); }
.auth h3 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.auth .sub { margin: 4px 0 20px; font-size: 15px; color: var(--label-2); }
.auth .btn.block { height: 50px; font-size: 17px; margin-top: 8px; }
.auth-alt { margin-top: 16px; text-align: center; font-size: 15px; color: var(--label-2); }
.auth-alt button { color: var(--tint); }
.auth-terms { margin-top: 12px; text-align: center; font-size: 12px; color: var(--label-3); line-height: 1.5; }
.auth-terms a { color: var(--tint); }
.fnote { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(48, 209, 88, 0.12); color: var(--green); font-size: 14px; }
.fnote.show { display: block; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* sheet */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); animation: fadeIn 0.3s; }
.sheet { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 8px 20px 24px; border-radius: 30px; background: var(--bg-2); animation: sheetIn 0.5s var(--ease); scrollbar-width: none; }
.modal.closing .modal-bg { animation: fadeOut 0.22s forwards; }
.modal.closing .sheet { animation: sheetOut 0.25s forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(16px) scale(0.98); } }
.sheet-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; margin-bottom: 8px; }
.sheet-nav .cancel { justify-self: start; color: var(--tint); font-size: 17px; }
.sheet-nav b { font-size: 17px; font-weight: 600; }
.grabber { display: none; }
.lock-note { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 16px; border-radius: 16px; background: rgba(10, 132, 255, 0.14); font-size: 14px; color: var(--label); line-height: 1.4; }
.lock-note .ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: #fff; }

/* auth page — onboarding */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; max-width: 1000px; margin: 20px auto 0; align-items: start; }
.welcome { padding: 34px 30px; border-radius: 30px; background: var(--bg-2); }
.welcome .appi { margin-bottom: 20px; }
.welcome h2 { margin: 0; font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.welcome > p { margin: 8px 0 0; font-size: 17px; color: var(--label-2); }
.feat-list { display: grid; gap: 22px; margin-top: 30px; }
.feat-list > div { display: flex; gap: 16px; align-items: flex-start; }
.feat-list .sf { width: 30px; height: 30px; color: var(--tint); flex: none; }
.feat-list b { display: block; font-size: 15px; font-weight: 600; }
.feat-list span { font-size: 15px; color: var(--label-2); }
.auth-card { padding: 26px 22px; border-radius: 30px; background: var(--bg-2); }
.auth-copy { text-align: center; margin-top: 14px; font-size: 12px; color: var(--label-3); }
body.auth-mode .side, body.auth-mode .top .navcap, body.auth-mode .top .authcap, body.auth-mode .burger, body.auth-mode .foot { display: none; }
body.auth-mode .main { margin-left: 0; }
body.auth-mode .top { left: 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .side { transform: translateX(calc(-100% - 20px)); transition: transform 0.45s var(--ease); z-index: 70; }
  body.side-open .side { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, 0.5); }
  body.side-open .scrim { display: block; }
  .top { left: 10px; }
  .navcap { display: none !important; }
  .burger { display: inline-flex; }
  .main { margin-left: 0; }
  .page { padding: 18px 16px 48px; }
  .foot { padding: 20px 16px 30px; }
  .wrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-wrap, .ratings, .kv-grid { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { display: none; }
  .tiles.c3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero p { font-size: 17px; }
  .lt h1 { font-size: 32px; }
  .widgets, .charts, .plans, .tiles.c2, .tiles.c4 { grid-template-columns: 1fr; }
  .widget-big { padding: 12px; border-radius: 24px; }
  .searchbar { min-width: 0; width: 100%; }
  .lt-r { width: 100%; }
  .authcap .login { display: none; }
  .lang-lbl { display: none; }
  .app-h { flex-direction: column; align-items: flex-start; gap: 14px; }
  .appi.xl { width: 88px; height: 88px; border-radius: 20px; font-size: 30px; }
  .histo div { grid-template-columns: 110px minmax(0, 1fr) 32px; }
  .gate .btn { width: 100%; margin-left: 0; }
  .params > div { grid-template-columns: 1fr; gap: 2px; }
  .modal { place-items: end center; padding: 0; }
  .sheet { max-width: none; border-radius: 30px 30px 0 0; max-height: 92vh; animation: sheetUp 0.5s var(--ease); }
  .modal.closing .sheet { animation: sheetDown 0.3s forwards; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  @keyframes sheetDown { to { transform: translateY(100%); } }
  .grabber { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--fill); margin: 4px auto 0; }
  .st .hide-s { display: none; }
}

.brandcap { display: none !important; }
body.auth-mode .brandcap { display: flex !important; }
@media (max-width: 960px) { .brandcap { display: flex !important; } .brandcap { font-size: 15px !important; } }
@media (max-width: 640px) { .brandcap { padding: 0 12px 0 8px !important; } }
.mark { display: block; }
.appi.xl .mark { transform: scale(3); }
.appi.xs .mark { transform: scale(0.85); }
.mt span + span { margin-left: 10px; }
.status .sp { margin-left: 8px; }
/* brand logo: bare mark, sized to the wordmark */
.appi.brand { display: inline-flex !important; align-items: center; justify-content: center; background: none !important; box-shadow: none !important; width: auto !important; height: auto !important; border-radius: 0 !important; }
.appi.brand .mark { width: 17px; height: 17px; transform: none !important; }
.appi.brand .mark i { width: 11px; height: 11px; border-radius: 3.5px; }
.appi.brand .mark i:first-child { box-shadow: inset 0 0 0 2px #fff; }
.brand { gap: 9px !important; }
.brandcap { gap: 8px !important; }
.appi.xl.brand .mark { width: 64px; height: 64px; }
.appi.xl.brand .mark i { width: 41px; height: 41px; border-radius: 12px; }
.appi.xl.brand .mark i:first-child { box-shadow: inset 0 0 0 6px #fff; }
.appi.brand { padding: 0 !important; font-size: 0 !important; }

/* ===== Exchange detail: iOS modules ===== */
.xh { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 10px 0 30px; }
.xh h1 { margin: 0; font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; display: flex; align-items: center; gap: 10px; }
.xh h1 .verified { width: 26px; height: 26px; }
.xh p { margin: 8px 0 0; font-size: 17px; color: var(--label-2); }
.xh .acts { display: flex; gap: 16px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.xh .dom { font-size: 15px; color: var(--label-2); transition: color 0.2s; }
.xh .dom:hover { color: var(--tint); }
.xh-r { display: flex; align-items: center; gap: 18px; padding: 16px 26px 16px 16px; border-radius: 30px; background: var(--bg-2); }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .trk { stroke: rgba(10, 132, 255, 0.18); }
.ring .val { stroke: var(--tint); stroke-linecap: round; }
.ring-v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-v b { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-v small { margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--label-2); }
.ring-cap b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ring-cap small { display: block; margin-top: 3px; font-size: 13px; color: var(--label-2); }

.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mod { display: flex; flex-direction: column; min-width: 0; min-height: 184px; padding: 16px 18px 18px; border-radius: 24px; background: var(--bg-2); }
.mod.w2 { grid-column: span 2; }
.mod-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.mod-h svg { color: var(--label-2); }
.mod-v { margin-top: 12px; font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-s { margin-top: 4px; font-size: 13px; color: var(--label-2); }
.mod-foot { margin-top: auto; padding-top: 16px; }
.mod-n { margin-top: 12px; }
.mod-n b { display: block; font-size: 15px; font-weight: 600; }
.mod-n span { display: block; margin-top: 2px; font-size: 13px; color: var(--label-2); }
.fee2 { display: flex; gap: 40px; }

.bars { display: flex; gap: 6px; align-items: flex-end; height: 58px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px; background: var(--fill-3); }
.bars i.on { background: var(--tint); }
.bars-l { display: flex; gap: 6px; margin-top: 6px; }
.bars-l span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--label-3); text-transform: capitalize; }

.meter { position: relative; height: 8px; border-radius: 4px; background: var(--fill-3); }
.meter i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--tint); }
.meter.knob i { background: linear-gradient(90deg, rgba(10, 132, 255, 0.35), var(--tint)); }
.meter.knob s { position: absolute; left: var(--w); top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--bg-2); }

.bd { display: grid; gap: 14px; margin-top: 14px; }
.bd-t { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 15px; }
.bd-t span { color: var(--label); }
.bd-t b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bd .meter { height: 6px; }

.vchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fill-3); color: var(--label-2); }
.vchip.ok { background: rgba(48, 209, 88, 0.16); color: var(--green); }

.mods + .title2 { margin-top: 40px; }

@media (max-width: 1280px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .xh { grid-template-columns: 1fr; gap: 20px; }
  .xh h1 { font-size: 34px; }
  .xh-r { justify-self: stretch; }
}
@media (max-width: 560px) {
  .mods { grid-template-columns: 1fr; }
  .mod.w2 { grid-column: auto; }
  .fee2 { gap: 28px; }
}
/* hot rows: flame on the left, never blurred */
.st .rk.hot { display: flex; align-items: center; color: #ff9f0a; }
.st.locked > .rk.hot { filter: none; opacity: 1; }
.flame { width: 16px; height: 16px; display: block; }
/* screener status chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 500; color: var(--label-2); white-space: nowrap; }
.chip b { color: var(--label); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.live { color: var(--green); font-weight: 600; background: rgba(48, 209, 88, 0.14); }
.cd-ring { width: 16px; height: 16px; transform: rotate(-90deg); flex: none; }
.cd-ring circle { fill: none; stroke-width: 2.6; }
.cd-ring .trk { stroke: var(--fill-3); }
.cd-ring .val { stroke: var(--tint); stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease); }
.lt h1 .chip { font-family: var(--font, inherit); letter-spacing: 0; line-height: 1; margin-left: 4px; }
/* locked-row unlock pill */
.unl { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px 0 5px; border-radius: 999px;
  background: rgba(44, 44, 46, 0.62); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.16); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--label); white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s; }
.unl-i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: #fff; }
.unl-i svg { width: 12px; height: 12px; }
.unl > svg:last-child { color: var(--label-3); margin-left: -2px; }
.st.locked:hover .unl, .chart-i.locked:hover .unl { transform: scale(1.04); background: rgba(58, 58, 60, 0.7); }
.chart-i .unl { height: 30px; font-size: 13px; padding: 0 10px 0 4px; gap: 7px; }
.chart-i .unl-i { width: 22px; height: 22px; }
.home-scr { margin: 48px 0 56px; text-align: left; }
/* gate: table fades out into ghost rows, unlock content on top */
.gate2 { position: relative; margin-top: 6px; cursor: pointer; }
.g-ghost { display: grid; gap: 6px; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%); mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%); }
.g-row { display: flex; align-items: center; gap: 6%; height: 64px; padding: 0 20px 0 52px; border-radius: 18px; background: var(--bg-2); }
.g-row i { height: 10px; border-radius: 5px; background: var(--fill-3); filter: blur(3px); }
.g-row s { margin-left: auto; width: 82px; height: 28px; border-radius: 8px; background: rgba(48, 209, 88, 0.35); filter: blur(5px); }
.g-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.g-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: #fff; margin-bottom: 12px; }
.g-i svg { width: 18px; height: 18px; }
.g-c b { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.g-c > span:not(.g-i):not(.btn) { margin-top: 4px; font-size: 15px; color: var(--label-2); }
.g-c .btn { margin-top: 16px; transition: transform 0.35s var(--ease); }
.gate2:hover .g-c .btn { transform: scale(1.03); }
@media (max-width: 640px) { .g-row { height: 56px; padding-left: 20px; } .g-c b { font-size: 19px; } }
/* home tools as modules */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mod.tool { min-height: 0; cursor: pointer; transition: background 0.25s; }
a.mod.tool:hover, .mod.tool:hover { background: #222224; }
.mod.tool .mod-h svg { color: var(--tint); }
.tb-wrap { position: relative; }
.tb { display: flex; align-items: flex-end; gap: 5px; height: 72px; }
.tb i { flex: 1; height: var(--h); border-radius: 5px; background: var(--green); opacity: var(--o); }
.tb-wrap.locked .tb { filter: blur(7px); opacity: 0.5; }
.tb-wrap.locked .tb i { background: var(--fill); }
.tb-wrap .lock-over { position: absolute; inset: 0; }
.tl-f { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; color: var(--label-2); }
.tl-f b { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }
.tl-f b.g { color: var(--green); }
.tl-f b.blur { filter: blur(5px); color: var(--label); }
.tl-go { display: inline-flex; align-items: center; gap: 3px; color: var(--tint); font-weight: 600; }
@media (max-width: 640px) { .tools { grid-template-columns: 1fr; } }
/* dropdowns sit inside a glass capsule, where a nested backdrop blur does not render: use a solid iOS menu surface */
.menu { background: #2c2c2e !important; }
.side-row { flex: none; }
.side-row + .side-row { margin-top: 3px; }
/* ===== AI assistant: Messages-style thread ===== */
.aiw { max-width: 820px; margin: 0 auto; }
.aiw .lt h1 .badge { font-family: var(--font); letter-spacing: 0; }
.thread { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.ts { align-self: center; margin: 4px 0 8px; font-size: 12px; font-weight: 600; color: var(--label-3); }
.thread .bub { max-width: 74%; padding: 11px 15px; border-radius: 20px; font-size: 16px; line-height: 1.42; letter-spacing: -0.01em; }
.thread .bub p { margin: 0; }
.thread .bub.me { align-self: flex-end; background: var(--tint); color: #fff; border-bottom-right-radius: 20px; }
.thread .bub.ai { background: #26262a; border-bottom-left-radius: 20px; }
.thread .bub.ai.wide { max-width: 100%; }
.thread .bub.me + .ai-line, .thread .ai-line + .bub.me { margin-top: 10px; }
.ai-line { position: relative; display: flex; align-items: flex-end; gap: 10px; max-width: 86%; }
.ai-av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: #fff; }
.ai-av svg { width: 15px; height: 15px; color: #fff; }
.ai-caps { display: grid; gap: 6px; margin-top: 12px; }
.ai-cap { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.ai-ci { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(10, 132, 255, 0.18); }
.ai-ci svg { color: var(--tint); }
.ai-cap b { display: block; font-size: 15px; font-weight: 600; }
.ai-cap small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--label-2); }
.ai-rs { display: grid; gap: 6px; margin-top: 12px; }
.ai-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.ai-r b { display: block; font-size: 15px; font-weight: 600; }
.ai-r small { display: block; font-size: 13px; color: var(--label-2); }
.ai-line.locked { cursor: pointer; }
.ai-line.locked .bl { filter: blur(7px); opacity: 0.55; user-select: none; }
.ai-line.locked .lock-over { left: 40px; }
.composer { position: sticky; bottom: 16px; z-index: 5; margin-top: 22px; display: grid; gap: 10px; }
.sugg2 { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.sugg2::-webkit-scrollbar { display: none; }
.sg { flex: none; height: 34px; padding: 0 15px; border-radius: 999px; background: var(--bg-2); color: var(--label); font-size: 14px; font-weight: 500; transition: background 0.2s; }
.sg:hover { background: var(--bg-3); }
.cmp { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 7px 0 20px; border-radius: 999px; cursor: text; }
.cmp-t { flex: 1; font-size: 16px; color: var(--label-3); }
.cmp-s { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: #fff; }
@media (max-width: 640px) { .thread .bub { max-width: 86%; } .ai-line { max-width: 100%; } }
/* AI v2: assistant replies are plain text, not boxed */
.thread { gap: 14px; }
.ai-msg { align-self: stretch; max-width: 92%; margin: 6px 0; }
.ai-who { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.ai-who .ai-av { width: 22px; height: 22px; }
.ai-who .ai-av svg { width: 12px; height: 12px; }
.ai-body { position: relative; font-size: 17px; line-height: 1.5; letter-spacing: -0.015em; color: var(--label); }
.ai-body p { margin: 0; }
.ai-body b { font-weight: 600; }
.ai-caps { gap: 16px; margin-top: 18px; }
.ai-cap { padding: 0; background: none; border-radius: 0; gap: 14px; }
.ai-cap > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--tint); }
.ai-cap b { font-size: 16px; }
.ai-cap small { font-size: 14px; }
.ai-rs { margin-top: 16px; }
.ai-r { padding: 14px 16px; border-radius: 18px; background: var(--bg-2); }
.ai-r b { font-size: 16px; }
.ai-msg.locked { cursor: pointer; }
.ai-msg.locked .bl { filter: blur(7px); opacity: 0.5; user-select: none; }
.ai-msg.locked .lock-over { left: 0; right: 0; }
/* ===== AI page v3: modules ===== */
.ask { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 9px 0 18px; margin-bottom: 14px; border-radius: 999px; background: var(--bg-2); cursor: text; transition: background 0.2s; }
.ask:hover { background: #222224; }
.ask-i svg { width: 20px; height: 20px; color: var(--tint); }
.ask-t { flex: 1; font-size: 17px; color: var(--label-3); }
.ai-mods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ai-mods .mod { min-height: 300px; }
.rt { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; }
.rt-s { flex: 1; min-width: 0; }
.rt-s small { display: block; font-size: 12px; font-weight: 600; color: var(--label-3); }
.rt-s b { display: block; margin-top: 3px; font-size: 16px; font-weight: 600; }
.rt-s span { display: block; margin-top: 1px; font-size: 13px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.rt-c { padding-top: 16px; color: var(--label-3); }
.split { display: flex; gap: 4px; height: 10px; }
.split i { width: var(--w); border-radius: 5px; }
.split i.n { background: var(--green); }
.split i.f { background: var(--fill); }
.split-l { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.split-l small { display: block; font-size: 12px; color: var(--label-2); }
.split-l b { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.split-l b.g { color: var(--green); }
.split-l > div:last-child { text-align: right; }
.risk { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.risk .ring { width: 96px; height: 96px; }
.risk .ring-v b { font-size: 24px; }
.ring.g .trk { stroke: rgba(48, 209, 88, 0.18); }
.ring.g .val { stroke: var(--green); }
.mod-v.sm { font-size: 24px; margin-top: 0; }
.meter.gm i { background: var(--green); }
.bars.thin { gap: 3px; height: 92px; }
.bars.thin i { border-radius: 3px; }
.bars-l span:first-child { text-align: left; } .bars-l span:last-child { text-align: right; }
.fund { margin-top: 12px; flex: 1; display: flex; }
.fund > div:first-child { filter: blur(7px); opacity: 0.5; user-select: none; }
.fund .mod-s { font-size: 15px; line-height: 1.5; margin-top: 10px; }
@media (max-width: 1280px) { .ai-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ai-mods .mod.w2 { grid-column: span 2; } }
@media (max-width: 560px) { .ai-mods { grid-template-columns: 1fr; } .ai-mods .mod.w2 { grid-column: auto; } .rt-s b { font-size: 14px; } }
.bars-l.sb { justify-content: space-between; }
.bars-l.sb span { flex: none; }
@media (max-width: 1280px) { .ai-mods .mod { min-height: 0; } .fund { min-height: 150px; } }
.ask, .cmp { cursor: pointer; }
.rt { gap: 24px; }
/* ===== Exchanges list v2 ===== */
.lt h1 .cap-seg { font-family: var(--font); letter-spacing: 0; line-height: 1; margin-left: 4px; border-radius: 999px; padding: 3px; background: var(--bg-2); }
.cap-seg > * { height: 30px; border-radius: 999px; padding: 0 16px; }
.cap-seg > .on { background: var(--bg-3); }
.ex-list .st { min-height: 68px; }
.exn { display: flex !important; align-items: center; gap: 5px; }
.rate { display: inline-flex; align-items: center; gap: 8px; }
.rate b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mring { width: 26px; height: 26px; transform: rotate(-90deg); flex: none; }
.mring circle { fill: none; stroke-width: 3.5; }
.mring .trk { stroke: rgba(10, 132, 255, 0.18); }
.mring .val { stroke: var(--tint); stroke-linecap: round; }
.st .chev { display: flex; justify-content: flex-end; color: var(--label-3); }
a.st.hov:hover .chev { color: var(--label-2); }
@media (max-width: 640px) { .ex-list .st, .ex-list .st-head { --cols: 22px minmax(0,1.4fr) 76px minmax(0,1fr) 14px !important; } }
/* ===== Footer v2: one module ===== */
.foot { display: block; padding: 0 28px 28px; max-width: 1160px; }
.ft { padding: 26px 26px 22px; border-radius: 28px; background: var(--bg-2); }
.ft-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.ft-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--label); }
.ft-tag { margin: 0; max-width: 460px; font-size: 15px; color: var(--label-2); }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ft-links a { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px; background: var(--fill-4); color: var(--label) !important; font-size: 14px; font-weight: 500; transition: background 0.2s; }
.ft-links a:hover { background: var(--fill-3); }
.ft-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 22px; font-size: 12px; line-height: 1.5; color: var(--label-3); }
.ft-bot span:last-child { max-width: 620px; }
@media (max-width: 640px) { .foot { padding: 0 16px 20px; } .ft { padding: 20px 18px 18px; border-radius: 24px; } }
.ft .ft-brand { color: var(--label); }

/* ===== Partners v2 ===== */
.pp-mods .mod.w4 { grid-column: 1 / -1; }
.pp-calc { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 12px; }
.mod-v.big { font-size: 52px; font-weight: 700; letter-spacing: -0.035em; margin-top: 0; }
.pp-n { text-align: right; }
.pp-n b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-n small { font-size: 13px; color: var(--label-2); }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--tint) var(--p, 25%), var(--fill-3) var(--p, 25%)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; }
.slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; }
.pp-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--label-2); }
.pp-tiers { display: grid; gap: 8px; margin-top: 14px; }
.pp-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--fill-4); transition: background 0.35s var(--ease); }
.pp-t b { display: block; font-size: 16px; font-weight: 600; }
.pp-t small { display: block; margin-top: 2px; font-size: 13px; color: var(--label-2); }
.pp-tv { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--label-2); transition: color 0.35s; }
.pp-t.on { background: var(--tint); }
.pp-t.on small { color: rgba(255, 255, 255, 0.75); }
.pp-t.on .pp-tv { color: #fff; }
.pp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.pp-sn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(10, 132, 255, 0.18); color: var(--tint); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.pp-s b { display: block; font-size: 16px; font-weight: 600; }
.pp-s small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--label-2); }
.nets { display: flex; gap: 6px; flex-wrap: wrap; }
.nets span { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--fill-4); font-size: 13px; font-weight: 600; }
.pp-kv { display: flex; gap: 28px; margin-top: 16px; }
.pp-kv b { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-kv b.g { color: var(--green); }
.pp-kv small { font-size: 12px; color: var(--label-2); }
@media (max-width: 1280px) { .pp-mods .mod.w2 { grid-column: 1 / -1; } }
@media (max-width: 760px) { .pp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pp-mods .mod { grid-column: auto !important; } .mod-v.big { font-size: 40px; } }
.exl { color: inherit; transition: color 0.2s; }
.exl:hover { color: var(--tint); }
/* hero v2: app-style, left aligned */
.hero { text-align: left; padding: 24px 0 0; }
.hero h1 { margin: 0; max-width: none; font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 span { display: block; color: var(--label-3); }
.hero p { margin: 18px 0 0; max-width: 560px; font-size: 17px; line-height: 1.5; color: var(--label-2); }
.home-scr { margin-top: 56px; }

/* partners steps: stories-style pager */
.pp-steps { gap: 14px; margin-top: 16px; }
.pp-seg { display: block; height: 4px; border-radius: 2px; background: var(--fill-3); overflow: hidden; margin-bottom: 16px; }
.pp-seg i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--tint); }
.pp-s .pp-k { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--label-3); transition: color 0.3s; }
.pp-s b { color: var(--label-2); transition: color 0.3s; }
.pp-s.on .pp-k { color: var(--tint); }
.pp-s.on b { color: var(--label); }

/* ===== Footer v3: no card, aligned to page grid ===== */
.foot { display: block; max-width: 1160px; width: 100%; margin: 0 auto; padding: 8px 28px 40px; }
.ft2-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px 48px; flex-wrap: wrap; }
.ft2-b { max-width: 340px; }
.ft2-b p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--label-2); }
.ft .ft-brand, .ft2 .ft-brand { color: var(--label); }
.ft2-links { display: grid; grid-template-columns: repeat(4, auto); gap: 14px 40px; padding-top: 4px; }
.ft2-links a { font-size: 15px; color: var(--label-2); transition: color 0.2s; white-space: nowrap; }
.ft2-links a:hover { color: var(--label); }
.ft2-bot { display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; margin-top: 36px; font-size: 12px; line-height: 1.5; color: var(--label-3); }
.ft2-bot span:last-child { max-width: 560px; }
@media (max-width: 960px) { .ft2-links { grid-template-columns: repeat(2, auto); gap: 14px 48px; } }
@media (max-width: 640px) {
  .foot { padding: 4px 16px 28px; }
  .ft2-top { flex-direction: column; gap: 24px; }
  .ft2-links { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 14px 16px; }
  .ft2-bot { flex-direction: column; margin-top: 28px; }
}
.foot .ft2-links { display: grid; flex-wrap: initial; }
.foot .ft2-links a { color: var(--label-2); }
.foot .ft2-links a:hover { color: var(--label); }
.foot .ft2-links { gap: 14px 44px; }
@media (max-width: 640px) { .foot .ft2-links { gap: 14px 16px; } }
.ft2-b { max-width: 430px; }
.ft2-bot span:last-child { max-width: 680px; }
.ft2-bot { flex-direction: column; justify-content: flex-start; gap: 6px; }
.ft2-bot span:last-child { max-width: 760px; }

/* ===== Pricing v2 ===== */
.pl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl { min-height: 0; padding: 20px; }
.pl.hl { background: linear-gradient(180deg, rgba(10, 132, 255, 0.2), var(--bg-2) 62%); }
.pl-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-h b { font-size: 17px; font-weight: 600; }
.pl-p { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.pl-p b { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.pl-p b.w { font-size: 30px; letter-spacing: -0.025em; line-height: 44px; }
.pl-p span { font-size: 15px; color: var(--label-2); }
.pl-n { margin-top: 6px; min-height: 18px; font-size: 12px; color: var(--green); }
.pl-d { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--label-2); min-height: 40px; }
.pl-kvs { display: grid; gap: 6px; margin-top: 18px; }
.pl-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--fill-4); font-size: 13px; color: var(--label-2); }
.pl-kv .vv { color: var(--label); font-weight: 600; }
.pl .mod-foot { padding-top: 20px; }
.ck { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #000; }
.ck svg { width: 13px; height: 13px; stroke-width: 2.4; }
.no { color: var(--label-3); }
.vv { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp2 { overflow-x: auto; scrollbar-width: none; }
.cmp2::-webkit-scrollbar { display: none; }
.cmp2-h, .cmp2-r { display: grid; grid-template-columns: minmax(170px, 1.6fr) repeat(4, minmax(90px, 1fr)); align-items: center; min-width: 620px; }
.cmp2-h { padding: 0 18px 10px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.cmp2-h span, .cmp2-r > :not(.f) { text-align: center; justify-self: center; }
.cmp2-r { min-height: 52px; padding: 0 18px; border-radius: 16px; background: var(--bg-2); }
.cmp2-r .f { font-size: 15px; }
@media (max-width: 1280px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pl-grid { grid-template-columns: 1fr; } }

/* ===== Docs (API + legal) ===== */
.lg-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 28px; }
.lg-bar .cap-seg { padding: 3px; border-radius: 999px; background: var(--bg-2); }
.lg-bar .cap-seg a { height: 30px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--label); }
.lg-bar .cap-seg a.on { background: var(--bg-3); }
.doc2 { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 84px; display: grid; gap: 2px; }
.toc-h { padding: 14px 12px 6px; font-size: 12px; font-weight: 600; color: var(--label-3); }
.toc-h:first-child { padding-top: 0; }
.toc button { text-align: left; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--label-2); transition: background 0.2s, color 0.2s; }
.toc button:hover { background: var(--bg-2); color: var(--label); }
.dc { max-width: 720px; }
.dc .lead { margin: 0 0 8px; font-size: 19px; line-height: 1.5; color: var(--label-2); letter-spacing: -0.015em; }
.ds { padding: 28px 0 8px; scroll-margin-top: 84px; }
.ds h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.ds p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--label-2); }
.dn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); font-size: 14px; font-weight: 700; color: var(--label-2); flex: none; }
.ds pre.code { margin: 14px 0; padding: 18px 20px; border-radius: 18px; background: var(--bg-2); font-size: 13px; line-height: 1.65; overflow-x: auto; }
.mline2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.mline2 code { font-size: 14px; color: var(--label); }
.mline2 .verb { height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; background: rgba(48, 209, 88, 0.16); color: var(--green); }
.mline2 .verb.ws { background: rgba(10, 132, 255, 0.18); color: var(--tint); }
.prm { display: grid; gap: 6px; margin: 16px 0; }
.prm-r { display: grid; grid-template-columns: 140px 90px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 14px; background: var(--bg-2); font-size: 14px; color: var(--label-2); }
.prm-r code { color: var(--label); font-size: 13px; }
.prm-r .ty { color: var(--label-3); font-size: 13px; }
.keyrow { position: relative; margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: var(--bg-2); cursor: pointer; }
.keyrow small { display: block; font-size: 12px; color: var(--label-2); margin-bottom: 4px; }
.keyrow code { display: block; filter: blur(6px); opacity: 0.6; font-size: 14px; user-select: none; }
@media (max-width: 960px) { .doc2 { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }
@media (max-width: 560px) { .prm-r { grid-template-columns: 1fr; gap: 2px; } .ds h2 { font-size: 21px; } }
.toc button { height: auto; min-height: 34px; padding: 7px 12px; line-height: 1.35; }

/* ===== Legal v3: modules ===== */
.lt h1 .cap-seg a { height: 30px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--label); }
.lt h1 .cap-seg a.on { background: var(--bg-3); }
.lg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lg-m { min-height: 0; padding: 22px 22px 24px; }
.lg-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(10, 132, 255, 0.16); color: var(--tint); }
.lg-i svg { width: 20px; height: 20px; color: var(--tint); }
.lg-m h3 { margin: 16px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.lg-m p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--label-2); }
@media (max-width: 760px) { .lg-grid { grid-template-columns: 1fr; } .lt h1 .cap-seg { margin-left: 0; } }
/* sidebar Pro promo v2 */
.side-pro2 { position: relative; display: block; margin-top: auto; padding: 16px; border-radius: 20px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #3a9bff 0%, rgba(58, 155, 255, 0) 60%), linear-gradient(160deg, #0a84ff 0%, #0040dd 100%); transition: transform 0.35s var(--ease); }
.side-pro2:hover { transform: scale(1.015); }
.sp-i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, 0.2); }
.sp-i svg { color: #fff; width: 17px; height: 17px; }
.side-pro2 b { display: block; margin-top: 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.side-pro2 p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }
.sp-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.sp-p { font-size: 13px; font-weight: 600; }
.sp-b { height: 30px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; color: var(--tint); font-size: 13px; font-weight: 700; }
.sp-p { white-space: nowrap; }
.side-pro2 { flex: none; transition: filter 0.25s; }
.side-pro2:hover { transform: none; filter: brightness(1.08); }
/* sidebar never scrolls: compact on short viewports */
.side { overflow: hidden; }
@media (max-height: 860px) {
  .side { padding-top: 10px; }
  .side .brand { padding-bottom: 10px; }
  .side-row { height: 34px; }
  .side-row + .side-row { margin-top: 2px; }
  .side-h { padding: 10px 10px 4px; }
  .side-pro2 { padding: 13px; }
  .side-pro2 .sp-i { display: none; }
  .side-pro2 b { margin-top: 0; }
}
@media (max-height: 740px) {
  .side-row { height: 31px; font-size: 14px; }
  .side-row + .side-row { margin-top: 1px; }
  .side-h { padding: 8px 10px 3px; }
  .side-pro2 p { display: none; }
  .sp-f { margin-top: 10px; }
}
@media (max-height: 640px) { .side-pro2 { display: none; } }
/* exchange logos */
.exlogo { width: 18px; height: 18px; object-fit: contain; flex: none; margin-right: 7px; }
.exl { display: inline-flex; align-items: center; max-width: 100%; }
.exlogo.lg { width: 30px; height: 30px; margin-right: 0; }
.exlogo.xl { width: 44px; height: 44px; margin-right: 6px; }
.st.locked .exlogo { filter: none; }
@media (max-width: 760px) { .exlogo.xl { width: 34px; height: 34px; } }
@media (max-width: 640px) { .brandcap { display: none !important; } body.auth-mode .brandcap { display: flex !important; } }

/* ===== Home hero v3: text + live widget ===== */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 40px; align-items: center; }
.hero2 .hero-l p { max-width: 520px; }
.hw { padding: 20px; border-radius: 28px; background: var(--bg-2); }
.hw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hw-cap { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.hw-fl { display: inline-flex; color: #ff9f0a; }
.hw-fl .flame { width: 15px; height: 15px; }
.hw-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(48, 209, 88, 0.14); color: var(--green); font-size: 12px; font-weight: 600; }
.hw-pair { margin-top: 16px; }
.hw-pair b { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.025em; }
.hw-pair b span { color: var(--label-3); }
.hw-pair small { display: block; margin-top: 2px; font-size: 13px; color: var(--label-2); }
.hw-route { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.hw-route > div { padding: 12px 14px; border-radius: 18px; background: var(--fill-4); min-width: 0; }
.hw-route small { display: block; font-size: 12px; font-weight: 600; color: var(--label-3); }
.hw-ex { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--label); }
.hw-ex .exlogo.md { width: 22px; height: 22px; margin: 0; }
.hw-route b { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--label-2); font-variant-numeric: tabular-nums; }
.hw-res { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; }
.hw-res small { display: block; font-size: 12px; color: var(--label-2); }
.hw-res b { display: block; margin-top: 2px; font-family: var(--display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hw-res b.g { font-size: 40px; letter-spacing: -0.03em; color: var(--green); line-height: 1.05; }
.hw-res .r { text-align: right; }
.hw-bars { display: flex; align-items: flex-end; gap: 3px; height: 48px; margin-top: 14px; }
.hw-bars i { flex: 1; height: var(--h); border-radius: 3px; background: var(--green); opacity: var(--o); transition: height 0.6s var(--ease); }
.hw-btn { margin-top: 18px; }
@media (max-width: 1100px) { .hero2 { grid-template-columns: 1fr; gap: 28px; } .hw { max-width: 520px; } }
.home-scr { margin-top: 0; }
/* pricing: always 4 plans in one row on desktop/tablet */
.pl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px; }
.pl { padding: 18px 16px; }
.pl-p b { font-size: clamp(28px, 3vw, 44px); }
.pl-p b.w { font-size: clamp(20px, 2vw, 30px); line-height: 1.4; }
.pl-kv { height: auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 9px 12px; }
.pl-kv > span:first-child { font-size: 12px; }
.pl-kv .vv, .pl-kv .no { font-size: 15px; }
.pl .btn { padding: 0 10px; font-size: 14px; }
@media (max-width: 700px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 420px) { .pl-grid { grid-template-columns: 1fr !important; } }
.pl-d { min-height: 62px; }
.pl .btn { height: auto; min-height: 40px; padding: 8px 10px; white-space: normal; line-height: 1.2; font-size: 13px; }

.pl .btn { white-space: nowrap; text-align: center; justify-content: center; font-size: 14px; min-height: 40px; }
.pl-p { height: 48px; align-items: flex-end; margin-top: 16px; }
.pl-p b, .pl-p b.w { line-height: 1; }

/* language picker as iOS bottom sheet (phones) */
.lang-sheet h3 { margin: 6px 4px 14px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.ls-list { display: grid; gap: 6px; }
.ls-i { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 18px; border-radius: 16px; background: var(--fill-4); font-size: 17px; color: var(--label); }
.ls-i.on { color: var(--tint); font-weight: 600; }
.ls-i svg { color: var(--tint); width: 18px; height: 18px; }
.ls-cancel { margin-top: 12px; height: 52px; font-size: 17px; }

.lang-flag { display: none; font-size: 20px; line-height: 1; }
@media (max-width: 640px) { .lang-flag { display: inline; } .cap-link[data-menu] > .sf-s:first-child { display: none; } }
.ls-l { display: inline-flex; align-items: center; gap: 12px; }
.ls-f { font-size: 22px; line-height: 1; }

html:has(body.no-scroll), html:has(body.side-open) { overflow: hidden; }
.modal, .sheet { overscroll-behavior: contain; }
.modal-bg, .scrim { touch-action: none; }

/* language button: flag + code on all screens */
.lang-btn { gap: 7px; }
.lang-btn .lang-flag { display: inline !important; font-size: 18px; }
.lang-btn .lang-lbl { display: inline !important; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.menu .mi .ls-f { font-size: 18px; margin-right: 2px; }
/* ===== Sidebar: larger type and targets ===== */
:root { --side-w: 280px; }
.side { padding: 16px 12px 12px; }
.side .brand { font-size: 22px; gap: 11px; padding: 4px 10px 18px; }
.side .brand .appi.brand .mark { width: 19px; height: 19px; }
.side .brand .appi.brand .mark i { width: 12.5px; height: 12.5px; }
.side-row { height: 46px; gap: 13px; padding: 0 12px; border-radius: 14px; font-size: 17px; letter-spacing: -0.015em; }
.side-row .sf { width: 21px; height: 21px; }
.side-row .end .badge { height: 21px; font-size: 12px; padding: 0 9px; }
.side-row .end svg { width: 14px; height: 14px; }
.side-h { padding: 18px 12px 6px; font-size: 15px; }
.side-pro2 b { font-size: 18px; }
.side-pro2 p { font-size: 14px; }
.sp-p, .sp-b { font-size: 14px; }
.sp-b { height: 34px; padding: 0 16px; }
@media (max-height: 900px) and (min-width: 961px) {
  .side-row { height: 40px; font-size: 16px; }
  .side-h { padding: 12px 12px 4px; font-size: 14px; }
  .side .brand { padding-bottom: 12px; }
}
@media (max-height: 760px) and (min-width: 961px) {
  .side-row { height: 35px; font-size: 15px; }
  .side-row .sf { width: 19px; height: 19px; }
  .side-h { padding: 8px 12px 3px; font-size: 13px; }
}
@media (max-width: 960px) {
  .side { width: min(320px, calc(100vw - 20px)); }
  .side-row { height: 50px; font-size: 18px; }
  .side-row .sf { width: 22px; height: 22px; }
  .side-h { font-size: 15px; padding: 18px 12px 6px; }
}
/* overall readability bump */
@media (min-width: 961px) { .main, .top { zoom: 1.07; } }
@media (max-width: 960px) { .main, .top { zoom: 1.04; } }
/* sidebar rows scale with viewport height so the Pro banner always fits */
.side-row { height: clamp(31px, 4.9vh, 46px); font-size: clamp(14px, 2vh, 17px); }
.side-row .sf { width: clamp(17px, 2.4vh, 21px); height: clamp(17px, 2.4vh, 21px); }
.side-h { padding: clamp(5px, 1.5vh, 18px) 12px clamp(2px, 0.5vh, 6px); font-size: clamp(12px, 1.7vh, 15px); }
.side .brand { padding-bottom: clamp(8px, 1.8vh, 18px); font-size: clamp(18px, 2.6vh, 22px); }
.side-row + .side-row { margin-top: clamp(1px, 0.3vh, 3px); }
@media (max-width: 960px) {
  .side-row { height: clamp(34px, 5.2vh, 50px); font-size: clamp(15px, 2.1vh, 18px); }
}

/* compare table cells */
.cmp2-r .cv { display: flex; justify-content: center; align-items: center; }

/* ===== Phones: no horizontal scrolling ===== */
@media (max-width: 640px) {
  /* screener rows become two-line cards */
  .st-wrap { overflow: visible; }
  .st-in.mk { min-width: 0 !important; }
  .st-in.mk .st-head { display: none; }
  .st-in.mk .st { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) auto !important; grid-auto-rows: auto; column-gap: 12px; row-gap: 10px; padding: 14px 14px; align-items: center; }
  .st-in.mk .st > [data-c] { display: none; }
  .st-in.mk .st > [data-c="0"] { display: flex; grid-column: 1; grid-row: 1; }
  .st-in.mk .st > [data-c="1"] { display: flex; grid-column: 2 / 4; grid-row: 1; }
  .st-in.mk .st > [data-last] { display: block; grid-column: 4; grid-row: 1; justify-self: end; }
  .st-in.mk .st > [data-c="2"] { display: block; grid-column: 2; grid-row: 2; min-width: 0; }
  .st-in.mk .st > [data-c="3"] { display: block; grid-column: 3 / 5; grid-row: 2; min-width: 0; }
  .st-in.mk-dex .st > [data-c="2"] { display: none; }
  .st-in.mk-dex .st > [data-c="3"] { display: block; grid-column: 2; grid-row: 2; }
  .st-in.mk-dex .st > [data-c="4"] { display: block; grid-column: 3 / 5; grid-row: 2; min-width: 0; }
  .st-in.mk .two-l b, .st-in.mk .two-l small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* pricing comparison: feature on top, four labelled cells below */
  .cmp2 { overflow: visible; }
  .cmp2-h { display: none; }
  .cmp2-r { min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; padding: 14px 12px; min-height: 0; }
  .cmp2-r .f { grid-column: 1 / -1; font-weight: 600; text-align: left; justify-self: start; }
  .cmp2-r .cv { flex-direction: column; gap: 5px; }
  .cmp2-r .cv::before { content: attr(data-p); font-size: 11px; font-weight: 600; color: var(--label-3); }
  .cmp2-r .vv { font-size: 13px; text-align: center; }
}
@media (max-width: 640px) {
  .st-in.mk .st > * { min-width: 0; }
  .st-in.mk .st > [data-c="2"], .st-in.mk .st > [data-c="3"], .st-in.mk-dex .st > [data-c="4"] { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
  .st-in.mk-dex .st > [data-c="2"] { display: none; }
  .st-in.mk .two-l b { display: block; }
  .st-in.mk .two-l small.mt { display: block; }
  /* exchange ranking: name | volume | chevron */
  .ex-list .st-head { display: none; }
  .ex-list .st { --cols: 20px minmax(0, 1fr) auto 14px !important; gap: 10px; }
  .ex-list .st .rate { display: none; }
  .ex-list .st > * { min-width: 0; }
  .ex-list .tick small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* docs */
  .doc2 { grid-template-columns: minmax(0, 1fr) !important; }
  .dc { min-width: 0; }
  .ds pre.code { max-width: 100%; }
  .prm-r code, .mline2 code { word-break: break-all; }
}
@media (max-width: 640px) {
  .ex-list .tick > div { min-width: 0; overflow: hidden; }
  .ex-list .tick { min-width: 0; }
  /* listings: compact two-column cards */
  .st-in.lst { min-width: 0 !important; }
  .st-in.lst .st-head { display: none; }
  .st-in.lst .st { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; row-gap: 8px; padding: 14px; }
  .st-in.lst .st > .rk { display: none; }
  .st-in.lst .st > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* locked-content header inside the auth sheet */
.lock-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 8px 20px; }
.lh-i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #3a9bff 0%, rgba(58, 155, 255, 0) 60%), linear-gradient(160deg, #0a84ff 0%, #0040dd 100%); }
.lh-i svg { width: 22px; height: 22px; }
.lock-hero b { margin-top: 14px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.lock-hero p { margin: 6px 0 0; max-width: 320px; font-size: 14px; line-height: 1.45; color: var(--label-2); }
@media (max-width: 640px) { .lt h1 { font-size: clamp(24px, 7vw, 32px); } }
/* header stays readable over scrolling content: soft top fade + denser glass */
.top::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 84px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0) 100%); }
.top .cap.glass, .top .burger.glass { background: rgba(44, 44, 46, 0.78); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 0.5px rgba(255, 255, 255, 0.06); }
.top::before { position: absolute; top: -10px; left: -10px; right: -10px; }
.top::before { content: none !important; }
.topfade { position: fixed; z-index: 35; top: 0; left: calc(var(--side-w) + 20px); right: 0; height: 78px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0) 100%); }
@media (max-width: 960px) { .topfade { left: 0; } }
body.auth-mode .topfade { left: 0; }
.topfade { height: 92px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.82) 55%, rgba(0, 0, 0, 0) 100%); }
/* native SF-style lock glyph: no disc, no gradient */
.lh-i, .g-i { width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important; color: var(--tint) !important; }
.lh-i svg { width: 40px !important; height: 40px !important; }
.g-i svg { width: 30px !important; height: 30px !important; }
.lock-hero b { margin-top: 12px; }
/* sidebar: solid surface (translucent glass let page colours bleed through as dark/green smudges) */
.side.glass { background: #161618 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.06) !important; }
/* ===== Phone screener card v2: symmetric ===== */
@media (max-width: 640px) {
  .st-in.mk .st { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 8px; row-gap: 12px; padding: 14px 14px 14px 40px; }
  .st-in.mk .st > [data-c="0"] { position: absolute; left: 14px; top: 20px; grid-column: auto; grid-row: auto; }
  .st-in.mk .st > [data-c="1"] { grid-column: 1; grid-row: 1; }
  .st-in.mk .st > [data-last] { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .st-in.mk .st > [data-c="2"], .st-in.mk .st > [data-c="3"],
  .st-in.mk-dex .st > [data-c="3"], .st-in.mk-dex .st > [data-c="4"] { grid-row: 2; padding: 10px 12px; border-radius: 14px; background: var(--fill-4); gap: 4px; }
  .st-in.mk .st > [data-c="2"] { grid-column: 1; margin-left: -26px; }
  .st-in.mk .st > [data-c="3"] { grid-column: 2; }
  .st-in.mk-dex .st > [data-c="3"] { grid-column: 1; margin-left: -26px; }
  .st-in.mk-dex .st > [data-c="4"] { grid-column: 2; }
  .st-in.mk .st > [data-c]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; color: var(--label-3); margin-bottom: 2px; }
  .st-in.mk .st > [data-c="0"]::before, .st-in.mk .st > [data-c="1"]::before, .st-in.mk .st > [data-last]::before { content: none; }
  .st-in.mk .two-l b { font-size: 15px; }
  .st-in.mk .two-l small { font-size: 12px; }
}
/* hot rows: number + flame */
.st .rk.hot { gap: 2px; }
.st .rk.hot b { font-size: 13px; font-weight: 600; color: var(--label-3); }
.st .rk.hot .flame { width: 13px; height: 13px; }
@media (max-width: 640px) { .st-in.mk .st > [data-c="0"] { left: 10px; } }
/* phone card: rank sits inline with the pair, same baseline */
@media (max-width: 640px) {
  .st-in.mk .st { padding: 14px !important; }
  .st-in.mk .st > [data-c="0"] { position: static; grid-column: 1; grid-row: 1; align-self: start; justify-self: start; height: 22px; display: inline-flex; align-items: center; }
  .st-in.mk .st > [data-c="1"] { grid-column: 1; grid-row: 1; padding-left: 30px; }
  .st-in.mk .st > [data-c="0"]:not(.hot) { min-width: 20px; }
  .st-in.mk .st > [data-c="2"], .st-in.mk-dex .st > [data-c="3"] { margin-left: 0 !important; }
  .st-in.mk .tick b { line-height: 22px; }
}
/* phone card: pair + network chip on one line */
@media (max-width: 640px) {
  .st-in.mk .st > [data-c="1"] { align-self: center; }
  .st-in.mk .st > [data-c="1"] > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .st-in.mk .st > [data-c="1"] b { line-height: 22px; white-space: nowrap; }
  .st-in.mk .st > [data-c="1"] small { flex: none; height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--fill-4); font-size: 11px; font-weight: 600; color: var(--label-2); }
  .st-in.mk .st > [data-c="0"] { align-self: center; }
}
@media (max-width: 640px) { .st-in.mk .st > [data-c="1"] small { display: none !important; } }
/* API docs on phones: wrap code, equal blocks, no sideways scroll */
@media (max-width: 640px) {
  .ds pre.code { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; overflow-x: hidden; padding: 14px 16px; font-size: 12px; line-height: 1.6; border-radius: 16px; margin: 12px 0; }
  .keyrow { padding: 14px 16px; border-radius: 16px; min-height: 72px; display: flex; flex-direction: column; justify-content: center; }
  .keyrow code { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prm-r { padding: 12px 16px; border-radius: 16px; }
  .ds { padding-top: 22px; }
  .ds h2 { font-size: 21px; }
  .mline2 code { font-size: 12.5px; }
}
