:root, [data-theme="dark"] {
  --bg: #000;
  --bg-2: #121214;
  --card: #1a1a1e;
  --line: #2a2a2e;
  --text: #fff;
  --muted: #8e8e92;
  --dim: #5c5c60;
  --orange: #f7a600;
  --orange-ink: #111;
  --up: #20b26c;
  --dn: #ef454a;
  --up-dim: rgba(32,178,108,.14);
  --dn-dim: rgba(239,69,74,.14);
  --glow: rgba(247,166,0,.18);
  --chip: #222226;
  --nav-bg: rgba(0,0,0,.94);
  --surface-hi: #24272e;
  --surface-lo: #101115;
  --shadow: 0 18px 44px rgba(0,0,0,.38);
  --soft-shadow: 0 10px 24px rgba(0,0,0,.26);
  --edge: #090a0d;
}
[data-theme="light"] {
  --bg: #f5f6f7; --bg-2: #fff; --card: #fff; --line: #e6e8eb;
  --text: #121214; --muted: #70757d; --dim: #9aa0a6;
  --orange: #f0a000; --orange-ink: #111;
  --up: #03a66d; --dn: #cf304a;
  --up-dim: rgba(3,166,109,.1); --dn-dim: rgba(207,48,74,.1);
  --glow: rgba(240,160,0,.12); --chip: #eef0f3; --nav-bg: rgba(255,255,255,.96);
  --surface-hi: #fff; --surface-lo: #eceff3; --shadow: 0 16px 38px rgba(33,39,49,.13);
  --soft-shadow: 0 9px 22px rgba(33,39,49,.1); --edge: #d5d9df;
}
[data-theme="midnight"] {
  --bg: #07080d; --bg-2: #0d1020; --card: #14182a; --line: #24283c;
  --text: #f4f6ff; --muted: #8b91ad; --dim: #646a86;
  --orange: #ffb020; --up: #2ee59d; --dn: #ff4d6d;
  --up-dim: rgba(46,229,157,.14); --dn-dim: rgba(255,77,109,.14);
  --glow: rgba(255,176,32,.2); --chip: #1c2136; --nav-bg: rgba(7,8,13,.96);
  --surface-hi: #1c2135; --surface-lo: #0a0d18; --edge: #05060b;
}
html[data-up="red"] { --up: #ef454a; --dn: #20b26c; --up-dim: rgba(239,69,74,.14); --dn-dim: rgba(32,178,108,.14); }

* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.35; -webkit-font-smoothing: antialiased;
  max-width: 100%; overflow-x: clip;
  background:
    radial-gradient(circle at 18% -8%, var(--glow), transparent 28rem),
    radial-gradient(circle at 100% 42%, rgba(32,178,108,.07), transparent 24rem),
    var(--bg);
}
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: var(--orange); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

.app {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav: 58px;
  min-height: 100dvh; max-width: 480px; margin: 0 auto;
  padding: calc(8px + var(--safe-t)) 14px calc(var(--nav) + 16px + var(--safe-b));
  background: transparent;
  width: 100%; overflow-x: clip;
}
.boot {
  min-height: 70dvh; display: grid; place-items: center;
  color: var(--muted); letter-spacing: .14em; text-transform: uppercase;
  font-size: 11px; font-weight: 800;
}

.hdr {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.03em; }
.page-title {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 17px; font-weight: 800; letter-spacing: -.03em;
}
.mark {
  width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(180deg,#ffc53d,var(--orange));
  color: var(--orange-ink); display: grid; place-items: center;
  font-size: 13px; font-weight: 900;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 5px 0 #9d6700, 0 10px 24px var(--glow);
}
.search {
  flex: 1; height: 34px; border-radius: 999px; background: var(--chip);
  color: var(--muted); display: flex; align-items: center; gap: 8px;
  padding: 0 12px; font-size: 12px; font-weight: 600; min-width: 0;
}
.tools { display: flex; gap: 6px; }
.icon {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(180deg,var(--surface-hi),var(--surface-lo));
  color: var(--muted); display: grid; place-items: center;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 0 var(--edge), var(--soft-shadow);
}
.chip {
  height: 28px; padding: 0 10px; border-radius: 999px;
  background: linear-gradient(180deg,var(--surface-hi),var(--surface-lo));
  color: var(--muted); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 var(--edge);
}

.equity {
  position: relative; overflow: hidden; margin-bottom: 14px;
}
.equity .lbl {
  color: var(--muted); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.equity .bal {
  font-size: 34px; font-weight: 800; letter-spacing: -.05em; margin: 6px 0 4px;
}
.equity .pnl { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.equity .pnl b { font-weight: 700; }
.equity-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end;
}
.premium-balance {
  min-height: 174px; padding: 20px; border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px; background:
    radial-gradient(circle at 84% 18%,rgba(247,166,0,.24),transparent 34%),
    linear-gradient(145deg,#22252c,#111216 64%,#191204);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 8px 0 #08090b, var(--shadow);
}
[data-theme="light"] .premium-balance {
  color: #fff; background: radial-gradient(circle at 84% 18%,rgba(247,166,0,.34),transparent 34%),linear-gradient(145deg,#292d34,#111216 64%,#2a1c04);
}
.panel-glow {
  position: absolute; width: 170px; height: 170px; right: -70px; top: -96px;
  border: 1px solid rgba(255,190,60,.2); border-radius: 50%;
  box-shadow: 0 0 70px rgba(247,166,0,.13);
}
.premium-balance .lbl, .premium-balance .pnl { color: #aeb1b9; }
.premium-balance .bal { font-size: 37px; text-shadow: 0 3px 16px rgba(0,0,0,.3); }
.premium-balance .equity-row, .premium-balance .stats2 { position: relative; z-index: 1; }
.asset-balance { min-height: 205px; }
.mini-bars {
  position: absolute; right: 0; top: 8px; width: 88px; height: 42px;
  opacity: .35; display: flex; align-items: flex-end; gap: 3px;
}
.mini-bars i {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--orange), transparent);
}

.btn {
  position: relative; overflow: hidden; height: 44px; border-radius: 13px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 0 18px; letter-spacing: -.02em;
  border: 1px solid rgba(255,255,255,.13);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:before {
  content: ""; position: absolute; inset: 0 0 52% 0;
  background: linear-gradient(180deg,rgba(255,255,255,.28),transparent);
  pointer-events: none;
}
.btn-orange { background: linear-gradient(180deg,#ffc63d,var(--orange)); color: var(--orange-ink); }
.btn-green { background: linear-gradient(180deg,#2bd184,#119858); color: #fff; }
.btn-red { background: var(--dn); color: #fff; }
.btn-ghost { background: linear-gradient(180deg,var(--surface-hi),var(--surface-lo)); color: var(--text); }
.btn-full { width: 100%; }
.btn-lg { height: 54px; border-radius: 15px; font-size: 15px; }
.btn-depth { transform: translateY(-3px); }
.btn-orange.btn-depth { box-shadow: 0 6px 0 #986400, 0 13px 26px var(--glow), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-green.btn-depth { box-shadow: 0 6px 0 #08653a, 0 13px 26px rgba(32,178,108,.2), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost.btn-depth { box-shadow: 0 6px 0 var(--edge), 0 13px 26px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08); }
.btn:active, .btn-depth:active { transform: translateY(2px); filter: brightness(.96); box-shadow: 0 2px 0 var(--edge); }
.btn:disabled { opacity: .4; }

.quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
  margin: 20px 0 24px;
}
.quick button, .quick a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text); font-size: 11px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  min-width: 0; min-height: 86px; padding: 10px 4px 8px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(155deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 5px 0 var(--edge), var(--soft-shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.quick button:active, .quick a:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.qico {
  width: 44px; height: 44px; border-radius: 15px;
  background: linear-gradient(180deg,#2e3138,#17191e); display: grid; place-items: center;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 4px 8px rgba(0,0,0,.28);
}
.qico.hot { background: linear-gradient(180deg,#ffc63d,var(--orange)); color: var(--orange-ink); box-shadow: inset 0 1px 0 #fff7,0 5px 14px var(--glow); }
[data-theme="light"] .qico:not(.hot) {
  color: #fff;
  background: linear-gradient(180deg,#343840,#17191e);
  border-color: #454a54;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18),0 5px 0 #0b0c0f,0 10px 20px rgba(25,30,38,.2);
}

.sec {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 8px 0 10px;
}
.sec h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.sec a, .linkish { color: var(--muted); font-size: 12px; font-weight: 600; }

.grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px;
}
.grid2.single { grid-template-columns: 1fr; }
.grid2.single .tile { min-height: 154px; }
.tile {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo)); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px; text-align: left;
  cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 0 var(--edge), var(--soft-shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile:active { border-color: var(--orange); transform: translateY(4px); box-shadow: 0 2px 0 var(--edge); }
.tile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tile .sym { font-weight: 800; margin-bottom: 4px; }
.tile .rate { font-size: 18px; font-weight: 800; }
.tile .sub { color: var(--muted); font-size: 11px; margin-top: 4px; }
.grid2.single .trend-tile {
  min-height: 270px; padding: 18px; border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0,var(--glow),transparent 36%),
    linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
}
.trend-glow {
  position: absolute; right: -65px; top: -92px; width: 190px; height: 190px;
  border: 1px solid rgba(247,166,0,.16); border-radius: 50%;
  box-shadow: 0 0 54px rgba(247,166,0,.12);
}
.trend-tile .tile-top { position: relative; z-index: 1; margin-bottom: 16px; }
.trend-day-orb {
  width: 56px; height: 56px; display: grid; grid-template-columns: auto auto; place-content: center;
  gap: 2px; border: 1px solid rgba(255,255,255,.5); border-radius: 17px;
  color: var(--orange-ink); background: linear-gradient(145deg,#ffd86e,var(--orange));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62),0 6px 0 #986400,0 13px 25px var(--glow);
}
.trend-day-orb b { font-size: 22px; line-height: 1; }
.trend-day-orb small { align-self: end; font-size: 10px; font-weight: 900; line-height: 1.1; }
.trend-layout {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(88px,.78fr) minmax(132px,1.22fr);
  gap: 14px; align-items: stretch;
}
.trend-copy { min-width: 0; padding-top: 2px; }
.trend-kicker {
  display: block; margin-bottom: 2px; color: var(--muted);
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.trend-term { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.trend-term b { font-size: 46px; line-height: 1; letter-spacing: -.07em; }
.trend-term span { color: var(--text); font-size: 14px; font-weight: 800; }
.trend-rate { margin-top: 18px; }
.trend-rate b { display: block; font-size: 24px; line-height: 1; letter-spacing: -.04em; }
.trend-rate span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.cycle-chart {
  min-width: 0; padding: 11px 10px 8px; border: 1px solid rgba(32,178,108,.2); border-radius: 16px;
  color: var(--up); background: linear-gradient(180deg,rgba(32,178,108,.075),rgba(32,178,108,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05),0 5px 14px rgba(0,0,0,.14);
}
.cycle-chart-head,.cycle-chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cycle-chart-head span,.cycle-chart-foot { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.cycle-chart-head b { font-size: 14px; }
.cycle-chart svg { display: block; width: 100%; height: 70px; margin: 3px 0 1px; overflow: visible; }
.cycle-grid { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.cycle-line { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cycle-dot-pulse { fill: currentColor; opacity: .16; }
.cycle-dot { fill: currentColor; stroke: var(--surface-hi); stroke-width: 2; }
.cycle-chart-foot b { color: var(--text); font-size: 8px; }
.trend-total {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  gap: 9px; align-items: center; margin-top: 14px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035);
}
.trend-total span { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.trend-total b { color: var(--text); font-size: 16px; }
.trend-total svg { width: 16px; height: 16px; color: var(--orange); }

.tabs {
  display: flex; gap: 5px; overflow-x: auto; margin-bottom: 16px;
  border: 1px solid var(--line); padding: 5px;
  border-radius: 16px; background: var(--surface-lo);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.3),0 5px 0 var(--edge);
  -webkit-overflow-scrolling: touch;
}
.tabs button {
  flex: 1 0 auto; padding: 11px 16px; color: var(--muted);
  font-weight: 700; font-size: 15px; position: relative;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  min-height: 44px; border-radius: 12px;
}
.tabs button.on {
  color: var(--orange-ink); background: linear-gradient(180deg,#ffc63d,var(--orange));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55),0 4px 0 #986400,0 8px 18px var(--glow);
  transform: translateY(-2px);
}
.pills {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px;
}
.pills button {
  flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--chip); color: var(--muted); font-size: 12px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pills button.on { background: #fff; color: #000; }
[data-theme="light"] .pills button.on { background: #121214; color: #fff; }

.pairs { display: grid; gap: 12px; margin-bottom: 14px; }
.pairs-head {
  display: grid; grid-template-columns: 1.2fr .8fr 72px;
  gap: 10px; color: var(--muted); font-size: 11px; font-weight: 700;
  padding: 0 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.pair {
  width: 100%; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(82px,.8fr) 92px;
  gap: 10px; align-items: center; text-align: left;
  padding: 15px; border: 1px solid var(--line); border-radius: 18px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo)); color: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 6px 0 var(--edge),var(--soft-shadow);
  transition: transform .12s ease,box-shadow .12s ease;
}
.pair:last-child { border-bottom: 1px solid var(--line); }
.pair:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge); }
.pair .sym { font-weight: 800; }
.pair .sub { color: var(--muted); font-size: 11px; margin-top: 2px; }
.pair .chg { text-align: right; font-weight: 800; font-size: 15px; pointer-events: none; }
.pair .chg span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; margin-top: 2px; }
.pair .pair-main { pointer-events: none; min-width: 0; display: flex; align-items: center; gap: 10px; }
.pair .buy {
  height: 40px; min-width: 76px; padding: 0 11px; border-radius: 12px;
  background: linear-gradient(180deg,#2bd184,#119858); color: #fff; font-size: 12px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 2px; pointer-events: none; justify-self: end;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3),0 4px 0 #08653a,0 8px 16px rgba(32,178,108,.18);
  white-space: nowrap;
}
.pair .buy svg { width: 14px; height: 14px; }
.product-orb {
  flex: 0 0 auto; width: 36px; height: 36px; display: inline-grid; place-items: center;
  border-radius: 13px; color: var(--orange-ink); font-size: 12px; font-weight: 900;
  background: linear-gradient(145deg,#ffd568,var(--orange));
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55),0 4px 0 #986400,0 8px 18px var(--glow);
}
.market-hero {
  position: relative; overflow: hidden; min-height: 112px; margin-bottom: 16px; padding: 18px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 20px;
  background: radial-gradient(circle at 90% 20%,var(--glow),transparent 38%),linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09),0 7px 0 var(--edge),var(--shadow);
}
.market-hero b,.market-hero small { display: block; position: relative; z-index: 1; }
.market-hero b { margin: 4px 0 5px; font-size: 25px; letter-spacing: -.04em; }
.market-hero small { max-width: 78%; color: var(--muted); }
.market-hero i {
  position: absolute; right: -26px; bottom: -50px; width: 130px; height: 130px;
  border: 18px solid rgba(247,166,0,.1); border-radius: 50%;
}
.up { color: var(--up); }
.dn { color: var(--dn); }

.spark { width: 56px; height: 24px; display: block; margin-left: auto; }

.card {
  background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo)); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; margin-bottom: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 6px 0 var(--edge),var(--soft-shadow);
}
.stats2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px;
}
.stats2 span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.stats2 b { font-size: 14px; font-weight: 800; }

.actions4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0;
}
.actions4 button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 0; min-height: 82px; padding: 9px 3px; border: 1px solid var(--line);
  border-radius: 15px; background: linear-gradient(155deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 5px 0 var(--edge),var(--soft-shadow);
  font-size: 11px; font-weight: 700; color: var(--text);
}
.actions4 .qico { width: 44px; height: 44px; }

.pos {
  padding: 16px; border: 1px solid var(--line); border-radius: 19px;
  margin-bottom: 13px; background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 6px 0 var(--edge),var(--soft-shadow);
}
.pos:last-child { border-bottom: 1px solid var(--line); }
.pos-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side {
  font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px;
}
.side.long { background: var(--up-dim); color: var(--up); }
.side.burn { background: var(--dn-dim); color: var(--dn); }
.pos .big { font-size: 22px; font-weight: 800; margin: 8px 0; letter-spacing: -.03em; }
.meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
  color: var(--muted); font-size: 12px;
}
.meta b { color: var(--text); font-weight: 700; }
.pos-payout-address {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chip);
}
.pos-payout-address span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}
.pos-payout-address code {
  display: block;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  user-select: all;
}
.bar {
  height: 7px; background: var(--chip); border-radius: 99px;
  margin-top: 12px; overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.34);
}
.bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--orange),#ffd76b); box-shadow: 0 0 12px var(--orange); }

.trade-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.trade-head h1 { margin: 0; font-size: 20px; font-weight: 800; }
.premium-title {
  min-height: 80px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(circle at 85% 10%,var(--glow),transparent 35%),linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 6px 0 var(--edge),var(--soft-shadow);
}
.premium-title h1 { margin-top: 4px; font-size: 22px; }
.premium-chip { max-width: 44%; height: auto; min-height: 30px; padding-block: 5px; text-align: center; }
.seg {
  display: flex; background: var(--surface-lo); border: 1px solid var(--line); border-radius: 15px; padding: 5px; gap: 4px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.34),0 5px 0 var(--edge);
}
.seg button {
  flex: 1; height: 42px; border-radius: 11px; color: var(--muted); font-weight: 800;
}
.seg button.on {
  background: linear-gradient(180deg,#ffc63d,var(--orange)); color: var(--orange-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55),0 4px 0 #986400,0 8px 18px var(--glow);
  transform: translateY(-2px);
}

.ticket {
  background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo)); border: 1px solid var(--line);
  border-radius: 20px; padding: 16px; margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 7px 0 var(--edge),var(--shadow);
}
.field { margin-top: 12px; }
.field label {
  display: flex; justify-content: space-between; color: var(--muted);
  font-size: 12px; font-weight: 600; margin-bottom: 8px;
}
.field label b { color: var(--text); font-weight: 700; }
.field .box {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-lo); border: 1px solid var(--line);
  border-radius: 14px; padding: 0 13px; height: 56px;
  box-shadow: inset 0 3px 9px rgba(0,0,0,.3),0 2px 0 rgba(255,255,255,.03);
}
.field input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font-size: 18px; font-weight: 700;
}
.field .unit { font-weight: 800; color: var(--text); }
.max {
  color: var(--orange); font-weight: 800; font-size: 12px; white-space: nowrap;
}
.pkg-pick {
  display: grid; grid-template-columns: 1fr; gap: 11px; margin: 14px 0;
}
.pkg-pick button {
  position: relative; width: 100%; min-width: 0; min-height: 72px; padding: 12px 42px 12px 13px;
  border-radius: 17px; border: 1px solid var(--line); background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
  text-align: left; display: flex; justify-content: space-between; align-items: center;
  gap: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 5px 0 var(--edge),var(--soft-shadow);
}
.pkg-pick button.on {
  border-color: var(--orange);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 5px 0 #986400,0 12px 24px var(--glow);
  background: linear-gradient(100deg,var(--glow),var(--surface-hi) 52%,var(--surface-lo));
}
.pkg-pick .n { font-weight: 800; }
.pkg-copy { flex: 1; min-width: 0; }
.pkg-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.pkg-pick .r { flex: 0 0 auto; color: var(--up); font-weight: 900; font-size: 16px; margin-top: 0; text-align: right; }
.pkg-pick .r small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; }
.pick-check {
  display: none; position: absolute; right: 12px; top: 50%; width: 22px; height: 22px;
  margin-top: -11px; border-radius: 50%; background: var(--orange); color: #111;
  place-items: center; font-size: 12px; font-style: normal; font-weight: 900;
}
.pkg-pick button.on .pick-check { display: grid; }
.selected-product {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin: 10px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
  background: var(--line);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.22),var(--soft-shadow);
}
.selected-product > div { min-width: 0; padding: 12px 10px; background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo)); }
.selected-product span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.selected-product b { display: block; overflow-wrap: anywhere; font-size: 12px; }
.forecast {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0;
}
.forecast .tile { padding: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 4px 0 var(--edge); }
.forecast-wide { grid-column: 1 / -1; }
.form-error { color: var(--dn); min-height: 16px; }
.form-error.is-ok { color: var(--up); }
.address-lock-note {
  display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 2px;
  padding: 11px 12px; border: 1px solid rgba(247,166,0,.24); border-radius: 12px;
  color: var(--muted); background: rgba(247,166,0,.07); font-size: 11px;
}
.address-lock-note svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--orange); }
.dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px;
}

.row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 12px 0; border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.choice { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.choice button {
  min-height: 34px; padding: 0 11px; border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg,var(--surface-hi),var(--surface-lo)); color: var(--muted); font-weight: 700; font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 3px 0 var(--edge);
}
.choice button.on {
  background: linear-gradient(180deg,#ffc63d,var(--orange)); color: var(--orange-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 3px 0 #986400,0 7px 15px var(--glow);
}
.theme-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.theme-card {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  text-align: left; padding: 0 0 9px; background: var(--surface-lo);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 4px 0 var(--edge),var(--soft-shadow);
}
.theme-card.on { border-color: var(--orange); box-shadow: 0 4px 0 #986400,0 9px 18px var(--glow); }
.swatch { height: 42px; box-shadow: inset 0 -10px 18px rgba(0,0,0,.18); }
.theme-card small { display: block; padding: 6px 8px 0; font-weight: 800; font-size: 11px; }
.lang-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  min-height: 48px; padding: 12px; margin-top: 7px; border: 1px solid var(--line);
  border-radius: 12px; background: linear-gradient(180deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 3px 0 var(--edge);
  font-weight: 700;
}
.lang-list button:first-of-type { border-top: 1px solid var(--line); }

.addr {
  word-break: break-all; background: var(--surface-lo); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; font-size: 12px; font-weight: 700;
  box-shadow: inset 0 3px 9px rgba(0,0,0,.3),0 1px 0 rgba(255,255,255,.04);
}
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.activity-list { display: grid; gap: 10px; margin-bottom: 18px; }
.activity {
  display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px;
  align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 15px;
  background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 4px 0 var(--edge),var(--soft-shadow);
}
.activity:last-child { border-bottom: 1px solid var(--line); }
.activity-icon {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px;
  font-size: 17px; font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 3px 7px rgba(0,0,0,.2);
}
.activity-icon.in { color: var(--up); background: var(--up-dim); }
.activity-icon.out { color: var(--dn); background: var(--dn-dim); }
.activity-main { min-width: 0; }
.activity-main b, .activity-main small { display: block; }
.activity-main small {
  margin-top: 3px; color: var(--muted); font-size: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.activity-value { min-width: 78px; text-align: right; }
.activity-value b { display: block; white-space: nowrap; }
.tx-link { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; }

.virtual-card {
  position: relative; overflow: hidden; min-height: 210px; margin: 4px 0 14px;
  padding: 20px; border: 1px solid rgba(255,255,255,.17); border-radius: 24px;
  color: #fff; background:
    linear-gradient(118deg,transparent 0 52%,rgba(247,166,0,.06) 52% 53%,transparent 53%),
    radial-gradient(circle at 91% 8%,rgba(255,184,40,.35),transparent 34%),
    linear-gradient(145deg,#24262c,#0d0e11 58%,#1d1304);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.17),0 8px 0 #08090b,0 24px 48px rgba(0,0,0,.38);
}
.vc-glow {
  position: absolute; width: 170px; height: 170px; right: -70px; bottom: -95px;
  border: 1px solid rgba(255,180,30,.45); border-radius: 50%;
  box-shadow: 0 0 50px rgba(247,166,0,.25);
}
.vc-head, .vc-foot { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.vc-logo { font-size: 16px; font-weight: 900; letter-spacing: .12em; }
.vc-logo i {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  margin-right: 7px; border-radius: 50%; color: #111; background: var(--orange); font-style: normal;
}
.locked-pill {
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  padding: 6px 11px; color: #d9d9df; background: rgba(255,255,255,.035);
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.vc-chip {
  position: relative; width: 42px; height: 31px; margin: 26px 0 18px; overflow: hidden;
  border-radius: 8px; background: linear-gradient(135deg,#f0d27d,#9c7628);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.32),0 4px 10px rgba(0,0,0,.2);
}
.vc-chip::before, .vc-chip::after, .vc-chip i {
  content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; background: rgba(77,55,13,.42);
}
.vc-chip::after { inset: 50% 0 auto; width: auto; height: 1px; }
.vc-chip i { inset: 0 auto 0 25%; }
.vc-number {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: .08em; white-space: nowrap;
}
.vc-number b { font-size: 21px; letter-spacing: .1em; }
.vc-foot { margin-top: 24px; font-size: 9px; color: #b9bac0; letter-spacing: .12em; }
.vc-foot b { color: #fff; font-size: 10px; }
.vc-hint {
  position: relative; z-index: 1; display: block; margin-top: 14px;
  color: rgba(255,255,255,.62); font-size: 11px; font-weight: 600; letter-spacing: .01em;
}
.virtual-card[data-locked] { cursor: pointer; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.service-overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center;
  padding: 16px 14px calc(18px + env(safe-area-inset-bottom, 0px));
}
.service-overlay-bg {
  position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(8px);
}
.service-sheet {
  position: relative; z-index: 1; width: min(100%, 420px); padding: 20px 18px 16px;
  border: 1px solid var(--line); border-radius: 22px 22px 18px 18px;
  background: linear-gradient(165deg, var(--surface-hi), var(--surface-lo));
  box-shadow: 0 -8px 40px rgba(0,0,0,.35);
}
.service-sheet h2 { margin: 8px 0 10px; font-size: 22px; letter-spacing: -.04em; }
.service-sheet p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.turnover-card {
  display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 15px 16px;
  background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 5px 0 var(--edge),var(--soft-shadow);
}
.turnover-icon {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 13px; color: var(--orange-ink); background: linear-gradient(145deg,#ffd35e,var(--orange));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 4px 0 #986400,0 9px 18px var(--glow);
}
.turnover-icon svg { width: 20px; height: 20px; }
.turnover-card span, .turnover-card b { display: block; }
.turnover-card span { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.turnover-card b { font-size: 18px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.service-card {
  position: relative; min-width: 0; min-height: 134px; padding: 14px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  color: var(--text); text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 5px 0 var(--edge),var(--soft-shadow);
  transition: transform .12s ease,box-shadow .12s ease;
}
.service-card:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.service-card:first-child { grid-column: 1 / -1; min-height: 112px; }
.service-card > span {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 10px; color: var(--orange); background: var(--glow);
}
.service-card b, .service-card small { display: block; }
.service-card small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.service-card i {
  position: absolute; top: 12px; right: 10px; padding: 3px 6px; border-radius: 999px;
  color: var(--muted); background: var(--chip); font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase;
}
.cycles-only {
  display: flex; gap: 10px; align-items: center; margin: 10px 0 18px; padding: 12px;
  border: 1px solid rgba(32,178,108,.26); border-radius: 14px; background: var(--up-dim);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 4px 0 rgba(8,101,58,.45);
}
.cycles-only > svg { flex: 0 0 auto; color: var(--up); }
.cycles-only b, .cycles-only small { display: block; }
.cycles-only small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.team-hero {
  position: relative; overflow: hidden; min-height: 206px; margin: 0 0 20px; padding: 20px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%,rgba(247,166,0,.28),transparent 36%),
    linear-gradient(145deg,#22252c,#111216 64%,#1b1305);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11),0 8px 0 #08090b,var(--shadow);
}
.team-hero-head { display: flex; align-items: center; gap: 13px; }
.team-orb {
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 16px; color: #111; background: linear-gradient(145deg,#ffd568,var(--orange));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55),0 5px 0 #986400,0 12px 24px var(--glow);
}
.team-finance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 14px; }
.team-finance > div {
  min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  background: rgba(255,255,255,.045); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.team-finance span, .team-finance b { display: block; }
.team-finance span { min-height: 24px; margin-bottom: 5px; color: #aeb1b9; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.team-finance b { overflow-wrap: anywhere; color: #fff; font-size: 18px; letter-spacing: -.04em; }
.team-finance b.up { color: var(--up); }
.team-stats { display: flex; gap: 8px; }
.team-stats span {
  padding: 7px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  color: #aeb1b9; background: rgba(255,255,255,.05); font-size: 10px;
}
.team-stats b { margin-left: 4px; color: #fff; }
.referral-card { position: relative; padding-top: 54px; }
.ref-icon {
  position: absolute; top: 13px; left: 16px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 10px; color: var(--orange); background: var(--glow); box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}
.line-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.line-accordion { display: grid; gap: 0; }
.line-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.line-card > div b,.line-card > div small { display: block; }
.line-card > div b { margin: 3px 0; color: var(--up); font-size: 19px; }
.line-card > div small { color: var(--muted); font-size: 10px; }
.line-toggle {
  width: 100%; margin: 0; text-align: left; color: inherit; cursor: pointer;
  transition: transform .12s ease,box-shadow .12s ease;
}
.line-toggle:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.line-meta { display: flex; align-items: center; gap: 8px; }
.line-chevron {
  display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted);
  transition: transform .18s ease;
}
.line-chevron svg { width: 14px; height: 14px; }
.line-accordion.open .line-chevron { transform: rotate(90deg); color: var(--orange); }
.line-accordion.open .line-toggle {
  border-radius: 16px 16px 0 0; margin-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 1px 0 var(--edge);
}
.line-panel {
  margin: 0; padding: 10px 10px 4px; border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 16px 16px; background: rgba(255,255,255,.02);
  box-shadow: 0 4px 0 var(--edge);
}
.line-panel .team-member-list { margin-bottom: 8px; gap: 6px; }
.line-panel .team-empty { margin: 0 0 8px; padding: 12px; border-style: solid; }
.line-num {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
  color: #111; background: linear-gradient(145deg,#ffd568,var(--orange)); font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 4px 0 #986400;
}
.invited-card { margin-bottom: 10px; padding: 14px 16px; }
.invited-card .eyebrow { display: block; margin-bottom: 4px; }
.invited-card b { display: block; font-size: 15px; }
.team-member-list { display: grid; gap: 8px; margin-bottom: 18px; }
.team-member-row {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 4px 0 var(--edge);
}
.team-member-row > i {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px;
  color: #111; background: linear-gradient(145deg,#ffd568,var(--orange)); font-style: normal; font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 3px 0 #986400;
}
.team-member-row > div { min-width: 0; }
.team-member-row b, .team-member-row small, .team-member-row span { display: block; }
.team-member-row b { margin-bottom: 2px; font-size: 14px; overflow-wrap: anywhere; }
.team-member-row small, .team-member-row span {
  color: var(--muted); font-size: 11px; line-height: 1.35;
}
.team-member-row span { margin-top: 4px; }
.team-member-row strong {
  justify-self: end; text-align: right; color: var(--up); font-size: 14px; letter-spacing: -.02em;
}
.team-member-row strong small { display: inline; color: var(--muted); font-size: 10px; font-weight: 700; }
.team-empty {
  margin-bottom: 18px; padding: 16px; border: 1px dashed var(--line); border-radius: 16px;
  background: var(--card); text-align: left;
}
.team-empty b, .team-empty small { display: block; }
.team-empty small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.settings-card { padding: 17px; }

.how-entry {
  display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center;
  width: 100%; margin: 0 0 12px; padding: 15px 16px; text-align: left; color: var(--text);
  border: 1px solid rgba(247,166,0,.22); border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0,rgba(247,166,0,.18),transparent 42%),
    linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 5px 0 var(--edge),var(--soft-shadow);
  transition: transform .12s ease,box-shadow .12s ease;
}
.how-entry:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.how-entry > span {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  color: #111; background: linear-gradient(145deg,#ffd568,var(--orange));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 4px 0 #986400;
}
.how-entry b, .how-entry small { display: block; }
.how-entry small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.how-entry > i { display: grid; place-items: center; color: var(--muted); }
.how-entry > i svg { width: 16px; height: 16px; }
.how-story { margin: 0 0 18px; }
.how-story h2 {
  margin: 0 0 12px; padding: 0 2px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em;
}
.how-blocks { display: grid; gap: 8px; margin-bottom: 12px; }
.how-block {
  display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; align-items: start;
  padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 4px 0 var(--edge),var(--soft-shadow);
}
.how-block-num {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px;
  color: #111; background: linear-gradient(145deg,#ffd568,var(--orange)); font-size: 13px; font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 3px 0 #986400;
}
.how-block > div b {
  display: block; margin: 2px 0 6px; color: var(--text); font-size: 14px; letter-spacing: -.01em;
}
.how-block p {
  margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55;
}
.how-cta {
  padding: 15px 16px 16px; border: 1px solid rgba(247,166,0,.22); border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0,rgba(247,166,0,.16),transparent 42%),
    linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 5px 0 var(--edge),var(--soft-shadow);
}
.how-cta-text {
  margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; font-weight: 700;
}

.wheel-card {
  position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 13px; align-items: center; overflow: hidden; padding: 17px;
  border-color: rgba(247,166,0,.24);
  background:
    radial-gradient(circle at 100% 0,rgba(247,166,0,.23),transparent 45%),
    radial-gradient(circle at 0 100%,rgba(43,214,151,.1),transparent 38%),
    linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
}
.wheel-card:after {
  content: ""; position: absolute; width: 130px; height: 130px; right: -65px; top: -74px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255,255,255,.025),0 0 0 38px rgba(247,166,0,.025);
  pointer-events: none;
}
.wheel-card-icon {
  position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  color: #111; border: 5px solid #e5a51c;
  background: conic-gradient(#ffbd32 0 12.5%,#22c983 12.5% 25%,#ff5c77 25% 37.5%,#6e5cff 37.5% 50%,#14b8d4 50% 62.5%,#ffa52f 62.5% 75%,#31d492 75% 87.5%,#f74e80 87.5%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55),0 5px 0 #765000,0 12px 24px var(--glow);
}
.wheel-card-icon:after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  background: linear-gradient(145deg,#fff3b0,#ffae18); box-shadow: 0 2px 6px rgba(0,0,0,.42);
}
.wheel-card-icon span { position: relative; z-index: 1; font-size: 10px; font-weight: 1000; }
.wheel-card-copy { min-width: 0; }
.wheel-card h2 { margin: 2px 0 3px; font-size: 17px; letter-spacing: -.03em; }
.wheel-card p { margin: 0; color: var(--muted); font-size: 10px; }
.wheel-card .btn { position: relative; z-index: 1; min-width: 82px; padding-inline: 13px; }
.wheel-pending { display: block; margin-top: 6px; color: var(--up); font-size: 10px; }

.wheel-overlay {
  position: fixed; z-index: 40; inset: 0; display: grid; place-items: center;
  padding: calc(10px + env(safe-area-inset-top,0px)) 10px calc(10px + env(safe-area-inset-bottom,0px));
  background:
    radial-gradient(circle at 50% 34%,rgba(247,166,0,.14),transparent 38%),
    rgba(0,0,0,.84);
  backdrop-filter: blur(16px);
}
.wheel-modal {
  position: relative; isolation: isolate; width: min(100%,390px); max-height: 97dvh;
  overflow-x: hidden; overflow-y: auto; padding: 22px 20px 18px; text-align: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: 30px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.07),transparent 28%),
    radial-gradient(circle at 50% 5%,rgba(247,166,0,.2),transparent 38%),
    linear-gradient(155deg,var(--surface-hi),var(--surface-lo));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.5),
    0 9px 0 var(--edge),0 32px 90px rgba(0,0,0,.68);
}
.wheel-aurora {
  position: absolute; z-index: -1; width: 240px; height: 240px; left: 50%; top: 34%;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: conic-gradient(from 45deg,rgba(255,172,32,.18),rgba(40,205,141,.12),rgba(111,91,255,.15),rgba(255,70,122,.13),rgba(255,172,32,.18));
  filter: blur(36px); animation: wheel-aurora 8s linear infinite; pointer-events: none;
}
.wheel-heading { position: relative; z-index: 2; }
.wheel-modal h2 { margin: 5px 34px 5px; font-size: 27px; line-height: 1.08; letter-spacing: -.05em; }
.wheel-heading > p {
  min-height: 19px; max-width: 290px; margin: 0 auto;
  color: var(--muted); font-size: 12px; font-weight: 700;
}
.wheel-modal.is-winning .wheel-heading > p { color: var(--up); font-size: 14px; font-weight: 900; }
.wheel-x {
  position: absolute; z-index: 8; top: 12px; right: 12px; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
  background: linear-gradient(180deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 3px 0 var(--edge);
  font-size: 23px; line-height: 1;
}
.wheel-stage {
  position: relative; width: clamp(232px,calc(100vw - 68px),286px); aspect-ratio: 1;
  height: auto; margin: 20px auto 22px; perspective: 760px;
}
.wheel-backglow {
  position: absolute; inset: 9%; border-radius: 50%;
  background: rgba(247,166,0,.34); filter: blur(30px); transform: translateY(20px) scale(.94);
}
.wheel-rim {
  position: absolute; inset: 0; padding: 14px; border-radius: 50%;
  background:
    linear-gradient(135deg,rgba(255,255,255,.92) 0 3%,transparent 14% 72%,rgba(0,0,0,.5) 92%),
    linear-gradient(145deg,#fff0a1 0%,#f8b72e 26%,#9b5f00 72%,#ffd65b 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.85),
    inset 0 -8px 11px rgba(89,48,0,.65),
    0 9px 0 #684100,0 15px 20px rgba(0,0,0,.48),0 28px 55px rgba(247,166,0,.24);
  transform: rotateX(3deg); transform-style: preserve-3d;
}
.wheel-lights { position: absolute; z-index: 3; inset: 0; border-radius: 50%; pointer-events: none; }
.wheel-lights i { position: absolute; inset: 0; transform: rotate(calc(var(--i) * 18deg)); }
.wheel-lights i:before {
  content: ""; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #fff7cf;
  box-shadow: 0 0 5px #fff,0 0 10px #ffbf32;
  animation: wheel-light 1s calc(var(--i) * -50ms) ease-in-out infinite alternate;
}
.wheel-disc {
  position: relative; z-index: 2; width: 100%; height: 100%; overflow: hidden; border-radius: 50%;
  border: 5px solid #17181c;
  background: conic-gradient(
    #ffaf1c 0 12.5%,#20bf7b 12.5% 25%,#735cff 25% 37.5%,#ee476f 37.5% 50%,
    #19aeca 50% 62.5%,#f57e2c 62.5% 75%,#28a96f 75% 87.5%,#d94a9a 87.5% 100%
  );
  transition: transform 4.2s cubic-bezier(.08,.67,.08,1);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.28),
    inset 0 0 0 5px rgba(0,0,0,.16),
    inset 0 0 38px rgba(0,0,0,.38),0 1px 0 rgba(255,255,255,.4);
  will-change: transform;
}
.wheel-disc:before {
  content: ""; position: absolute; z-index: 1; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,rgba(255,255,255,.32) 0 .65deg,transparent .65deg 45deg);
  pointer-events: none;
}
.wheel-shine {
  position: absolute; z-index: 1; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 33% 22%,rgba(255,255,255,.38),transparent 22%),
    linear-gradient(115deg,rgba(255,255,255,.19),transparent 28% 68%,rgba(0,0,0,.18));
  pointer-events: none;
}
.wheel-disc > b {
  position: absolute; z-index: 5; left: 50%; top: 50%; width: 68px; height: 68px;
  display: grid; place-items: center; transform: translate(-50%,-50%);
  border: 5px solid #18181b; border-radius: 50%; color: #111;
  background: linear-gradient(145deg,#fff3ad 0%,#ffb21f 52%,#c57800 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.8),inset 0 -5px 7px rgba(113,61,0,.35),
    0 5px 0 rgba(59,34,0,.68),0 10px 20px rgba(0,0,0,.42);
  font-size: 20px; font-weight: 1000;
}
.wheel-disc > b span { transform: translateY(-1px); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.wheel-label {
  position: absolute; inset: 0;
  pointer-events: none; font-style: normal;
}
.wheel-label { transform: rotate(var(--angle)); }
.wheel-label > span {
  position: absolute; top: 10%; left: 50%; min-width: 46px; transform: translateX(-50%);
  color: #fff; font-size: clamp(10px,3.2vw,13px); font-weight: 1000;
  letter-spacing: -.03em; text-shadow: 0 2px 6px rgba(0,0,0,.68);
}
.wheel-label small {
  display: block; margin-top: 0; color: rgba(255,255,255,.82);
  font-size: 6px; letter-spacing: .1em;
}
.wheel-pointer {
  position: absolute; z-index: 8; left: 50%; top: -10px; width: 42px; height: 48px;
  transform: translateX(-50%); filter: drop-shadow(0 6px 4px rgba(0,0,0,.54));
}
.wheel-pointer:before {
  content: ""; position: absolute; left: 5px; top: 0; width: 32px; height: 32px;
  border: 3px solid #fff0a1; border-radius: 50%;
  background: linear-gradient(145deg,#ffcf51,#e98e00);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.68),0 3px 0 #7c4b00;
}
.wheel-pointer i {
  position: absolute; z-index: -1; left: 9px; top: 21px; width: 24px; height: 29px;
  background: linear-gradient(135deg,#ffe28a,#ed9700); clip-path: polygon(0 0,100% 0,50% 100%);
}
.wheel-actions { display: grid; gap: 10px; }
.wheel-odds { display: block; margin-top: 13px; color: var(--dim); font-size: 9px; }
.wheel-confetti { position: absolute; z-index: 7; inset: 0; overflow: hidden; pointer-events: none; }
.wheel-confetti i {
  position: absolute; left: 50%; top: 41%; width: 7px; height: 13px; border-radius: 2px;
  background: hsl(calc(var(--i) * 47deg) 88% 59%);
  animation: wheel-confetti 1.35s calc(var(--i) * 18ms) cubic-bezier(.14,.72,.28,1) both;
}
.wheel-modal.is-winning .wheel-stage { animation: wheel-win-pop .62s both; }

@keyframes wheel-aurora { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes wheel-light { to { opacity: .35; transform: scale(.72); } }
@keyframes wheel-confetti {
  0% { opacity: 0; transform: translate(0,0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x),170px) rotate(var(--r)); }
}
@keyframes wheel-win-pop {
  0% { transform: scale(.96); }
  55% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.deposit-shell {
  overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(145deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09),0 8px 0 var(--edge),var(--shadow);
}
.network-ribbon {
  display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center;
  padding: 15px 17px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg,var(--glow),transparent);
}
.network-ribbon > span {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px;
  color: var(--orange); background: rgba(247,166,0,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 3px 0 rgba(152,100,0,.45);
}
.network-ribbon b,.network-ribbon small { display: block; }
.network-ribbon small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.network-ribbon i {
  padding: 6px 9px; border-radius: 9px; color: #f3ba2f; background: rgba(243,186,47,.1);
  font-size: 10px; font-style: normal; font-weight: 900;
}
.qr-zone {
  display: flex; flex-direction: column; align-items: center; padding: 24px 18px 20px;
  background: radial-gradient(circle at 50% 44%,var(--glow),transparent 45%);
}
.qr-zone > b { margin-top: 13px; font-size: 15px; }
.qr-zone > small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.qr-frame {
  padding: 11px; border-radius: 22px; background: #fff;
  border: 1px solid #fff; box-shadow: 0 7px 0 #9da0a8,0 18px 38px rgba(0,0,0,.36),0 0 35px var(--glow);
}
#deposit-qr {
  position: relative; width: 164px; height: 164px; overflow: hidden;
  display: grid; place-items: center; background: #fff; color: #111;
}
#deposit-qr img,#deposit-qr canvas { width: 164px!important; height: 164px!important; display: block; }
.qr-brand {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  color: #111; background: var(--orange); font-size: 18px; font-weight: 900;
}
.address-panel { padding: 18px; border-top: 1px solid var(--line); }
.address-panel .addr { margin: 8px 0 16px; text-align: center; line-height: 1.55; }
.deposit-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.deposit-meta span { padding: 13px 16px; background: var(--surface-lo); }
.deposit-meta small,.deposit-meta b { display: block; }
.deposit-meta small { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.deposit-meta b { font-size: 12px; }
.warning-strip {
  display: flex; gap: 9px; align-items: flex-start; padding: 14px 16px;
  border-top: 1px solid rgba(247,166,0,.22); color: var(--muted); background: rgba(247,166,0,.08);
  font-size: 11px;
}
.warning-strip svg { flex: 0 0 auto; color: var(--orange); }
.withdraw-hero {
  position: relative; overflow: hidden; min-height: 180px; margin-bottom: 18px; padding: 20px;
  border: 1px solid rgba(255,255,255,.11); border-radius: 24px;
  background: radial-gradient(circle at 86% 14%,var(--glow),transparent 34%),linear-gradient(145deg,#23262d,#101115);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 8px 0 #08090b,var(--shadow);
}
.withdraw-icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 15px;
  border-radius: 15px; color: #111; background: linear-gradient(145deg,#ffd568,var(--orange));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55),0 5px 0 #986400;
}
.withdraw-hero .bal { margin: 5px 0 15px; font-size: 31px; font-weight: 900; letter-spacing: -.04em; }
.withdraw-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.withdraw-badges span {
  padding: 7px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  color: #aeb1b9; background: rgba(255,255,255,.05); font-size: 10px;
}
.withdraw-badges b { color: #fff; }
.secure-head { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.secure-head > svg { width: 36px; height: 36px; padding: 8px; border-radius: 12px; color: var(--up); background: var(--up-dim); }
.secure-head b,.secure-head small { display: block; }
.secure-head small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.secure-head i { padding: 5px 8px; border-radius: 8px; color: var(--orange); background: var(--glow); font-size: 9px; font-style: normal; font-weight: 900; }
.empty { color: var(--muted); text-align: center; padding: 36px 12px; }
.back {
  min-height: 38px; margin-bottom: 14px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px;
  color: var(--muted); background: linear-gradient(180deg,var(--surface-hi),var(--surface-lo)); font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 4px 0 var(--edge);
}
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav) + 16px + var(--safe-b));
  transform: translateX(-50%); background: #2b2b30; color: #fff;
  padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 700;
  z-index: 20; max-width: 86vw;
}
.gate {
  min-height: 72dvh; display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.gate h1 { margin: 0; font-size: 28px; letter-spacing: -.05em; font-weight: 800; }
.gate p { color: var(--muted); margin: 0 0 6px; }

.pin-gate {
  position: relative; isolation: isolate; min-height: calc(100dvh - 30px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 0 18px; overflow: hidden;
}
.pin-brand {
  display: flex; align-items: center; gap: 11px; margin-bottom: 24px;
  font-size: 16px; letter-spacing: -.02em;
}
.pin-brand .mark { width: 40px; height: 40px; border-radius: 14px; }
.pin-panel {
  position: relative; width: 100%; max-width: 370px; padding: 24px 22px 22px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 28px;
  text-align: center; background:
    radial-gradient(circle at 50% 0,rgba(247,166,0,.17),transparent 34%),
    linear-gradient(155deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11),0 9px 0 var(--edge),0 28px 58px rgba(0,0,0,.4);
}
.pin-shield {
  position: relative; width: 68px; height: 68px; display: grid; place-items: center;
  margin: 0 auto 18px; border-radius: 23px; color: #111;
  background: linear-gradient(145deg,#ffe08a,#f7a600);
  border: 1px solid rgba(255,255,255,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62),0 7px 0 #986400,0 18px 36px var(--glow);
}
.pin-shield svg { width: 31px; height: 31px; stroke-width: 2; }
.pin-shield i {
  position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px;
  border: 4px solid var(--surface-hi); border-radius: 50%; background: var(--up);
  box-shadow: 0 0 14px rgba(32,178,108,.55);
}
.pin-panel h1 { margin: 5px 0 7px; font-size: 26px; line-height: 1.08; letter-spacing: -.045em; }
.pin-panel > p { max-width: 280px; margin: 0 auto; color: var(--muted); font-size: 12px; }
.pin-dots { display: flex; justify-content: center; gap: 15px; margin: 25px 0 13px; }
.pin-dots i {
  width: 17px; height: 17px; border: 2px solid var(--dim); border-radius: 50%;
  background: var(--surface-lo); box-shadow: inset 0 2px 5px rgba(0,0,0,.38);
  transition: transform .14s ease,background .14s ease,box-shadow .14s ease;
}
.pin-dots i.filled {
  border-color: #ffd260; background: var(--orange); transform: scale(1.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52),0 0 18px var(--orange);
}
.pin-message {
  min-height: 32px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700;
}
.pin-message.is-error { color: var(--dn); }
.pin-keypad {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px;
  max-width: 294px; margin: 0 auto;
}
.pin-keypad button {
  min-width: 0; height: 58px; border: 1px solid var(--line); border-radius: 17px;
  color: var(--text); background: linear-gradient(180deg,var(--surface-hi),var(--surface-lo));
  font-size: 21px; font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 5px 0 var(--edge),0 11px 22px rgba(0,0,0,.24);
  transition: transform .1s ease,box-shadow .1s ease;
}
.pin-keypad button:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 var(--edge);
}
.pin-keypad button:disabled { opacity: .45; }
.pin-keypad .pin-erase { color: var(--orange); font-size: 20px; }
.pin-support {
  margin-top: 25px; padding: 10px 14px; color: var(--muted);
  font-size: 11px; font-weight: 700; text-align: center;
}
.pin-ambient {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none;
}
.pin-ambient-a {
  width: 250px; height: 250px; top: 8%; right: -145px;
  border: 28px solid rgba(247,166,0,.06); box-shadow: 0 0 70px var(--glow);
}
.pin-ambient-b {
  width: 180px; height: 180px; left: -120px; bottom: 9%;
  border: 22px solid rgba(32,178,108,.05); box-shadow: 0 0 60px rgba(32,178,108,.08);
}
.pin-loader {
  width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--orange);
  border-radius: 50%; animation: pin-spin .7s linear infinite;
}
@keyframes pin-spin { to { transform: rotate(360deg); } }

.maintenance-gate {
  position: relative; isolation: isolate; min-height: calc(100dvh - 30px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 0 24px; overflow: hidden;
}
.maintenance-brand {
  display: flex; align-items: center; gap: 11px; margin-bottom: 26px;
  font-size: 16px; letter-spacing: -.02em;
}
.maintenance-brand .mark { width: 40px; height: 40px; border-radius: 14px; }
.maintenance-panel {
  position: relative; width: 100%; max-width: 390px; padding: 25px 22px 22px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 30px;
  text-align: center; background:
    radial-gradient(circle at 50% -10%,rgba(247,166,0,.22),transparent 40%),
    linear-gradient(155deg,var(--surface-hi),var(--surface-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 9px 0 var(--edge),0 30px 65px rgba(0,0,0,.44);
}
.maintenance-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(115deg,transparent 0 20px,rgba(255,255,255,.05) 21px 22px);
}
.maintenance-status {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 23px; padding: 7px 12px; border: 1px solid rgba(247,166,0,.25);
  border-radius: 999px; color: var(--orange); background: rgba(247,166,0,.08);
  font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.maintenance-status i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 5px rgba(247,166,0,.1),0 0 18px var(--orange);
  animation: maintenance-pulse 1.5s ease-in-out infinite;
}
.maintenance-core {
  position: relative; z-index: 1; width: 112px; height: 112px;
  display: grid; place-items: center; margin: 0 auto 25px;
}
.maintenance-ring {
  position: absolute; inset: 0; border: 2px solid rgba(247,166,0,.18); border-radius: 50%;
  border-top-color: var(--orange); border-right-color: rgba(247,166,0,.65);
  box-shadow: 0 0 38px rgba(247,166,0,.15);
  animation: maintenance-spin 7s linear infinite;
}
.maintenance-ring::before,
.maintenance-ring::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #ffd66d; box-shadow: 0 0 17px var(--orange);
}
.maintenance-ring::before { top: 3px; left: 22px; }
.maintenance-ring::after { right: 5px; bottom: 20px; width: 7px; height: 7px; }
.maintenance-tool {
  width: 70px; height: 70px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.55); border-radius: 24px; color: #111;
  background: linear-gradient(145deg,#ffe392,#f7a600);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68),0 7px 0 #986400,0 18px 35px rgba(247,166,0,.28);
}
.maintenance-tool svg { width: 31px; height: 31px; stroke-width: 2.1; }
.maintenance-panel h1 {
  position: relative; z-index: 1; max-width: 310px; margin: 0 auto 11px;
  font-size: 29px; line-height: 1.06; letter-spacing: -.052em;
}
.maintenance-panel > p {
  position: relative; z-index: 1; max-width: 315px; margin: 0 auto 24px;
  color: var(--muted); font-size: 13px; line-height: 1.55;
}
.maintenance-lines {
  position: relative; z-index: 1; display: grid; gap: 10px; text-align: left;
}
.maintenance-lines > div {
  min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr) 8px;
  align-items: center; gap: 12px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05),0 4px 0 var(--edge);
}
.maintenance-lines span {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  color: var(--orange); background: rgba(247,166,0,.1);
}
.maintenance-lines span svg { width: 20px; height: 20px; }
.maintenance-lines b { min-width: 0; font-size: 11px; line-height: 1.35; }
.maintenance-lines i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 12px rgba(32,178,108,.58);
}
.maintenance-orbit {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.maintenance-orbit-a {
  width: 300px; height: 300px; top: 3%; right: -185px;
  border: 34px solid rgba(247,166,0,.045); box-shadow: 0 0 90px var(--glow);
}
.maintenance-orbit-b {
  width: 220px; height: 220px; left: -155px; bottom: 3%;
  border: 27px solid rgba(32,178,108,.035); box-shadow: 0 0 70px rgba(32,178,108,.08);
}
@keyframes maintenance-spin { to { transform: rotate(360deg); } }
@keyframes maintenance-pulse { 50% { opacity: .45; transform: scale(.75); } }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(66px + var(--safe-b)); padding: 6px 5px var(--safe-b);
  background: var(--nav-bg); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; z-index: 10;
  backdrop-filter: blur(18px);
  box-shadow: 0 -14px 32px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.04);
}
.nav button {
  position: relative; color: var(--dim); font-size: 9px; font-weight: 800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 13px;
}
.nav button.on {
  color: var(--orange-ink);
  background: linear-gradient(180deg,#ffc63d,var(--orange));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 4px 0 #986400,0 8px 18px var(--glow);
  transform: translateY(-3px);
}
.nav svg { width: 21px; height: 21px; }

.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .65; } }

@media (max-width: 420px) {
  .pair {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
  }
  .pair .pair-main { grid-column: 1; min-width: 0; }
  .pair .chg { grid-column: 2; min-width: 82px; }
  .pair .buy {
    grid-column: 1 / -1; width: 100%; min-width: 0; height: 44px;
    margin-top: 3px; justify-self: stretch;
  }
}

@media (max-width: 350px) {
  .app { padding-left: 10px; padding-right: 10px; }
  .hdr { gap: 6px; }
  .tools { gap: 3px; }
  .tools .chip { display: none; }
  .quick { gap: 3px; }
  .quick button, .quick a { min-height: 78px; font-size: 9px; }
  .pair { padding: 12px 9px; gap: 10px; }
  .pair .product-orb { width: 30px; height: 30px; border-radius: 10px; }
  .pair .buy { font-size: 11px; }
  .premium-balance { padding: 16px; }
  .premium-balance .bal { font-size: 30px; }
  .pkg-pick button { padding-left: 10px; }
  .pkg-pick .product-orb { width: 31px; height: 31px; }
  .pkg-pick .r { font-size: 14px; }
  .vc-number { font-size: 15px; }
  .line-card { grid-template-columns: 38px minmax(0,1fr); }
  .line-card > .chip { grid-column: 2; justify-self: start; }
  .wheel-card { grid-template-columns: 48px minmax(0,1fr); }
  .wheel-card .btn { grid-column: 1 / -1; width: 100%; }
  .wheel-modal { padding-left: 14px; padding-right: 14px; }
}

.scam-gate {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 18px 56px;
  background: #050000;
  text-align: center;
}
.scam-photo-wrap {
  position: relative;
  width: min(72vw, 280px);
  aspect-ratio: 1;
}
.scam-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.2);
  border: 6px solid #c40000;
  box-shadow: 0 0 0 8px rgba(180, 0, 0, 0.28);
}
.scam-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: clamp(42px, 14vw, 64px);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ff1414;
  border: 7px solid #ff1414;
  padding: 2px 14px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.18);
}
.scam-title {
  margin: 16px 0 0;
  font-size: clamp(68px, 22vw, 124px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ff1212;
  line-height: 0.84;
  text-shadow: 0 0 28px rgba(255, 0, 0, 0.5);
}
.scam-fraud {
  margin: 0;
  font-size: clamp(34px, 12vw, 62px);
  font-weight: 900;
  letter-spacing: 0.28em;
  color: #ffffff;
}
.scam-copy {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ff4d4d;
}
