/* =========================================================
   ALL PAY BACK — stylesheet
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --neon: #3CFF7C;
  --neon-soft: rgba(60, 255, 124, .16);
  --on-neon: #03140A;

  --bg: #FFFFFF;
  --bg-2: #F2F8F4;
  --surface: #FFFFFF;
  --surface-2: #F5FAF6;
  --surface-glass: rgba(255, 255, 255, .74);
  --line: #E1EBE4;
  --line-2: #CFDDD3;
  --text: #05140B;
  --text-2: #45574C;
  --text-3: #75877C;
  --accent: #0A8A41;
  --hl: rgba(60, 255, 124, .62);
  --danger: #E5484D;

  --deep: #04120A;
  --deep-2: #0A1D12;

  --shadow: 0 1px 2px rgba(5, 20, 11, .04), 0 14px 34px -14px rgba(5, 40, 20, .16);
  --shadow-lg: 0 44px 90px -44px rgba(5, 40, 20, .34);

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --font-num: "Unbounded", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;

  --maxw: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #030A06;
    --bg-2: #06110B;
    --surface: #0A1610;
    --surface-2: #0E1D15;
    --surface-glass: rgba(10, 22, 16, .66);
    --line: #17291E;
    --line-2: #22392B;
    --text: #E9F5EC;
    --text-2: #9DB2A5;
    --text-3: #6A8072;
    --accent: #3CFF7C;
    --hl: rgba(60, 255, 124, .30);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 44px 90px -40px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #030A06;
  --bg-2: #06110B;
  --surface: #0A1610;
  --surface-2: #0E1D15;
  --surface-glass: rgba(10, 22, 16, .66);
  --line: #17291E;
  --line-2: #22392B;
  --text: #E9F5EC;
  --text-2: #9DB2A5;
  --text-3: #6A8072;
  --accent: #3CFF7C;
  --hl: rgba(60, 255, 124, .30);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 44px 90px -40px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ja"] { --font: "Pretendard Variable", Pretendard, "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; }
html[lang="zh"] { --font: "Pretendard Variable", Pretendard, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* component display rules (flex/grid) must not undo the hidden attribute */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
html.i18n-pending body { opacity: 0; }
body { opacity: 1; transition: opacity .35s ease, background-color .4s, color .4s; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.035em; line-height: 1.18; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--neon); color: var(--on-neon); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 64px, var(--maxw)); } }

.section { padding-block: clamp(88px, 11vw, 150px); position: relative; }
.section--soft { background: color-mix(in srgb, var(--bg-2) 72%, transparent); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-title { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.sec-desc { margin-top: 18px; color: var(--text-2); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; background: transparent; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .3s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-neon { background: var(--neon); color: var(--on-neon); }
.btn-neon:hover { box-shadow: 0 0 0 6px var(--neon-soft), 0 14px 34px -10px rgba(60, 255, 124, .75); }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-ink:hover { box-shadow: var(--shadow); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--text); transition: background-color .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.hdr { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-family: var(--font-num); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 10px; border: 0; background: transparent;
  font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .2s;
}
.nav-link:hover { background: var(--surface-2); }
.nav-link .chev { width: 14px; height: 14px; opacity: .6; transition: transform .25s; }

.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dd-menu--right { left: auto; right: 0; }
.dd:hover > .dd-menu, .dd:focus-within > .dd-menu, .dd.is-open > .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd:hover > .nav-link .chev, .dd.is-open > .nav-link .chev { transform: rotate(180deg); }
.dd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 10px; border: 0; background: transparent;
  font-size: 14.5px; font-weight: 600; color: var(--text); text-decoration: none; text-align: left;
}
.dd-item:hover { background: var(--surface-2); }
.dd-item .check { width: 16px; height: 16px; color: var(--accent); opacity: 0; }
.dd-item[aria-current="true"] .check { opacity: 1; }
.dd-item small { color: var(--text-3); font-weight: 500; }
.dd-item--ex { justify-content: flex-start; gap: 10px; }
.dd-item--ex .x-logo, .drawer-link--ex .x-logo { width: 24px; height: 24px; font-size: 9px; }
.drawer-link.drawer-link--ex { display: flex; align-items: center; gap: 10px; }

.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hdr-auth { display: flex; gap: 8px; margin-left: 6px; }
.hdr-auth .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.theme-ico-dark { display: none; }
:root[data-theme="dark"] .theme-ico-dark { display: block; }
:root[data-theme="dark"] .theme-ico-light { display: none; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--neon); color: var(--on-neon); font-weight: 800; font-size: 15px;
  display: grid; place-items: center; text-transform: uppercase;
}
.user-email { padding: 8px 12px 10px; font-size: 13px; color: var(--text-3); border-bottom: 1px solid var(--line); margin-bottom: 6px; word-break: break-all; }

.menu-btn { display: none; }

/* Drawer (mobile) */
.drawer {
  position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(2, 8, 5, .5); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--bg); border-left: 1px solid var(--line);
  padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-link { display: block; padding: 14px 6px; font-size: 17px; font-weight: 700; text-decoration: none; border: 0; background: none; text-align: left; border-bottom: 1px solid var(--line); color: var(--text); width: 100%; }
.drawer-sub { padding-left: 18px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.drawer-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.drawer-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.drawer-langs button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 13.5px; font-weight: 600; }
.drawer-langs button[aria-current="true"] { background: var(--neon); color: var(--on-neon); border-color: var(--neon); }

@media (max-width: 1080px) {
  .nav, .hdr-auth { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 80px));
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(60, 255, 124, .22), transparent 62%),
    radial-gradient(700px 480px at 4% 96%, rgba(60, 255, 124, .14), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .7;
}
:root[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(60, 255, 124, .14), transparent 62%),
    radial-gradient(700px 480px at 4% 96%, rgba(60, 255, 124, .08), transparent 60%);
}

.coins { position: absolute; inset: 0; z-index: -1; pointer-events: none; perspective: 900px; }
.coin { position: absolute; transform-style: preserve-3d; will-change: transform; }
.coin svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 22px 26px rgba(3, 50, 22, .22)); }
:root[data-theme="dark"] .coin svg { filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(60, 255, 124, .12)); }
.coin.is-far { filter: blur(2.5px); opacity: .75; }
.coin.is-near { filter: blur(1px); }
.coin { opacity: 0; transition: opacity 1.2s ease; }
.is-ready > .coins .coin { opacity: 1; }
.is-ready > .coins .coin.is-far { opacity: .7; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero-title { display: grid; grid-template-columns: max-content max-content; column-gap: clamp(14px, 1.6vw, 22px); row-gap: 2px; align-items: center; }
.ht-label { font-size: clamp(17px, 1.9vw, 24px); font-weight: 700; color: var(--text-2); letter-spacing: -0.03em; line-height: 1.25; max-width: 9em; }
.ht-num {
  position: relative; z-index: 0;
  font-family: var(--font-num); font-weight: 700;
  font-size: clamp(64px, 9vw, 132px); line-height: 1; letter-spacing: -0.065em;
  padding-right: .06em;
}
.ht-num.is-hl::before {
  content: ""; position: absolute; z-index: -1;
  left: -.04em; right: -.02em; bottom: .1em; height: .44em;
  background: var(--hl); border-radius: .06em;
  transform-origin: left center; transform: scaleX(0) skewX(-6deg);
  transition: transform 1.1s .55s cubic-bezier(.75, 0, .2, 1);
}
.hero.is-ready .ht-num.is-hl::before { transform: scaleX(1) skewX(-6deg); }
:root[data-theme="dark"] .ht-num.is-hl { color: var(--neon); text-shadow: 0 0 40px rgba(60, 255, 124, .35); }

.hero-sub { margin-top: 28px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); line-height: 1.6; max-width: 34em; text-wrap: pretty; }
.hero-sub strong { color: var(--text); font-family: var(--font-num); font-weight: 600; font-size: .9em; letter-spacing: -0.02em; white-space: nowrap; }

/* Exchange benefits card */
.xcard {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface-glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: var(--shadow-lg);
}
.xcard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 26px 26px 18px; }
.xcard-title { font-size: 23px; font-weight: 800; }
.xcard-count { font-size: 13px; color: var(--text-3); font-weight: 600; }
.xtable { width: 100%; border-collapse: collapse; }
.xtable th {
  font-size: 12.5px; font-weight: 600; color: var(--text-3); text-align: right; white-space: nowrap;
  padding: 11px 14px; border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.xtable th:first-child, .xtable td:first-child { text-align: left; padding-left: 26px; }
.xtable th:last-child, .xtable td:last-child { padding-right: 22px; text-align: center; }
.xtable td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xtable tr:last-child td { border-bottom: 0; }
.xtable tbody tr { transition: background-color .2s; }
.xtable tbody tr:hover { background: color-mix(in srgb, var(--neon) 7%, transparent); }
.x-name { display: flex; align-items: center; gap: 12px; }
.x-name b { font-size: 16px; }
.x-sub { display: none; font-size: 12px; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.x-logo {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line);
  font-family: var(--font-num); font-weight: 700; font-size: 14px; color: #fff;
}
.x-logo > * { grid-area: 1 / 1; }
.x-logo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.x-rate { font-family: var(--font-num); font-weight: 600; font-size: 27px; color: var(--accent); letter-spacing: -0.04em; line-height: 1; }
.x-rate small { font-size: 14px; margin-left: 2px; }
.x-go {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text); text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease);
}
.x-go svg { width: 15px; height: 15px; }
.x-go:hover { background: var(--neon); border-color: var(--neon); color: var(--on-neon); transform: rotate(45deg); }
.xcard-note { padding: 14px 26px 22px; font-size: 12.5px; color: var(--text-3); line-height: 1.55; border-top: 1px solid var(--line); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(48px, 6vw, 80px); }
.stat {
  padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--surface-glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.stat { container-type: inline-size; }
.stat-num { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-num); font-weight: 600; font-size: clamp(19px, 1.9vw, 27px); font-size: clamp(15px, 9cqi, 27px); letter-spacing: -0.035em; white-space: nowrap; line-height: 1.1; }
.stat-unit { font-size: .58em; color: var(--accent); letter-spacing: -0.01em; }
.stat-label { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 0 rgba(60, 255, 124, .6); animation: live 2s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(60, 255, 124, .6); } 70% { box-shadow: 0 0 0 8px rgba(60, 255, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 255, 124, 0); } }

/* Odometer */
.odo { display: inline-flex; height: 1.1em; line-height: 1.1em; white-space: nowrap; }
/* the column takes the width of its hidden copy of the digit; only the vertical direction is clipped */
.odo-col { position: relative; display: inline-block; height: 1.1em; overflow: hidden; }
@supports (overflow: clip) { .odo-col { overflow: visible; overflow-y: clip; } }
.odo-sizer { display: block; height: 1.1em; visibility: hidden; }
.odo-strip { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; transition: transform 1.8s var(--ease); will-change: transform; }
.odo-strip > span { display: block; height: 1.1em; }
.odo-sep { display: inline-block; }

/* ---------- Form pieces (calculator, simulator) ---------- */
.field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; font-weight: 700; margin-bottom: 12px; }
.field-label span { color: var(--text-3); font-weight: 600; font-size: 13px; }

.xchips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.xchip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  text-align: left; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.xchip:hover { border-color: var(--line-2); }
.xchip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--neon) 9%, var(--surface)); }
.xchip .x-logo { width: 30px; height: 30px; font-size: 11px; }
.xchip b { font-size: 14.5px; display: block; }
.xchip small { display: block; font-family: var(--font-num); font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: -0.02em; }

.input-wrap { display: flex; align-items: center; height: 58px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); padding: 0 18px; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--neon-soft); }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-family: var(--font-num); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; text-align: right; }
.input-wrap .suffix { margin-left: 10px; font-weight: 700; color: var(--text-3); font-size: 14px; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; margin: 18px 0 4px; background: linear-gradient(to right, var(--neon) 0 var(--p, 50%), var(--line) var(--p, 50%) 100%); outline-offset: 6px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--neon); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: grab; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--neon); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: grab; }

/* ---------- Live payback band (always dark) ---------- */
.band {
  --text: #E9F5EC; --text-2: #9DB2A5; --text-3: #6A8072; --line: rgba(255, 255, 255, .09); --accent: #3CFF7C;
  background: #020805; color: var(--text); position: relative; overflow: hidden; isolation: isolate;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 500px at 85% 0%, rgba(60, 255, 124, .16), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(60, 255, 124, .08), transparent 60%);
}
.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid rgba(60, 255, 124, .35); background: rgba(60, 255, 124, .08); color: var(--neon); font-weight: 700; font-size: 14.5px; }
.band-title { margin-top: 26px; font-size: clamp(36px, 6vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.08; max-width: 15em; text-wrap: balance; }
.band-sub { margin-top: 24px; max-width: 40em; font-size: clamp(16px, 1.6vw, 20px); color: var(--text-2); line-height: 1.65; }
.band-sub b { color: var(--neon); font-family: var(--font-num); font-weight: 600; letter-spacing: -0.02em; }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1.15fr); align-items: stretch; margin-top: clamp(56px, 7vw, 88px); }
.fnode { padding: 24px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, .025); display: flex; flex-direction: column; gap: 6px; min-height: 168px; }
.fnode svg { width: 30px; height: 30px; color: var(--neon); margin-bottom: auto; }
.fnode-txt { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.fnode b { font-size: 17px; }
.fnode span { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.fnode--end { border-color: rgba(60, 255, 124, .55); background: linear-gradient(160deg, rgba(60, 255, 124, .18), rgba(60, 255, 124, .03)); box-shadow: 0 0 0 1px rgba(60, 255, 124, .15), 0 30px 80px -30px rgba(60, 255, 124, .45); }
.fnode--end .big { font-family: var(--font-num); font-weight: 700; font-size: 44px; color: var(--neon); letter-spacing: -0.06em; line-height: 1; margin-bottom: auto; }
.fline { position: relative; align-self: center; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(60, 255, 124, .9) 0 6px, transparent 6px 12px); background-size: 12px 2px; animation: dash .9s linear infinite; }
.fline::after { content: ""; position: absolute; right: -2px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--neon); border-right: 2px solid var(--neon); transform: translateY(-50%) rotate(45deg); }
@keyframes dash { to { background-position: 12px 0; } }

.band-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 6vw, 80px); }
.band-points div { padding-top: 20px; border-top: 1px solid rgba(60, 255, 124, .4); }
.band-points b { display: block; font-size: 19px; margin-bottom: 8px; }
.band-points p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

.marquee { margin-top: clamp(72px, 9vw, 120px); overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; font-family: var(--font-num); font-weight: 700; font-size: clamp(48px, 8vw, 120px); letter-spacing: -0.05em; line-height: 1.1; }
.marquee-track span { color: transparent; -webkit-text-stroke: 1px rgba(60, 255, 124, .5); }
.marquee-track span.fill { color: var(--neon); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- TV ---------- */
.tv { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--deep); border: 1px solid var(--line); box-shadow: var(--shadow-lg); isolation: isolate; }
.tv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: #E9F5EC; padding: 24px; }
.tv-soon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 340px at 50% 45%, rgba(60, 255, 124, .2), transparent 65%),
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 48px 48px;
}
.tv-play { width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); border-radius: 50%; display: grid; place-items: center; background: var(--neon); color: var(--on-neon); box-shadow: 0 0 0 14px rgba(60, 255, 124, .12), 0 0 0 28px rgba(60, 255, 124, .05); margin-bottom: 18px; }
.tv-play svg { width: 34%; height: 34%; margin-left: 6%; }
.tv-soon b { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.03em; }
.tv-soon span { color: #9DB2A5; font-size: 15px; }
.tv-tag { position: absolute; top: 20px; left: 20px; font-family: var(--font-num); font-weight: 600; font-size: 12px; letter-spacing: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #E9F5EC; }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps-track { position: absolute; top: 34px; left: 34px; right: calc((100% - 48px) / 3 - 34px); height: 2px; background: var(--line-2); }
.steps-track::after { content: ""; position: absolute; inset: 0; background: var(--neon); box-shadow: 0 0 14px rgba(60, 255, 124, .8); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step-num {
  position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-2);
  font-family: var(--font-num); font-weight: 600; font-size: 19px; letter-spacing: -0.03em;
  transition: background-color .5s, border-color .5s, color .5s, box-shadow .5s;
}
.step.is-on .step-num { background: var(--neon); border-color: var(--neon); color: var(--on-neon); box-shadow: 0 0 0 8px var(--neon-soft); }
.step-body { margin-top: 28px; padding: 30px 28px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); min-height: 250px; display: flex; flex-direction: column; }
.step-icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 26px; }
.step h3 { font-size: 22px; font-weight: 800; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
.steps-cta { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Academy ---------- */
.acad { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.lesson-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 24px); }
.lesson-tab {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent;
  color: var(--text-2); font-weight: 700; font-size: 15.5px; transition: background-color .2s, color .2s, border-color .2s;
}
.lesson-tab:hover { color: var(--text); }
.lesson-tab .ln { font-family: var(--font-num); font-size: 12.5px; font-weight: 600; color: var(--text-3); width: 26px; flex: none; }
.lesson-tab .done { margin-left: auto; width: 18px; height: 18px; color: var(--accent); opacity: 0; transition: opacity .3s; }
.lesson-tab.is-done .done { opacity: 1; }
.lesson-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: var(--shadow); }
.lesson-tab[aria-selected="true"] .ln { color: var(--accent); }
.acad-progress { margin: 14px 16px 0; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.acad-progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--neon); transition: width .5s var(--ease); }
.acad-progress-label { margin: 8px 16px 0; font-size: 12.5px; color: var(--text-3); font-weight: 600; }

.lesson-card { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 420px; display: flex; flex-direction: column; }
.lesson-step { font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.lesson-card h3 { margin-top: 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.lesson-lead { margin-top: 16px; font-size: 17.5px; color: var(--text-2); line-height: 1.7; max-width: 40em; }
.lesson-points { margin-top: 26px; display: grid; gap: 12px; }
.lesson-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; }
.lesson-points svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }
.lesson-tip { margin-top: 26px; padding: 16px 18px; border-radius: var(--r-md); background: color-mix(in srgb, var(--neon) 10%, var(--surface)); border-left: 3px solid var(--neon); font-size: 15px; line-height: 1.6; }
.lesson-tip b { margin-right: 6px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 32px; }
.lesson-anim { animation: lesson-in .55s var(--ease); }
@keyframes lesson-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.acad-tools { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; margin-top: 24px; }
.tool-card { padding: clamp(24px, 3.4vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tool-card h3 { font-size: 23px; font-weight: 800; }
.tool-desc { margin-top: 8px; color: var(--text-2); font-size: 15px; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 22px; }
.seg button { padding: 9px 22px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; font-size: 14.5px; color: var(--text-2); transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg button[aria-pressed="true"].is-long { background: #16C26B; color: #fff; }
.seg button[aria-pressed="true"].is-short { background: var(--danger); color: #fff; }
.sim-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; margin-top: 24px; }
.sim-inputs .input-wrap { height: 50px; }
.sim-inputs .input-wrap input { font-size: 18px; }
.sim-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.sim-out div { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.sim-out span { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.sim-out b { display: block; margin-top: 4px; font-family: var(--font-num); font-weight: 600; font-size: 17px; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-out .pos { color: #13B565; }
.sim-out .neg { color: var(--danger); }
:root[data-theme="dark"] .sim-out .pos { color: var(--neon); }
.health { margin-top: 18px; }
.health-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.health-bar i { display: block; height: 100%; width: var(--w, 50%); background: linear-gradient(90deg, var(--danger), #F5B400 35%, var(--neon) 70%); transition: width .35s var(--ease); }
.health-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); font-weight: 600; }
.health-label b { font-family: var(--font-num); font-weight: 600; letter-spacing: -0.02em; }
.health-label .liq { color: var(--danger); }
.sim-note { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }

.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.quiz-dots { display: flex; gap: 5px; }
.quiz-dots i { width: 18px; height: 4px; border-radius: 999px; background: var(--line-2); }
.quiz-dots i.is-ok { background: var(--neon); }
.quiz-dots i.is-bad { background: var(--danger); }
.quiz-dots i.is-cur { background: var(--text); }
.quiz-q { margin-top: 14px; font-size: 18px; font-weight: 800; line-height: 1.45; letter-spacing: -0.03em; }
.quiz-opts { display: grid; gap: 8px; margin-top: 16px; }
.quiz-opt { width: 100%; text-align: left; padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 15px; transition: border-color .2s, background-color .2s; }
.quiz-opt:hover:not([disabled]) { border-color: var(--text); }
.quiz-opt[disabled] { cursor: default; }
.quiz-opt.is-ok { border-color: #16C26B; background: color-mix(in srgb, #16C26B 12%, var(--surface)); }
.quiz-opt.is-bad { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.quiz-exp { margin-top: 14px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.quiz-exp b { color: var(--text); }
.quiz-foot { margin-top: 18px; display: flex; justify-content: flex-end; }
.quiz-result { text-align: center; padding: 26px 0 6px; }
.quiz-result .score { font-family: var(--font-num); font-weight: 700; font-size: 56px; letter-spacing: -0.06em; color: var(--accent); }
.quiz-result p { margin-top: 8px; color: var(--text-2); }
.quiz-result .btn { margin-top: 20px; }
.acad-disclaimer { margin-top: 20px; font-size: 13px; color: var(--text-3); text-align: center; }

/* ---------- Events ---------- */
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.event-slot {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 230px; padding: 26px; border-radius: var(--r-lg);
  border: 1px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, transparent 0 16px, color-mix(in srgb, var(--line) 55%, transparent) 16px 17px);
}
.event-slot .tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.event-slot b { display: block; font-size: 21px; letter-spacing: -0.03em; }
.event-slot span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-3); }
.event-slot svg { position: absolute; top: 24px; right: 24px; width: 26px; height: 26px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-side .btn { margin-top: 28px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 24px 4px; border: 0; background: transparent; text-align: left; font-size: clamp(16px, 1.5vw, 18.5px); font-weight: 700; letter-spacing: -0.025em; }
.faq-q .pm { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .25s, border-color .25s, transform .4s var(--ease); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: currentColor; transform: translate(-50%, -50%); border-radius: 2px; }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq-item.is-open .pm { background: var(--neon); border-color: var(--neon); color: var(--on-neon); }
.faq-item.is-open .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 26px 4px; color: var(--text-2); line-height: 1.75; font-size: 15.5px; white-space: pre-line; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.ft-tag { margin-top: 18px; color: var(--text-2); font-size: 15px; max-width: 26em; }
.ft-col h4 { font-size: 14px; color: var(--text-3); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.ft-col a, .ft-col button { display: block; padding: 5px 0; border: 0; background: none; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); text-align: left; }
.ft-col a:hover, .ft-col button:hover { color: var(--accent); }
.ft-risk { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.ft-bottom { margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: var(--neon); color: var(--on-neon); display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(60, 255, 124, .8), 0 4px 14px rgba(0, 0, 0, .14);
  transition: transform .3s var(--ease);
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab .ico-close { display: none; }
.chat-fab.is-open .ico-open { display: none; }
.chat-fab.is-open .ico-close { display: block; }
.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 61;
  width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97); transform-origin: bottom right;
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: var(--deep); color: #E9F5EC; }
.chat-head img { width: 38px; height: 38px; }
.chat-head b { display: block; font-size: 15.5px; }
.chat-head span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9DB2A5; }
.chat-head .icon-btn { margin-left: auto; color: #E9F5EC; }
.chat-head .icon-btn:hover { background: rgba(255, 255, 255, .08); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; animation: msg-in .35s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--neon); color: var(--on-neon); border-top-right-radius: 6px; font-weight: 600; }
.msg.typing { display: inline-flex; gap: 4px; padding: 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; }
.msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.qr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.qr button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; text-align: left; transition: border-color .2s, background-color .2s; }
.qr button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--neon) 8%, var(--surface)); }
.chat-foot { padding: 12px; border-top: 1px solid var(--line); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 16px; font-size: 15px; outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--neon); color: var(--on-neon); display: grid; place-items: center; flex: none; }
.chat-form button svg { width: 18px; height: 18px; }
.chat-note { margin-top: 8px; text-align: center; font-size: 11.5px; color: var(--text-3); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 100; max-width: calc(100vw - 32px);
  padding: 13px 20px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side {
  position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; color: #E9F5EC;
  background: radial-gradient(700px 480px at 20% 10%, rgba(60, 255, 124, .22), transparent 60%), var(--deep);
  padding: 40px clamp(32px, 5vw, 72px); display: flex; flex-direction: column;
}
.auth-side .brand { color: #E9F5EC; }
.auth-side .coins { z-index: -1; }
.auth-side-copy { margin-top: auto; margin-bottom: auto; padding-block: 48px; }
.auth-side h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.12; }
.auth-side h2 .hl { color: var(--neon); }
.auth-side ul { margin-top: 32px; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: #C4D6CB; }
.auth-side li svg { width: 22px; height: 22px; color: var(--neon); flex: none; }
.auth-main { display: flex; flex-direction: column; padding: 24px clamp(16px, 4vw, 48px) 40px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-top .brand { visibility: hidden; }
.auth-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.auth-box { width: 100%; max-width: 420px; margin: auto; padding-block: 40px; }
.auth-box h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -0.04em; }
.auth-box > p { margin-top: 10px; color: var(--text-2); }
.demo-banner { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, #F5B400 12%, var(--surface)); border: 1px solid color-mix(in srgb, #F5B400 40%, transparent); font-size: 13px; line-height: 1.55; color: var(--text-2); }
.demo-banner svg { width: 18px; height: 18px; flex: none; color: #C98F00; margin-top: 1px; }
.btn-google { margin-top: 24px; height: 54px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; font-size: 15.5px; }
.btn-google:hover { border-color: var(--text); }
.btn-google svg { width: 20px; height: 20px; }
#gsiButton { margin-top: 24px; display: flex; justify-content: center; min-height: 44px; }
.google-note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); text-align: center; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--text-3); font-size: 13px; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field label span { color: var(--text-3); font-weight: 600; }
.input { width: 100%; height: 54px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--neon-soft); }
.input.is-error { border-color: var(--danger); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter i { height: 4px; border-radius: 999px; background: var(--line); transition: background-color .25s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: #F5B400; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #8BD94A; }
.pw-meter[data-s="4"] i { background: var(--neon); }
.hint { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.err { margin-top: 6px; font-size: 13px; color: var(--danger); font-weight: 600; min-height: 0; }
.checks { margin: 20px 0 6px; display: grid; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input:checked { background: var(--neon); border-color: var(--neon); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-neon); border-bottom: 2px solid var(--on-neon); transform: rotate(-45deg) translate(1px, -1px); }
.check b { color: var(--text); font-weight: 700; }
.check a { color: var(--accent); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 22px; font-size: 14px; }
.row-between a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.row-between a:hover { color: var(--accent); }
.bot-check { margin: 18px 0 20px; }
.bot-check-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ts-box { min-height: 65px; }
.ts-fallback { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 65px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); max-width: 300px; }
.ts-fallback .check { margin: 0; color: var(--text); font-weight: 600; }
.ts-fallback small { font-size: 10px; color: var(--text-3); text-align: right; line-height: 1.3; }
.auth-switch { margin-top: 26px; text-align: center; font-size: 14.5px; color: var(--text-2); }
.auth-switch a { color: var(--accent); font-weight: 700; text-decoration: none; margin-left: 6px; }
.form-view > form, .divider[hidden] + form { margin-top: 28px; }

/* ---------- My page (mypage.html) ---------- */
.section.my-page { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 56px)); padding-bottom: clamp(64px, 8vw, 110px); }
.my-wrap { max-width: 980px; }
.my-head .page-title { font-size: clamp(30px, 4vw, 42px); }
.my-email { margin-top: 8px; color: var(--text-3); font-size: 15px; word-break: break-all; }
.my-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.my-grid.is-loading { min-height: 420px; opacity: .4; }
.my-card { min-width: 0; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg, 20px); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -32px rgba(5, 40, 20, .35); }
.my-card--pay, #myUids { grid-column: 1 / -1; }
.my-card h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.my-card h2 svg { width: 20px; height: 20px; color: var(--accent); }
.my-card h3 { margin-top: 22px; font-size: 15px; font-weight: 800; }
.my-desc { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.my-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.my-badge.is-on { background: var(--neon-soft); color: var(--accent); }
.my-sep { height: 1px; margin: 24px 0 2px; background: var(--line); }
.my-pay-nums { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.my-pay-nums > div { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface-2); display: grid; gap: 4px; }
.my-pay-nums span { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.my-pay-nums b { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.my-pay-nums > div:first-child b { background: var(--grad-num, var(--text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.my-pay-nums small { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.my-empty { margin-top: 10px; padding: 18px; border-radius: var(--r-md); border: 1px dashed var(--line-2); font-size: 14px; color: var(--text-3); text-align: center; }
.my-table { margin-top: 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.my-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
.my-table th, .my-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.my-table th { background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.my-table tr:last-child td { border-bottom: 0; }
.my-table td { white-space: nowrap; }
.my-ex-cell { display: inline-flex; align-items: center; gap: 8px; }
.my-ex-cell .x-logo { width: 20px; height: 20px; font-size: 8px; }
.my-uids { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.my-uid { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; }
.my-uid.is-linked { border-color: color-mix(in srgb, var(--neon) 55%, var(--line)); background: color-mix(in srgb, var(--neon) 5%, var(--surface)); }
.my-uid-ex { display: flex; align-items: center; gap: 10px; }
.my-uid-ex .x-logo { width: 28px; height: 28px; font-size: 10px; }
.my-uid-ex .my-badge { margin-left: auto; }
.my-uid-val { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.my-uid-val .num { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.my-uid-val small { font-size: 12.5px; color: var(--text-3); }
.my-uid-val .btn { margin-left: auto; }
.my-uid-form { display: flex; gap: 8px; }
.my-uid-form .input { height: 46px; font-size: 15px; }
.my-uid-form .btn { height: 46px; padding: 0 18px; flex: none; }
.my-howto { font-size: 13px; color: var(--text-2); font-weight: 600; }
.my-howto:hover { color: var(--accent); }
.my-uid .err { margin-top: -6px; }
.my-uid .err:empty { display: none; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.my-dl { margin: 16px 0 0; display: grid; gap: 12px; }
.my-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.my-dl dt { font-size: 13.5px; font-weight: 700; color: var(--text-3); }
.my-dl dd { margin: 0; font-size: 15px; word-break: break-all; }
.my-mkt { margin-top: 20px; }
.my-pw { margin-top: 12px; }
.my-pw .input { height: 48px; }
.my-pw .err:empty { display: none; }
.my-pw .btn, #myLogoutOthers { margin-top: 12px; }
.my-card--danger { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.my-card--danger h2 { color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger-line { margin-top: 16px; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.my-del { margin-top: 16px; max-width: 420px; }
.my-del .btn-row { margin-top: 12px; }
.my-del .err:empty { display: none; }
.my-reward-ico { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--neon-soft); color: var(--accent); }
.my-reward-ico svg { width: 13px; height: 13px; }
.my-admin-link { margin-top: 12px; }
.my-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); white-space: normal; }
.my-ex-cell .my-sub { display: inline; margin: 0; }
.my-table td.my-minus { color: var(--text-2); }

/* withdrawal request box (withdraw.js) — My page and the home "My payback" card */
.wd { margin-top: 18px; display: grid; gap: 12px; }
.wd-form { display: grid; gap: 14px; }
.wd-label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.wd-amount { position: relative; display: block; }
.wd-amount .input { height: 54px; padding-right: 128px; font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.wd-amount-side { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
.wd-amount-side > span { font-size: 13px; font-weight: 700; color: var(--text-3); }
.wd-max { appearance: none; font: inherit; font-size: 12.5px; font-weight: 800; padding: 6px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--neon) 50%, var(--line)); background: var(--neon-soft); color: var(--accent); cursor: pointer; }
.wd-select { height: 50px; font-size: 15px; color: var(--text); }
.wd-to-one { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; font-weight: 700; color: var(--text); }
.wd-to-one .x-logo { width: 22px; height: 22px; font-size: 8px; }
.wd-to-one .num { margin-left: auto; letter-spacing: .02em; }
.wd-form .err:empty { display: none; }
.wd-submit { height: 54px; font-size: 16px; }
.wd-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.wd-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.wd-note a { color: var(--accent); font-weight: 700; }
.wd-open { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--neon) 55%, var(--line)); background: color-mix(in srgb, var(--neon) 7%, var(--surface)); display: grid; gap: 6px; }
.wd-open b { font-size: 15px; }
.wd-open span { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.wd-open .btn { justify-self: start; margin-top: 6px; }
.mp-card .wd { margin-top: 22px; }
.mp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.mp-more svg { width: 16px; height: 16px; }
.mp-more:hover { color: var(--accent); }
@media (max-width: 760px) {
  .my-grid, .my-uids { grid-template-columns: minmax(0, 1fr); }
  .my-pay-nums { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Admin (admin.html, Korean only) ---------- */
.ad-wrap { max-width: 1180px; }
.ad-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.ad-head .page-title { font-size: clamp(28px, 4vw, 38px); }
.ad-who { font-size: 14px; color: var(--text-3); word-break: break-all; }
.ad-tabs { margin-top: 22px; display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ad-tab { appearance: none; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--text-2); padding: 12px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ad-tab:hover { color: var(--text); }
.ad-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--neon); }
.ad-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--neon); color: var(--on-neon); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.ad-panel { margin-top: 22px; display: grid; gap: 16px; }
.ad-panel .my-card h2 { font-size: 17px; }
.ad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ad-stat { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.ad-stat span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.ad-stat b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ad-stat small { font-size: 12.5px; color: var(--text-3); }
.ad-stat.is-hot { border-color: color-mix(in srgb, var(--neon) 60%, var(--line)); background: color-mix(in srgb, var(--neon) 7%, var(--surface)); cursor: pointer; }
.ad-todo { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ad-todo button { width: 100%; appearance: none; font: inherit; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 700; }
.ad-todo button:hover { border-color: var(--line-2); }
.ad-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.ad-seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.ad-seg button { appearance: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; color: var(--text-2); cursor: pointer; }
.ad-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.ad-note { font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.ad-note b { color: var(--text); }
.ad-group-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.ad-link { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--text); text-align: left; cursor: pointer; word-break: break-all; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ad-link:hover { text-decoration-color: var(--accent); }
.ad-group-head .ad-link { font-size: 16px; }
.ad-sum { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ad-sum small { margin-left: 4px; font-size: 12.5px; color: var(--text-3); }
.ad-uids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ad-uid { appearance: none; font: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: copy; }
.ad-uid .x-logo { width: 18px; height: 18px; font-size: 7px; }
.ad-uid--none { cursor: default; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.ad-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ad-actions .input { height: 42px; flex: 1 1 240px; min-width: 0; font-size: 14px; }
.ad-actions .btn { height: 42px; }
.ad-panel .btn-danger-line { margin-top: 0; }
.ad-panel .my-table td.wrap { white-space: normal; min-width: 180px; }
.ad-panel .my-table input[type="checkbox"], .ad-check { width: 17px; height: 17px; accent-color: var(--accent); vertical-align: middle; }
.ad-sub { display: block; font-size: 12.5px; color: var(--text-3); }
.ad-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.ad-chip--ok { background: var(--neon-soft); color: var(--accent); }
.ad-chip--bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.ad-chip--warn { background: color-mix(in srgb, #F5A524 20%, transparent); color: #9A5B00; }
:root[data-theme="dark"] .ad-chip--warn { color: #F5B547; }
.ad-paste { width: 100%; min-height: 180px; padding: 14px; font-family: ui-monospace, Consolas, "SFMono-Regular", monospace; font-size: 13.5px; line-height: 1.6; resize: vertical; }
.ad-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ad-row .input { height: 44px; width: auto; flex: 1 1 200px; min-width: 0; }
.ad-row .btn { height: 44px; }
.ad-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ad-review { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.ad-review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--text-3); }
.ad-review-top .rv-stars { color: #F5A524; letter-spacing: 1px; }
.ad-review p { font-size: 15px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.ad-review .btn-row { gap: 8px; }
.ad-empty { padding: 28px; border-radius: var(--r-md); border: 1px dashed var(--line-2); text-align: center; color: var(--text-3); font-size: 14.5px; }
.ad-gate { max-width: 520px; margin: 40px auto 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
.ad-gate p { color: var(--text-2); line-height: 1.6; }
.ad-more { justify-self: center; }
.ad-log { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.ad-log li { display: flex; gap: 10px; flex-wrap: wrap; }
.ad-log time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.ad-drawer { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end; background: rgba(2, 10, 5, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ad-drawer.is-open { opacity: 1; pointer-events: auto; }
.ad-drawer-in { width: min(720px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: 24px clamp(16px, 3vw, 28px) 40px; display: grid; gap: 14px; align-content: start; transform: translateX(24px); transition: transform .25s var(--ease); }
.ad-drawer.is-open .ad-drawer-in { transform: none; }
.ad-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ad-drawer-head h2 { font-size: 20px; font-weight: 800; word-break: break-all; }
@media (max-width: 900px) {
  .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-reviews { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Legal pages (terms.html, privacy.html) ---------- */
.section.legal-page { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 64px)); padding-bottom: clamp(64px, 8vw, 110px); }
.legal { max-width: 760px; margin: 0 auto; font-size: 15.5px; line-height: 1.75; color: var(--text-2); }
.legal .page-title { font-size: clamp(30px, 4vw, 42px); color: var(--text); }
.legal-date { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.legal-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface-2); font-size: 13.5px; }
.legal-intro { margin-top: 24px; color: var(--text); }
.legal section { margin-top: 34px; }
.legal h2 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 10px; }
.legal p + p, .legal p + ul, .legal ul + p, .legal .legal-table + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal ul li::marker { color: var(--accent); }
.legal b { color: var(--text); }
.legal-pending { color: var(--danger); font-weight: 600; }
.legal-table { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.legal-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; line-height: 1.55; }
.legal-table th, .legal-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--surface-2); color: var(--text); font-weight: 700; white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: 0; }
.btn.is-busy { opacity: .6; cursor: progress; }
.resend-wrap { margin-top: 10px; }
.resend-wrap .btn { height: 40px; padding: 0 14px; font-size: 13.5px; gap: 8px; }
.resend-wrap .btn svg { width: 16px; height: 16px; }
/* "check your inbox" screen after sign-up / reset request */
.auth-sent { text-align: center; }
.auth-sent-ico { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 20px; background: var(--neon-soft); color: var(--accent); }
.auth-sent-ico svg { width: 30px; height: 30px; }
.auth-sent p { margin-top: 12px; color: var(--text-2); line-height: 1.6; }
.auth-sent p b { color: var(--text); word-break: break-all; }
.auth-sent .auth-sent-hint { font-size: 13.5px; color: var(--text-3); }
.auth-sent .btn { margin-top: 18px; }
.auth-sent .btn + .btn { margin-top: 10px; }
.auth-dev { gap: 8px; border-style: dashed; color: var(--text-2); font-size: 14px; }
.auth-dev svg { width: 16px; height: 16px; flex: none; }

/* =========================================================
   Header additions: language button, current menu, drawer groups
   ========================================================= */
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text);
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color .2s, border-color .2s;
}
.lang-btn:hover { background: var(--surface-2); }
.lang-btn svg { width: 18px; height: 18px; flex: none; }
.lang-btn .chev { width: 14px; height: 14px; opacity: .6; }
.lang-code { display: none; font-family: var(--font-num); font-size: 12px; }
/* narrow desktops: the full menu still shows, so the language button drops to its code (KO, EN…) */
@media (min-width: 1081px) and (max-width: 1240px) {
  .site-header .lang-name, .site-header .lang-btn .chev { display: none; }
  .site-header .lang-code { display: inline; }
  .hdr { gap: 18px; }
  .nav-link { padding-inline: 9px; }
}
@media (max-width: 520px) {
  .lang-name, .lang-btn .chev { display: none; }
  .lang-code { display: inline; }
  .lang-btn { padding: 0 8px; }
  .hdr { gap: 10px; }
}
@media (max-width: 420px) {
  .hdr-right > [data-theme-toggle] { display: none; }
}
.nav-link.is-current { color: var(--accent); }
.dd-item[aria-current="page"] { color: var(--accent); }
.drawer-group { padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.drawer-head { padding: 12px 6px 2px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.drawer-group .drawer-link { border-bottom: 0; padding: 9px 6px; font-size: 16px; }
.drawer-link--solo { margin-top: 2px; }
.xcard-count { text-decoration: none; }
a.xcard-count:hover { color: var(--accent); text-decoration: underline; }

/* =========================================================
   Sub pages (shared)
   ========================================================= */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vw, 84px)) 0 clamp(48px, 6vw, 84px); }
.page-hero .hero-bg {
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(60, 255, 124, .2), transparent 62%),
    radial-gradient(600px 360px at 0% 20%, rgba(60, 255, 124, .1), transparent 60%);
}
:root[data-theme="dark"] .page-hero .hero-bg {
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(60, 255, 124, .13), transparent 62%),
    radial-gradient(600px 360px at 0% 20%, rgba(60, 255, 124, .06), transparent 60%);
}
.page-hero--center { text-align: center; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.page-kicker { font-weight: 700; color: var(--accent); font-size: 15px; margin-bottom: 14px; }
.page-title { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; text-wrap: balance; }
.page-title--xl { font-size: clamp(40px, 6.2vw, 84px); }
.page-desc { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 36em; line-height: 1.65; text-wrap: pretty; }
.page-hero--center .page-desc { margin-inline: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }
.page-hero--center .crumbs { justify-content: center; }
.crumbs a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--text); font-weight: 700; }
.panel { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { font-size: 22px; font-weight: 800; }
.panel > p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.info-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.info-box svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.demo-note { display: inline-flex; margin-top: 18px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #F5B400 12%, var(--surface)); border: 1px solid color-mix(in srgb, #F5B400 40%, transparent); font-size: 13px; color: var(--text-2); }
.help-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface-2); }
.help-box b { font-size: 20px; letter-spacing: -0.03em; }
.help-box p { margin-top: 6px; color: var(--text-2); }

/* ---------- About ---------- */
.about-hero { max-width: 720px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(48px, 6vw, 84px); }
.kpi { container-type: inline-size; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface-glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* sized to the card (cqi) so a growing total like 100,000,000 USDT still fits on one line */
.kpi-num { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-num); font-weight: 600; font-size: clamp(22px, 2.3vw, 32px); font-size: clamp(17px, 9.4cqi, 32px); letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; }
.kpi-num small { font-size: .5em; color: var(--accent); letter-spacing: -0.01em; }
.kpi-label { margin-top: 8px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.why-card { display: flex; flex-direction: column; min-height: 300px; padding: 32px 30px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.why-k { align-self: flex-start; font-family: var(--font-num); font-weight: 700; font-size: clamp(48px, 5vw, 72px); letter-spacing: -0.06em; line-height: 1; padding: 0 .06em; background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 92%, transparent 92%); }
.why-card h3 { margin-top: auto; padding-top: 40px; font-size: 22px; font-weight: 800; }
.why-card p { margin-top: 10px; color: var(--text-2); line-height: 1.65; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how li { position: relative; padding-right: 28px; }
.how li:not(:last-child)::before { content: ""; position: absolute; top: 28px; left: 64px; right: 8px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.how-num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-family: var(--font-num); font-weight: 600; font-size: 18px; }
.how li:last-child .how-num { background: var(--neon); color: var(--on-neon); box-shadow: 0 0 0 8px var(--neon-soft); }
.how h3 { margin-top: 24px; font-size: 21px; font-weight: 800; }
.how p { margin-top: 8px; color: var(--text-2); line-height: 1.65; max-width: 22em; }
.ready { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 460px; margin-top: 28px; padding: 14px 14px 14px 22px; border-radius: var(--r-lg); border: 1.5px dashed var(--accent); background: color-mix(in srgb, var(--neon) 8%, var(--surface)); }
.code-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); }
.code-box b { display: block; margin-top: 2px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.code-hint { margin-top: 10px; font-size: 13.5px; color: var(--text-3); }
.ready-steps { display: grid; gap: 12px; margin: 28px 0; }
.ready-steps li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.ready-steps li i { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-style: normal; font-family: var(--font-num); font-size: 12px; }
.paycard { position: relative; max-width: 420px; margin-inline: auto; padding: 32px; border-radius: var(--r-xl); color: #E9F5EC; box-shadow: var(--shadow-lg); transform: rotate(-2deg); background: radial-gradient(500px 260px at 0% 0%, rgba(60, 255, 124, .22), transparent 60%), var(--deep); }
.paycard-tag { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; }
.paycard-label { font-size: 14px; color: #A9C2B2; font-weight: 600; }
.paycard-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-family: var(--font-num); }
.paycard-amount b { font-size: 56px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.paycard-amount span { color: var(--neon); font-weight: 600; }
.paycard-ex { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-weight: 700; }
.paycard-ex .x-logo { width: 30px; height: 30px; box-shadow: none; }
.paycard-ex small { margin-left: auto; color: #A9C2B2; font-weight: 500; font-size: 13px; }
.paycard-rows { display: grid; gap: 10px; margin: 20px 0 24px; font-size: 14px; color: #A9C2B2; }
.paycard-rows div { display: flex; justify-content: space-between; }
.paycard-rows b { color: #fff; font-family: var(--font-num); font-weight: 500; }
.paycard .btn[disabled] { opacity: 1; cursor: default; }
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.band-title--md { margin-top: 0; font-size: clamp(32px, 4.4vw, 56px); }
.partner .btn { margin-top: 32px; }
.partner-steps { display: grid; gap: 14px; }
.partner-steps li { display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.partner-steps i { font-style: normal; font-family: var(--font-num); font-weight: 600; color: var(--neon); font-size: 15px; padding-top: 2px; }
.partner-steps b { display: block; font-size: 18px; }
.partner-steps p { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
.end-cta { text-align: center; }
.end-cta .btn { margin-top: 28px; }

/* ---------- Exchanges ---------- */
.uid-box { padding: 24px; border-radius: var(--r-xl); background: var(--surface-glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); }
.uid-box-title { font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.uid-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) auto; gap: 8px; }
.select-wrap { position: relative; display: flex; align-items: center; height: 52px; padding-left: 10px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); }
.select-wrap .x-logo { width: 28px; height: 28px; font-size: 11px; }
.select-wrap select { flex: 1; min-width: 0; height: 100%; padding: 0 34px 0 10px; border: 0; background: transparent; -webkit-appearance: none; appearance: none; font-weight: 700; font-size: 15px; outline: none; cursor: pointer; }
.select-wrap > svg { position: absolute; right: 12px; width: 16px; height: 16px; opacity: .6; pointer-events: none; }
.select-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--neon-soft); }
.uid-row .input, .uid-row .btn { height: 52px; }
.uid-row .btn { border-radius: var(--r-md); }
.uid-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.uid-note.is-error { color: var(--danger); font-weight: 600; }
.uid-note a { color: var(--accent); font-weight: 700; }
.uid-linked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.uid-linked:empty { display: none; }
.uid-linked span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: color-mix(in srgb, var(--neon) 12%, var(--surface)); font-size: 12.5px; font-weight: 700; }
.uid-linked .x-logo { width: 20px; height: 20px; font-size: 9px; box-shadow: none; }
.cmp { border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.cmp-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(90px, .8fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(140px, 1fr) auto; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-head { padding-block: 12px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.cmp-row:not(.cmp-head):hover { background: color-mix(in srgb, var(--neon) 5%, transparent); }
.cmp-label { display: none; }
.cmp-fee { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-fee s { margin-right: 6px; color: var(--text-3); font-weight: 500; text-decoration-thickness: 1px; }
.cmp-example b { font-family: var(--font-num); font-weight: 600; letter-spacing: -0.03em; color: var(--accent); white-space: nowrap; }
.cmp-actions { display: flex; gap: 8px; }
.cmp-actions .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
.calc2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; }
.calc2 > * { min-width: 0; }
.calc2-inputs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(24px, 3.4vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.c2-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.c2-label i { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-style: normal; font-family: var(--font-num); font-size: 11px; }
.c2-label b { margin-left: auto; font-family: var(--font-num); font-weight: 600; letter-spacing: -0.02em; }
.calc2-result { display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 36px); border-radius: var(--r-xl); color: #E9F5EC; background: radial-gradient(500px 300px at 100% 0%, rgba(60, 255, 124, .18), transparent 60%), var(--deep); }
.c2r-title { font-weight: 800; font-size: 18px; }
.c2r-rows { margin: 16px 0 0; }
.c2r-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.c2r-rows dt { color: #A9C2B2; }
.c2r-rows dd { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--font-num); font-weight: 500; letter-spacing: -0.02em; }
.c2r-rows .x-logo { width: 20px; height: 20px; font-size: 9px; box-shadow: none; }
.c2r-main { margin-top: 26px; }
.c2r-main span { display: block; font-size: 14px; color: #A9C2B2; font-weight: 600; }
.c2r-main b { font-family: var(--font-num); font-size: clamp(36px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.05em; color: #fff; }
.c2r-main small { margin-left: 8px; color: var(--neon); font-family: var(--font-num); font-weight: 600; }
.c2r-year { display: flex; justify-content: space-between; margin: 10px 0 24px; font-size: 14px; color: #A9C2B2; }
.c2r-year b { color: #fff; font-family: var(--font-num); font-weight: 500; }
.calc2-result .btn { margin-top: auto; }
.c2r-note { margin-top: 14px; font-size: 12px; color: #7F9488; line-height: 1.55; }

/* ---------- Exchange detail ---------- */
.xd-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; }
.xd-head .x-logo { width: 88px; height: 88px; font-size: 28px; box-shadow: var(--shadow); }
.xd-name { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.045em; }
.xd-tagline { margin-top: 8px; color: var(--text-2); font-size: 17px; }
.xd-rate { text-align: right; }
.xd-rate b { font-family: var(--font-num); font-weight: 700; font-size: clamp(56px, 7vw, 96px); letter-spacing: -0.06em; color: var(--accent); line-height: 1; }
.xd-rate b small { font-size: .4em; }
.xd-rate span { display: block; margin-top: 4px; color: var(--text-3); font-weight: 600; font-size: 14px; }
.xd-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.xd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ptable { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14.5px; }
.ptable th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; font-size: 12.5px; color: var(--text-3); font-weight: 700; }
.ptable td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .hl { color: var(--accent); font-family: var(--font-num); font-weight: 600; }
.xd-section { margin-top: 20px; }
.xd-others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.xd-others a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; transition: border-color .2s; }
.xd-others a:hover { border-color: var(--accent); }
.xd-others .x-logo { width: 30px; height: 30px; font-size: 11px; }
.xd-others small { color: var(--accent); font-family: var(--font-num); font-weight: 600; }

/* ---------- Guides ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.ex-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 16px 26px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 800; font-size: 17px; transition: transform .35s var(--ease), border-color .2s, box-shadow .3s; }
.ex-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.ex-card .x-logo { width: 64px; height: 64px; font-size: 22px; }
.ex-card small { font-family: var(--font-num); font-weight: 600; font-size: 12.5px; color: var(--accent); }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 780px; margin: 0 auto; }
.topic-card { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); text-decoration: none; text-align: left; transition: transform .35s var(--ease), border-color .2s, box-shadow .3s; }
.topic-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.topic-ico { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--neon) 16%, var(--surface)); color: var(--accent); }
.topic-ico svg { width: 28px; height: 28px; }
.topic-card b { display: block; font-size: 18px; }
.topic-card span { display: block; margin-top: 4px; color: var(--text-2); font-size: 14px; }
.topic-card > svg { margin-left: auto; width: 20px; height: 20px; flex: none; color: var(--text-3); }
/* guides: method picker as large square cards */
.topic-grid--big { max-width: 620px; gap: 18px; }
.topic-grid--big .topic-card { flex-direction: column; justify-content: center; gap: 16px; aspect-ratio: 1 / .82; padding: 28px 20px; text-align: center; }
.topic-grid--big .topic-ico { width: 84px; height: 84px; border-radius: 24px; background: linear-gradient(140deg, color-mix(in srgb, var(--neon) 26%, var(--surface)), color-mix(in srgb, #C4FF3E 18%, var(--surface))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neon) 40%, transparent); }
.topic-grid--big .topic-ico svg { width: 40px; height: 40px; stroke-width: 1.7; }
.topic-grid--big .topic-card b { font-size: 19px; }
.topic-grid--big .topic-card > svg { display: none; }
/* guides: your own screenshot in place of the drawn mock */
/* the screenshot carries its own frame, so the stage drops its card */
.gd-stage.gd-stage--shot { grid-template-columns: minmax(0, 1fr); justify-items: center; max-width: 680px; padding: 0; border: 0; background: none; box-shadow: none; }
.gd-shot { margin: 0; width: 100%; }
.gd-stage.gd-stage--shot .gd-nav { top: var(--nav-y, 50%); }
/* screenshots come in every shape: each one sits in a frame of one fixed size (one for PC, one for mobile)
   and is scaled to fit inside it, so every step shows the same size box */
.gd-frame {
  position: relative; width: 100%; aspect-ratio: 1068 / 740; padding: 10px;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(5, 40, 20, .35);
}
.gd-shot--mo .gd-frame { aspect-ratio: 4 / 5; max-width: 420px; margin-inline: auto; }
/* absolute so a square or tall screenshot is scaled down to the frame instead of overflowing it (grid rows are auto, so height:100% did not hold) */
.gd-frame img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; border-radius: 12px; }
.gd-shot figcaption { margin-top: 22px; text-align: center; }
.gd-shot figcaption h2 { font-size: clamp(21px, 2.3vw, 27px); }
.gd-shot figcaption p { max-width: 36em; margin-inline: auto; }
.stepper { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin: 28px auto 0; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); font-family: var(--font-num); font-weight: 600; font-size: 13px; color: var(--text-2); transition: background-color .2s, border-color .2s, color .2s, box-shadow .3s; }
.stepper button.is-done { border-color: var(--accent); color: var(--accent); }
.stepper button[aria-current="step"] { background: var(--neon); border-color: var(--neon); color: var(--on-neon); box-shadow: 0 0 0 6px var(--neon-soft); }
.stepper i { width: 20px; height: 2px; background: var(--line-2); }
.gd-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: center; max-width: 1040px; margin: 32px auto 0; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.gd-stage--list { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.gd-nav { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; transform: translateY(-50%); box-shadow: var(--shadow); color: var(--text); }
.gd-nav svg { width: 20px; height: 20px; }
.gd-nav--prev { left: -23px; }
.gd-nav--next { right: -23px; }
.gd-nav[disabled] { opacity: .3; cursor: default; }
.gd-text h2 { margin-top: 10px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.gd-text > p { margin-top: 14px; color: var(--text-2); font-size: 16.5px; line-height: 1.7; }
.checklist { display: grid; gap: 16px; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--accent); }
.checklist b { display: block; }
.checklist span { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.gd-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.gd-pager { display: flex; justify-content: space-between; gap: 12px; max-width: 1040px; margin: 24px auto 0; }
.gd-pager a { display: flex; flex-direction: column; gap: 2px; min-width: 180px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.gd-pager a:hover { border-color: var(--accent); }
.gd-pager small { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.gd-pager b { font-size: 15px; }
.gd-pager a.is-next { margin-left: auto; text-align: right; }
.gd-tabs { display: flex; justify-content: center; }
.gd-note { max-width: 1040px; margin-inline: auto; }

/* device mock used by the guide steps */
.mock { position: relative; overflow: hidden; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(3, 30, 15, .35); }
.mock--pc { aspect-ratio: 16 / 10; }
.mock--mo { width: min(250px, 72%); aspect-ratio: 9 / 18; margin-inline: auto; border-radius: 32px; border: 6px solid var(--text); }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mock-url { flex: 1; display: flex; align-items: center; height: 18px; margin-left: 10px; padding-left: 8px; border-radius: 6px; background: var(--surface); font-size: 10.5px; color: var(--text-3); }
.mock--mo .mock-bar { justify-content: center; height: 24px; }
.mock--mo .mock-bar i, .mock--mo .mock-url { display: none; }
.mock--mo .mock-bar::before { content: ""; width: 56px; height: 6px; border-radius: 999px; background: var(--line-2); }
.mock-body { position: absolute; inset: 30px 0 0; padding: 14px 16px; }
.mock--mo .mock-body { inset: 24px 0 0; }
.mock-nav { display: flex; align-items: center; gap: 8px; }
.mock-nav .x-logo { width: 22px; height: 22px; font-size: 9px; box-shadow: none; }
.mock-nav i { width: 34px; height: 8px; border-radius: 999px; background: var(--line); }
.mock-nav b { width: 22px; height: 22px; margin-left: auto; border-radius: 50%; background: var(--line-2); }
.mock--mo .mock-nav b { order: -1; margin-left: 0; }
.mock--mo .mock-nav i:last-of-type { display: none; }
.mock-lines { display: grid; gap: 8px; margin-top: 22px; }
.mock-lines i { height: 9px; border-radius: 999px; background: var(--line); }
.mock-target { position: absolute; padding: 9px 14px; border-radius: 10px; background: var(--surface); border: 2px solid var(--neon); color: var(--text); font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 6px var(--neon-soft), 0 12px 30px -10px rgba(60, 255, 124, .7); animation: target-pulse 2s ease-in-out infinite; }
.mock-target[data-at="center"] { left: 50%; top: 62%; transform: translate(-50%, -50%); }
.mock-target[data-at="tr"] { right: 10px; top: 46px; }
.mock--mo .mock-target[data-at="tr"] { right: auto; left: 10px; }
.mock-cursor { position: absolute; width: 22px; height: 22px; color: var(--text); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.mock-cursor svg { width: 100%; height: 100%; }
.mock-cursor[data-at="center"] { left: calc(50% + 30px); top: calc(62% + 8px); }
.mock-cursor[data-at="tr"] { right: 18px; top: 76px; }
.mock--mo .mock-cursor[data-at="tr"] { right: auto; left: 60px; }
@keyframes target-pulse { 50% { box-shadow: 0 0 0 11px rgba(60, 255, 124, .06), 0 12px 30px -10px rgba(60, 255, 124, .7); } }

/* ---------- Points ---------- */
.my-points { padding: 28px; border-radius: var(--r-xl); color: #E9F5EC; box-shadow: var(--shadow-lg); background: radial-gradient(500px 280px at 100% 0%, rgba(60, 255, 124, .22), transparent 60%), var(--deep); }
.my-points-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.my-points-top > span { font-weight: 700; color: #A9C2B2; font-size: 14.5px; }
.my-points h2 { font-size: 24px; font-weight: 800; }
.my-points p { margin-top: 8px; color: #A9C2B2; }
.tier-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 800; }
.tier-badge i, .tier-dot { background: var(--tier, #CD7F32); }
.tier-badge i { width: 10px; height: 10px; border-radius: 50%; }
.my-points-bal { margin-top: 14px; font-family: var(--font-num); font-weight: 600; font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.05em; line-height: 1; }
.my-points-bal small { margin-left: 6px; font-size: .4em; color: var(--neon); }
.tier-progress { margin-top: 22px; }
.tier-progress-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tier-progress-bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--neon); transition: width .6s var(--ease); }
.tier-progress-label { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: #A9C2B2; }
.my-points .btn-row { margin-top: 22px; }
.my-points .btn-line { color: #E9F5EC; border-color: rgba(255, 255, 255, .25); }
.missions { display: grid; gap: 10px; margin-top: 20px; }
.mission { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); }
.mission.is-claimed { opacity: .6; }
.mission-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.mission-ico svg { width: 22px; height: 22px; }
.mission-txt { flex: 1; min-width: 0; }
.mission-txt b { display: block; font-size: 15.5px; }
.mission-txt span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.mission-pt { font-family: var(--font-num); font-weight: 600; font-size: 14px; color: var(--accent); white-space: nowrap; text-align: right; }
.mission-pt small { display: block; font-family: var(--font); font-size: 11px; color: var(--text-3); font-weight: 600; }
.mission .btn { flex: none; height: 38px; padding: 0 14px; font-size: 13.5px; }
.mission-txt .mission-stat { margin-top: 6px; font-weight: 700; color: var(--accent); }
.my-points .rw-paystate { margin-top: 10px; font-size: 13.5px; }
.my-points .rw-paystate a { color: var(--neon); font-weight: 700; }
/* ---------- Tether rewards (space theme) ---------- */
body[data-page="points"] .site-header:not(.is-scrolled) {
  --text: #E9F5EC; --text-2: #9DB2A5; --surface-2: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .25);
  color: var(--text);
}
.rw-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(64px, 8vw, 110px); }
.rw-hero .coins { z-index: 0; }
.rw-hero-in { position: relative; z-index: 1; }
.rw-stars {
  position: absolute; inset: 0; z-index: -2; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 70%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 78%, #fff 50%, transparent 51%);
  background-size: 640px 480px;
}
.rw-planet {
  position: absolute; z-index: -1; left: 50%; top: 58%; width: max(1400px, 150vw); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%, #0B1F14 0%, #030A06 55%);
  box-shadow: 0 -2px 0 rgba(60, 255, 124, .65), 0 -30px 90px -10px rgba(60, 255, 124, .55), 0 -120px 240px -40px rgba(60, 255, 124, .3), inset 0 30px 80px -30px rgba(60, 255, 124, .35);
}
.rw-planet--small { top: 72%; opacity: .7; }
.rw-kicker { display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(60, 255, 124, .35); background: rgba(60, 255, 124, .08); color: var(--neon); font-weight: 700; font-size: 14px; }
.rw-title { margin-top: 24px; font-size: clamp(38px, 6.4vw, 88px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.06; text-wrap: balance; }
.rw-sub { max-width: 34em; margin: 22px auto 0; color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; }
.rw-cta { justify-content: center; }
.rw-hero .btn-line { color: #E9F5EC; border-color: rgba(255, 255, 255, .28); }
.rw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 860px; margin: clamp(56px, 8vw, 96px) auto 0; }
.rw-stat { padding: 22px 20px; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .1); background: rgba(5, 18, 11, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.rw-stat b { display: flex; justify-content: center; align-items: baseline; gap: 6px; font-family: var(--font-num); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.04em; color: #fff; }
.rw-stat b small { font-size: .45em; color: var(--neon); letter-spacing: 0; }
.rw-stat > span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.rw-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.rw-side { position: sticky; top: calc(var(--header-h) + 20px); }
.rw-flow-band { padding-bottom: clamp(120px, 14vw, 180px); }
.rw-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rw-step { position: relative; padding: 28px 26px 30px; border-radius: var(--r-xl); border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rw-step-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--neon); background: rgba(60, 255, 124, .1); box-shadow: inset 0 0 0 1px rgba(60, 255, 124, .35), 0 0 30px -6px rgba(60, 255, 124, .6); }
.rw-step-ico svg { width: 26px; height: 26px; }
.rw-step small { display: block; margin-top: 26px; font-family: var(--font-num); font-size: 12px; font-weight: 600; color: var(--neon); letter-spacing: .02em; }
.rw-step b { display: block; margin-top: 6px; font-size: 24px; letter-spacing: -0.04em; }
.rw-step p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.rw-layer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.rw-stack { display: grid; gap: 14px; perspective: 1200px; }
.rw-slab { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: var(--r-xl); transform: rotateX(14deg) rotateZ(-2deg); transform-origin: center bottom; }
.rw-slab svg { width: 64px; height: auto; flex: none; }
.rw-slab b { display: block; font-size: 21px; letter-spacing: -0.03em; }
.rw-slab span { display: block; margin-top: 4px; font-size: 14px; }
.rw-slab em { margin-left: auto; font-style: normal; font-family: var(--font-num); font-weight: 700; font-size: 34px; }
.rw-slab--top { color: var(--on-neon); background: linear-gradient(120deg, #6BFFA0, var(--neon)); box-shadow: 0 30px 60px -28px rgba(60, 255, 124, .9); }
.rw-slab--top span { color: rgba(3, 20, 10, .75); }
.rw-slab--base { color: #E9F5EC; background: linear-gradient(120deg, #0E1D15, var(--deep)); box-shadow: var(--shadow-lg); }
.rw-slab--base span { color: #9DB2A5; }
.rw-invite { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.rw-invite-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(26px, 3.4vw, 40px); border-radius: var(--r-xl); color: #E9F5EC; background: radial-gradient(500px 280px at 100% 0%, rgba(60, 255, 124, .22), transparent 60%), var(--deep); box-shadow: var(--shadow-lg); }
.rw-invite-card > span { color: #A9C2B2; font-weight: 600; font-size: 14.5px; }
.rw-invite-card b { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; font-family: var(--font-num); font-weight: 600; font-size: clamp(44px, 5.4vw, 72px); letter-spacing: -0.05em; color: #fff; line-height: 1.05; }
.rw-invite-card b small { font-size: .3em; color: var(--neon); letter-spacing: 0; }
.rw-end { text-align: center; padding-bottom: clamp(100px, 12vw, 160px); }
.rw-end .band-title { margin-inline: auto; }
.rw-end .band-sub { margin-inline: auto; }
.rw-end .btn-line { color: #E9F5EC; border-color: rgba(255, 255, 255, .28); }
.rw-end .pt-notes { max-width: 760px; margin: 56px auto 0; text-align: left; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.rw-end .pt-notes li { color: var(--text-2); }
@media (max-width: 1100px) {
  .rw-grid, .rw-layer, .rw-invite { grid-template-columns: minmax(0, 1fr); }
  .rw-side { position: static; }
  .rw-flow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .rw-stats { grid-template-columns: minmax(0, 1fr); }
  .rw-slab { transform: none; padding: 20px; }
  .rw-slab svg { width: 48px; }
}
.pt-notes { margin-top: 20px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.pt-notes b { font-size: 14px; }
.pt-notes ul { display: grid; gap: 4px; margin-top: 8px; }
.pt-notes li { position: relative; padding-left: 14px; font-size: 13px; color: var(--text-2); }
.pt-notes li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }

@media (max-width: 1100px) {
  .page-hero-grid, .ready, .partner, .calc2, .xd-grid, .gd-stage { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .kpis .kpi:nth-child(n+3) { grid-column: 1 / -1; }
  .kpi-num { font-size: 24px; }
}
@media (max-width: 1100px) {
  .why-card { min-height: 0; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .how li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; padding-right: 0; }
  .how li::before { display: none; }
  .how h3 { margin-top: 2px; }
  .how p { grid-column: 2; }
  .gd-nav--prev { left: 8px; top: 120px; }
  .gd-nav--next { right: 8px; top: 120px; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .cmp-row > :first-child, .cmp-actions { grid-column: 1 / -1; }
  .cmp-label { display: block; margin-bottom: 2px; font-size: 12px; color: var(--text-3); font-weight: 600; }
  .cmp-actions .btn { flex: 1; }
}
@media (max-width: 760px) {
  .uid-row { grid-template-columns: minmax(0, 1fr); }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .xd-head { grid-template-columns: auto minmax(0, 1fr); }
  .xd-head .x-logo { width: 64px; height: 64px; }
  .xd-rate { grid-column: 1 / -1; text-align: left; }
  .help-box { flex-direction: column; align-items: flex-start; padding: 24px; }
  .gd-pager { flex-direction: column; }
  .gd-pager a { min-width: 0; }
  .gd-pager a.is-next { margin-left: 0; }
  .mission { flex-wrap: wrap; }
  .mission .btn { width: 100%; }
  .paycard { transform: none; }
  .mock--mo { width: min(210px, 62%); aspect-ratio: 9 / 15; }
}

/* =========================================================
   Living background (aurora + dot grid), shared by every page
   ========================================================= */
.bg-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-aurora i { position: absolute; display: block; border-radius: 50%; opacity: .75; will-change: transform; }
.bg-aurora i:nth-child(1) { width: 62vmax; height: 62vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(60, 255, 124, .30), transparent 64%); animation: aurora-a 26s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(2) { width: 54vmax; height: 54vmax; right: -16vmax; top: 4vmax; background: radial-gradient(circle, rgba(0, 214, 255, .20), transparent 64%); animation: aurora-b 32s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(3) { width: 58vmax; height: 58vmax; left: 18vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(184, 255, 60, .24), transparent 64%); animation: aurora-c 28s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(4) { width: 36vmax; height: 36vmax; right: 8vmax; bottom: -6vmax; background: radial-gradient(circle, rgba(60, 255, 200, .20), transparent 64%); animation: aurora-a 22s ease-in-out infinite alternate-reverse; }
.bg-aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(5, 60, 28, .10) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35)); mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35));
}
:root[data-theme="dark"] .bg-aurora i { opacity: .42; }
:root[data-theme="dark"] .bg-aurora::after { background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.3px); }
@keyframes aurora-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes aurora-b { to { transform: translate3d(-12vmax, 14vmax, 0) scale(.9); } }
@keyframes aurora-c { to { transform: translate3d(-10vmax, -14vmax, 0) scale(1.1); } }

/* cursor glow: a soft light that trails the mouse */
.cursor-glow {
  position: fixed; left: -170px; top: -170px; z-index: 45; width: 340px; height: 340px; border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .7s ease; will-change: transform;
  background: radial-gradient(circle, rgba(60, 255, 124, .12) 0%, rgba(60, 255, 124, .045) 38%, transparent 68%);
}
.cursor-glow.is-on { opacity: 1; }
:root[data-theme="dark"] .cursor-glow { background: radial-gradient(circle, rgba(60, 255, 124, .09) 0%, rgba(60, 255, 124, .03) 40%, transparent 68%); }

@media (max-width: 760px) {
  /* on phones the arrows sit half in the side gutter so they cover as little of the screenshot as possible */
  .gd-stage.gd-stage--shot .gd-nav { width: 38px; height: 38px; }
  .gd-stage.gd-stage--shot .gd-nav--prev { left: -12px; }
  .gd-stage.gd-stage--shot .gd-nav--next { right: -12px; }
}
@media (max-width: 480px) {
  /* seven steps still fit on one line */
  .stepper button { width: 30px; height: 30px; font-size: 12px; }
  .stepper i { width: 10px; }
  /* eight or more steps (e.g. Bybit KYC change on mobile): smaller dots, shorter links */
  .stepper--many button { width: 26px; height: 26px; font-size: 11px; }
  .stepper--many i { width: 6px; }
}
@media (max-width: 360px) {
  .stepper--many button { width: 24px; height: 24px; }
  .stepper--many i { width: 3px; }
}
@media (max-width: 760px) {
  .topic-grid--big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .topic-grid--big .topic-card { aspect-ratio: auto; padding: 24px 12px; gap: 12px; }
  .topic-grid--big .topic-ico { width: 64px; height: 64px; border-radius: 18px; }
  .topic-grid--big .topic-ico svg { width: 32px; height: 32px; }
  .topic-grid--big .topic-card b { font-size: 16px; }
  .topic-grid--big .topic-card span { font-size: 12.5px; }
}

/* page-load sequence */
.ld { opacity: 0; }
html.is-loaded .ld { animation: ld-in .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
html.is-loaded .site-header .ld { animation-name: ld-down; }
@keyframes ld-in { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ld-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Coin price ticker (top 10 by market cap)
   ========================================================= */
.ticker { position: relative; margin-top: clamp(40px, 5vw, 64px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; gap: 14px; padding: 6px 0; animation: ticker var(--ticker-dur, 60s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--surface-glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap; }
.tk img, .tk .tk-logo { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--surface-2); }
.tk-rank { font-family: var(--font-num); font-size: 11px; font-weight: 600; color: var(--text-3); }
.tk b { font-weight: 800; font-size: 14.5px; letter-spacing: -0.01em; }
.tk-price { font-family: var(--font-num); font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }
.tk-chg { font-family: var(--font-num); font-weight: 600; font-size: 12px; padding: 3px 7px; border-radius: 999px; }
.tk-chg.up { color: #0A8A41; background: rgba(60, 255, 124, .16); }
.tk-chg.down { color: #D5373D; background: rgba(229, 72, 77, .12); }
:root[data-theme="dark"] .tk-chg.up { color: var(--neon); }
:root[data-theme="dark"] .tk-chg.down { color: #FF7A7F; }
.ticker-src { margin-top: 10px; text-align: center; font-size: 12px; color: var(--text-3); }
.ticker-src .live-dot { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* =========================================================
   Live payback feed (fills from real withdrawal data)
   ========================================================= */
.feed-wrap { margin-top: clamp(56px, 7vw, 88px); }
.feed-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.feed-title > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feed-title b { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.03em; }
.feed-title > span { font-size: 13px; color: var(--text-3); }
.feed { border-radius: var(--r-xl); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); overflow: hidden; }
.feed-row { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.3fr .8fr; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); text-align: center; font-size: 14.5px; }
.feed-row:last-child { border-bottom: 0; }
.feed-head { padding-block: 12px; background: rgba(255, 255, 255, .04); font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.feed-row .x-logo { width: 28px; height: 28px; margin: 0 auto; box-shadow: none; }
.feed-amount { font-family: var(--font-num); font-weight: 600; letter-spacing: -0.02em; }
.feed-time { font-size: 13px; color: var(--text-2); }
.feed-status { color: var(--neon); font-weight: 700; font-size: 13px; }
.feed-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.feed-row.is-new { animation: feed-in .8s var(--ease); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-14px); background: rgba(60, 255, 124, .12); } to { opacity: 1; transform: none; background: transparent; } }
.feed-empty { position: relative; display: grid; place-items: center; gap: 10px; padding: 48px 24px 52px; text-align: center; overflow: hidden; }
.feed-empty b { font-size: 17px; }
.feed-empty p { max-width: 30em; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.feed-empty svg { width: 34px; height: 34px; color: var(--neon); }
.feed-empty::after { content: ""; position: absolute; left: -30%; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(60, 255, 124, .10), transparent); animation: feed-scan 3.6s ease-in-out infinite; }
@keyframes feed-scan { to { left: 100%; } }

/* =========================================================
   Reviews (real reviews only; members can add one)
   ========================================================= */
.rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rv-head .sec-head { margin-bottom: 0; }
.rv-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.rv-avg { font-family: var(--font-num); font-weight: 700; font-size: 40px; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.rv-score small { font-size: 13px; font-weight: 600; color: var(--text-3); }
.rv-score .sample-chip { align-self: center; }
.rv-rows { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.rv-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-track { display: flex; width: max-content; gap: 16px; animation: ticker var(--rv-dur, 70s) linear infinite; }
.rv-row--rev .rv-track { animation-direction: reverse; }
.rv-row:hover .rv-track { animation-play-state: paused; }
.rv-card { display: flex; flex-direction: column; width: 340px; min-height: 216px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-glass); box-shadow: 0 18px 40px -30px rgba(5, 40, 20, .35); }
.rv-top { display: flex; align-items: center; gap: 12px; }
.rv-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #03140A; font-weight: 800; font-size: 15px; background: linear-gradient(135deg, hsl(var(--h, 140) 85% 66%), hsl(calc(var(--h, 140) + 36) 78% 46%)); }
.rv-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rv-id b { font-size: 15px; letter-spacing: -0.01em; }
.rv-tag { font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-ex { margin-left: auto; flex: none; }
.rv-ex .x-logo { width: 26px; height: 26px; font-size: 10px; }
.rv-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.rv-stars { color: #F5B400; letter-spacing: 2px; font-size: 15px; line-height: 1; }
.rv-date { font-size: 12px; color: var(--text-3); font-family: var(--font-num); }
.rv-text { flex: 1; margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sample-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0; line-height: 1; white-space: nowrap; color: var(--text-2); background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid var(--line-2); }
.sample-chip[hidden] { display: none; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; width: min(100% - 32px, var(--maxw)); margin: clamp(36px, 5vw, 56px) auto 0; }
.rv-grid .rv-card { width: auto; }
.rv-card--ghost { position: relative; justify-content: center; gap: 12px; }
.rv-card--ghost i { display: block; height: 10px; border-radius: 999px; background: var(--line); }
.rv-empty { position: relative; margin-top: clamp(36px, 5vw, 56px); }
.rv-empty-msg { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.rv-empty-msg b { font-size: 20px; letter-spacing: -0.03em; }
.rv-empty-msg p { color: var(--text-2); }
.rv-empty .rv-rows { margin-top: 0; filter: blur(1.5px); opacity: .55; }
.rv-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(2, 8, 5, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.rv-modal.is-open { opacity: 1; visibility: visible; }
.rv-dialog { width: min(480px, 100%); padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform .35s var(--ease); }
.rv-modal.is-open .rv-dialog { transform: none; }
.rv-dialog h3 { font-size: 22px; font-weight: 800; }
.rv-dialog .field { margin-top: 18px; margin-bottom: 0; }
.rv-pick { display: flex; gap: 4px; }
.rv-pick button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; color: var(--line-2); line-height: 1; }
.rv-pick button.is-on { color: #F5B400; }
.rv-dialog textarea.input { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.rv-dialog .select-wrap { height: 54px; }
.rv-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
@media (max-width: 760px) {
  .feed-row { grid-template-columns: 1.2fr .7fr 1fr .8fr; padding: 14px 14px; font-size: 13px; }
  .feed-row > :nth-child(4) { display: none; }
  .rv-card { width: 280px; }
  .tk { padding: 10px 14px 10px 10px; }
}

/* =========================================================
   My payback (home): balance card + three steps
   ========================================================= */
.mp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.mp-kicker { font-family: var(--font-num); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 14px; }
.mp-head .sec-title { line-height: 1.22; }
.mp-desc { max-width: 24em; color: var(--text-2); font-size: 15.5px; line-height: 1.65; text-align: right; text-wrap: balance; }
.mp-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 22px; align-items: start; }

.mp-card { padding: clamp(24px, 3vw, 34px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mp-card-head h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.mp-card-head h3 svg { width: 20px; height: 20px; }
.mp-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text-2); background: color-mix(in srgb, var(--neon) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--neon) 40%, var(--line)); }
.mp-status.is-on { color: var(--accent); }
.mp-status.is-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 3px var(--neon-soft); }
.mp-label { margin-top: 30px; font-size: 13.5px; color: var(--text-3); font-weight: 600; }
.mp-balance { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; font-family: var(--font-num); line-height: 1; }
.mp-balance b { font-weight: 700; font-size: clamp(50px, 6.4vw, 78px); letter-spacing: -0.055em; }
.mp-balance span { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.mp-note { margin-top: 18px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.mp-cta { margin-top: 24px; height: 60px; border-radius: var(--r-md); font-size: 16px; gap: 10px; }
.mp-cta svg { width: 18px; height: 18px; }
.mp-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.mp-meta dt { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.mp-meta dd { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.mp-meta small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.mp-logos { display: inline-flex; }
.mp-logos .x-logo { width: 24px; height: 24px; font-size: 9px; box-shadow: 0 0 0 2px var(--surface); }
.mp-logos .x-logo + .x-logo { margin-left: -6px; }

.mp-steps { display: grid; gap: 14px; }
.mp-step {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-glass);
  text-decoration: none; color: var(--text);
  transition: border-color .25s, background-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.mp-steps li:first-child .mp-step, .mp-step:hover {
  border-color: color-mix(in srgb, var(--neon) 55%, var(--line));
  background: linear-gradient(120deg, color-mix(in srgb, var(--neon) 9%, var(--surface)), var(--surface) 70%);
  box-shadow: 0 18px 40px -26px rgba(10, 138, 65, .45);
}
.mp-step:hover { transform: translateY(-2px); }
.mp-num { font-family: var(--font-num); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; padding: 6px 10px; border-radius: 8px; color: var(--accent); background: linear-gradient(100deg, rgba(60, 255, 124, .22), rgba(196, 255, 62, .26)); }
.mp-step-txt { display: flex; flex-direction: column; gap: 4px; }
.mp-step-txt b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.mp-step-txt span { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.mp-step > svg { width: 22px; height: 22px; color: var(--text-3); transition: transform .3s var(--ease), color .2s; }
.mp-step:hover > svg, .mp-steps li:first-child .mp-step > svg { color: var(--accent); }
.mp-step:hover > svg { transform: translateX(4px); }
@media (max-width: 960px) {
  .mp-grid { grid-template-columns: minmax(0, 1fr); }
  .mp-desc { text-align: left; }
}
@media (max-width: 520px) {
  .mp-step { padding: 20px; gap: 14px; }
  .mp-meta { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Gradient accents: a soft ink→green sweep on display text,
   green→lime on accent numbers, buttons and line icons
   ========================================================= */
:root {
  --g-ink-l: linear-gradient(100deg, #05140B 40%, #0E3F25 76%, #13763F 100%);
  --g-ink-d: linear-gradient(100deg, #FFFFFF 36%, #E2FFEC 70%, #98FFBC 100%);
  --g-acc-l: linear-gradient(100deg, #07843B 0%, #14B357 52%, #62C21C 100%);
  --g-acc-d: linear-gradient(100deg, #3CFF7C 0%, #86FF57 55%, #D0FF45 100%);
  --g-num-l: linear-gradient(180deg, #05140B 35%, #127A43 100%);
  --g-num-d: linear-gradient(180deg, #FFFFFF 35%, #9CFFC0 100%);
  --g-neon: linear-gradient(100deg, #3CFF7C 0%, #74FF60 50%, #C4FF3E 100%);
  --grad-ink: var(--g-ink-l); --grad-acc: var(--g-acc-l); --grad-num: var(--g-num-l);
  --ico-a: #08863D; --ico-b: #63C51D;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --grad-ink: var(--g-ink-d); --grad-acc: var(--g-acc-d); --grad-num: var(--g-num-d); --ico-a: #3CFF7C; --ico-b: #CBFF48; }
}
:root[data-theme="dark"], .band, .calc2-result { --grad-ink: var(--g-ink-d); --grad-acc: var(--g-acc-d); --grad-num: var(--g-num-d); --ico-a: #3CFF7C; --ico-b: #CBFF48; }
.band .sample-chip { border-color: rgba(255, 255, 255, .14); }

/* text: the gradient is clipped to the glyphs; -webkit-text-fill-color keeps `color` usable for icons and borders */
.brand-word, .ht-num, .sec-title, .xcard-title, .band-title, .rw-title,
.x-rate, .stat-unit, .rv-avg, .rv-tag, .feed-amount, .fnode--end .big, .c2r-main small,
.marquee-track span.fill, .quiz-result .score, .xchip small, .kpi-num small, .rw-stat b small,
.mp-kicker, .mp-balance b, .mp-balance span {
  background-image: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .ht-num.is-hl, .x-rate, .stat-unit, .rv-avg, .rv-tag, .feed-amount, .fnode--end .big, .c2r-main small,
.marquee-track span.fill, .quiz-result .score, .xchip small, .kpi-num small, .rw-stat b small,
.mp-kicker, .mp-balance span { background-image: var(--grad-acc); }
/* odometer digits sit in moving strips, so each digit carries its own (vertical) gradient */
.odo-strip > span, .odo-sep {
  background-image: var(--grad-num);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* highlighter bar now sits above the glyphs and blends like marker ink */
.ht-num.is-hl::before { z-index: 1; mix-blend-mode: multiply; }
:root[data-theme="dark"] .ht-num.is-hl { text-shadow: none; }
:root[data-theme="dark"] .ht-num.is-hl::before { mix-blend-mode: screen; }

/* fills */
.btn-neon, .avatar, .chat-fab, .tv-play, .step.is-on .step-num, .msg.user, .chat-form button,
.drawer-langs button[aria-current="true"], .faq-item.is-open .pm, .x-go:hover { background-image: var(--g-neon); }

/* line icons */
.grad-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
#apbIcoGrad stop:first-child { stop-color: var(--ico-a); }
#apbIcoGrad stop:last-child { stop-color: var(--ico-b); }
.step-icon, .fnode svg, .lesson-points svg, .feed-empty svg, .auth-side li svg, .info-box svg, .checklist svg,
.topic-ico svg, .mission-ico svg, .rw-step-ico svg, .mp-card-head svg, .hdr-right > .icon-btn svg, .lang-btn > svg:first-child, .auth-tools .icon-btn svg { stroke: url(#apbIcoGrad); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .xcard { max-width: 640px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .fline { width: 2px; height: 40px; margin: 6px 0 6px 34px; background: repeating-linear-gradient(180deg, rgba(60, 255, 124, .9) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation-name: dash-v; }
  .fline::after { right: auto; left: 50%; top: auto; bottom: -2px; transform: translateX(-50%) rotate(135deg); }
  .fnode { min-height: 0; flex-direction: row; align-items: center; gap: 16px; }
  .fnode svg, .fnode--end .big { margin-bottom: 0; }
  .fnode .fnode-txt { gap: 2px; margin-top: 0; }
  .acad { grid-template-columns: minmax(0, 1fr); }
  .lesson-list { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .lesson-list::-webkit-scrollbar { display: none; }
  .lesson-tab { width: auto; flex: none; padding: 10px 14px; }
  .acad-progress, .acad-progress-label { display: none; }
  .acad-tools { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-top .brand { visibility: visible; }
}
@keyframes dash-v { to { background-position: 0 12px; } }

@media (max-width: 760px) {
  .ht-label { grid-column: 1 / -1; max-width: none; }
  .hero-title { grid-template-columns: max-content; row-gap: 0; }
  .ht-label + .ht-num { margin-bottom: 14px; }
  .xtable th:nth-child(3), .xtable th:nth-child(4), .xtable td:nth-child(3), .xtable td:nth-child(4) { display: none; }
  .x-sub { display: flex; flex-direction: column; }
  .xtable td:first-child { white-space: normal; }
  .xtable td { padding-inline: 10px; }
  .x-rate { font-size: 23px; }
  .xtable th:first-child, .xtable td:first-child { padding-left: 18px; }
  .xcard-head, .xcard-note { padding-inline: 18px; }
  .xchips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps-track { top: 34px; bottom: 34px; left: 33px; right: auto; width: 2px; height: auto; }
  .steps-track::after { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 18px; padding-bottom: 20px; }
  .step-body { margin-top: 0; min-height: 0; padding: 24px 22px; }
  .step-icon { width: 38px; height: 38px; margin-bottom: 16px; }
  .band-points { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .events { grid-template-columns: minmax(0, 1fr); }
  .event-slot { min-height: 170px; }
  .sim-inputs { grid-template-columns: minmax(0, 1fr); }
  .sim-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ft-top > :first-child { grid-column: 1 / -1; }
  .brand-word { font-size: 13.5px; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-fab.is-open { display: none; }
  .faq-a p { padding-right: 4px; }
}
@media (max-width: 700px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { transform: none; transition: opacity .4s; }
  .odo-strip { transition-duration: .3s; }
  .marquee-track { animation: none; }
  .ht-num.is-hl::before { transition: none; }
}
