/* =====================================================================================================
   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-card { position: relative; }
.al-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.al-field label, .al-label { display: block; margin-bottom: 5px; font-size: .68rem; font-weight: 600; letter-spacing: .06em; 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: 11px; border: 1px solid rgba(15, 23, 42, .12); background: #fff; padding: 0 12px;
  font: inherit; font-size: .84rem; 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 3px 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-filters__actions { display: flex; gap: 8px; align-items: center; }

.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 toolbar */
.al-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.al-table-toolbar__info { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-2); font-weight: 500; }
.al-table-toolbar__info i { color: var(--brand-deep); }
.al-table-toolbar__chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.al-chip-filter { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 10px; border-radius: 999px; background: #ecfdf5; border: 1px solid #a7f3d0; font-size: .72rem; color: var(--brand-deep); font-weight: 500; }
.al-chip-filter small { color: var(--text-3); font-weight: 400; text-transform: uppercase; font-size: .64rem; }
.al-chip-filter a { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: var(--brand-deep); text-decoration: none; font-weight: 700; font-size: .84rem; line-height: 1; }
.al-chip-filter a:hover { background: rgba(5, 150, 105, .2); text-decoration: none; }

/* table */
.al-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.al-table { width: 100%; font-size: .84rem; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.al-table th { padding: 11px 12px; font-size: .67rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #475569; background: #f8fafc; white-space: nowrap; border-bottom: 1px solid var(--line); text-align: left; }
.al-table td { padding: 11px 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 th.num { text-align: right; }
.al-table tbody tr:nth-child(even) td { background: #fafbfd; }
.al-table tbody tr:hover td { background: #f0fdf4 !important; }
.al-table tbody tr:last-child td { border-bottom: 0; }
.al-muted { color: var(--muted); }
.al-sub { display: block; font-size: .72rem; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.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); }

/* empty state */
.al-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; }
.al-empty-state__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f1f5f9; color: var(--text-3); font-size: 1.25rem; margin-bottom: 10px; }
.al-empty-state__title { font-size: .95rem; font-weight: 650; color: var(--text); margin-bottom: 4px; }
.al-empty-state__desc { font-size: .78rem; color: var(--text-3); margin: 0 0 14px; max-width: 360px; line-height: 1.5; }

.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: 12px; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.al-pager__summary { font-size: .78rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.al-pager__summary b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.al-pager__nav { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.al-pager__nav .al-btn { min-width: 34px; height: 34px; padding: 0 8px; font-size: .78rem; font-weight: 550; border-radius: 8px; font-variant-numeric: tabular-nums; }
.al-pager__nav .al-btn.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff !important; }
.al-pager__dots { display: inline-block; padding: 0 4px; color: var(--text-3); font-weight: 600; font-size: .8rem; user-select: none; }
.al-pager .info { font-size: .78rem; font-weight: 500; color: var(--text-2); }
.al-pager .pages { display: flex; gap: 6px; flex-wrap: wrap; }

/* 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; } }

/* Existing Toknex wordmark: dark backing preserves white lettering in both themes. */
.gateway-brand-image { display: block; width: 156px; height: 52px; flex: 0 0 auto; padding: 7px 9px; box-sizing: border-box; object-fit: contain; background: #10172a; border-radius: 12px; }
@media (max-width: 480px) { .gateway-brand-image { width: 132px; height: 44px; } }

/* Mobile-first shared layout: navigation gets its own row on compact screens. */
.gw-pub__bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
.gw-pub__bar .gw-brand { min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; }
.gw-pub__bar .gw-brand__t small { white-space: nowrap; font-size: .62rem; letter-spacing: .07em; }
.gw-pub__nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; }
.gw-pub__nav > a { grid-column: span 2; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.gw-pub__nav > a:nth-child(n+4) { grid-column: span 3; }
.gw-pub__main { padding: 18px 12px 32px; }
.gw-side > .gw-brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.gw-brand__t, .al-field, .al-form > *, .al-filters > *, .gw-reg > *, .gw-hero > *, .gw-pay > * { min-width: 0; }
.al-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gw-features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gw-next { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.gw-steps ol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.al-scroll { max-width: 100%; }
.gw-md table { display: block; max-width: 100%; overflow-x: auto; }
.gw-md a, .gw-pub__foot, .al-alert > span { overflow-wrap: anywhere; }
.gw-modal__box { max-height: calc(100dvh - 32px); }
.gw-modal__f { flex-wrap: wrap; }
.gw-auth__links { flex-wrap: wrap; }
@media (max-width: 767px) {
  .gw-top { flex-wrap: wrap; }
  .gw-top > div:first-child { min-width: 0; flex: 1 1 180px; }
  .gw-top > div:first-child > div { min-width: 0; overflow-wrap: anywhere; }
  .gw-top__r { max-width: 100%; margin-left: auto; flex-wrap: wrap; }
  .gw-chip { min-width: 0; max-width: 100%; }
  .gw-chip > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .al-field input, .al-field select, .al-field textarea { font-size: 16px; max-width: 100%; }
  .al-filters { grid-template-columns: minmax(0, 1fr); }
  .al-btn:not(.sm), .gw-nav a { min-height: 44px; }
  .gw-burger, .gw-top__r .al-btn { min-width: 44px; min-height: 44px; }
  .al-meta { white-space: normal; overflow-wrap: anywhere; }
  .al-secret { min-width: 0; }
  .al-secret > span { min-width: 0; overflow-wrap: anywhere; }
  .gw-reg h1 { font-size: clamp(1.25rem, 5vw, 1.6rem); }
}
@media (min-width: 768px) {
  .gw-pub__bar { display: flex; padding: 12px 24px; }
  .gw-pub__nav { display: flex; width: auto; gap: 16px; flex-wrap: nowrap; }
  .gw-pub__main { padding: 24px 20px 48px; }
}

.al-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gw-health { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }

/* Navigation and form interaction polish, release ui2. */
.gw-nav-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.gw-pub__nav > a { border-radius: 10px; padding: 0 10px; }
.gw-pub__nav > a:not(.al-btn):hover { background: var(--surface-2); text-decoration: none; }
.al-btn:active:not(:disabled), .gw-nav-toggle:active { transform: translateY(1px); }
.al-btn:focus-visible, .gw-nav-toggle:focus-visible, .gw-nav a:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; }
.al-btn[aria-busy="true"] { cursor: progress; }
.al-field input:disabled, .al-field select:disabled, .al-field textarea:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
.al-field [aria-invalid="true"] { border-color: var(--bad); }
.al-check { align-items: flex-start; line-height: 1.6; }
.al-check input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; }
@media (max-width: 767px) {
  .gw-pub__bar.nav-ready { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .gw-pub__bar.nav-ready .gw-nav-toggle { display: inline-flex; }
  .gw-pub__bar.nav-ready .gw-pub__nav { display: none; grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--border); }
  .gw-pub__bar.nav-ready.nav-open .gw-pub__nav { display: grid; }
  .al-field input, .al-field select { min-height: 46px; }
  .al-btn.sm { min-height: 40px; }
}

/* Native mobile menu remains usable before scripts load and with JavaScript disabled. */
.gw-mobile-menu { display: none; }
@media (max-width: 767px) {
  .gw-pub__bar { display: flex; flex-wrap: nowrap; align-items: center; }
  .gw-desktop-navigation { display: none; }
  .gw-mobile-menu { display: block; position: relative; flex: 0 0 auto; margin-left: auto; }
  .gw-mobile-menu summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 600; cursor: pointer; list-style: none; }
  .gw-mobile-menu summary::-webkit-details-marker { display: none; }
  .gw-mobile-menu summary:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; }
  .gw-mobile-menu[open] summary { color: var(--brand-deep); border-color: var(--brand); background: #ecfdf5; }
  .gw-mobile-menu .gw-pub__nav { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: min(300px, calc(100vw - 32px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 16px 40px rgba(15, 23, 42, .14); max-height: calc(100dvh - 120px); overflow-y: auto; }
  .gw-mobile-menu .gw-pub__nav > a { grid-column: auto; justify-content: flex-start; min-height: 44px; padding: 0 14px; }
  .gw-mobile-menu .gw-pub__nav > .primary { justify-content: center; margin-top: 4px; }
}
@media (min-width: 768px) { .gw-desktop-navigation { display: block; } }

/* Dark-lettered logo for the light gateway interface. */
.gateway-brand-image { background: transparent; padding: 0; border-radius: 0; }

/* Compact merchant actions, with native keyboard/touch disclosure. */
.al-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.al-actionbar:has(details[open]) { z-index: 45; }
.al-actionbar > div { min-width: 0; }
.al-action-menu { position: relative; flex: 0 0 auto; }
.al-action-menu > summary { list-style: none; min-height: 44px; }
.al-action-menu > summary::-webkit-details-marker { display: none; }
.al-action-menu[open] > summary { border-color: var(--brand); background: #ecfdf5; }
.al-action-menu__items { position: absolute; z-index: 50; right: 0; top: calc(100% + 8px); width: min(310px, calc(100vw - 50px)); max-height: min(480px, 65dvh); overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px rgba(15,23,42,.14); }
.al-action-menu__items form { margin: 0; }
.al-action-item { display: block; width: 100%; min-height: 48px; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 600; text-align: left; color: var(--text); cursor: pointer; }
.al-action-item small { display: block; margin-top: 3px; color: var(--text-3); font-size: 12px; font-weight: 400; }
.al-action-item:hover, .al-action-item:focus-visible { background: var(--brand-soft); }
.al-action-item:disabled { opacity: .55; cursor: progress; }
.al-action-note { margin: 8px 12px; font-size: 12px; line-height: 1.6; color: var(--text-3); }
@media (max-width: 360px) { .al-actionbar { align-items: flex-start; } .al-actionbar .al-sub { font-size: 12px; } }

/* Merchant onboarding: balanced cards and a readable, compact checklist. */
.gw-onboarding { align-items: start; gap: 20px; }
.gw-onboarding__main { min-width: 0; }
.gw-onboarding .al-glass { padding: 22px; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.025); }
.gw-onboarding__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.gw-onboarding__heading > div { min-width: 0; }
.gw-onboarding__heading h2 { margin: 0; color: var(--text); font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.35; }
.gw-onboarding__eyebrow { display: block; margin-bottom: 7px; color: var(--text-3); font-size: .65rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.gw-onboarding__welcome .gw-onboarding__heading h2 { font-size: 1.35rem; }
.gw-onboarding__intro { margin: -2px 0 20px; font-size: .88rem; line-height: 1.65; color: var(--text-2); }
.gw-onboarding__cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.gw-onboarding__cards .lst-stat { align-items: center; min-height: 0; gap: 10px; padding: 12px 14px; background: #fafbfd; border-color: var(--border); border-radius: 12px; }
.gw-onboarding__cards .lst-stat:hover { background: #f0fdf9; border-color: #86d6b4; }
.gw-onboarding__cards .lst-stat:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; }
.gw-onboarding__cards .lst-stat__ico { width: 30px; height: 30px; border-radius: 9px; background: #e9f7f1; }
.gw-onboarding__cards .lst-stat__body { display: grid; grid-template-columns: 14px minmax(0,1fr); align-items: baseline; gap: 3px 5px; }
.gw-onboarding__cards .lst-stat__l { grid-column: 1; grid-row: 1; font-size: .65rem; color: var(--text-3); }
.gw-onboarding__cards .lst-stat__v { grid-column: 2; grid-row: 1; font-size: .88rem; font-weight: 600; line-height: 1.35; white-space: normal; overflow: visible; }
.gw-onboarding__cards .lst-stat__s { grid-column: 1 / -1; grid-row: 2; font-size: .72rem; line-height: 1.35; color: var(--text-3); }
.gw-onboarding__count { flex: none; padding: 5px 10px; border: 1px solid var(--border); border-radius: 9px; font-size: .86rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); background: #f8fafc; }
.gw-onboarding__count span { color: var(--text-3); font-weight: 400; }
.gw-onboarding__checklist .gw-progress { height: 6px; margin-bottom: 16px; }
.gw-onboarding__checklist .gw-progress i { background: var(--brand-2); }
.gw-onboarding .gw-check li { align-items: center; gap: 10px; min-height: 56px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.gw-onboarding .gw-check li:first-child { border-top: 0; }
.gw-onboarding .gw-check li.ok { text-decoration: none; color: var(--text-2); }
.gw-onboarding .gw-check li.is-next { color: var(--text); }
.gw-onboarding .gw-check li.is-next > i { color: var(--brand-deep); }
.gw-onboarding .gw-check__label { flex: 1; min-width: 0; font-size: .83rem; line-height: 1.5; overflow-wrap: anywhere; }
.gw-onboarding .gw-check__status { flex: none; color: var(--text-3); font-size: .65rem; font-weight: 500; }
.gw-onboarding .gw-check li.ok .gw-check__status { color: #047857; }
.gw-onboarding .gw-check li.is-next .gw-check__status { color: #047857; background: #e9f7f1; padding: 3px 8px; border-radius: 6px; }
.gw-onboarding__continue { width: 100%; margin-top: 18px; min-height: 44px; justify-content: space-between; }
@media (min-width: 1101px) { .gw-onboarding__checklist { position: sticky; top: 20px; } }
@media (max-width: 600px) {
  .gw-onboarding { gap: 0; }
  .gw-onboarding .al-glass { padding: 18px; border-radius: 16px; }
  .gw-onboarding__heading { flex-wrap: wrap; }
  .gw-onboarding__cards { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .gw-onboarding__cards .lst-stat { min-height: 0; padding: 11px 12px; }
  .gw-onboarding__welcome .gw-onboarding__heading h2 { font-size: 1.2rem; }
}

/* Merchant dashboard: legible metrics, clear currencies and purposeful table spacing. */
.gw-client-dashboard .al-glass { padding: 20px; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.025); }
.gw-client-dashboard__deposits .gw-onboarding__heading { margin-bottom: 20px; }
.gw-deposit-table th { font-size: .65rem; letter-spacing: .05em; padding: 12px 14px; }
.gw-deposit-table td { padding: 15px 14px; font-size: .82rem; }
.gw-deposit-table__time { width: 1%; }
.gw-deposit-table .al-sub { display: block; font-size: .72rem; margin-top: 4px; color: var(--text-3); }
.gw-deposit-table__user { min-width: 170px; max-width: 320px; white-space: normal !important; overflow-wrap: anywhere; }
.gw-deposit-table__user > a { font-weight: 550; color: var(--brand-deep); line-height: 1.5; }
.gw-deposit-table__amount, .gw-deposit-table__hash { white-space: nowrap; }
.gw-deposit-table__amount b { font-weight: 650; font-variant-numeric: tabular-nums; }
.gw-deposit-table__amount small { font-size: .68rem; color: var(--text-3); }
.gw-deposit-table__hash code { background: #f8fafc; font-size: .72rem; border: 1px solid var(--border); padding: 5px 7px; border-radius: 7px; }
.gw-table-hint { display: none; color: var(--text-3); font-size: .72rem; margin: -8px 0 12px; }
/* Documentation cards share onboarding proportions and never truncate titles. */
.gw-docs-home .gw-doc-head { margin: 2px 0 24px; }
.gw-docs-home .gw-doc-head h1 { font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: 8px; }
.gw-docs-home .gw-doc-head p { line-height: 1.6; max-width: 720px; }
.gw-docs-home .gw-docs-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.gw-docs-home .lst-stat { align-items: flex-start; gap: 12px; padding: 18px 16px; min-height: 130px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.gw-docs-home .lst-stat__ico { width: 36px; height: 36px; border-radius: 10px; }
.gw-docs-home .lst-stat__body { gap: 7px; }
.gw-docs-home .lst-stat__v { font-size: .95rem; font-weight: 600; line-height: 1.4; white-space: normal; overflow: visible; }
.gw-docs-home .lst-stat__s { font-size: .78rem; line-height: 1.55; }
.gw-docs-home .al-glass { background: #fff; padding: 22px; }
.gw-docs-home .gw-links { padding-left: 20px; line-height: 1.8; }
.gw-docs-home .gw-links li { margin-bottom: 8px; }
@media (max-width: 1300px) {  .gw-docs-home .gw-docs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 767px) {
  .gw-client-dashboard .al-glass { padding: 16px; }
  
  
  
  
  
  .gw-client-dashboard__deposits .gw-onboarding__heading { flex-wrap: wrap; align-items: flex-start; }
  .gw-table-hint { display: block; }
  .gw-deposit-table { min-width: 780px; }
  .gw-docs-home .gw-docs-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .gw-docs-home .lst-stat { min-height: 100px; padding: 16px; }
  .gw-docs-home .al-glass { padding: 18px; }
}

/* Align KPI baselines when labels wrap; keep the row compact. */
@media (max-width: 767px) {
  
  
  
}
@media (max-width: 360px) {
  
  
  
  
}

/* Merchant operations widgets */

/* Unified merchant KPI cards: label, amount, supporting context. */
.gw-client-dashboard__metrics .al-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.gw-client-dashboard__operations .al-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat{display:grid;grid-template-columns:minmax(0,1fr) 34px;grid-template-rows:auto auto auto;align-content:start;align-items:start;column-gap:10px;row-gap:6px;padding:13px 15px;min-width:0;min-height:120px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.025);overflow:hidden;transition:background .15s,border-color .15s,box-shadow .15s}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__body{display:contents}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__ico{grid-column:2;grid-row:1;width:34px;height:34px;margin:0;border-radius:10px;background:#e8f5ef;color:var(--brand-deep)}
.gw-client-dashboard .lst-stat__ico svg{display:block;width:19px;height:19px}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__l{grid-column:1;grid-row:1;align-self:center;min-height:0;margin:0;font-size:.68rem;font-weight:600;letter-spacing:.035em;line-height:1.45;color:var(--text-3);white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__v{grid-column:1/-1;grid-row:2;display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;margin:0;font-size:1.65rem;font-weight:650;letter-spacing:-.035em;line-height:1.15;font-variant-numeric:tabular-nums;white-space:normal;overflow:visible;text-overflow:clip;color:var(--text);min-width:0}
.gw-client-dashboard .lst-stat__v>span{min-width:0;overflow-wrap:anywhere}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__v small{font-size:.7rem;font-weight:500;letter-spacing:0;color:var(--text-3)}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__s{grid-column:1/-1;grid-row:3;align-self:start;margin:0;min-height:0;font-size:.75rem;line-height:1.5;color:var(--text-3);white-space:normal;overflow:visible;overflow-wrap:anywhere}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat.info{background:#f1f8fe;border-color:#d6e8f5}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat.info .lst-stat__ico{background:#dceef9;color:#0369a1}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat.warn .lst-stat__ico{background:#fff2df;color:#a85b13}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) a.lst-stat:hover{border-color:#9dceb8;background:#f3fbf7;box-shadow:0 3px 10px rgba(15,23,42,.045)}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) a.lst-stat:focus-visible{outline:3px solid var(--brand-deep);outline-offset:3px}
@media(max-width:1200px){.gw-client-dashboard__metrics .al-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.gw-client-dashboard__metrics .lst-stat:first-child{grid-column:1/-1}.gw-client-dashboard__operations .al-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat{padding:12px;min-height:112px;grid-template-columns:minmax(0,1fr) 30px;gap:6px}.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__ico{width:30px;height:30px;border-radius:9px}.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__v{font-size:1.4rem}.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__l{font-size:.64rem;letter-spacing:.02em}.gw-client-dashboard .lst-stat__ico svg{width:17px;height:17px}.gw-client-dashboard__metrics .lst-stat:first-child{min-height:112px}.gw-client-dashboard__operations .gw-onboarding__heading{flex-wrap:wrap;gap:12px}}
@media(max-width:460px){.gw-client-dashboard__operations .al-stats{grid-template-columns:1fr}.gw-client-dashboard__metrics .lst-stat:not(:first-child){grid-template-columns:minmax(0,1fr) 25px;padding:13px;column-gap:5px}.gw-client-dashboard__metrics .lst-stat:not(:first-child) .lst-stat__ico{width:25px;height:25px;border-radius:8px}.gw-client-dashboard__metrics .lst-stat:not(:first-child) .lst-stat__v{font-size:1.22rem}}
@media(prefers-reduced-motion:reduce){.gw-client-dashboard .lst-stat{transition:none!important}}

/* Dense dashboard widgets */
.gw-client-dashboard .gw-client-dashboard__metrics{padding:12px}
.gw-client-dashboard__metrics .al-stats,.gw-client-dashboard__operations .al-stats{gap:9px}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat{grid-template-columns:minmax(0,1fr) 24px;grid-template-rows:auto auto auto;min-height:0;padding:11px 13px;column-gap:6px;row-gap:4px;border-radius:12px}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__ico{width:24px;height:24px;border-radius:7px}
.gw-client-dashboard .lst-stat__ico svg{width:15px;height:15px}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__l{font-size:.64rem;line-height:1.3;letter-spacing:.025em}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__v{font-size:1.42rem;line-height:1.12;gap:5px}
.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__s{font-size:.7rem;line-height:1.35}
.gw-client-dashboard__operations .al-stats{margin-top:12px}
@media(max-width:600px){.gw-client-dashboard .gw-client-dashboard__metrics{padding:10px}.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat,.gw-client-dashboard__metrics .lst-stat:first-child{min-height:0;padding:10px 11px;row-gap:4px}.gw-client-dashboard :is(.gw-client-dashboard__metrics,.gw-client-dashboard__operations) .lst-stat__v{font-size:1.25rem}.gw-client-dashboard__metrics .lst-stat:not(:first-child){padding:10px;grid-template-columns:minmax(0,1fr) 24px}.gw-client-dashboard__metrics .lst-stat:not(:first-child) .lst-stat__ico{width:24px;height:24px}}
/* Compact setup links with aligned step badges and quiet navigation cues. */
.gw-onboarding__cards .lst-stat{position:relative;padding-right:30px;background:#fff;border-color:#e0e7ef;box-shadow:0 1px 2px rgba(15,23,42,.02);transition:background .15s,border-color .15s}
.gw-onboarding__cards .lst-stat::after{content:"";position:absolute;right:14px;top:50%;width:5px;height:5px;border-top:1.5px solid #91a0b4;border-right:1.5px solid #91a0b4;transform:translateY(-50%) rotate(45deg)}
.gw-onboarding__cards .lst-stat:hover{border-color:#9acdb7;background:#f7fcf9}
.gw-onboarding__cards .lst-stat:hover::after{border-color:var(--brand-deep)}
.gw-onboarding__cards .lst-stat__ico{background:#edf7f2;color:var(--brand-deep);flex-shrink:0}
.gw-onboarding__cards .lst-stat__ico svg{width:17px;height:17px;display:block}
.gw-onboarding__welcome .gw-onboarding__cards .lst-stat__body{grid-template-columns:18px minmax(0,1fr);column-gap:7px;row-gap:3px;align-items:center}
.gw-onboarding__welcome .gw-onboarding__cards .lst-stat__l{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:5px;background:#f0f3f7;color:#617085;font-size:.61rem;font-weight:600;line-height:1;letter-spacing:0}
.gw-onboarding__welcome .gw-onboarding__cards .lst-stat__s{grid-column:2;font-size:.72rem;color:#718097}
.gw-onboarding__cards .lst-stat__v{letter-spacing:-.01em;color:var(--text)}
.gw-onboarding__guides .gw-onboarding__cards .lst-stat__body{grid-template-columns:minmax(0,1fr)}
.gw-onboarding__guides .gw-onboarding__cards .lst-stat__v,.gw-onboarding__guides .gw-onboarding__cards .lst-stat__s{grid-column:1}
@media(max-width:700px){.gw-onboarding__cards .lst-stat{padding-right:28px}.gw-onboarding__cards .lst-stat::after{right:12px}}
@media(prefers-reduced-motion:reduce){.gw-onboarding__cards .lst-stat{transition:none}}

/* Admin settings: executive grouped controls, input unit adornments and deployment context. */
.gw-settings{min-width:0;display:block}
.gw-settings__hero{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:2px 0 20px;padding:16px 20px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 1px 3px rgba(15,23,42,.03)}
.gw-settings__hero-content{display:flex;align-items:center;gap:14px;min-width:0}
.gw-settings__hero-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#ecfdf5;color:#059669;font-size:1.15rem;flex:none;border:1px solid #a7f3d0}
.gw-settings__hero h2{font-size:1.3rem;font-weight:700;line-height:1.25;letter-spacing:-.025em;margin:0 0 3px;color:var(--text)}
.gw-settings__hero p{margin:0;color:var(--text-3);font-size:.78rem;line-height:1.5}
.gw-settings__hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}

.gw-settings .gw-badge{display:inline-flex;align-items:center;gap:5px;font-size:.7rem;font-weight:600;padding:5px 9px;border-radius:7px;line-height:1.3;white-space:nowrap}
.gw-settings .gw-badge--success,.gw-settings .gw-badge--emerald{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.gw-settings .gw-badge--indigo{background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe}
.gw-settings .gw-badge--amber,.gw-settings .gw-badge--warning{background:#fffbeb;color:#92400e;border:1px solid #fde68a}
.gw-settings .gw-badge--cyan{background:#ecfeff;color:#155e75;border:1px solid #a5f3fc}
.gw-settings .gw-badge--info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}
.gw-settings .gw-badge--neutral{background:#f8fafc;color:#475569;border:1px solid #e2e8f0}

.gw-settings__layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.gw-settings__form{min-width:0;display:grid;gap:18px}

.gw-settings__tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:2px}
.gw-settings__tab-link{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;background:#fff;border:1px solid var(--border);border-radius:10px;font-size:.76rem;font-weight:600;color:var(--text-2);text-decoration:none;transition:all .15s ease;box-shadow:0 1px 2px rgba(15,23,42,.02)}
.gw-settings__tab-link:hover{border-color:#10b981;color:var(--brand-deep);background:#f0fdf4;transform:translateY(-1px)}
.gw-settings__tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#f1f5f9;color:var(--text-3);font-size:.65rem;font-weight:700}

.gw-settings .al-glass{margin:0;padding:22px;border-radius:16px;background:#fff;border:1px solid var(--border);box-shadow:0 1px 3px rgba(15,23,42,.025)}
.gw-settings__section{scroll-margin-top:24px}
.gw-settings__section-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #f1f5f9}
.gw-settings__section-icon-box{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;font-size:1.05rem;flex:none}
.gw-settings__section-icon-box--emerald{background:#ecfdf5;color:#059669;border:1px solid #a7f3d0}
.gw-settings__section-icon-box--indigo{background:#eef2ff;color:#4f46e5;border:1px solid #c7d2fe}
.gw-settings__section-icon-box--amber{background:#fffbeb;color:#d97706;border:1px solid #fde68a}
.gw-settings__section-icon-box--cyan{background:#ecfeff;color:#0891b2;border:1px solid #a5f3fc}
.gw-settings__section-icon-box--neutral{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}
.gw-settings__section-meta{flex:1;min-width:0}
.gw-settings__section-title-wrap{display:flex;align-items:center;gap:10px;margin-bottom:4px;flex-wrap:wrap}
.gw-settings__section-meta h3{font-size:1.02rem;line-height:1.3;font-weight:700;letter-spacing:-.015em;margin:0;color:var(--text)}
.gw-settings__section-meta p{margin:0;color:var(--text-3);font-size:.77rem;line-height:1.5}

.gw-settings__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.gw-settings__fields>*{min-width:0}
.gw-settings__wide{grid-column:1/-1}

.gw-settings .al-field label{display:flex;align-items:center;justify-content:space-between;text-transform:none;letter-spacing:0;font-size:.76rem;font-weight:600;margin-bottom:6px;min-height:0}
.gw-field-label-text{color:var(--text)}
.gw-field-calc{font-size:.7rem;font-weight:700;color:var(--brand-deep);background:#ecfdf5;padding:2px 7px;border-radius:5px;border:1px solid #a7f3d0}

.gw-input-wrap{display:flex;align-items:stretch;border:1px solid var(--border);border-radius:10px;background:#fafbfd;overflow:hidden;transition:all .15s ease}
.gw-input-wrap:focus-within{border-color:var(--brand-deep);background:#fff;box-shadow:0 0 0 3px rgba(16,185,129,.12)}
.gw-input-wrap input,.gw-input-wrap textarea{flex:1;min-width:0;border:none!important;background:transparent!important;padding:9px 12px;font-size:.82rem;color:var(--text);outline:none!important;font-family:inherit;min-height:40px}
.gw-input-wrap textarea{min-height:82px;resize:vertical;line-height:1.5}
.gw-input-prefix{display:inline-flex;align-items:center;justify-content:center;padding:0 12px;background:#f8fafc;color:var(--text-3);font-size:.78rem;border-right:1px solid var(--border);user-select:none}
.gw-input-suffix{display:inline-flex;align-items:center;justify-content:center;padding:0 12px;background:#f8fafc;color:var(--text-3);font-size:.72rem;font-weight:650;letter-spacing:.02em;border-left:1px solid var(--border);user-select:none;white-space:nowrap}
.gw-settings .al-field .hint{font-size:.7rem;line-height:1.5;color:var(--text-3);margin-top:6px}

.gw-settings__toggle{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;cursor:pointer;background:#fafbfd;transition:all .15s ease}
.gw-settings__toggle:hover{border-color:#cbd5e1;background:#f8fafc}
.gw-settings__toggle--collection{background:#f8fcfa;border-color:#d1fae5}
.gw-settings__toggle--collection:hover{border-color:#a7f3d0}
.gw-settings__toggle:has(input:checked){background:#f0fdf4;border-color:#86efac}
.gw-settings__toggle-text{min-width:0;flex:1}
.gw-settings__toggle-title-row{display:flex;align-items:center;gap:10px;margin-bottom:3px;flex-wrap:wrap}
.gw-settings__toggle-title-row strong{font-size:.84rem;font-weight:650;color:var(--text)}
.gw-settings__toggle-text small{display:block;margin-top:3px;font-size:.71rem;line-height:1.5;color:var(--text-3)}

.gw-toggle-status{display:inline-flex;align-items:center;gap:4px;font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:2px 7px;border-radius:5px}
.gw-toggle-status--on{background:#dcfce7;color:#15803d;border:1px solid #86efac;display:none}
.gw-toggle-status--off{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0;display:inline-flex}
.gw-settings__toggle:has(input:checked) .gw-toggle-status--on{display:inline-flex}
.gw-settings__toggle:has(input:checked) .gw-toggle-status--off{display:none}
.gw-toggle-pill--on{display:none}
.gw-toggle-pill--off{display:inline-flex}
.gw-settings__toggle:has(input:checked) .gw-toggle-pill--on{display:inline-flex}
.gw-settings__toggle:has(input:checked) .gw-toggle-pill--off{display:none}

.gw-settings__switch{position:relative;display:inline-grid;place-items:center;width:48px;height:32px;flex:none}
.gw-settings__switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:2}
.gw-settings__switch>span{display:block;width:42px;height:24px;background:#cbd5e1;border-radius:24px;position:relative;transition:background .2s ease}
.gw-settings__switch>span:after{content:"";position:absolute;width:18px;height:18px;background:#fff;top:3px;left:3px;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:transform .2s cubic-bezier(.4,0,.2,1)}
.gw-settings__switch input:checked+span{background:var(--brand-deep)}
.gw-settings__switch input:checked+span:after{transform:translateX(18px)}
.gw-settings__switch input:focus-visible+span{outline:3px solid rgba(16,185,129,.35);outline-offset:2px}
.gw-settings__switch input:disabled{cursor:not-allowed}
.gw-settings__switch input:disabled+span{opacity:.5}

.gw-settings__save{position:sticky;bottom:16px;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;border:1px solid rgba(203,213,225,.85);border-radius:14px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(15,23,42,.1)}
.gw-settings__save-info{display:flex;align-items:center;gap:12px;min-width:0}
.gw-settings__save-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#ecfdf5;color:#059669;font-size:.95rem;flex:none;border:1px solid #a7f3d0}
.gw-settings__save-text strong{display:block;font-size:.82rem;font-weight:650;color:var(--text)}
.gw-settings__save-text span{display:block;font-size:.71rem;color:var(--text-3);line-height:1.4}
.gw-settings__save-actions{display:flex;align-items:center;gap:8px;flex:none}
.gw-settings__reset-btn{min-height:38px;font-size:.77rem;font-weight:600;padding:0 14px}
.gw-settings__submit-btn{min-height:38px;font-size:.8rem;font-weight:650;padding:0 16px;box-shadow:0 2px 8px rgba(16,185,129,.25)}

.gw-settings__aside{min-width:0;position:sticky;top:18px;display:grid;gap:16px}
.gw-settings__chain{padding:20px}
.gw-settings__aside-head{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #f1f5f9}
.gw-settings__aside-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eff6ff;color:#2563eb;font-size:.88rem;flex:none;border:1px solid #bfdbfe}
.gw-settings__aside-head h3{font-size:.92rem;font-weight:700;margin:0 0 2px;color:var(--text)}
.gw-settings__aside-head p{font-size:.71rem;color:var(--text-3);margin:0}

.gw-settings__network{display:flex;align-items:center;gap:10px;padding:11px 12px;background:#f8fafc;border:1px solid var(--border);border-radius:10px;margin-bottom:14px}
.gw-settings__network-dot{width:9px;height:9px;border-radius:50%;flex:none;box-shadow:0 0 0 3px rgba(16,185,129,.2);animation:gwPulse 2s infinite}
.gw-settings__network-dot.is-mainnet{background:#10b981}
.gw-settings__network-dot.is-testnet{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.2)}
.gw-settings__network-info strong{display:block;font-size:.8rem;font-weight:700;color:var(--text)}
.gw-settings__network-info small{display:block;font-size:.69rem;color:var(--text-3);margin-top:1px}
.gw-settings__network-tag{margin-left:auto;font-size:.66rem;font-weight:700;padding:3px 8px;border-radius:6px;background:#fef3c7;color:#92400e;white-space:nowrap}
.gw-settings__network-tag.is-mainnet{background:#dcfce7;color:#166534}

.gw-settings__facts{margin:0 0 16px;padding:0;list-style:none;display:grid;gap:7px}
.gw-settings__facts>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:#fafbfd;border:1px solid #f1f5f9;border-radius:8px;font-size:.73rem}
.gw-settings__facts dt{color:var(--text-3);display:flex;align-items:center;gap:6px;font-weight:500}
.gw-settings__facts dt i{color:#94a3b8;font-size:.75rem;width:14px;text-align:center}
.gw-settings__facts dd{margin:0;color:var(--text);font-weight:600}
.gw-fact-num{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:700;color:var(--text)}

.gw-settings__contracts{border-top:1px solid #e2e8f0;padding-top:14px;margin-top:12px}
.gw-settings__contracts summary{display:flex;align-items:center;justify-content:space-between;font-size:.8rem;font-weight:700;color:var(--text);cursor:pointer;user-select:none;outline:none;margin-bottom:10px;list-style:none}
.gw-settings__contracts summary::-webkit-details-marker{display:none}
.gw-settings__contracts-count{font-size:.67rem;font-weight:600;color:var(--brand-deep);background:#ecfdf5;border:1px solid #a7f3d0;padding:2px 7px;border-radius:6px}
.gw-settings__contract-list{display:grid;gap:8px;margin-top:10px}
.gw-contract-item{padding:9px 11px;background:#fafbfd;border:1px solid var(--border);border-radius:9px;transition:border-color .15s}
.gw-contract-item:hover{border-color:#cbd5e1}
.gw-contract-item__meta{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.gw-contract-item__icon{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#f1f5f9;color:var(--text-2);font-size:.72rem;flex:none}
.gw-contract-item__meta strong{display:block;font-size:.76rem;font-weight:650;color:var(--text);line-height:1.2}
.gw-contract-item__meta small{display:block;font-size:.66rem;color:var(--text-3)}
.gw-contract-item__addr-bar{display:flex;align-items:center;justify-content:space-between;gap:6px}
.gw-contract-item__code{font: .72rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;color:#334155;background:#f1f5f9;padding:2px 6px;border-radius:5px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gw-contract-item__actions{display:flex;align-items:center;gap:4px;flex:none}
.gw-contract-item__actions .al-btn.sm{padding:0 7px;min-height:26px;height:26px;font-size:.7rem;border-radius:6px}

.gw-settings__portal-box{border-top:1px solid #e2e8f0;padding-top:14px;margin-top:14px}
.gw-settings__portal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:.75rem;font-weight:700;color:var(--text)}
.gw-settings__portal-head i{color:#6366f1}
.gw-settings__portal-body{background:#fafbfd;border:1px solid var(--border);border-radius:10px;padding:11px}
.gw-settings__portal-client{display:flex;align-items:center;gap:9px;margin-bottom:6px}
.gw-settings__portal-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#e0e7ff;color:#4338ca;font-size:.72rem;font-weight:700;flex:none}
.gw-settings__portal-client strong{display:block;font-size:.78rem;font-weight:700;color:var(--text);line-height:1.3}
.gw-settings__portal-client small{display:block;font-size:.67rem;color:var(--text-3)}
.gw-settings__portal-hint{font-size:.7rem;line-height:1.45;color:var(--text-3);margin:0 0 8px}
.gw-settings__portal-hint--alert{color:#b45309}

.gw-settings__aside-links{display:grid;gap:8px;border-top:1px solid #e2e8f0;padding-top:14px;margin-top:14px}
.gw-settings__aside-link{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#f8fafc;border:1px solid var(--border);border-radius:9px;text-decoration:none;color:var(--text);transition:all .15s ease}
.gw-settings__aside-link:hover{border-color:#cbd5e1;background:#f1f5f9;transform:translateX(2px)}
.gw-settings__aside-link>i:first-child{font-size:.88rem;color:#64748b;width:18px;text-align:center}
.gw-settings__aside-link>div{flex:1;min-width:0}
.gw-settings__aside-link strong{display:block;font-size:.76rem;font-weight:650;color:var(--text)}
.gw-settings__aside-link small{display:block;font-size:.66rem;color:var(--text-3)}
.gw-settings__aside-link>i:last-child{color:#94a3b8;font-size:.75rem}

@keyframes gwPulse{0%{transform:scale(.95);opacity:.85}50%{transform:scale(1.05);opacity:1}100%{transform:scale(.95);opacity:.85}}

@media(max-width:1150px){
  .gw-settings__layout{grid-template-columns:minmax(0,1fr)}
  .gw-settings__aside{position:static}
  .gw-settings__facts{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
  .gw-settings__contract-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .gw-settings__hero{flex-direction:column;align-items:flex-start}
  .gw-settings__hero-actions{width:100%;justify-content:flex-start}
  .gw-settings .al-glass{padding:16px}
  .gw-settings__fields{grid-template-columns:1fr;gap:14px}
  .gw-settings__facts{grid-template-columns:1fr}
  .gw-settings__contract-list{grid-template-columns:1fr}
  .gw-settings__save{flex-direction:column;align-items:stretch;gap:12px;bottom:8px;padding:12px}
  .gw-settings__save-actions{width:100%;display:grid;grid-template-columns:1fr 2fr}
  .gw-settings__save-actions button{min-height:44px;width:100%;justify-content:center}
  .gw-input-wrap input,.gw-input-wrap textarea{font-size:16px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){
  .gw-settings__switch>span:after,.gw-settings__network-dot{transition:none;animation:none}
}

/* Merchant directory: clear identities, financial columns and compact row actions. */
.gw-admin-clients{min-width:0}.gw-admin-clients__heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:2px 0 18px}.gw-admin-clients__heading h2{display:flex;align-items:center;gap:8px;font-size:1.2rem;letter-spacing:-.02em;margin:0 0 5px}.gw-admin-clients__heading h2>span{font-size:.7rem;font-weight:550;letter-spacing:0;color:var(--text-3);background:#fff;border:1px solid var(--border);border-radius:7px;padding:3px 7px}.gw-admin-clients__heading p{margin:0;font-size:.77rem;line-height:1.5;color:var(--text-3)}.gw-admin-clients>.al-glass{padding:17px;border-radius:16px;background:#fff;box-shadow:0 1px 3px #0f172a06}
.gw-admin-clients .al-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(140px,1fr) minmax(140px,1fr) auto;gap:12px;align-items:end}.gw-admin-clients .al-filters .al-field--wide{grid-column:auto}.gw-admin-clients .al-filters .al-field:last-child{align-items:end}.gw-admin-clients .al-field label{text-transform:none;letter-spacing:0;font-size:.73rem;font-weight:550}.gw-admin-clients .al-filters input,.gw-admin-clients .al-filters select{height:40px;border-radius:9px;background:#fafbfd}.gw-admin-clients .al-filters .al-btn{min-height:40px}.gw-admin-clients .al-toolbar{margin-top:15px;padding-top:13px;border-top:1px solid var(--border);gap:12px}.gw-admin-clients .al-toolbar .al-meta{font-size:.72rem;line-height:1.5}
.gw-admin-clients .al-scroll{border-radius:12px;border:1px solid var(--border);overflow:auto}.gw-admin-clients .al-table{min-width:1160px;margin:0;width:100%;border:0}.gw-admin-clients .al-table th{background:#f7f9fc;font-size:.64rem;font-weight:600;letter-spacing:.04em;padding:12px 13px;white-space:nowrap;color:#637086}.gw-admin-clients .al-table td{padding:14px 13px;vertical-align:middle;font-size:.76rem;border-color:#edf0f5}.gw-admin-clients .al-table tbody tr:hover{background:#f8fcfa}.gw-admin-clients .al-table td.num{font-variant-numeric:tabular-nums;white-space:nowrap}.gw-admin-clients .al-table td:first-child{font-size:.72rem;white-space:nowrap}.gw-admin-clients .al-table .gw-client-col{min-width:250px;max-width:320px}.gw-client-identity{display:flex;align-items:flex-start;gap:10px}.gw-client-identity>div{min-width:0}.gw-client-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#eaf6f0;color:var(--brand-deep);font-size:.86rem;font-weight:650}.gw-client-name{font-size:.83rem;font-weight:600;line-height:1.4;color:var(--text)}.gw-client-company{display:block;color:var(--text-2);font-size:.71rem;margin-top:2px}.gw-client-email,.gw-client-site{display:block;font-size:.69rem;line-height:1.5;color:var(--text-3);overflow-wrap:anywhere;margin-top:2px}.gw-client-site{font-size:.66rem;color:#8090a4}.gw-client-badges{display:flex;flex-wrap:wrap;gap:5px;min-width:80px}.gw-admin-clients .al-badge{font-size:.6rem;line-height:1.4;padding:4px 7px;letter-spacing:.025em;border-radius:6px;white-space:nowrap}.gw-client-currency{font-size:.63rem;color:var(--text-3);display:block;margin-top:3px}.gw-client-users{display:inline-flex;min-width:28px;min-height:30px;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:7px;font-weight:550;color:var(--text-2)}.gw-client-webhook{font-size:.68rem;white-space:nowrap;color:var(--text-3)}.gw-client-webhook.is-configured{color:var(--brand-deep)}.gw-client-webhook.is-configured:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:middle}.gw-client-actions{display:inline-block;min-width:86px}.gw-client-actions[open]{min-width:170px}.gw-client-actions>summary{min-height:36px;font-size:.71rem;white-space:nowrap}.gw-client-actions .al-action-menu__items{position:static;width:170px;min-width:170px;max-width:none;box-shadow:none;margin-top:7px;padding:3px;background:#fafbfd}.gw-client-actions .al-action-item{font-size:.73rem;min-height:38px}.gw-admin-clients__scroll-hint{display:none}.gw-admin-clients .al-pager{padding-top:13px;margin-top:12px;border-top:1px solid var(--border)}
@media(max-width:1100px){.gw-admin-clients .al-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.gw-admin-clients__scroll-hint{display:block;font-size:.69rem;color:var(--text-3);margin:0 0 9px}}
@media(max-width:600px){.gw-admin-clients__heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.gw-admin-clients>.al-glass{padding:13px}.gw-admin-clients .al-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.gw-admin-clients .al-filters .al-field:first-child{grid-column:1/-1}.gw-admin-clients .al-filters .al-field:last-child{grid-column:1/-1}.gw-admin-clients .al-filters input,.gw-admin-clients .al-filters select{height:44px;font-size:16px}.gw-admin-clients .al-filters .al-btn,.gw-admin-clients .al-toolbar .al-btn,.gw-client-actions>summary,.gw-client-actions .al-action-item{min-height:44px}.gw-admin-clients .al-toolbar{flex-wrap:wrap}.gw-admin-clients .al-toolbar .al-meta{flex-basis:100%}.gw-admin-clients__heading .al-btn{min-height:44px}.gw-client-users{min-height:44px;min-width:36px}}

@media(max-width:1500px){.gw-admin-clients__scroll-hint{display:block;font-size:.69rem;color:var(--text-3);margin:0 0 9px}}

/* Root-mounted client dialog: scroll the form body, keep actions visible. */
#clientCreate{z-index:120;padding:16px;overscroll-behavior:contain}
#clientCreate .gw-modal__box{max-width:680px;display:flex;flex-direction:column;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden;border:1px solid var(--border);border-radius:16px}
#clientCreate .gw-modal__h,#clientCreate .gw-modal__f{flex-shrink:0;background:#fff;position:relative;z-index:1}
#clientCreate .gw-modal__h{padding:15px 18px;align-items:flex-start}
#clientCreate .gw-modal__h b{font-size:1rem;letter-spacing:-.02em}
#clientCreate .gw-modal__h p{margin:4px 0 0;font-size:.74rem;color:var(--text-3);font-weight:400;line-height:1.4}
#clientCreate .gw-x{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--border);border-radius:9px;flex:none}
#clientCreate .gw-modal__b{overflow-y:auto;min-height:0;padding:16px 18px;overscroll-behavior:contain}
#clientCreate fieldset{min-width:0;margin:0 0 17px;padding:0 0 16px;border:0;border-bottom:1px solid var(--border)}
#clientCreate legend{padding:0;margin:0 0 11px;font-size:.76rem;font-weight:650;color:var(--text)}
#clientCreate .gw-client-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
#clientCreate .al-field{min-width:0}
#clientCreate .al-field label{text-transform:none;letter-spacing:0;font-size:.74rem;font-weight:500;line-height:1.4;margin-bottom:5px;display:flex;gap:4px;align-items:baseline}
#clientCreate .al-field label small{font-size:.65rem;color:var(--text-3);margin-left:auto;font-weight:400}
#clientCreate .al-field input,#clientCreate .al-field select{height:40px;font-size:.82rem;border-radius:9px;background:#fafbfd}
#clientCreate .al-field[hidden]{display:none!important}
#clientCreate .hint,#clientCreate .gw-client-form__note{font-size:.69rem;line-height:1.45;color:var(--text-3);margin-top:5px}
#clientCreate .gw-client-form__note{margin-bottom:0}
#clientCreate .gw-modal__f{padding:12px 18px;align-items:center;flex-wrap:wrap}
#clientCreate .gw-modal__f>span{font-size:.67rem;color:var(--text-3);margin-right:auto}
#clientCreate .gw-modal__f .al-btn{min-height:40px}
@media(max-width:600px){#clientCreate{padding:10px}#clientCreate .gw-modal__box{max-height:calc(100dvh - 20px);border-radius:14px}#clientCreate .gw-modal__h{padding:13px 14px}#clientCreate .gw-modal__b{padding:14px}#clientCreate .gw-client-form__grid{grid-template-columns:1fr;gap:12px}#clientCreate .al-field input,#clientCreate .al-field select{font-size:16px;height:44px}#clientCreate .gw-modal__f{padding:10px 14px}#clientCreate .gw-modal__f>span{flex-basis:100%}#clientCreate .gw-modal__f .al-btn,#clientCreate .gw-x{min-height:44px}#clientCreate .gw-x{width:44px}}

/* Admin users: stable server-side client groups and explicit filters. */
.gw-admin-users{min-width:0}.gw-admin-users__heading{margin:2px 0 17px}.gw-admin-users__heading h2{display:flex;align-items:center;gap:8px;font-size:1.2rem;letter-spacing:-.02em;margin:0 0 5px}.gw-admin-users__heading h2>span{font-size:.7rem;font-weight:500;letter-spacing:0;background:#fff;border:1px solid var(--border);border-radius:7px;padding:3px 7px;color:var(--text-3)}.gw-admin-users__heading p{font-size:.77rem;color:var(--text-3);margin:0}.gw-admin-users>.al-glass{padding:16px;border-radius:16px;background:#fff}
.gw-user-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;align-items:end}.gw-user-filters__search{grid-column:span 2}.gw-user-filters .al-field{min-width:0}.gw-user-filters .al-field label{text-transform:none;letter-spacing:0;font-size:.72rem;font-weight:500}.gw-user-filters input,.gw-user-filters select{height:40px;border-radius:9px;background:#fafbfd}.gw-user-filters__actions{display:flex;gap:8px}.gw-user-filters__actions .al-btn{min-height:40px;white-space:nowrap}
.gw-admin-users__results{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.gw-admin-users__results>span{font-size:.78rem;font-weight:550}.gw-admin-users__results small{font-size:.68rem;color:var(--text-3)}.gw-admin-users__hint{font-size:.68rem;color:var(--text-3);margin:0 0 9px}.gw-admin-users .al-scroll{border:1px solid var(--border);border-radius:12px;overflow:auto}.gw-user-table{min-width:1000px;width:100%;margin:0;border:0}.gw-user-table thead th{background:#f7f9fc;font-size:.64rem;font-weight:600;letter-spacing:.04em;padding:12px;color:var(--text-3)}.gw-user-table td{padding:12px;font-size:.75rem;vertical-align:middle}.gw-user-table .gw-user-table__identity{min-width:220px;max-width:280px;white-space:normal}.gw-user-table__identity>a{font-weight:550;color:var(--text)}.gw-user-table__identity>span{display:block;font-size:.69rem;line-height:1.5;color:var(--text-3);margin-top:3px;overflow-wrap:anywhere}.gw-user-table .gw-user-group>th{background:#f0f7f4;padding:11px 12px;border-top:1px solid #dbeae2;border-bottom:1px solid #dbeae2}.gw-user-group__inner{display:flex;align-items:center;gap:10px;text-transform:none;letter-spacing:0;text-align:left}.gw-user-group__avatar{width:30px;height:30px;display:grid;place-items:center;flex:none;background:#dfeee6;color:var(--brand-deep);border-radius:8px;font-size:.78rem}.gw-user-group__inner>div>a{font-size:.8rem;font-weight:600;color:var(--text)}.gw-user-group__inner small{display:block;font-size:.66rem;font-weight:400;color:var(--text-3);margin-top:3px}.gw-user-group__status{display:flex;gap:5px;margin-left:8px}.gw-user-group__inner>.al-btn{margin-left:auto;font-size:.68rem;min-height:34px;background:#fff}.gw-user-table .al-badge{font-size:.61rem;padding:4px 7px;border-radius:6px}.gw-user-wallet-missing{font-size:.69rem;color:var(--text-3)}.gw-user-wallet-state{display:block;font-size:.65rem;color:var(--text-3);margin-top:4px}.gw-user-table .al-action-menu__items{width:210px;max-width:none;box-shadow:none;padding:4px;background:#fafbfd}.gw-user-table .al-action-menu[open]{min-width:210px}.gw-user-table .al-action-item{font-size:.72rem;min-height:38px}.gw-admin-users .al-pager{padding-top:12px;margin-top:12px;border-top:1px solid var(--border)}
@media(max-width:1100px){.gw-user-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.gw-admin-users__results{align-items:flex-start;flex-direction:column;gap:5px}}
@media(max-width:600px){.gw-admin-users>.al-glass{padding:13px}.gw-user-filters{gap:11px}.gw-user-filters__actions{grid-column:1/-1}.gw-user-filters input,.gw-user-filters select{height:44px;font-size:16px}.gw-user-filters__actions .al-btn,.gw-user-group__inner>.al-btn,.gw-user-table .al-action-menu>summary,.gw-user-table .al-action-item{min-height:44px}.gw-user-table td{padding:11px}.gw-user-group__status{margin-left:0}}

.gw-relayer-setup { max-width: 960px; min-width: 0; margin: 0 auto; }
.gw-relayer-setup__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.gw-relayer-setup__heading h2 { font-size: 1.25rem; margin: 0 0 4px; letter-spacing: -.02em; color: var(--text); display: flex; align-items: center; gap: 8px; }
.gw-relayer-setup__heading p { font-size: .78rem; color: var(--text-3); margin: 0; line-height: 1.5; }
.gw-relayer-setup .al-glass { padding: 20px; background: #fff; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(15, 23, 42, .03); }
.gw-relayer-setup code { overflow-wrap: anywhere; white-space: normal; font-size: .82rem; }
.gw-relayer-setup .al-form { margin-top: 14px; }
.gw-relayer-setup .al-field label { text-transform: none; letter-spacing: 0; font-size: .76rem; font-weight: 600; margin-bottom: 6px; }
.gw-relayer-setup .al-field input { background: #fafbfd; border-radius: 10px; font-size: .84rem; }
.gw-relayer-setup .al-alert ul { padding-left: 18px; margin: 6px 0 0; font-size: .75rem; line-height: 1.6; }
.gw-relayer-setup__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.gw-relayer-setup__actions .al-sub { font-size: .72rem; }
.gw-relayer-setup [data-relayer-key-result] { margin: 10px 0 0; font-size: .78rem; line-height: 1.5; font-weight: 500; }
.gw-relayer-setup input:disabled { opacity: .65; background: #f1f5f9; cursor: not-allowed; }
.gw-relayer-setup button:disabled { opacity: .6; cursor: not-allowed; }

.gw-relayer-setup [data-collector-result] { font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; margin: 12px 0 0; font-weight: 500; }
.gw-relayer-setup [data-collector-tx] { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--brand-deep); padding: 6px 12px; border-radius: 8px; margin: 10px 0; text-decoration: none; }
.gw-relayer-setup [data-collector-tx]:hover { background: #d1fae5; text-decoration: underline; }
.gw-relayer-setup [data-collector-tx][hidden] { display: none; }
.gw-relayer-setup [data-collector-wallet] { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; word-break: break-all; }
.gw-relayer-setup [data-collector-target] { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84rem; }
.gw-relayer-setup [data-collector-verify][hidden] { display: none !important; }

/* Step Workflow Card */
.gw-relayer-step__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.gw-relayer-step__title-wrap { display: flex; align-items: center; gap: 10px; }
.gw-relayer-step__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.gw-relayer-step__title { font-size: .95rem; font-weight: 650; color: var(--text); margin: 0; }
.gw-relayer-step__desc { font-size: .75rem; color: var(--text-3); margin: 2px 0 0; line-height: 1.45; }

/* Web3 Connection Box */
.gw-relayer-web3-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 14px 0; }
.gw-relayer-web3-item { padding: 10px 14px; border-radius: 11px; background: #f8fafc; border: 1px solid var(--border); }
.gw-relayer-web3-item__lbl { font-size: .64rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.gw-relayer-web3-item__val { font-size: .82rem; font-weight: 600; color: var(--text); word-break: break-all; }

/* Status Summary Banner */
.gw-relayer-key-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.gw-relayer-key-tile { padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--border); }
.gw-relayer-key-tile__label { font-size: .64rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.gw-relayer-key-tile__val { font-size: .84rem; font-weight: 600; color: var(--text); word-break: break-all; }
.gw-relayer-key-tile__sub { font-size: .7rem; color: var(--text-3); margin-top: 3px; }

@media (max-width: 600px) {
  .gw-relayer-setup__heading { flex-wrap: wrap; }
  .gw-relayer-setup input { font-size: 16px; min-height: 44px; }
  .gw-relayer-setup .al-btn { min-height: 44px; }
  .gw-relayer-step__head { flex-direction: column; align-items: flex-start; }
}

/* Compact client rows: two identity lines, inline badges and currency. */
.gw-admin-clients .al-table td{padding:10px 13px}.gw-admin-clients .gw-client-identity{align-items:center;gap:9px}.gw-admin-clients .gw-client-avatar{width:30px;height:30px;border-radius:8px}.gw-client-details{width:100%;min-width:0}.gw-client-primary,.gw-client-secondary{display:flex;align-items:center;gap:7px;min-width:0;white-space:nowrap;line-height:1.45}.gw-admin-clients .gw-client-name,.gw-admin-clients .gw-client-company,.gw-admin-clients .gw-client-email,.gw-admin-clients .gw-client-site{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;min-width:0}.gw-client-primary .gw-client-name{flex:0 1 auto}.gw-client-primary .gw-client-company{flex:1 1 auto}.gw-client-primary .gw-client-company:before,.gw-client-secondary .gw-client-site:before{content:"· ";}.gw-client-secondary .gw-client-email{flex:0 1 auto}.gw-client-secondary .gw-client-site{flex:1 1 auto}.gw-admin-clients .gw-client-badges{flex-wrap:nowrap;min-width:max-content}.gw-admin-clients .gw-client-currency{display:inline;margin:0 0 0 4px}.gw-admin-clients .gw-client-col{width:340px;min-width:280px;max-width:380px}

/* Relayer console polish */
.gw-relayer-dashboard { min-width: 0; }
.gw-relayer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 0 18px; flex-wrap: wrap; }
.gw-relayer-header__title h2 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; letter-spacing: -.02em; margin: 0 0 4px; color: var(--text); }
.gw-relayer-header__title p { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--text-3); }
.gw-relayer-header__tags { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; vertical-align: middle; }
.gw-relayer-header__tag { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--border); background: #fff; color: var(--text-2); }
.gw-relayer-header__tag.is-active { background: #ecfdf5; border-color: #a7f3d0; color: var(--brand-deep); }
.gw-relayer-header__tag.is-paused { background: #fef2f2; border-color: #fecaca; color: var(--bad); }
.gw-relayer-header__tag .gw-dot { margin: 0; }
.gw-relayer-header__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.gw-relayer-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.gw-relayer-stats .lst-stat { display: grid; grid-template-columns: minmax(0, 1fr) 34px; grid-template-rows: auto auto auto; align-content: start; column-gap: 8px; row-gap: 4px; padding: 12px 14px; min-height: 104px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); transition: border-color .15s, box-shadow .15s; }
.gw-relayer-stats .lst-stat:hover { border-color: #9dceb8; background: #f9fdfb; box-shadow: 0 3px 10px rgba(15, 23, 42, .04); }
.gw-relayer-stats .lst-stat__ico { grid-column: 2; grid-row: 1; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: .92rem; }
.gw-relayer-stats .lst-stat__l { grid-column: 1; grid-row: 1; font-size: .67rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); align-self: center; }
.gw-relayer-stats .lst-stat__v { grid-column: 1 / -1; grid-row: 2; font-size: 1.45rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; color: var(--text); display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.gw-relayer-stats .lst-stat__v small { font-size: .75rem; font-weight: 500; color: var(--text-3); }
.gw-relayer-stats .lst-stat__s { grid-column: 1 / -1; grid-row: 3; font-size: .72rem; line-height: 1.4; color: var(--text-3); }

.gw-relayer-addr-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.gw-relayer-addr-box__meta { min-width: 0; }
.gw-relayer-addr-box__label { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.gw-relayer-addr-box__val { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84rem; font-weight: 600; color: var(--text); word-break: break-all; }
.gw-relayer-addr-box__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.gw-relayer-nonce-board { margin: 16px 0; }
.gw-relayer-nonce-board__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gw-relayer-nonce-board__title { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.gw-relayer-nonce-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gw-relayer-nonce-box { padding: 10px 12px; border-radius: 11px; background: #f8fafc; border: 1px solid var(--border); text-align: center; }
.gw-relayer-nonce-box.is-db { background: #f0fdf9; border-color: #bbf7d0; }
.gw-relayer-nonce-box__label { font-size: .63rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.gw-relayer-nonce-box__val { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.gw-relayer-nonce-box__hint { font-size: .67rem; color: var(--text-3); margin-top: 2px; }
.gw-relayer-nonce-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; font-size: .78rem; font-weight: 500; }
.gw-relayer-nonce-bar.is-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--brand-deep); }
.gw-relayer-nonce-bar.is-bad { background: #fef2f2; border: 1px solid #fecaca; color: var(--bad); }
.gw-relayer-nonce-bar.is-wait { background: #fffbeb; border: 1px solid #fde68a; color: var(--warn); }

.gw-relayer-specs { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; margin: 14px 0 0; font-size: .84rem; }
.gw-relayer-specs dt { color: var(--text-3); font-weight: 500; }
.gw-relayer-specs dd { margin: 0; color: var(--text); min-width: 0; }

.gw-relayer-contract-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.gw-relayer-contract-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 11px; background: #f8fafc; border: 1px solid var(--border); transition: background .15s; }
.gw-relayer-contract-row:hover { background: #f1f5f9; }
.gw-relayer-contract-row__info { min-width: 0; }
.gw-relayer-contract-row__role { display: inline-flex; align-items: center; gap: 6px; font-size: .67rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 2px; }
.gw-relayer-contract-row__addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: var(--text); word-break: break-all; }
.gw-relayer-contract-row__desc { font-size: .7rem; color: var(--text-3); margin-top: 2px; }
.gw-relayer-contract-row__actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }

.gw-relayer-callout { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: #f0f7f4; border: 1px solid #d1fae5; font-size: .77rem; line-height: 1.55; color: #1e3a2f; margin-top: 14px; }
.gw-relayer-callout i { color: var(--brand-deep); font-size: .95rem; margin-top: 2px; }

.gw-relayer-table th { font-size: .65rem; letter-spacing: .05em; padding: 11px 12px; }
.gw-relayer-table td { font-size: .78rem; padding: 10px 12px; }
.gw-relayer-nonce-tag { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; font-size: .76rem; background: #e2e8f0; color: #1e293b; padding: 2px 7px; border-radius: 6px; }

.gw-relayer-cursor-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.gw-relayer-cursor-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 11px; background: #f8fafc; border: 1px solid var(--border); }
.gw-relayer-cursor-row__name { font-weight: 600; font-size: .8rem; color: var(--text); }
.gw-relayer-cursor-row__block { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; color: var(--text-3); }
.gw-relayer-cursor-row__lag { display: flex; align-items: center; gap: 6px; }

.gw-relayer-reorg-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.gw-relayer-reorg-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: .76rem; color: #92400e; }
.gw-relayer-reorg-clear { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 10px; background: #f8fafc; border: 1px dashed var(--border); font-size: .76rem; color: var(--text-3); margin-top: 12px; }

.gw-relayer-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px 16px; color: var(--text-3); }
.gw-relayer-empty i { font-size: 2rem; color: var(--brand); margin-bottom: 8px; opacity: .8; }
.gw-relayer-empty b { color: var(--text); font-size: .9rem; margin-bottom: 3px; }
.gw-relayer-empty span { font-size: .76rem; max-width: 380px; }

@media (max-width: 1200px) {
  .gw-relayer-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gw-relayer-stats .lst-stat:first-child { grid-column: span 2; }
}
@media (max-width: 768px) {
  .gw-relayer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-relayer-stats .lst-stat:first-child { grid-column: 1 / -1; }
  .gw-relayer-nonce-boxes { grid-template-columns: 1fr; }
  .gw-relayer-specs { grid-template-columns: 1fr; gap: 2px; }
  .gw-relayer-specs dd { margin-bottom: 8px; }
  .gw-relayer-contract-row { flex-direction: column; align-items: flex-start; }
  .gw-relayer-contract-row__actions { margin-top: 6px; width: 100%; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .gw-relayer-stats { grid-template-columns: 1fr; }
  .gw-relayer-header { flex-direction: column; align-items: flex-start; }
  .gw-relayer-header__actions { width: 100%; }
  .gw-relayer-header__actions .al-btn { flex: 1; }
}

/* ================================================================
   Admin Single Client View: Identity Hero, Financial KPIs, Pricing Engine, Credentials Hub
   ================================================================ */
.gw-admin-client { display: grid; gap: 18px; min-width: 0; }
.gw-admin-client__hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(15,23,42,.03); }
.gw-admin-client__identity { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.gw-admin-client__avatar { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #ecfdf5; color: #059669; font-size: 1.15rem; font-weight: 700; border: 1px solid #a7f3d0; flex: none; }
.gw-admin-client__titles { min-width: 0; flex: 1; }
.gw-admin-client__title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.gw-admin-client__title-row h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; margin: 0; color: var(--text); }
.gw-admin-client__id-pill { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; font-weight: 700; color: #64748b; background: #f1f5f9; padding: 2px 7px; border-radius: 6px; }
.gw-admin-client__meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .76rem; color: var(--text-3); }
.gw-admin-client__meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.gw-admin-client__hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: none; }

.gw-admin-client__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gw-kpi-tile { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(15,23,42,.02); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: all .15s ease; }
a.gw-kpi-tile:hover { border-color: #10b981; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,.06); }
.gw-kpi-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gw-kpi-tile__label { font-size: .72rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; }
.gw-kpi-tile__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; font-size: .88rem; flex: none; }
.gw-kpi-tile__icon--blue { background: #eff6ff; color: #2563eb; }
.gw-kpi-tile__icon--emerald { background: #ecfdf5; color: #059669; }
.gw-kpi-tile__icon--cyan { background: #ecfeff; color: #0891b2; }
.gw-kpi-tile__icon--purple { background: #f5f3ff; color: #7c3aed; }
.gw-kpi-tile__val { font-size: 1.55rem; font-weight: 700; color: var(--text); line-height: 1.2; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.gw-kpi-tile__val small { font-size: .76rem; font-weight: 550; color: var(--text-3); margin-left: 2px; }
.gw-kpi-tile__footer { font-size: .71rem; color: var(--text-3); font-weight: 500; }
.gw-kpi-tile--accent { border-color: #e9d5ff; background: #faf5ff; }

.gw-admin-client__billing-card { padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(15,23,42,.02); }
.gw-admin-client__card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.gw-admin-client__card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: .95rem; flex: none; }
.gw-admin-client__card-icon--indigo { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.gw-admin-client__card-icon--emerald { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.gw-admin-client__card-icon--blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.gw-admin-client__card-icon--purple { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.gw-admin-client__card-head h3 { font-size: .98rem; font-weight: 700; margin: 0 0 2px; color: var(--text); }
.gw-admin-client__card-head p { font-size: .74rem; color: var(--text-3); margin: 0; }

.gw-admin-client__billing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gw-admin-client__billing-item { padding: 12px 14px; background: #fafbfd; border: 1px solid var(--border); border-radius: 10px; }
.gw-admin-client__billing-item--wide { grid-column: 1 / -1; }
.gw-billing-label { display: block; font-size: .7rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.gw-billing-value { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gw-billing-value small { color: var(--text-3); font-size: .72rem; }
.gw-billing-invoice-box { display: grid; gap: 10px; margin-top: 4px; }
.gw-billing-invoice-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gw-billing-invoice-meta strong { font-size: .9rem; font-weight: 700; color: var(--text); }
.gw-billing-invoice-meta small { display: block; font-size: .73rem; color: var(--text-3); margin-top: 2px; }
.gw-billing-addr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.gw-billing-addr-caption { font-size: .74rem; font-weight: 600; color: var(--text-2); }
.gw-billing-addr-code { font: .74rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: #fff; border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; color: #1e293b; }

.gw-admin-client__workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.gw-admin-client__settings-card, .gw-admin-client__keys-card, .gw-admin-client__webhook-card { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(15,23,42,.025); }
.gw-admin-client__integrations-col { display: grid; gap: 18px; min-width: 0; }

.gw-client-form { display: flex !important; flex-direction: column !important; gap: 16px !important; width: 100% !important; }
.gw-client-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gw-client-form__row--3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gw-client-form__fieldset { padding: 16px 18px; border: 1px solid #f1f5f9; border-radius: 12px; background: #fafbfd; display: flex; flex-direction: column; gap: 12px; }
.gw-client-form__legend { font-size: .79rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.gw-client-form__actions { margin-top: 6px; }
.gw-client-form__save-btn { min-height: 42px; font-size: .84rem; font-weight: 650; width: 100%; justify-content: center; box-shadow: 0 2px 8px rgba(16,185,129,.25); }

.gw-keys-table-scroll { border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; margin-bottom: 12px; }
.gw-keys-table-scroll .al-table { width: 100%; }
.gw-keys-table-scroll .al-table th, .gw-keys-table-scroll .al-table td { padding: 10px 12px; }
.gw-key-prefix-row { display: flex; align-items: center; gap: 6px; }
.gw-key-code { font: .74rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: #f1f5f9; padding: 2px 6px; border-radius: 5px; color: #1e293b; }
.gw-key-last-used { display: flex; flex-direction: column; gap: 2px; }
.gw-key-time { font-size: .76rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.gw-ip-pill { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; color: var(--text-3); }

.gw-key-issue-box { padding: 12px 14px; background: #fafbfd; border: 1px solid var(--border); border-radius: 10px; }
.gw-key-issue-box__fields { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(110px, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 4px; }
.gw-key-issue-box__fields input { min-width: 0; }
.gw-key-issue-box__fields select { min-width: 0; }

.gw-webhook-info-box { display: grid; gap: 10px; padding: 12px 14px; background: #fafbfd; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.gw-webhook-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gw-webhook-label { font-size: .72rem; font-weight: 600; color: var(--text-3); }
.gw-webhook-value { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gw-webhook-code { font: .72rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: #fff; border: 1px solid var(--border); padding: 3px 7px; border-radius: 5px; color: #0f172a; word-break: break-all; }
.gw-webhook-footer-link { padding-top: 8px; border-top: 1px solid #f1f5f9; }

.gw-admin-client__hub { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.gw-hub-title { font-size: .76rem; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.gw-hub-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.gw-hub-count { font-size: .65rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: #f1f5f9; color: var(--text-2); margin-left: 4px; }

@media (max-width: 1100px) {
  .gw-admin-client__workspace { grid-template-columns: minmax(0, 1fr); }
  .gw-admin-client__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-admin-client__billing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-client-form__row--3col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .gw-admin-client__hero { flex-direction: column; align-items: flex-start; }
  .gw-admin-client__hero-actions { width: 100%; }
  .gw-admin-client__kpis { grid-template-columns: 1fr; }
  .gw-admin-client__billing-grid { grid-template-columns: 1fr; }
  .gw-client-form__row { grid-template-columns: 1fr; }
  .gw-client-form__row--3col { grid-template-columns: 1fr; }
  .gw-key-issue-box__fields { grid-template-columns: 1fr; }
  .gw-key-issue-box__fields button { width: 100%; }
  .gw-admin-client__hub { flex-direction: column; align-items: flex-start; }
  .gw-hub-links { width: 100%; }
}





