:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-2: #111827;
  --line: #1e293b;
  --muted: #94a3b8;
  --text: #e5edf8;
  --strong: #f8fafc;
  --blue: #2563eb;
  --blue-2: #38bdf8;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 8px;
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
code, pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(30, 41, 59, .9);
  background: rgba(2, 6, 23, .94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--strong); white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), #7c3aed); }
.top-nav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar, .mobile-console-nav::-webkit-scrollbar { display: none; }
.top-link, .side-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  white-space: nowrap;
}
.top-link:hover, .side-link:hover { background: #111c31; color: var(--strong); }
.top-link.active, .side-link.active { background: rgba(37, 99, 235, .18); color: #bfdbfe; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.primary-btn, .ghost-btn, .danger-btn, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--strong);
  background: transparent;
}
.primary-btn { background: var(--blue); border-color: rgba(147, 197, 253, .25); }
.primary-btn:hover { background: #1d4ed8; }
.ghost-btn, .icon-btn { border-color: var(--line); background: #0b1220; color: var(--text); }
.ghost-btn:hover, .icon-btn:hover { background: #14213a; }
.danger-btn { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.compact { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.small { min-height: 30px; padding: 5px 9px; font-size: 12px; margin-right: 6px; }

.public-main { width: 100%; flex: 1; }
.public-layout { min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.section { max-width: 1180px; margin: 0 auto; padding: 34px 24px; }
.page-section { padding-top: 42px; }
.hero-section {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 32px;
  align-items: center;
  padding: 48px 24px;
}
.hero-section h1 { margin: 0 0 14px; font-size: clamp(42px, 7vw, 74px); line-height: 1; letter-spacing: 0; }
.hero-section p, .lead { color: var(--muted); font-size: 18px; line-height: 1.7; }
.eyebrow { display: inline-flex; margin-bottom: 18px; padding: 5px 9px; border: 1px solid rgba(56, 189, 248, .3); border-radius: 999px; color: #7dd3fc; background: rgba(14, 165, 233, .08); }
.hero-actions, .modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-tags span, .footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, .08);
  font-size: 12px;
}
.hero-panel, .panel, .model-card, .stat-card, .auth-card {
  background: rgba(15, 23, 42, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}
.hero-panel { padding: 22px; }
.gateway-card { display: grid; gap: 4px; }
.gateway-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; color: var(--muted); }
.metric-row { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.metric-row:last-child { border-bottom: 0; }
.metric-row span, .muted, small { color: var(--muted); }
.copy-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(56, 189, 248, .2);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, .28);
}
.copy-line code { min-width: 0; overflow-wrap: anywhere; color: #bae6fd; }

.signal-section { padding-top: 0; }
.signal-grid, .steps-grid { display: grid; gap: 14px; }
.signal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.signal-card, .step-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, .58);
  padding: 16px;
}
.signal-card strong { display: block; color: var(--strong); font-size: 28px; margin-bottom: 6px; }
.signal-card span, .step-card h3 { display: block; color: var(--text); }
.signal-card small, .step-card p { display: block; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.feature-card { display: grid; gap: 8px; }
.feature-card i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius); color: #bfdbfe; background: rgba(37, 99, 235, .2); }
.feature-card h3, .feature-card p { margin-bottom: 0; }
.route-workbench {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, .72);
  overflow: hidden;
}
.tab-controls {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, .26);
}
.tab-btn {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1220;
  color: var(--muted);
  white-space: nowrap;
}
.tab-btn:hover, .tab-btn.active { color: var(--strong); border-color: rgba(56, 189, 248, .34); background: rgba(37, 99, 235, .2); }
.tab-panel { padding: 18px; }
.tab-panel h3 { margin: 0 0 8px; color: var(--strong); }
.tab-panel p { margin: 0; color: var(--muted); }
.step-card span { color: #7dd3fc; font-weight: 800; letter-spacing: .04em; }
.step-card h3 { margin: 10px 0 0; }
.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.home-cta h2 { margin: 0 0 8px; color: var(--strong); }
.home-cta p { margin: 0; color: var(--muted); line-height: 1.6; }

.section-head, .page-title.with-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-head h1, .section-head h2, .page-title h1 { margin: 0; color: var(--strong); font-size: 30px; }
.section-head p, .page-title p { margin: 6px 0 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model-card, .panel, .stat-card, .auth-card { padding: 18px; }
.model-title { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.model-title h3, .panel h2, .panel h3 { margin: 0 0 10px; color: var(--strong); }
.model-card p, .panel p { color: var(--muted); line-height: 1.55; }
.model-meta, .price-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; color: #cbd5e1; font-size: 13px; }

.console-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.console-sidebar { border-right: 1px solid var(--line); background: #08111f; padding: 18px 12px; }
.user-block { display: flex; gap: 10px; align-items: center; padding: 10px; margin-bottom: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-weight: 800; }
.user-block span { display: block; color: var(--muted); font-size: 12px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.side-nav { display: grid; gap: 4px; }
.console-main { min-width: 0; padding: 24px; }
.mobile-console-nav { display: none; gap: 4px; overflow-x: auto; margin: -8px -8px 18px; padding: 8px; border-bottom: 1px solid var(--line); }
.page-stack { display: grid; gap: 18px; max-width: 1180px; margin: 0 auto; }
.page-stack.narrow { max-width: 680px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 24px; color: var(--strong); }
.action-grid, .info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.action-card {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #07111f;
  color: var(--text);
  text-align: left;
}
.action-card:hover, .thread-item:hover { border-color: rgba(56, 189, 248, .35); background: #0b1728; }
.action-card i { grid-row: span 2; color: #93c5fd; }
.action-card strong { color: var(--strong); overflow-wrap: anywhere; }
.action-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.button-card { cursor: pointer; font: inherit; }

label { display: grid; gap: 7px; color: #cbd5e1; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070d19;
  color: var(--strong);
  padding: 10px 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(56, 189, 248, .12); }
.toolbar { margin-bottom: 14px; }
.form-row, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid { margin: 12px 0; }
.playground-grid, .topup-grid, .messages-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; }
.response-box, .code-card pre { min-height: 220px; white-space: pre-wrap; overflow: auto; }
.break-code { display: block; white-space: normal; word-break: break-all; margin: 12px 0; color: #bae6fd; }
.inline-code { color: #bae6fd; word-break: break-all; }
.panel-head, .thread-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2, .thread-detail-head h2 { margin: 0; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 10px; }
.summary-panel { min-width: 0; }
.summary-list { display: grid; gap: 10px; margin: 10px 0 14px; }
.summary-list div { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid rgba(30, 41, 59, .72); }
.summary-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-list span { color: var(--muted); font-size: 12px; }
.summary-list strong { color: var(--strong); overflow-wrap: anywhere; }
.action-list { display: grid; gap: 10px; }
.mini-table { display: grid; gap: 8px; }
.mini-table div { display: grid; grid-template-columns: minmax(92px, auto) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.mini-table span { color: var(--muted); }
.mini-table strong { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-table em { color: #bae6fd; font-style: normal; white-space: nowrap; }
.topup-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.qr-address-grid { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 16px; }
.topup-qr { width: 148px; aspect-ratio: 1; object-fit: cover; border: 1px solid rgba(56, 189, 248, .28); border-radius: var(--radius); background: #fff; padding: 6px; }
.address-actions, .record-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.record-actions .small { margin-right: 0; }
.topup-order-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.topup-order-summary div { border: 1px solid var(--line); border-radius: var(--radius); background: #07111f; padding: 10px; }
.topup-order-summary span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.topup-order-summary strong { color: var(--strong); word-break: break-word; }
.modal-topup-grid { grid-template-columns: 132px minmax(0, 1fr); }
.modal-topup-grid .topup-qr { width: 132px; }
.qr-modal-body { display: grid; gap: 16px; justify-items: center; }
.qr-modal-body .topup-qr.qr-large { width: min(280px, 100%); }
.qr-modal-address { width: 100%; display: grid; gap: 8px; }
.qr-modal-body .modal-actions { justify-content: center; width: 100%; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #cbd5e1; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: rgba(15, 23, 42, .8); }
td small { display: block; margin-top: 3px; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 12px; border: 1px solid var(--line); }
.badge-success { color: #bbf7d0; background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .28); }
.badge-danger { color: #fecaca; background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .28); }
.badge-warn { color: #fde68a; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .28); }

.auth-page { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(440px, 100%); display: grid; gap: 14px; }
.auth-card h1 { margin: 0; color: var(--strong); }
.form-message { min-height: 22px; color: #fca5a5; }
.auth-links { display: flex; justify-content: center; color: #93c5fd; }

.docs-layout { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 24px; }
.docs-content { min-width: 0; }
.docs-content .info-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.docs-content .panel { min-width: 0; }
.docs-content .panel code { overflow-wrap: anywhere; word-break: break-word; }
.docs-nav { position: sticky; top: 88px; height: fit-content; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 23, 42, .75); }
.docs-nav a { padding: 8px 10px; border-radius: 6px; color: var(--muted); }
.docs-nav a:hover { background: #111c31; color: var(--strong); }
.doc-block { padding-top: 22px; }
.code-card { min-width: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #070d19; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.code-head button { border: 1px solid var(--line); background: #101a2d; color: var(--text); border-radius: 6px; padding: 5px 8px; }
.code-card pre { margin: 0; padding: 14px; }

.thread-list { max-height: 640px; overflow: auto; }
.thread-item { width: 100%; display: grid; gap: 6px; text-align: left; border: 1px solid var(--line); background: #07111f; color: var(--text); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.thread-item.active { border-color: rgba(56, 189, 248, .58); background: rgba(37, 99, 235, .16); }
.thread-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.thread-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item span, .thread-item small { color: var(--muted); }
.thread-item em { justify-self: start; color: #bfdbfe; font-size: 12px; font-style: normal; }
.message-list { display: grid; gap: 10px; margin: 14px 0; max-height: 430px; overflow: auto; }
.message-bubble { max-width: 82%; padding: 10px 12px; border-radius: var(--radius); background: #111827; }
.message-bubble.mine { justify-self: end; background: rgba(37, 99, 235, .25); }

.empty-state, .center-panel { text-align: center; color: var(--muted); }
.loading-row { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(148, 163, 184, .35); border-top-color: var(--blue-2); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-panel { border: 1px solid rgba(239, 68, 68, .3); background: rgba(239, 68, 68, .08); color: #fecaca; border-radius: var(--radius); padding: 18px; }
.info-strip { border: 1px solid rgba(56, 189, 248, .25); background: rgba(14, 165, 233, .08); color: #bae6fd; padding: 12px 14px; border-radius: var(--radius); }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(2, 6, 23, .72); }
.modal-panel { width: min(520px, 100%); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #0b1220; padding: 20px; }
#toast-host { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 8px; }
.toast { padding: 10px 12px; border-radius: var(--radius); background: #111827; border: 1px solid var(--line); }
.toast-success { border-color: rgba(16, 185, 129, .4); color: #bbf7d0; }
.toast-error { border-color: rgba(239, 68, 68, .4); color: #fecaca; }

.public-footer {
  border-top: 1px solid rgba(30, 41, 59, .9);
  background: #050b16;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.4fr);
  gap: 32px;
}
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 560px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.footer-grid div { display: grid; gap: 10px; align-content: start; }
.footer-grid strong { color: var(--strong); }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: #bfdbfe; }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(30, 41, 59, .64);
}

html { scroll-behavior: smooth; }
body { min-width: 320px; text-rendering: optimizeLegibility; }
::selection { background: rgba(56, 189, 248, .28); color: var(--strong); }
* { scrollbar-color: rgba(148, 163, 184, .34) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .26); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, .42); }

.app-header { box-shadow: 0 1px 0 rgba(148, 163, 184, .05); }
.brand, .top-link, .side-link, .primary-btn, .ghost-btn, .danger-btn, .icon-btn, .action-card, .thread-item, .docs-nav a, .code-head button {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.primary-btn, .ghost-btn, .danger-btn, .icon-btn { line-height: 1.2; white-space: nowrap; }
.primary-btn:hover, .ghost-btn:hover, .danger-btn:hover, .icon-btn:hover, .action-card:hover, .thread-item:hover { transform: translateY(-1px); }
.primary-btn:active, .ghost-btn:active, .danger-btn:active, .icon-btn:active, .action-card:active, .thread-item:active { transform: translateY(0); }
.primary-btn:focus-visible, .ghost-btn:focus-visible, .danger-btn:focus-visible, .icon-btn:focus-visible,
.top-link:focus-visible, .side-link:focus-visible, .action-card:focus-visible, .thread-item:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, .docs-nav a:focus-visible, .code-head button:focus-visible {
  outline: 2px solid rgba(56, 189, 248, .7);
  outline-offset: 2px;
}
.is-copied { border-color: rgba(16, 185, 129, .45) !important; background: rgba(16, 185, 129, .12) !important; color: #bbf7d0 !important; }

.hero-section > *, .page-title, .section-head > *, .panel, .model-card, .stat-card, .auth-card { min-width: 0; }
.hero-section h1, .section-head h1, .section-head h2, .page-title h1 { overflow-wrap: anywhere; }
.hero-section p { max-width: 760px; }
.hero-panel, .panel, .model-card, .stat-card, .auth-card { box-shadow: 0 12px 28px rgba(0, 0, 0, .14); }
.model-card:hover, .panel.interactive:hover, .stat-card:hover { border-color: rgba(56, 189, 248, .26); }
.metric-row strong { text-align: right; overflow-wrap: anywhere; }
.stat-card strong { font-size: clamp(20px, 2.4vw, 24px); overflow-wrap: anywhere; }
.empty-state { display: grid; place-items: center; gap: 6px; min-height: 92px; padding: 16px; }
.empty-state p { margin: 0; }
.table-wrap:not(.panel) { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 23, 42, .72); }
th, td { overflow-wrap: anywhere; }
tbody tr:hover { background: rgba(15, 23, 42, .44); }
.code-card pre { max-width: 100%; }
.modal-backdrop { animation: overlay-in .14s ease-out; }
.modal-panel { box-shadow: 0 24px 80px rgba(0, 0, 0, .42); }
.toast { box-shadow: 0 16px 34px rgba(0, 0, 0, .24); animation: toast-in .18s ease-out; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 1080px) {
  .top-nav { display: none; }
  .hero-section, .playground-grid, .topup-grid, .messages-layout, .docs-layout { grid-template-columns: 1fr; }
  .card-grid, .compact-grid, .stat-grid, .action-grid, .info-grid, .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-nav { position: static; display: flex; overflow-x: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-header { padding: 0 12px; gap: 8px; }
  .brand span:last-child { display: none; }
  .header-actions { gap: 5px; }
  .console-layout { display: block; }
  .console-sidebar { display: none; }
  .console-main { padding: 16px; }
  .mobile-console-nav { display: flex; }
  .card-grid, .compact-grid, .stat-grid, .action-grid, .info-grid, .form-row, .form-grid, .filter-bar, .signal-grid, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 28px 16px; min-height: auto; }
  .copy-line { grid-template-columns: 1fr; }
  .qr-address-grid, .modal-topup-grid, .topup-order-summary { grid-template-columns: 1fr; }
  .topup-qr, .modal-topup-grid .topup-qr { width: min(220px, 100%); }
  .panel-head, .thread-detail-head { align-items: stretch; flex-direction: column; }
  .mini-table div { grid-template-columns: 1fr; }
  .section { padding: 24px 16px; }
  .page-title.with-actions, .section-head { align-items: stretch; flex-direction: column; }
  .home-cta, .footer-bottom { align-items: stretch; flex-direction: column; }
  .footer-inner { padding: 26px 16px; }
  .footer-bottom { padding: 14px 16px 20px; }
  .compact { padding: 6px 8px; }
}


.form-message {

  min-height: 22px;

  border: 1px solid rgba(239, 68, 68, .35);

  background: rgba(239, 68, 68, .10);

  color: #fecaca;

  border-radius: var(--radius-sm);

  padding: 10px 12px;

}

.form-message[hidden] { display: none; }

.form-message[data-type="success"] {

  border-color: rgba(16, 185, 129, .35);

  background: rgba(16, 185, 129, .10);

  color: #bbf7d0;

}

.auth-links-split { justify-content: space-between; gap: 12px; }

