/* =====================================================================================================
   USDT Gateway - admin & client panels. Visual language ported from the reference admin pages
   (admin-list.css "flat glass" panels, lst-stat tiles, al-table, al-badge, emerald accents; text weights 400/500).
   ===================================================================================================== */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --line: rgba(15, 23, 42, .08);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --muted: #94a3b8;
  --brand: #10b981;
  --brand-2: #059669;
  --brand-deep: #047857;
  --brand-soft: rgba(16, 185, 129, .12);
  --ok: #059669;
  --warn: #b45309;
  --bad: #dc2626;
  --info: #0369a1;
  --radius: 18px;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 100% -10%, rgba(16, 185, 129, .08), transparent 60%), radial-gradient(900px 400px at -10% 110%, rgba(14, 165, 233, .06), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .9rem;
  line-height: 1.45;
}
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82em; background: #f1f5f9; padding: 1px 5px; border-radius: 5px; color: #334155; }
h1, h2, h3 { margin: 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------------------------------------------------------- shell */
.gw-shell { display: flex; min-height: 100vh; }
.gw-side {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; transition: transform .2s;
}
.gw-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.gw-brand__logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px -6px rgba(16, 185, 129, .7); }
.gw-brand__t { font-weight: 700; letter-spacing: .02em; color: var(--text); line-height: 1.1; }
.gw-brand__t small { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.gw-nav { padding: 8px 0 16px; overflow-y: auto; flex: 1; }
.gw-nav__sec { padding: 14px 20px 4px; font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.gw-nav a { display: flex; align-items: center; gap: 10px; margin: 1px 10px; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 500; text-decoration: none; }
.gw-nav a i { width: 18px; text-align: center; color: var(--text-3); }
.gw-nav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.gw-nav a:hover i, .gw-nav a.on i { color: var(--brand-deep); }
.gw-nav a.on { background: var(--brand-soft); color: var(--brand-deep); }
.gw-nav .gw-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .68rem; text-align: center; }
.gw-side__foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: .74rem; color: var(--text-3); }
.gw-net { display: inline-flex; align-items: center; gap: 6px; }
.gw-net .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.gw-net.test .dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }

.gw-main { flex: 1; margin-left: var(--sidebar-w); padding: 14px 22px 40px; min-width: 0; }
.gw-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.gw-top h1 { font-size: 1.12rem; font-weight: 700; }
.gw-top .crumb { font-size: .74rem; color: var(--text-3); }
.gw-top__r { display: flex; align-items: center; gap: 8px; }
.gw-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 600; font-size: .8rem; }
.gw-chip .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .75rem; text-transform: uppercase; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.gw-chip small { display: block; font-weight: 500; color: var(--text-3); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.gw-burger { display: none; }
.gw-scrim { display: none; }

@media (max-width: 991px) {
  .gw-side { transform: translateX(-100%); }
  .gw-side.open { transform: none; box-shadow: 0 0 60px rgba(15, 23, 42, .25); }
  .gw-scrim.open { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 35; }
  .gw-main { margin-left: 0; padding: 10px 12px 32px; }
  .gw-burger { display: inline-flex; }
  .gw-chip span:not(.av) { display: none; }
}

/* ---------------------------------------------------------------- panels (reference: .al-glass) */
.al-glass { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(248, 250, 252, .8) 100%); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: inset 0 1px 0 #fff; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.al-sect { margin-bottom: 12px; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #334155; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.al-sect .fa { color: var(--brand-deep); margin-right: 6px; }
.al-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.al-grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .al-grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* stat tiles */
.al-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.lst-stat { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .07); background: #f8fafc; color: inherit; text-decoration: none !important; transition: border-color .15s, background .15s; min-width: 0; overflow: hidden; }
a.lst-stat:hover { border-color: rgba(16, 185, 129, .55); background: #f0fdf9; }
.lst-stat__ico { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: rgba(16, 185, 129, .14); color: var(--brand-deep); font-size: .92rem; flex: 0 0 auto; }
.lst-stat.warn .lst-stat__ico { background: rgba(217, 119, 6, .14); color: var(--warn); }
.lst-stat.bad .lst-stat__ico { background: rgba(220, 38, 38, .12); color: var(--bad); }
.lst-stat.info .lst-stat__ico { background: rgba(3, 105, 161, .12); color: var(--info); }
.lst-stat__body { display: flex; flex-direction: column; min-width: 0; }
.lst-stat__l { font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst-stat__v { font-size: 1.1rem; font-weight: 500; line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst-stat__s { font-size: .7rem; color: var(--text-3); }
.lst-stat.is-zero .lst-stat__v { color: var(--muted); }

/* filters */
.al-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.al-field label, .al-label { display: block; margin-bottom: 5px; font-size: .68rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.al-field--wide { grid-column: span 2; }
.al-input, .al-field input, .al-field select, .al-field textarea {
  width: 100%; height: 40px; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .12); background: #fff; padding: 0 12px;
  font: inherit; font-size: .86rem; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.al-field textarea { height: auto; min-height: 80px; padding: 10px 12px; }
.al-input:focus, .al-field input:focus, .al-field select:focus, .al-field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.al-field .hint { font-size: .74rem; color: var(--text-3); margin-top: 4px; }
.al-field .err, .al-error { font-size: .76rem; color: var(--bad); margin-top: 4px; }
.al-check { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-2); }
.al-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.al-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 20px; }
.al-form .full { grid-column: 1 / -1; }

.al-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(15, 23, 42, .14); }
.al-meta { margin-left: auto; font-size: .78rem; font-weight: 500; color: var(--text-2); background: #f1f5f9; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(15, 23, 42, .07); white-space: nowrap; }

/* buttons */
.al-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid rgba(15, 23, 42, .1); background: #fff; color: var(--text) !important; font: inherit; font-size: .8rem; font-weight: 500; text-decoration: none !important; cursor: pointer; transition: all .15s; white-space: nowrap; }
.al-btn:hover { border-color: #a7f3d0; background: #ecfdf5; color: var(--brand-deep) !important; }
.al-btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff !important; }
.al-btn.primary:hover { background: linear-gradient(135deg, #0ea371, var(--brand-deep)); }
.al-btn.danger { color: var(--bad) !important; border-color: #fecaca; background: #fef2f2; }
.al-btn.danger:hover { background: #fee2e2; }
.al-btn.ghost { background: transparent; }
.al-btn.sm { height: 30px; padding: 0 10px; font-size: .74rem; border-radius: 9px; }
.al-btn:disabled, .al-btn.busy { opacity: .5; pointer-events: none; }
.al-btn.busy .fa { animation: gwspin 1s linear infinite; }
.al-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
@keyframes gwspin { to { transform: rotate(360deg); } }

/* table */
.al-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.al-table { width: 100%; font-size: .88rem; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.al-table th { padding: 11px 12px; font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: #f8fafc; white-space: nowrap; border-bottom: 1px solid var(--line); text-align: left; }
.al-table td { padding: 10px 12px; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid rgba(15, 23, 42, .06); font-variant-numeric: tabular-nums; }
.al-table td.wrap { white-space: normal; min-width: 260px; }
.al-table .num { text-align: right; }
.al-table tbody tr:nth-child(even) td { background: rgba(15, 23, 42, .02); }
.al-table tbody tr:hover td { background: #ecfdf5; }
.al-table tbody tr:last-child td { border-bottom: 0; }
.al-muted { color: var(--muted); }
.al-sub { display: block; font-size: .74rem; color: var(--text-3); font-weight: 400; }
.al-pos { color: var(--brand-deep); font-weight: 500; }
.al-neg { color: var(--bad); font-weight: 500; }
.al-err { color: var(--bad) !important; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.al-empty { padding: 30px 8px; text-align: center; font-size: .86rem; color: var(--text-3); }
.al-link { display: inline-block; padding: 1px 6px; border-radius: 6px; background: #f1f5f9; border: 1px solid var(--border); color: inherit !important; text-decoration: none !important; }
.al-link:hover { background: #e2e8f0; border-color: #cbd5e1; }
.al-hash { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
.al-json { white-space: normal; word-break: break-all; }

.al-badge { display: inline-block; font-size: .64rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; padding: .3em .55em; border-radius: 6px; color: #fff; }
.al-badge.ok { background: var(--ok); }
.al-badge.wait { background: var(--warn); }
.al-badge.bad { background: var(--bad); }
.al-badge.info { background: var(--info); }
.al-badge.muted { background: #64748b; }

/* pager */
.al-pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(15, 23, 42, .14); }
.al-pager .info { font-size: .78rem; font-weight: 500; color: var(--text-2); }
.al-pager .pages { display: flex; gap: 6px; flex-wrap: wrap; }
.al-pager .al-btn { min-width: 38px; padding: 0 10px; }
.al-pager .al-btn.on { background: var(--brand); border-color: var(--brand); color: #fff !important; }

/* key/value list */
.al-dl { display: grid; grid-template-columns: 170px 1fr; gap: 9px 14px; margin: 0; font-size: .88rem; }
.al-dl dt { color: var(--text-3); font-weight: 500; }
.al-dl dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .al-dl { grid-template-columns: 1fr; gap: 2px; } .al-dl dd { margin-bottom: 8px; } }
.al-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; word-break: break-all; }

/* alerts / flash */
.al-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; font-size: .86rem; margin-bottom: 12px; border: 1px solid; }
.al-alert.success { background: #ecfdf5; border-color: rgba(5, 150, 105, .3); color: var(--brand-deep); }
.al-alert.error { background: #fef2f2; border-color: rgba(220, 38, 38, .3); color: #b91c1c; }
.al-alert.warn { background: #fffbeb; border-color: rgba(217, 119, 6, .35); color: #92400e; }
.al-alert.info { background: #eff6ff; border-color: rgba(3, 105, 161, .25); color: #075985; }
.al-secret { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #0f172a; color: #e2e8f0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; word-break: break-all; }
.al-secret button { flex: none; }

/* chart + health */
.gw-chart { position: relative; height: 300px; }
.gw-health { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.gw-health div { padding: 9px 11px; border-radius: 11px; background: #f8fafc; border: 1px solid rgba(15, 23, 42, .07); font-size: .8rem; }
.gw-health b { display: block; font-weight: 500; font-size: .95rem; color: var(--text); }
.gw-health span { font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.gw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.gw-dot.ok { background: var(--ok); } .gw-dot.bad { background: var(--bad); } .gw-dot.wait { background: #f59e0b; }

/* modal */
.gw-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.gw-modal.open { display: flex; }
.gw-modal__bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.gw-modal__box { position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }
.gw-modal__h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.gw-modal__b { padding: 18px; }
.gw-modal__f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.gw-x { border: 0; background: rgba(100, 116, 139, .12); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text-2); }

/* toast */
.gw-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.gw-toast { padding: 11px 14px; border-radius: 12px; background: #0f172a; color: #fff; font-size: .84rem; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .5); animation: gwin .2s ease-out; }
.gw-toast.ok { background: var(--brand-2); } .gw-toast.bad { background: var(--bad); }
@keyframes gwin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* docs */
.gw-doc h3 { font-size: .95rem; margin: 22px 0 8px; }
.gw-doc pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: .8rem; line-height: 1.55; }
.gw-doc pre code { background: none; color: inherit; padding: 0; }
.gw-doc .ep { display: inline-block; min-width: 52px; padding: 2px 8px; border-radius: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; font-weight: 600; text-align: center; color: #fff; background: var(--info); margin-right: 6px; }
.gw-doc .ep.post { background: var(--brand-2); }
.gw-doc p, .gw-doc li { color: var(--text-2); }

/* auth pages */
.gw-auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.gw-auth__box { width: 100%; max-width: 410px; }
.gw-auth__box .gw-brand { border: 0; padding: 0 0 16px; justify-content: center; }
.gw-auth h1 { font-size: 1.25rem; margin-bottom: 4px; }
.gw-auth p.sub { margin: 0 0 18px; color: var(--text-3); }
.gw-auth .al-field { margin-bottom: 14px; }
.gw-auth .al-btn { width: 100%; height: 44px; font-size: .88rem; }
.gw-auth__links { display: flex; justify-content: center; gap: 14px; margin-top: 16px; font-size: .8rem; color: var(--text-3); }

@media (max-width: 768px) {
  .al-glass { padding: 13px; border-radius: 15px; margin-bottom: 13px; }
  .al-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .al-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
  .al-field--wide { grid-column: 1 / -1; }
  .al-table th, .al-table td { padding: 8px 10px; }
  .gw-top { padding: 8px 10px; }
}
@media (max-width: 420px) { .al-stats { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.al-btn.is-off { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------- public site (landing, sign-up, docs) */
.gw-pub { display: flex; flex-direction: column; min-height: 100vh; }
.gw-pub__bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.gw-pub__nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gw-pub__nav > a:not(.al-btn) { color: var(--text-2); font-weight: 500; }
.gw-pub__main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 20px 48px; }
.gw-pub__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 24px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-3); background: var(--surface); }
.gw-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px 0 36px; }
.gw-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; letter-spacing: -.02em; margin: 12px 0; }
.gw-hero p { font-size: 1.02rem; color: var(--text-2); max-width: 600px; }
.gw-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.gw-hero__cta .al-btn { height: 44px; padding: 0 18px; font-size: .88rem; }
.gw-kicker { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: .76rem; font-weight: 600; }
.gw-code { margin: 0; background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 12px; font-size: .78rem; overflow-x: auto; }
.gw-code code { background: none; color: inherit; padding: 0; }
.gw-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gw-features h3 { font-size: 1rem; margin-bottom: 6px; }
.gw-features p { margin: 0; color: var(--text-2); }
.gw-steps { margin: 26px 0; }
.gw-steps h2, .gw-pricing h2 { font-size: 1.35rem; margin-bottom: 12px; }
.gw-steps ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 0; list-style: none; counter-reset: s; }
.gw-steps li { counter-increment: s; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.gw-steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; }
.gw-reg { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.gw-reg h1 { font-size: 1.4rem; }
.gw-mini-steps { padding-left: 18px; color: var(--text-2); }
.gw-mini-steps li { margin-bottom: 8px; }
.gw-narrow { max-width: 440px; margin: 30px auto; }
.gw-narrow h1 { font-size: 1.3rem; }
@media (max-width: 900px) { .gw-hero, .gw-reg { grid-template-columns: minmax(0, 1fr); } .gw-pub__bar { padding: 10px 14px; } }

/* onboarding */
.gw-pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.gw-qr { padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--border); line-height: 0; }
.gw-pay__amt { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.gw-pay__amt small { font-size: .95rem; color: var(--text-3); font-weight: 600; }
.gw-live { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 9px 12px; border-radius: 11px; background: #ecfdf5; border: 1px solid rgba(5, 150, 105, .25); font-size: .84rem; color: var(--brand-deep); }
.gw-progress { height: 8px; border-radius: 99px; background: #f1f5f9; overflow: hidden; margin-bottom: 12px; }
.gw-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #0ea5e9); }
.gw-check { list-style: none; margin: 0; padding: 0; }
.gw-check li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px dashed rgba(15, 23, 42, .1); color: var(--text-2); }
.gw-check li:first-child { border-top: 0; }
.gw-check li i { width: 18px; color: var(--muted); }
.gw-check li.ok { color: var(--text-3); text-decoration: line-through; }
.gw-check li.ok i { color: var(--brand); }
.gw-check li.locked { opacity: .55; }
.gw-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
@media (max-width: 600px) { .gw-pay { grid-template-columns: minmax(0, 1fr); justify-items: center; } }

/* docs */
.gw-doc-head { margin: 4px 0 16px; }
.gw-doc-head h1 { font-size: 1.5rem; }
.gw-docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.gw-docs__nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 100px); overflow: auto; }
.gw-docs__nav a { padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-size: .84rem; text-decoration: none; }
.gw-docs__nav a i { width: 18px; color: var(--text-3); }
.gw-docs__nav a.on, .gw-docs__nav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.gw-docs__nav a.sub { font-size: .78rem; padding-left: 16px; }
.gw-md { padding: 22px 28px; min-width: 0; }
.gw-md h1 { font-size: 1.6rem; margin: 0 0 12px; }
.gw-md h2 { font-size: 1.2rem; margin: 28px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.gw-md h3 { font-size: 1rem; margin: 20px 0 8px; scroll-margin-top: 80px; }
.gw-md p, .gw-md li { color: var(--text-2); line-height: 1.65; }
.gw-md ul, .gw-md ol { padding-left: 22px; }
.gw-md table { margin: 10px 0; }
.gw-md .al-alert { margin: 12px 0; }
.gw-links li { margin-bottom: 6px; }
@media (max-width: 900px) { .gw-docs { grid-template-columns: minmax(0, 1fr); } .gw-docs__nav { position: static; max-height: none; } .gw-md { padding: 16px; } }
