/* ============================================================
   FastPay UI — Apple-glass design system.
   Light theme by default; dark tokens are pre-wired for later.
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0b1220;
  --muted: #5c6675;
  --faint: #8a93a3;
  --accent: #0071e3;
  --accent-2: #0a84ff;
  --accent-soft: rgba(10, 132, 255, .12);
  --good: #248a3d;
  --good-soft: rgba(52, 199, 89, .16);
  --bad: #d70015;
  --bad-soft: rgba(255, 59, 48, .12);
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .8);
  --glass-line: rgba(255, 255, 255, .75);
  --hairline: rgba(11, 18, 32, .07);
  --shadow: 0 10px 40px rgba(20, 40, 80, .10);
  --shadow-soft: 0 4px 18px rgba(20, 40, 80, .07);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
}
:root[data-theme="dark"] {
  --ink: #f2f5f9;
  --muted: #9aa4b2;
  --faint: #6b7585;
  --glass: rgba(22, 28, 40, .55);
  --glass-strong: rgba(22, 28, 40, .8);
  --glass-line: rgba(255, 255, 255, .08);
  --hairline: rgba(255, 255, 255, .08);
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: #eef3fa;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 42% at 12% 8%, rgba(10, 132, 255, .16), transparent 62%),
    radial-gradient(42% 40% at 88% 12%, rgba(94, 92, 230, .13), transparent 60%),
    radial-gradient(50% 46% at 78% 88%, rgba(50, 173, 230, .12), transparent 62%),
    radial-gradient(40% 40% at 12% 86%, rgba(52, 199, 89, .08), transparent 60%);
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wordmark { font-weight: 800; font-size: 21px; letter-spacing: -.5px; color: var(--ink); }
.wordmark span { color: var(--accent); }

/* ---------- glass primitives ---------- */
.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.skel {
  display: inline-block; border-radius: 8px; color: transparent !important;
  background: linear-gradient(90deg, rgba(11,18,32,.05) 25%, rgba(11,18,32,.10) 37%, rgba(11,18,32,.05) 63%);
  background-size: 400px 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  user-select: none;
}

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-line);
  border-radius: 24px; box-shadow: var(--shadow);
  padding: 38px 34px; width: 100%; max-width: 420px;
  animation: fadeUp .35s ease both;
}
.auth-card .wordmark { display: block; text-align: center; margin-bottom: 24px; }
.tabs { display: flex; background: rgba(11,18,32,.06); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px;
               font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .18s; }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11,18,32,.10); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 12px;
  font-size: 15px; outline: none; background: rgba(255,255,255,.75); color: var(--ink); transition: border .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-error { color: var(--bad); font-size: 13px; min-height: 18px; margin-bottom: 10px; }
.btn {
  display: inline-block; width: 100%; padding: 13px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 20px rgba(10, 113, 227, .35);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(10, 113, 227, .42); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- chrome ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
}
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 13px 20px; display: flex; align-items: center; gap: 26px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 15px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .15s; }
.nav a:hover { color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.userbox { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.userbox button {
  border: 1px solid var(--hairline); background: rgba(255,255,255,.6); color: var(--muted);
  padding: 7px 14px; border-radius: 10px; font-size: 13px; cursor: pointer; transition: all .15s;
}
.userbox button:hover { color: var(--ink); border-color: rgba(11,18,32,.18); }
.subnav {
  position: sticky; top: 57px; z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
}
.subnav-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; gap: 24px; overflow-x: auto; }
.subnav a { padding: 13px 2px; font-size: 14px; font-weight: 600; color: var(--muted);
            border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s; }
.subnav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.main { max-width: 1120px; margin: 0 auto; padding: 30px 20px 70px; }
.main > div[id^="view-"] { animation: fadeUp .3s ease both; }
.h1 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 20px; }

/* ---------- cards & stats ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { padding: 18px 20px; }
.stat .cap { font-size: 12px; }
.stat .num { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-top: 4px; }
.card .cap { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.card .big { font-size: 32px; font-weight: 800; letter-spacing: -.8px; }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.section { margin-top: 28px; }
.section h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.2px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { margin: 0; }
.ghost-btn {
  border: 1px solid var(--hairline); background: rgba(255,255,255,.55); color: var(--muted);
  padding: 7px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.ghost-btn:hover { color: var(--accent); border-color: var(--accent-2); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table.tx, table.assets { width: 100%; border-collapse: collapse; }
table.tx th, table.assets th {
  position: sticky; top: 0; text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: .6px; color: var(--faint); font-weight: 600; padding: 10px 12px;
  border-bottom: 1px solid var(--hairline); background: transparent;
}
table.tx td, table.assets td { padding: 13px 12px; font-size: 14px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
table.tx tr:last-child td, table.assets tr:last-child td { border-bottom: 0; }
table.tx tbody tr, table.assets tbody tr { transition: background .12s; }
table.tx tbody tr:hover, table.assets tbody tr:hover { background: rgba(255,255,255,.55); }
tr.clickable { cursor: pointer; }
.amt-pos { color: var(--good); font-weight: 650; }
.amt-neg { color: var(--bad); font-weight: 650; }
.empty { color: var(--muted); font-size: 14px; padding: 30px 0; text-align: center; }
.hash-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 12px;
  background: rgba(11,18,32,.05); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 4px 8px; color: var(--muted);
}
.hash-chip a { font-size: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
}
.badge-good { background: var(--good-soft); color: var(--good); }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
        background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pill-soon { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px;
             background: rgba(11,18,32,.05); color: var(--faint); font-weight: 600; border: 1px solid var(--hairline); }

/* assets */
.assets-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.assets-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.assets-head label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.coin-cell { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.coin-dot { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: inline-flex;
            align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none;
            box-shadow: inset 0 -2px 5px rgba(0,0,0,.18), 0 2px 6px rgba(11,18,32,.12); }
.qty-cell b { display: block; font-weight: 700; }
.qty-cell small { color: var(--muted); }
.alloc-bar { display: block; width: 90px; height: 5px; border-radius: 4px; background: rgba(11,18,32,.07); margin-top: 6px; overflow: hidden; }
.alloc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 4px; transition: width .4s ease; }
.act-btns { display: flex; gap: 7px; }
.act-btns button {
  width: 33px; height: 33px; border-radius: 50%; border: 1px solid var(--hairline);
  background: rgba(255,255,255,.65); cursor: pointer; font-size: 14px; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.act-btns button:hover { border-color: var(--accent-2); color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(10,113,227,.18); }
.act-btns button:disabled { opacity: .32; cursor: default; }
.act-btns button:disabled:hover { border-color: var(--hairline); color: var(--ink); transform: none; box-shadow: none; }

/* mini transactions */
.tx-mini { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.tx-mini:last-child { border-bottom: 0; }
.tx-mini .ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(11,18,32,.05);
               display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tx-mini .grow { flex: 1; min-width: 0; }
.tx-mini .t { font-weight: 600; display: block; }
.tx-mini .d { color: var(--faint); font-size: 12px; }
.tx-mini .amt { text-align: right; font-weight: 700; }

/* ---------- pickers & forms ---------- */
.cols { display: grid; grid-template-columns: 350px 1fr; gap: 16px; align-items: start; }
@media (max-width: 880px) { .cols { grid-template-columns: 1fr; } }
.picker { position: relative; max-width: 560px; }
.picker-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 15px;
  border: 1px solid var(--hairline); border-radius: 14px;
  background: rgba(255,255,255,.7); cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink);
  transition: border .15s, box-shadow .15s;
}
.picker-btn:hover { border-color: rgba(11,18,32,.18); }
.picker-btn .grow { flex: 1; text-align: left; }
.picker-btn .bal { font-weight: 700; }
.picker-btn .chev { color: var(--faint); }
.picker-menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 10px; display: none;
  animation: fadeUp .18s ease both;
}
.picker-menu.open { display: block; }
.picker-search { width: 100%; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px;
                 font-size: 14px; outline: none; margin-bottom: 8px; background: rgba(255,255,255,.8); }
.picker-search:focus { border-color: var(--accent-2); }
.picker-list { max-height: 270px; overflow-y: auto; }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 10px 9px; border-radius: 10px;
               cursor: pointer; font-size: 14px; font-weight: 600; transition: background .12s; }
.picker-item:hover { background: rgba(11,18,32,.05); }
.picker-item .grow { flex: 1; }
.picker-item .r { color: var(--muted); font-weight: 500; font-size: 13px; }
.picker-item.disabled { opacity: .45; cursor: default; }
.form-label { display: block; font-size: 15px; font-weight: 700; margin: 24px 0 4px; }
.form-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.text-input {
  width: 100%; max-width: 560px; padding: 13px 15px; border: 1px solid var(--hairline);
  border-radius: 14px; font-size: 15px; outline: none; background: rgba(255,255,255,.7); color: var(--ink);
  transition: border .15s, box-shadow .15s;
}
.text-input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.amount-wrap { position: relative; max-width: 560px; }
.amount-wrap .all { position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
                    border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; font-size: 13px; }
.btn-row { display: flex; gap: 12px; margin-top: 26px; max-width: 560px; }
.btn-secondary { flex: 1; padding: 13px; border: 1px solid var(--hairline); border-radius: 12px;
                 background: rgba(255,255,255,.65); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-secondary:hover { border-color: rgba(11,18,32,.2); }
.btn-primary2 {
  flex: 1; padding: 13px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 20px rgba(10,113,227,.3); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-primary2:hover { transform: translateY(-1px); }
.btn-primary2:disabled { opacity: .55; transform: none; }
.seg { display: inline-flex; background: rgba(11,18,32,.06); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 9px 17px; border-radius: 9px;
              font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11,18,32,.10); }
.swap-circle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hairline);
               background: rgba(255,255,255,.7); font-size: 16px; margin: 10px 0; }
.note { border: 1px solid var(--glass-line); background: var(--glass); border-radius: 14px; padding: 14px 16px;
        -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
        font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; display: flex; gap: 10px; }
.note .ic { flex: none; }
.note-inline { margin-top: 14px; font-size: 13.5px; border-radius: 12px; padding: 12px 14px; display: none; max-width: 560px; }
.note-inline.warn { display: block; background: rgba(255, 204, 0, .14); border: 1px solid rgba(255, 204, 0, .35); color: #7a5b00; }
.note-inline.ok { display: block; background: var(--good-soft); border: 1px solid rgba(52,199,89,.35); color: var(--good); }

/* receive */
.netpick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.receive { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.receive img { border: 1px solid var(--glass-line); border-radius: 16px; background: #fff; padding: 6px; box-shadow: var(--shadow-soft); }
.addr-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.addr-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.addr { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 13.5px;
        background: rgba(11,18,32,.05); border: 1px solid var(--hairline); padding: 12px 14px; border-radius: 12px;
        word-break: break-all; max-width: 520px; }
.copy-btn { border: 1px solid var(--hairline); background: rgba(255,255,255,.7); padding: 11px 17px; border-radius: 12px;
            font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); white-space: nowrap; transition: all .15s; }
.copy-btn:hover { border-color: var(--accent-2); color: var(--accent); }
.copy-btn.copied { border-color: var(--good); color: var(--good); }
.hint { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.55; }

/* ---------- sparkline ---------- */
.spark-wrap { position: relative; }
.spark-tip {
  position: absolute; pointer-events: none; display: none;
  background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: 10px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft); padding: 7px 11px; font-size: 12px; white-space: nowrap;
  transform: translate(-50%, -130%); z-index: 5;
}
.spark-tip b { display: block; font-size: 13px; }

/* ---------- transaction sheet ---------- */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(11, 18, 32, .28); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 92vw); z-index: 95;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  backdrop-filter: blur(40px) saturate(190%);
  border-left: 1px solid var(--glass-line);
  box-shadow: -18px 0 60px rgba(11, 18, 32, .18);
  transform: translateX(102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  padding: 26px 26px 40px; overflow-y: auto;
}
.sheet.open { transform: none; }
.sheet-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%;
               border: 1px solid var(--hairline); background: rgba(255,255,255,.6); font-size: 15px; cursor: pointer; color: var(--muted); }
.sheet-amount { font-size: 30px; font-weight: 800; letter-spacing: -.6px; margin: 26px 0 6px; }
.sheet-usd { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.sheet-rows { margin-top: 22px; border-top: 1px solid var(--hairline); }
.sheet-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.sheet-row .k { color: var(--muted); flex: none; }
.sheet-row .v { text-align: right; font-weight: 600; word-break: break-all; }
.sheet-hash { margin-top: 18px; }
.sheet-hash .addr { max-width: 100%; font-size: 12px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 12px; }
@media (max-width: 640px) { .topbar-in { flex-wrap: wrap; gap: 10px; } .userbox { margin-left: auto; } }

/* real coin logos */
.coin-img { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: contain;
            background: #fff; box-shadow: 0 2px 6px rgba(11,18,32,.14); }

/* ============================================================
   Mobile — proportional on every device.
   Desktop keeps the top nav; phones get an iOS-style glass tab bar.
   ============================================================ */
.tabbar { display: none; }
.tx-mobile { display: none; }

@media (max-width: 760px) {
  .h1 { font-size: 22px; margin-bottom: 16px; }
  .main { padding: 20px 14px calc(96px + env(safe-area-inset-bottom)); }
  .card { padding: 17px; border-radius: 18px; }
  .card .big { font-size: 27px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid .card:first-child { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .stat { padding: 15px 16px; }
  .stat .num { font-size: 20px; }

  /* chrome */
  .nav { display: none; }
  .topbar-in { padding: 12px 16px; gap: 12px; }
  .userbox { margin-left: auto; }
  .userbox span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .subnav { top: 53px; }
  .subnav-in { padding: 0 14px; gap: 18px; scrollbar-width: none; }
  .subnav-in::-webkit-scrollbar { display: none; }

  /* iOS-style bottom tab bar */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid var(--hairline);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 0; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--faint);
  }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a.active { color: var(--accent); }

  /* tables become cards */
  .tx-desktop { display: none; }
  .tx-mobile { display: block; }
  table.assets th:nth-child(3), table.assets td:nth-child(3),
  table.assets th:nth-child(4), table.assets td:nth-child(4),
  table.assets th:nth-child(5), table.assets td:nth-child(5) { display: none; }
  table.assets td { padding: 13px 10px; }
  .qty-cell { text-align: right; }
  .qty-cell b { font-size: 15px; }

  /* forms & touch targets */
  .field input, .text-input, .picker-search { font-size: 16px; }  /* stops iOS focus zoom */
  .picker-btn { font-size: 16px; padding: 14px 15px; }
  .btn, .btn-primary2, .btn-secondary { padding: 15px; font-size: 16px; }
  .copy-btn, .ghost-btn { padding: 12px 16px; }
  .act-btns button { width: 40px; height: 40px; }
  .receive { gap: 18px; }
  .receive img { width: 152px; height: 152px; }
  .btn-row { flex-direction: row; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 11px 8px; font-size: 12.5px; }
  .sec-head { flex-wrap: wrap; gap: 10px; }

  /* transaction sheet slides from the bottom on phones */
  .sheet {
    top: auto; bottom: 0; right: 0; left: 0; width: 100%; height: auto; max-height: 86vh;
    border-left: 0; border-top: 1px solid var(--glass-line);
    border-radius: 24px 24px 0 0;
    transform: translateY(104%);
    padding: 22px 20px calc(30px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 60px rgba(11, 18, 32, .22);
  }
  .sheet.open { transform: none; }
  .sheet-amount { font-size: 26px; margin-top: 20px; }
  .cols { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .grid, .stat-grid { grid-template-columns: 1fr; }
  .userbox span { display: none; }
}

/* transaction type badges */
.type-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650;
              padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.type-in { background: var(--good-soft); color: var(--good); }
.type-out { background: var(--bad-soft); color: var(--bad); }
.type-move { background: var(--accent-soft); color: var(--accent); }
.type-neutral { background: rgba(11,18,32,.06); color: var(--muted); }

/* hash chip: link + copy */
.hash-chip { padding: 0; overflow: hidden; }
.hash-chip a.hash-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
                         color: var(--accent); font-family: inherit; }
.hash-chip a.hash-link:hover { background: var(--accent-soft); }
.hash-copy { border: 0; border-left: 1px solid var(--hairline); background: transparent; cursor: pointer;
             padding: 5px 9px; font-size: 12px; color: var(--muted); font-family: inherit; }
.hash-copy:hover { color: var(--accent); background: var(--accent-soft); }
.hash-copy.done { color: var(--good); }

/* transaction sheet v2 — reference layout */
.sheet-head { display: flex; align-items: flex-start; gap: 13px; margin-top: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.sheet-head .ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(11,18,32,.05);
                  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.sheet-head .grow { flex: 1; min-width: 0; }
.sheet-head .t { font-size: 17px; font-weight: 700; }
.sheet-head .n { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.sheet-head .amt { text-align: right; }
.sheet-head .amt b { display: block; font-size: 18px; font-weight: 800; }
.sheet-head .amt small { color: var(--muted); font-size: 13px; }
.sheet-field { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.sheet-field .fl { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.sheet-field .fv { font-size: 14.5px; font-weight: 600; word-break: break-all; display: flex; align-items: flex-start; gap: 10px; }
.sheet-field .fv .grow { flex: 1; min-width: 0; }
.sheet-field .fv.ok { color: var(--good); }
.sheet-field .fv a.hashline { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; font-weight: 500; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--hairline); flex: none;
            background: rgba(255,255,255,.65); cursor: pointer; font-size: 14px; color: var(--ink);
            display: inline-flex; align-items: center; justify-content: center; transition: all .15s; text-decoration: none; }
.icon-btn:hover { border-color: var(--accent-2); color: var(--accent); }
.icon-btn.done { border-color: var(--good); color: var(--good); }
.tx-day { font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 2px 6px; }
.tx-day:first-child { margin-top: 2px; }

/* history filter bar */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.fctl { position: relative; }
.fbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px;
        border: 1px solid var(--hairline); border-radius: 12px; background: rgba(255,255,255,.7);
        font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .15s; }
.fbtn:hover { border-color: rgba(11,18,32,.18); }
.fbtn.on { border-color: var(--accent-2); color: var(--accent); background: var(--accent-soft); }
.fmenu { position: absolute; z-index: 70; top: calc(100% + 8px); left: 0; min-width: 230px;
         background: var(--glass-strong);
         -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
         border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: var(--shadow);
         padding: 12px; display: none; animation: fadeUp .18s ease both; }
.fmenu.open { display: block; }
.fmenu .fm-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.fmenu label.fm-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px;
                      font-size: 13.5px; font-weight: 500; cursor: pointer; }
.fmenu label.fm-row:hover { background: rgba(11,18,32,.05); }
.fmenu input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
.fmenu .fm-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px;
                  padding-top: 10px; border-top: 1px solid var(--hairline); }
.fmenu .fm-clear { border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.fmenu .fm-apply { border: 0; border-radius: 10px; padding: 9px 18px; font-size: 13px; font-weight: 600;
                   background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; cursor: pointer; }
.fsearch { flex: 1; min-width: 180px; max-width: 320px; padding: 10px 15px; border: 1px solid var(--hairline);
           border-radius: 12px; font-size: 13.5px; outline: none; background: rgba(255,255,255,.7); color: var(--ink);
           transition: border .15s, box-shadow .15s; }
.fsearch:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
@media (max-width: 760px) { .fsearch { max-width: none; width: 100%; } }

/* affordance: every clickable row ends with a chevron */
.chev-r { color: var(--faint); font-size: 18px; font-weight: 600; line-height: 1;
          transition: color .15s, transform .15s; flex: none; }
tr.clickable td.chev-cell { width: 30px; text-align: right; padding-right: 16px; }
tr.clickable:hover .chev-r, .tx-mini.clickable:hover .chev-r { color: var(--accent); transform: translateX(3px); }
.tx-mini.clickable { cursor: pointer; border-radius: 10px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; transition: background .12s; }
.tx-mini.clickable:hover { background: rgba(11,18,32,.04); }

/* confirm modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(11,18,32,.32); z-index: 120;
                 display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { width: 100%; max-width: 430px; background: var(--glass-strong);
         -webkit-backdrop-filter: blur(40px) saturate(190%); backdrop-filter: blur(40px) saturate(190%);
         border: 1px solid var(--glass-line); border-radius: 22px; box-shadow: var(--shadow);
         padding: 26px 24px; animation: fadeUp .22s ease both; }
.modal h3 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 4px; }
.modal .m-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.modal .m-rows { border-top: 1px solid var(--hairline); margin-bottom: 18px; }
.modal .m-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0;
                border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.modal .m-row .k { color: var(--muted); flex: none; }
.modal .m-row .v { text-align: right; font-weight: 650; word-break: break-all; }
.modal .m-row .v.hl { color: var(--good); font-size: 15px; }
.modal .m-btns { display: flex; gap: 10px; }

/* convert layout */
.conv-row { display: flex; gap: 10px; align-items: stretch; }
.conv-row .amount-side { flex: 1; position: relative; min-width: 0; }
.conv-row .amount-side input { width: 100%; max-width: none; }
.conv-row .picker { width: 190px; max-width: 190px; flex: none; }
.conv-row .picker-btn { height: 100%; }
.conv-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px;
             color: var(--muted); margin-top: 7px; }
.conv-meta .err { color: var(--bad); font-weight: 600; display: none; }
.input-error { border-color: rgba(255,59,48,.55) !important; box-shadow: 0 0 0 4px var(--bad-soft) !important; }
.swap-circle { cursor: pointer; transition: transform .2s, border-color .15s, color .15s; }
.swap-circle:hover { border-color: var(--accent-2); color: var(--accent); transform: rotate(180deg); }
@media (max-width: 640px) { .conv-row { flex-direction: column; } .conv-row .picker { width: 100%; max-width: none; } }

/* convert: proper in-field "Convert all" + balanced proportions */
.amount-side { position: relative; }
.amount-side .text-input { padding-right: 108px; }
.amount-side .all { position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
                    border: 0; background: none; color: var(--accent); font-weight: 700;
                    cursor: pointer; font-size: 13px; white-space: nowrap; }
.conv-row .picker .picker-btn { padding: 13px 13px; }

/* convert page: form column must be wide enough for two-side amounts */
.cols-convert { display: grid; grid-template-columns: minmax(420px, 640px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 960px) { .cols-convert { grid-template-columns: 1fr; } }
.conv-meta span:last-child { margin-left: auto; }

/* keep the closed sheet fully out of the layer stack */
.sheet { visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
.sheet.open { visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); }

/* convert row: input and coin button share one exact height */
.conv-row { align-items: stretch; }
.conv-row .text-input, .conv-row .picker-btn { height: 58px; }
.conv-row .picker-btn { align-items: center; }

/* ---------- business: merchants ---------- */
.sec-head .btn-primary2 { flex: none; padding: 10px 16px; font-size: 13.5px; border-radius: 11px; }
.mch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.mch-card { padding: 18px; cursor: pointer; }
.mch-top { display: flex; align-items: flex-start; gap: 12px; }
.mch-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent-soft);
          color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.mch-ic svg { width: 21px; height: 21px; }
.mch-name { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.mch-url { font-size: 12.5px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.mch-top .grow { flex: 1; min-width: 0; }
.mch-meta { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding-top: 12px;
            border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--muted); }
.mch-meta b { color: var(--ink); font-weight: 650; }
.mch-meta .chev-r { margin-left: auto; }
.st-badge { display: inline-block; flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 10px;
            border-radius: 999px; white-space: nowrap; }
.st-active { background: var(--good-soft); color: var(--good); }
.st-draft { background: rgba(255, 149, 0, .14); color: #b25e00; }
.st-pending { background: rgba(255, 204, 0, .16); color: #7a5b00; }
.empty-cta { text-align: center; padding: 40px 24px; }
.empty-cta .t { font-size: 16px; font-weight: 700; }
.empty-cta .d { font-size: 13.5px; color: var(--muted); max-width: 460px; margin: 8px auto 18px; line-height: 1.55; }

/* verify block inside the merchant sheet */
.verify-box { background: rgba(255, 149, 0, .07); border: 1px solid rgba(255, 149, 0, .25);
              border-radius: 16px; padding: 18px; margin-top: 18px; }
.verify-box .vb-t { font-size: 14.5px; font-weight: 700; }
.verify-box .vb-d { font-size: 13px; color: var(--muted); margin: 6px 0 14px; line-height: 1.5; }
.v-step { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hairline);
          font-size: 13px; line-height: 1.6; }
.v-step .v-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(11,18,32,.07);
               font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.v-step .grow { min-width: 0; }
.v-step code { font-size: 12px; }
.verify-box .btn-primary2 { margin-top: 14px; }
.code-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 5px;
             background: rgba(11,18,32,.05); border: 1px solid var(--hairline); border-radius: 9px;
             padding: 7px 10px; cursor: pointer; transition: border-color .15s; }
.code-chip:hover { border-color: var(--accent-2); }
.code-chip code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
                  word-break: break-all; color: var(--ink); }
.code-chip .cc-ic { color: var(--faint); flex: none; font-size: 13px; }
.code-chip.done { border-color: var(--good); }
.code-chip.done .cc-ic { color: var(--good); }

/* one-time API key */
.key-box { background: rgba(11,18,32,.05); border: 1px solid var(--hairline); border-radius: 12px;
           padding: 14px 16px; margin: 6px 0 12px; }
.key-box code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
                font-size: 13.5px; word-break: break-all; }
.mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 13px; }
.modal-wide { max-width: 520px; }
.ghost-btn.sm { padding: 6px 12px; font-size: 12px; flex: none; }
.ghost-btn.done { border-color: var(--good); color: var(--good); }
.icon-btn.done { border-color: var(--good); color: var(--good); }
.sheet-actions { margin-top: 20px; }
.btn-danger-ghost { border: 1px solid rgba(255,59,48,.35); background: none; color: var(--bad);
                    padding: 11px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 650;
                    cursor: pointer; transition: all .15s; }
.btn-danger-ghost:hover { background: var(--bad-soft); }
#mch-modal .text-input { width: 100%; max-width: none; margin-top: 4px; }
#mch-modal .seg { width: 100%; margin-bottom: 6px; }
#mch-modal .seg button { flex: 1; }
#mch-modal .m-btns { margin-top: 18px; }
@media (max-width: 760px) {
  .mch-grid { grid-template-columns: 1fr; }
  .mch-meta { gap: 12px; }
}

/* ---------- hosted checkout ---------- */
.pay-body { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 28px 16px; }
.pay-wrap { width: 100%; max-width: 480px; margin: auto 0; }
.pay-brand { text-align: center; margin-bottom: 16px; }
.pay-brand .wordmark { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.pay-brand .wordmark span { color: var(--accent); }
.pay-card { padding: 24px; }
.pay-foot { text-align: center; font-size: 12px; color: var(--faint); margin-top: 14px; }
.pay-head { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); margin-bottom: 16px; }
.pay-mch { font-size: 13px; color: var(--muted); font-weight: 600; }
.pay-sum { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin-top: 2px; }
.pay-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pay-order { font-size: 12px; color: var(--faint); margin-top: 2px; }
.pay-step { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.pay-nets { display: grid; gap: 8px; }
.pay-net { text-align: left; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--hairline);
           background: rgba(255,255,255,.6); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.pay-net:hover { border-color: var(--accent-2); color: var(--accent); }
.pay-net:disabled { opacity: .55; }
.pay-timer-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px;
                 color: var(--muted); margin-bottom: 12px; }
.pay-timer-row b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-exact { background: var(--accent-soft); border: 1px solid rgba(10,132,255,.25); border-radius: 14px;
             padding: 14px 16px; text-align: center; }
.pe-l { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pe-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pe-amt { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.pe-net { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pay-qr { text-align: center; margin: 16px 0 10px; }
.pay-qr img { border: 1px solid var(--glass-line); border-radius: 16px; background: #fff; padding: 6px;
              box-shadow: var(--shadow-soft); }
.pay-addr { flex: 1; max-width: none; }
.pay-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 14px; }
.pay-done { text-align: center; padding: 18px 0 6px; }
.pd-ic { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 12px; font-size: 26px;
         display: flex; align-items: center; justify-content: center; }
.pd-ic.ok { background: var(--good-soft); color: var(--good); }
.pd-ic.bad { background: var(--bad-soft); color: var(--bad); }
.pd-t { font-size: 18px; font-weight: 800; }
.pd-d { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.pd-hash { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 11.5px;
           color: var(--faint); word-break: break-all; margin-top: 10px; }
.pay-return { display: inline-block; margin-top: 18px; text-decoration: none; text-align: center; }
@media (max-width: 520px) { .pay-card { padding: 18px; } .pay-sum { font-size: 28px; } }
.wh-err { display: block; color: var(--bad); font-size: 12px; margin-top: 5px; min-height: 0; }

/* ---------- API docs ---------- */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; align-items: start; }
.doc-main { min-width: 0; }
.doc-card { padding: 24px; margin-bottom: 18px; }
.doc-card h2 { font-size: 17px; font-weight: 800; letter-spacing: -.2px; margin-bottom: 10px; }
.doc-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 8px 0; }
.doc-card p b { color: var(--ink); }
.doc-card p code, .doc-note code, .doc-table code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 12px;
  background: rgba(11,18,32,.05); border: 1px solid var(--hairline); border-radius: 6px; padding: 1.5px 6px;
}
.doc-kv { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 13px; flex-wrap: wrap; }
.doc-kv span { color: var(--muted); width: 120px; flex: none; }
.doc-kv code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 12.5px;
               background: rgba(11,18,32,.05); border: 1px solid var(--hairline); border-radius: 8px; padding: 6px 10px; }
.doc-note { font-size: 12.5px !important; }
.doc-endpoint { display: flex; align-items: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.doc-endpoint code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 13.5px; font-weight: 600; }
.doc-method { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; padding: 4px 9px; border-radius: 7px;
              background: var(--accent-soft); color: var(--accent); }
.doc-method.get { background: var(--good-soft); color: var(--good); }
.doc-sub { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .4px; }
.doc-code { position: relative; background: rgba(11,18,32,.05); border: 1px solid var(--hairline);
            border-radius: 12px; margin: 10px 0; }
.doc-code pre { padding: 14px 16px; overflow-x: auto; }
.doc-code code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 12.5px;
                 line-height: 1.55; color: var(--ink); }
.doc-copy { position: absolute; top: 8px; right: 8px; border: 1px solid var(--hairline);
            background: rgba(255,255,255,.8); color: var(--muted); font-size: 11.5px; font-weight: 600;
            padding: 5px 10px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.doc-copy:hover { color: var(--accent); border-color: var(--accent-2); }
.doc-copy.copied { color: var(--good); border-color: var(--good); }
.doc-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.doc-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
                color: var(--faint); font-weight: 700; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--hairline); }
.doc-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hairline); color: var(--muted); vertical-align: top; }
.doc-table td:first-child { white-space: nowrap; color: var(--ink); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-steps { margin: 10px 0 4px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.doc-steps b { color: var(--ink); }
.doc-toc { position: sticky; top: 84px; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.doc-toc .cap { margin-bottom: 8px; }
.doc-toc a { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 8px; transition: all .15s; }
.doc-toc a:hover { color: var(--accent); background: var(--accent-soft); }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr; } .doc-side { display: none; } }

/* ---------- merchant payments ---------- */
.pmt-chips { display: inline-flex; background: rgba(11,18,32,.06); border-radius: 12px; padding: 4px; gap: 2px; margin-bottom: 12px; }
.pmt-chips button { border: 0; background: transparent; padding: 8px 15px; border-radius: 9px;
                    font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .18s; }
.pmt-chips button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11,18,32,.10); }
.st-muted { background: rgba(11,18,32,.07); color: var(--muted); }
.sheet-field .fv .ok { color: var(--good); }
@media (max-width: 760px) {
  .pmt-chips { width: 100%; }
  .pmt-chips button { flex: 1; padding: 10px 6px; font-size: 12.5px; }
}

/* ---------- withdrawals ---------- */
.st-bad { background: var(--bad-soft); color: var(--bad); }
.wd-row { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.wd-row:last-child { border-bottom: 0; }
.wd-row .wd-sub { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.wd-row .wd-right { text-align: right; flex: none; }
.adm-actions { display: inline-flex; gap: 8px; }
.sm-btn { flex: none !important; padding: 8px 13px !important; font-size: 12.5px !important; border-radius: 9px !important; }

/* ---------- admin panel ---------- */
.adm-layout { max-width: 1220px; margin: 0 auto; padding: 26px 20px 70px; display: grid;
              grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.adm-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 3px;
            background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px;
            -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
            padding: 10px; box-shadow: var(--shadow-soft); }
.adm-side a { padding: 9px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
              color: var(--muted); transition: all .15s; display: flex; align-items: center; gap: 8px; }
.adm-side a:hover { color: var(--ink); }
.adm-side a.active { background: var(--accent-soft); color: var(--accent); }
.adm-pill { background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700;
            border-radius: 999px; padding: 1px 7px; margin-left: auto; }
.adm-main { min-width: 0; }
.adm-main .tx th, .adm-main .tx td { font-size: 13px; }
.s-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.s-row:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .adm-layout { grid-template-columns: 1fr; }
  .adm-side { position: static; flex-direction: row; overflow-x: auto; }
  .adm-side a { white-space: nowrap; }
}

/* The hidden attribute must always win, even over display:flex/grid classes. */
[hidden] { display: none !important; }
.seg-mini { padding: 3px; }
.seg-mini button { padding: 7px 13px !important; font-size: 12.5px !important; }

/* ---------- watchdog alerts ---------- */
.adm-alerts { border-color: rgba(255,59,48,.35); margin-bottom: 16px; }
.alert-row { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 13.5px; flex-wrap: wrap; }
.alert-row b { color: var(--bad); text-transform: capitalize; flex: none; }
.alert-row span { flex: 1; min-width: 200px; }
.alert-row small { color: var(--faint); }

/* ============================================================
   Landing + auth split with the floating product showcase
   ============================================================ */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- landing chrome ---------- */
.fp-top { position: sticky; top: 0; z-index: 60; background: var(--glass-strong);
          -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
          border-bottom: 1px solid var(--hairline); }
.fp-top-in { max-width: 1140px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 14px; }
.fp-top-in .grow { flex: 1; }
.fp-top .ghost-btn { font-size: 13.5px; padding: 9px 16px; }
.fp-top .btn-primary2 { flex: none; padding: 10px 18px; font-size: 13.5px; border-radius: 11px; }

.fp-main { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---------- hero ---------- */
.fp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px;
           align-items: center; padding: 74px 0 60px; }
.fp-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
             color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px;
             letter-spacing: .3px; animation: fadeUp .5s ease both; }
.fp-h1 { font-size: 54px; font-weight: 800; letter-spacing: -1.8px; line-height: 1.06; margin: 18px 0 18px;
         animation: fadeUp .55s .05s ease both; }
.fp-h1 span { color: var(--accent); }
.fp-sub { font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 480px; margin-bottom: 26px;
          animation: fadeUp .6s .1s ease both; }
.fp-cta { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp .65s .15s ease both; }
.fp-cta .btn-primary2 { flex: none; padding: 15px 26px; font-size: 15.5px; border-radius: 14px; }
.fp-cta .btn-secondary { flex: none; padding: 15px 26px; font-size: 15.5px; border-radius: 14px;
                         border: 1px solid var(--hairline); background: rgba(255,255,255,.65); cursor: pointer;
                         font-weight: 600; color: var(--ink); text-decoration: none; display: inline-block; }
.fp-cta .btn-secondary:hover { border-color: rgba(11,18,32,.2); }
.fp-trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; color: var(--faint);
            animation: fadeUp .7s .2s ease both; }
.fp-trust b { color: var(--muted); font-weight: 650; }

/* ---------- showcase (hero right + auth right) ---------- */
.fp-show { position: relative; min-height: 540px; }
.fp-deck { position: absolute; inset: 0; transform: rotate(-5deg); }
.fp-cardlet { position: absolute; background: var(--glass-strong);
              -webkit-backdrop-filter: blur(26px) saturate(185%); backdrop-filter: blur(26px) saturate(185%);
              border: 1px solid var(--glass-line); border-radius: 18px; box-shadow: var(--shadow);
              padding: 16px 18px; animation: floatY 7s ease-in-out infinite; }
.fp-cardlet .cap { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.fp-stat { top: 6px; left: 4%; width: 235px; animation-delay: 0s; z-index: 1; }
.fp-stat .t { font-size: 16px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; }
.fp-pie { width: 74px; height: 74px; border-radius: 50%; margin-top: 12px;
          background: conic-gradient(#0a84ff 0 38%, #26a17b 38% 66%, #f7931a 66% 84%, #ef0027 84% 100%); 
          position: relative; }
.fp-pie::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #fff; }
.fp-coinrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hairline);
              font-size: 13.5px; font-weight: 650; }
.fp-coinrow:first-of-type { border-top: 0; }
.fp-coinrow img { width: 26px; height: 26px; }
.fp-coinrow .pct { margin-left: auto; color: var(--muted); font-weight: 600; }
.fp-coins { top: 118px; right: 2%; width: 238px; animation-delay: 1.2s; z-index: 2; }
.fp-paid { top: 328px; left: 0; width: 235px; animation-delay: 2.1s; display: flex; gap: 12px; align-items: center; z-index: 3; }
.fp-paid .ok { width: 40px; height: 40px; border-radius: 50%; background: var(--good-soft); color: var(--good);
               display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.fp-paid .t { font-size: 14px; font-weight: 750; }
.fp-paid .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fp-earn { top: 268px; right: 12%; z-index: 1; padding: 10px 16px; font-size: 14.5px; font-weight: 800; color: var(--good);
           background: rgba(232, 245, 237, .9); border: 1px solid rgba(52,199,89,.35); animation-delay: 3s; }
.fp-webhook { top: 424px; right: 6%; padding: 10px 14px; font-size: 12.5px; font-weight: 650; color: var(--muted);
              animation-delay: 4s; z-index: 2; }
.fp-webhook b { color: var(--ink); }
.fp-cursor { position: absolute; top: 300px; right: 26%; width: 30px; height: 30px; color: var(--accent);
             filter: drop-shadow(0 4px 10px rgba(10,113,227,.4)); animation: floatY 5s 1.5s ease-in-out infinite; }

/* ---------- marquee of coins ---------- */
.fp-marq { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
           background: rgba(255,255,255,.45); overflow: hidden; padding: 18px 0; }
.fp-marq-in { display: flex; gap: 46px; width: max-content; animation: marquee 36s linear infinite; }
.fp-marq .coin { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.fp-marq img { width: 26px; height: 26px; }

/* ---------- sections ---------- */
.fp-sec { padding: 66px 0 8px; }
.fp-sec-t { font-size: 32px; font-weight: 800; letter-spacing: -.8px; text-align: center; }
.fp-sec-d { font-size: 15.5px; color: var(--muted); text-align: center; max-width: 560px; margin: 12px auto 38px; line-height: 1.6; }
.fp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fp-feat { padding: 24px; transition: transform .18s ease, box-shadow .18s ease; }
.fp-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fp-feat .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent);
               display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.fp-feat .ic svg { width: 22px; height: 22px; }
.fp-feat .t { font-size: 16px; font-weight: 750; margin-bottom: 7px; }
.fp-feat .d { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.fp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.fp-step { padding: 26px 24px; position: relative; }
.fp-step .n { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, var(--accent-2), var(--accent));
              color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center;
              margin-bottom: 14px; box-shadow: 0 6px 16px rgba(10,113,227,.35); }
.fp-step .t { font-size: 15.5px; font-weight: 750; margin-bottom: 6px; }
.fp-step .d { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.fp-cta-big { margin: 70px 0 26px; padding: 52px 30px; text-align: center; border-radius: 26px; }
.fp-cta-big .t { font-size: 30px; font-weight: 800; letter-spacing: -.7px; }
.fp-cta-big .d { color: var(--muted); font-size: 15px; margin: 10px auto 24px; max-width: 460px; }
.fp-foot { padding: 26px 0 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
           color: var(--faint); font-size: 13px; }
.fp-foot a { color: var(--muted); font-weight: 600; }
.fp-foot .grow { flex: 1; }

/* ---------- auth split ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-left { display: flex; align-items: center; justify-content: center; padding: 40px 26px; }
.auth-left .auth-card { box-shadow: none; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; max-width: 400px; width: 100%; animation: fadeUp .4s ease both; }
.auth-right { position: relative; overflow: hidden; background:
    radial-gradient(60% 50% at 30% 20%, rgba(10,132,255,.16), transparent 65%),
    radial-gradient(55% 45% at 75% 75%, rgba(94,92,230,.14), transparent 60%),
    rgba(255,255,255,.35);
  border-left: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; }
.auth-right .fp-show { width: 82%; max-width: 460px; }
.auth-join { position: absolute; bottom: 7%; left: 50%; transform: translateX(-50%) rotate(-4deg);
             font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); white-space: nowrap; }
.auth-join span { color: var(--accent); }
@media (max-width: 940px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-right { display: none; }
  .fp-hero { grid-template-columns: 1fr; padding: 48px 0 30px; }
  .fp-show { min-height: 420px; margin-top: 10px; }
  .fp-h1 { font-size: 38px; }
  .fp-feats, .fp-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Landing depth pass: layered shadows, glass edges, micro-detail
   ============================================================ */
body.fp-landing::before { background:
    radial-gradient(46% 40% at 14% 6%, rgba(10, 132, 255, .20), transparent 62%),
    radial-gradient(40% 36% at 88% 10%, rgba(94, 92, 230, .16), transparent 60%),
    radial-gradient(48% 44% at 80% 86%, rgba(50, 173, 230, .13), transparent 62%),
    radial-gradient(38% 38% at 10% 88%, rgba(52, 199, 89, .10), transparent 60%);
}
body.fp-landing::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(11, 18, 32, .055) 1px, transparent 1.2px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 40%, rgba(0,0,0,.65));
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 40%, rgba(0,0,0,.65)); }

.fp-sec-label { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 2.4px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.fp-sec-label::before, .fp-sec-label::after { content: "—"; color: rgba(10,132,255,.35); margin: 0 10px; }

/* deep layered card treatment for landing blocks */
.fp-feat, .fp-step, .fp-cta-big, .fp-mini-checkout {
  position: relative;
  background: linear-gradient(178deg, rgba(255,255,255,.92), rgba(248,250,254,.78) 58%, rgba(242,246,252,.72));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow:
    0 1px 1.5px rgba(11, 18, 32, .05),
    0 10px 28px -10px rgba(20, 40, 80, .18),
    0 34px 70px -28px rgba(10, 113, 227, .22);
}
.fp-feat::before, .fp-step::before, .fp-cta-big::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(165deg, rgba(255,255,255,.95), rgba(255,255,255,0) 38%);
  opacity: .8;
}
.fp-feat::after, .fp-step::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, .13), transparent);
  pointer-events: none; transition: opacity .25s; opacity: .65;
}
.fp-feat:hover { transform: translateY(-5px); box-shadow:
    0 2px 3px rgba(11, 18, 32, .06),
    0 18px 40px -12px rgba(20, 40, 80, .24),
    0 48px 90px -30px rgba(10, 113, 227, .30); }
.fp-feat:hover::after { opacity: 1; }
.fp-feat .ic {
  background: linear-gradient(160deg, #eaf3ff, #d8e9ff 55%, #cfe3ff);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px -6px rgba(10, 113, 227, .35);
}
.fp-feat .t { letter-spacing: -.3px; }

/* wide feature with the mini checkout mock */
.fp-feat-wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: center; }
.fp-mini-checkout { border-radius: 16px; padding: 16px 18px; transform: rotate(1.6deg);
  animation: floatY 8s ease-in-out infinite; }
.fp-mini-checkout .mc-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.fp-mini-checkout .mc-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.fp-mini-checkout .mc-amt { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin-top: 4px; }
.fp-mini-checkout .mc-amt small { font-size: 14px; font-weight: 700; color: var(--muted); }
.fp-mini-checkout .mc-net { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650;
  color: var(--muted); margin-top: 8px; }
.fp-mini-checkout .mc-net img { width: 18px; height: 18px; }
.fp-mini-checkout .mc-addr { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  background: rgba(11,18,32,.05); border: 1px solid var(--hairline); border-radius: 9px; padding: 8px 10px;
  margin-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.fp-mini-checkout .mc-copy { color: var(--accent); }
.fp-mini-checkout .mc-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.fp-mini-checkout .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(10,132,255,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(10,132,255,.45); } 70% { box-shadow: 0 0 0 9px rgba(10,132,255,0); } 100% { box-shadow: 0 0 0 0 rgba(10,132,255,0); } }

/* steps: connected rail + ringed numbers */
.fp-steps { position: relative; }
.fp-step .n { position: relative; box-shadow: 0 10px 22px -8px rgba(10,113,227,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.fp-step .n::after { content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px dashed rgba(10, 132, 255, .38); }
.fp-step:not(:last-child) .n::before { content: ""; position: absolute; left: calc(100% + 12px); top: 50%;
  width: 60px; height: 2px; background: repeating-linear-gradient(90deg, rgba(10,132,255,.4) 0 7px, transparent 7px 13px); }
.fp-step .d b { color: var(--ink); }

/* big CTA: inner glow + floating coins */
.fp-cta-big { overflow: hidden; }
.fp-cta-big::after { content: ""; position: absolute; left: 50%; bottom: -140px; width: 560px; height: 300px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, .18), transparent); pointer-events: none; }
.cta-coin { position: absolute; width: 42px; height: 42px; opacity: .9; animation: floatY 7s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(20, 40, 80, .28)); }
.cta-coin-a { left: 7%; top: 22%; }
.cta-coin-b { right: 8%; top: 18%; animation-delay: 1.4s; width: 36px; height: 36px; }
.cta-coin-c { left: 14%; bottom: 18%; animation-delay: 2.6s; width: 32px; height: 32px; }
.cta-coin-d { right: 15%; bottom: 24%; animation-delay: 3.4s; width: 30px; height: 30px; }
.fp-cta-big .btn-primary2 { box-shadow: 0 10px 26px rgba(10, 113, 227, .45), 0 30px 60px -20px rgba(10, 113, 227, .5); }

/* marquee edge fade + card polish */
.fp-marq { position: relative; }
.fp-marq::before, .fp-marq::after { content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none; }
.fp-marq::before { left: 0; background: linear-gradient(90deg, #eef3fa, transparent); }
.fp-marq::after { right: 0; background: linear-gradient(270deg, #eef3fa, transparent); }

/* hero CTA weight */
.fp-cta .btn-primary2 { box-shadow: 0 8px 22px rgba(10, 113, 227, .42), 0 26px 52px -18px rgba(10, 113, 227, .48); }
.fp-cta .btn-secondary { box-shadow: 0 6px 18px -6px rgba(20, 40, 80, .18); }
.fp-h1 { text-shadow: 0 2px 24px rgba(255,255,255,.6); }

@media (max-width: 940px) {
  .fp-feat-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .fp-step:not(:last-child) .n::before { display: none; }
  .cta-coin { display: none; }
}

/* wide API card with a live-looking snippet */
.fp-feat-code { grid-column: span 3; display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: center; }
.fp-snippet { border-radius: 16px; background: linear-gradient(170deg, #10192b, #0b1220 70%);
  border: 1px solid rgba(255,255,255,.08); padding: 16px 18px; overflow-x: auto;
  box-shadow: 0 1px 1.5px rgba(11,18,32,.2), 0 22px 48px -18px rgba(11, 18, 32, .55); }
.fp-snippet .win { display: flex; gap: 6px; margin-bottom: 12px; }
.fp-snippet .win i { width: 10px; height: 10px; border-radius: 50%; background: #2c3a52; }
.fp-snippet .win i:first-child { background: #ff5f57; } .fp-snippet .win i:nth-child(2) { background: #febc2e; }
.fp-snippet .win i:nth-child(3) { background: #28c840; }
.fp-snippet pre { margin: 0; }
.fp-snippet code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.7; color: #c9d6ea; }
.fp-snippet .c-k { color: #7cc0ff; } .fp-snippet .c-s { color: #8be08b; } .fp-snippet .c-d { color: #6b7a92; }
@media (max-width: 940px) { .fp-feat-code { grid-column: span 1; grid-template-columns: 1fr; } }

/* deck cardlets keep the deep-glass finish but stay absolutely positioned */
.fp-cardlet {
  background: linear-gradient(178deg, rgba(255,255,255,.94), rgba(248,250,254,.8) 58%, rgba(242,246,252,.74));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow:
    0 1px 1.5px rgba(11, 18, 32, .05),
    0 10px 28px -10px rgba(20, 40, 80, .2),
    0 34px 70px -28px rgba(10, 113, 227, .24);
}

/* hero benefit chips */
.fp-benefits { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; animation: fadeUp .7s .2s ease both; }
.fp-benefit { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink);
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95); border-radius: 999px; padding: 9px 15px;
  box-shadow: 0 1px 1.5px rgba(11,18,32,.05), 0 10px 22px -10px rgba(20,40,80,.18); }
.fp-benefit .tick { width: 17px; height: 17px; border-radius: 50%; background: var(--good-soft); color: var(--good);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; flex: none; }

/* perks cardlet in the deck + 4-col fair section */
.fp-perks { top: 388px; left: 10%; width: 150px; padding: 13px 16px; animation-delay: 2.6s; z-index: 2; }
.fp-perks .pr { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; padding: 4px 0; }
.fp-perks .tick { width: 16px; height: 16px; border-radius: 50%; background: var(--good-soft); color: var(--good);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex: none; }
.fp-feats-4 { grid-template-columns: repeat(4, 1fr); }
.fp-feat .ic-good { background: linear-gradient(160deg, #e8f5ec, #d3ecd9 60%); color: var(--good);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px -6px rgba(36, 138, 61, .35); }
@media (max-width: 940px) { .fp-feats-4 { grid-template-columns: 1fr; } }

/* ---------- notifications bell ---------- */
.bell-wrap { position: relative; margin-left: auto; }
.topbar-in .nav { flex: 1; }
.topbar-in .bell-wrap + .userbox { margin-left: 0; }
.bell { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hairline);
  background: rgba(255,255,255,.6); color: var(--muted); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; transition: all .15s; }
.bell svg { width: 19px; height: 19px; }
.bell:hover { color: var(--accent); border-color: var(--accent-2); }
.bell-badge { position: absolute; top: -4px; right: -5px; min-width: 17px; height: 17px; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.bell-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 372px; max-height: 480px;
  display: none; flex-direction: column; z-index: 90;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(30px) saturate(185%); backdrop-filter: blur(30px) saturate(185%);
  border: 1px solid var(--glass-line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  animation: fadeUp .18s ease both; }
.bell-menu.open { display: flex; }
.bm-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--hairline);
  font-size: 15px; font-weight: 800; }
.bm-count { background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.bm-readall { margin-left: auto; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 650; cursor: pointer; }
.bm-list { overflow-y: auto; padding: 4px 0; }
.bm-item { padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.bm-item:last-child { border-bottom: 0; }
.bm-item.unread { background: rgba(10, 132, 255, .07); }
.bm-date { font-size: 11.5px; color: var(--faint); margin-bottom: 3px; }
.bm-title { font-size: 14px; font-weight: 750; }
.bm-body { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; word-break: break-word; }
.bm-view { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 650;
  border: 1px solid var(--hairline); border-radius: 9px; padding: 6px 12px; background: rgba(255,255,255,.6); }
@media (max-width: 640px) {
  .bell-menu { position: fixed; left: 10px; right: 10px; top: 62px; width: auto; }
}

/* Fair by design — one seamless premium panel */
.fp-fair { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 26px; padding: 44px 14px;
  overflow: hidden; }
.fp-fair::after { content: ""; position: absolute; left: -60px; top: -80px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(10,132,255,.14), transparent); pointer-events: none; }
.fair-col { position: relative; padding: 4px 30px; }
.fair-col + .fair-col::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 32, .13), transparent); }
.fic { position: relative; width: 56px; height: 56px; border-radius: 50%; color: #fff; margin-bottom: 18px;
  background: linear-gradient(160deg, #55a9ff, #0a6ada 78%);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 28px -10px rgba(10, 113, 227, .6), inset 0 1.5px 0 rgba(255,255,255,.45); }
.fic::after { content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px solid rgba(10, 132, 255, .28); }
.fic svg { width: 25px; height: 25px; }
.fair-col .t { font-size: 17px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 9px; }
.fair-col .d { font-size: 13.5px; color: var(--muted); line-height: 1.68; }
@media (max-width: 940px) {
  .fp-fair { grid-template-columns: 1fr; padding: 10px 6px; }
  .fair-col { padding: 26px 22px; }
  .fair-col + .fair-col::before { left: 8%; right: 8%; top: 0; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(11,18,32,.13), transparent); }
}

/* ---------- public docs + legal ---------- */
.docs-layout { max-width: 1180px; margin: 0 auto; padding: 30px 22px 60px; display: grid;
  grid-template-columns: 230px minmax(0, 1fr); gap: 26px; align-items: start; }
.docs-side { position: sticky; top: 84px; max-height: calc(100vh - 108px); overflow-y: auto;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px;
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  padding: 14px; box-shadow: var(--shadow-soft); }
.docs-side .dn-group { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--faint); margin: 14px 6px 6px; }
.docs-side .dn-group:first-child { margin-top: 2px; }
.docs-side a { display: block; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); transition: all .15s; }
.docs-side a:hover { color: var(--ink); }
.docs-side a.active { background: var(--accent-soft); color: var(--accent); }
.docs-main { min-width: 0; }
.docs-main .doc-card { margin-bottom: 18px; scroll-margin-top: 90px; }
.docs-main h2 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 10px; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; max-height: none; }
}

.legal-wrap { max-width: 780px; margin: 0 auto; padding: 44px 22px 60px; }
.legal-wrap h1 { font-size: 34px; font-weight: 800; letter-spacing: -.8px; }
.legal-date { font-size: 13px; color: var(--faint); margin: 8px 0 26px; }
.legal-wrap h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin: 26px 0 8px; }
.legal-wrap p { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin-bottom: 10px; }
.legal-wrap p b { color: var(--ink); }

/* ---------- checkout v2 (Heleket-style two-step) ---------- */
.hk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.hk-cap { font-size: 15px; font-weight: 700; }
.hk-amt { font-size: 30px; font-weight: 800; letter-spacing: -.8px; }
.hk-amt small { font-size: 17px; font-weight: 700; }
.hk-mch { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hk-sep { height: 1px; background: var(--hairline); margin: 16px 0 4px; }
.hk-label { font-size: 13.5px; font-weight: 700; margin: 16px 0 8px; }
.hk-select { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 14px 15px; border-radius: 13px; border: 1.5px solid rgba(11,18,32,.16); background: #fff;
  font-size: 15px; font-weight: 650; color: var(--ink); cursor: pointer; transition: border .15s; }
.hk-select:hover { border-color: var(--accent-2); }
.hk-select img { width: 24px; height: 24px; }
.hk-select .hk-ph { color: var(--faint); font-weight: 500; }
.hk-select .grow { flex: 1; min-width: 0; }
.hk-select .chev { color: var(--faint); }
#hk-cur, #hk-net { position: relative; }
.hk-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 80;
  background: #ffffff; border: 1px solid rgba(11,18,32,.12); border-radius: 14px;
  box-shadow: 0 18px 44px -12px rgba(11, 18, 32, .3), 0 4px 12px -4px rgba(11,18,32,.14);
  overflow: hidden; animation: fadeUp .16s ease both; }
:root[data-theme="dark"] .hk-menu { background: #161c28; border-color: rgba(255,255,255,.12); }
.hk-search { display: flex; align-items: center; gap: 9px; margin: 10px; padding: 10px 13px;
  border: 1px solid var(--hairline); border-radius: 11px; background: rgba(255,255,255,.75); }
.hk-search span { color: var(--faint); font-size: 13px; }
.hk-search input { border: 0; outline: 0; background: none; font-size: 14px; width: 100%; color: var(--ink); }
.hk-list { max-height: 210px; overflow-y: auto; padding: 2px 6px 8px; }
.hk-item { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 10px;
  font-size: 14.5px; font-weight: 650; cursor: pointer; }
.hk-item:hover { background: var(--accent-soft); }
.hk-item img { width: 24px; height: 24px; }
.hk-item .grow { flex: 1; }
.hk-badge { font-size: 11px; font-weight: 700; color: #b25e00; background: rgba(255,149,0,.15);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hk-quote { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px;
  color: var(--muted); background: rgba(11,18,32,.045); border-radius: 12px; padding: 13px 15px; margin-top: 14px; }
.hk-quote b { color: var(--ink); font-size: 15px; }
.hk-quote.sub { margin-top: 6px; }
.hk-pay-btn { width: 100%; margin-top: 16px; padding: 16px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #232b3a, #0e1524); color: #fff; font-size: 15.5px; font-weight: 700;
  cursor: pointer; box-shadow: 0 10px 26px -8px rgba(11, 18, 32, .5); transition: transform .15s, opacity .15s; }
.hk-pay-btn:hover { transform: translateY(-1px); }
.hk-pay-btn:disabled { opacity: .4; transform: none; cursor: default; }
.pay-deadline { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.pd-clock { color: var(--good); font-weight: 700; font-size: 15px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hk-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hk-chip { font-size: 12.5px; font-weight: 650; color: var(--ink); background: rgba(11,18,32,.05);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 12px; }
.hk-chip.link { color: var(--accent); text-decoration: none; }
.hk-info { display: inline-block; font-size: 12.5px; font-weight: 650; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 6px 12px; margin-top: 8px; }
.hk-note { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 14px 0; }
.hk-payrow { display: flex; gap: 16px; align-items: stretch; }
.hk-qr { border: 1px solid var(--glass-line); border-radius: 16px; background: #fff; padding: 6px;
  box-shadow: var(--shadow-soft); flex: none; align-self: flex-start; }
.hk-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hk-field { position: relative; background: rgba(11,18,32,.045); border-radius: 13px; padding: 12px 44px 12px 14px; }
.hk-field .fl { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.hk-field .fv { font-size: 13.5px; font-weight: 650; word-break: break-all; line-height: 1.5; }
.hk-field .fv.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.hk-field .fv i { font-style: normal; color: var(--accent); font-weight: 700; }
.hk-copy { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px;
  border-radius: 9px; border: 1px solid var(--hairline); background: rgba(255,255,255,.8); color: var(--muted);
  cursor: pointer; transition: all .15s; }
.hk-copy:hover { color: var(--accent); border-color: var(--accent-2); }
.hk-copy.copied { color: var(--good); border-color: var(--good); }
.hk-back { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 650; }
.hk-warn { font-size: 13px; color: #7a5b00; background: rgba(255, 204, 0, .14);
  border: 1px solid rgba(255, 204, 0, .35); border-radius: 12px; padding: 12px 14px; margin-top: 14px; line-height: 1.55; }
@media (max-width: 560px) {
  .hk-payrow { flex-direction: column; align-items: center; }
  .hk-fields { width: 100%; }
}

/* ---------- payment widget modal ---------- */
.wdg-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: rgba(11,18,32,.045);
  border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.wdg-btn { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #0a84ff, #0071e3); border-radius: 12px; padding: 13px 22px;
  box-shadow: 0 8px 22px -6px rgba(10,113,227,.55); }
.wdg-btn svg { width: 18px; height: 18px; }
.wdg-amt { font-size: 13.5px; color: var(--muted); }
.wdg-code { position: relative; background: #0f1a2b; border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  margin: 6px 0 12px; overflow: hidden; }
.wdg-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.wdg-code pre, .wdg-code code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  line-height: 1.6; color: #c9d6ea; white-space: pre-wrap; word-break: break-all; }
.wdg-copy { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(255,255,255,.1) !important;
  color: #c9d6ea !important; border-color: rgba(255,255,255,.15) !important; }


/* ---------- admin tables polish ---------- */
.adm-main .tbl-wrap { padding: 6px 4px; }
.adm-main table.tx { width: 100%; border-collapse: separate; border-spacing: 0; }
.adm-main .tx th { position: sticky; top: 0; background: rgba(248,250,254,.9); z-index: 1;
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--faint);
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.adm-main .tx td { padding: 13px 14px; border-bottom: 1px solid var(--hairline); font-size: 13.5px; vertical-align: middle; }
.adm-main .tx tr:last-child td { border-bottom: 0; }
.adm-main .tx tbody tr:hover td, .adm-main .tx tr:hover td { background: rgba(10, 132, 255, .045); }
.adm-main .tx td.num, .adm-main .tx th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sm-btn.saved-ok { background: var(--good) !important; }
.s-group { margin-bottom: 8px; }
.s-group-t { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent);
  padding: 16px 4px 6px; }
.s-edit { display: flex; gap: 8px; align-items: center; flex: none; }
.s-edit .text-input { width: 120px; padding: 10px 13px; }
