* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #08101c;
  --bg-soft: #0c1522;
  --surface: rgba(15, 22, 36, 0.82);
  --surface-strong: rgba(11, 17, 29, 0.95);
  --surface-muted: rgba(255, 255, 255, 0.025);
  --border: rgba(160, 183, 255, 0.12);
  --border-strong: rgba(138, 223, 255, 0.18);
  --text: #e6edf8;
  --text-soft: #c1ccdf;
  --text-muted: #8b97ad;
  --heading: #ffffff;
  --accent: #7c5cff;
  --accent-hover: #9277ff;
  --accent-cyan: #34d1ff;
  --success: #56e39f;
  --warning: #ffd479;
  --danger: #ff7c96;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ui-table-min-trades: 1380px;
  --ui-table-min-market: 1100px;
}

html { scroll-behavior: smooth; }
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.18), transparent 22%),
    radial-gradient(circle at 86% 10%, rgba(52, 209, 255, 0.1), transparent 16%),
    linear-gradient(180deg, #0a1220 0%, #0c1522 42%, #08101c 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.sidebar-open { overflow: hidden; }

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { color: #99e9ff; }

.page-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.68;
}
.glow-1 { top: 70px; left: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 68%); }
.glow-2 { top: 280px; right: -120px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(52, 209, 255, 0.18), transparent 70%); }

.layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 252px;
  min-height: 100vh;
  padding: 22px 14px 18px;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(138, 223, 255, 0.28), rgba(255, 255, 255, 0));
}
.sidebar-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-soft);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.24), rgba(52, 209, 255, 0.18));
  color: var(--heading);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong {
  font-family: 'Montserrat', sans-serif;
  color: var(--heading);
  font-size: 0.96rem;
  letter-spacing: -0.03em;
}
.brand-copy small {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.merchant-panel {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-soft);
}
.merchant-label {
  display: inline-flex;
  margin-bottom: 6px;
  color: #ffd8a5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.merchant-panel strong {
  display: block;
  color: var(--heading);
  font-size: 1rem;
  margin-bottom: 4px;
}
.merchant-panel p { color: var(--text-soft); font-size: 0.84rem; }

.sidebar-nav { display: grid; gap: 7px; }
.sidebar-nav a,
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.sidebar-nav a:hover,
.sidebar-logout:hover {
  transform: translateX(2px);
  color: var(--heading);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(160, 183, 255, 0.1);
}
.sidebar-nav a.active {
  color: var(--heading);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(52, 209, 255, 0.08));
  border-color: rgba(138, 223, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 22px rgba(0, 0, 0, 0.18);
}
.sidebar-logout {
  margin-top: auto;
  color: #ffc0ca;
  background: rgba(255, 124, 150, 0.06);
  border-color: rgba(255, 124, 150, 0.12);
}

.main {
  flex: 1;
  min-width: 0;
  padding: var(--ui-dashboard-main-padding, 24px 24px 34px);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-strong), rgba(9, 15, 27, 0.94));
  box-shadow: var(--shadow);
}
.topbar h1 {
  margin: 0;
  color: var(--heading);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.78rem;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.topbar p {
  margin-top: 8px;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 152px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.topbar-chip span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.topbar-chip strong,
.topbar-chip code {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
}
.topbar-chip code {
  font-family: 'JetBrains Mono', monospace;
  background: none;
  padding: 0;
}
.topbar-chip-accent {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(52, 209, 255, 0.08));
  border-color: rgba(138, 223, 255, 0.16);
}
button.theme-toggle {
  min-height: auto;
  min-width: 150px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--heading);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
button.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(138, 223, 255, 0.16);
}
button.theme-toggle strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.content { display: grid; gap: var(--ui-gap-lg, 18px); min-width: 0; }
.content > * { min-width: 0; }
.main h1 {
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.58rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.main h2, .main h3 { color: var(--heading); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-dashboard-card-min, 210px)), 1fr)); gap: var(--ui-gap-md, 14px); margin-bottom: 20px; }
.card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(10, 16, 28, 0.94));
  box-shadow: var(--shadow-soft);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-left: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 223, 255, 0.18);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}
.card .label { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.card .value { font-size: 1.48rem; font-weight: 800; color: var(--heading); }
.card-blue .value { color: #9e8cff; }
.card-green .value { color: var(--success); }
.card-orange .value { color: var(--warning); }
.card-red .value { color: var(--danger); }

table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, var(--surface), rgba(10, 16, 28, 0.94));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}
th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(160, 183, 255, 0.1);
  font-size: 0.8rem;
}
th {
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.badge-green { background: rgba(86, 227, 159, 0.1); color: #97f0bf; border-color: rgba(86, 227, 159, 0.2); }
.badge-yellow { background: rgba(255, 212, 121, 0.1); color: #ffe1a5; border-color: rgba(255, 212, 121, 0.22); }
.badge-red { background: rgba(255, 124, 150, 0.1); color: #ffb4c0; border-color: rgba(255, 124, 150, 0.22); }
.badge-blue { background: rgba(52, 209, 255, 0.1); color: #b7f2ff; border-color: rgba(52, 209, 255, 0.22); }
.badge-gray { background: rgba(255, 255, 255, 0.08); color: #d2dbed; border-color: rgba(255, 255, 255, 0.1); }
.badge-purple { background: rgba(124, 92, 255, 0.12); color: #cbc0ff; border-color: rgba(124, 92, 255, 0.18); }
.badge-pink { background: rgba(255, 124, 150, 0.1); color: #ffc0ca; border-color: rgba(255, 124, 150, 0.18); }

input, select, button, textarea {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(160, 183, 255, 0.14);
  background: rgba(7, 12, 22, 0.8);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
input::placeholder,
textarea::placeholder { color: #7f8ba3; }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
  background: rgba(9, 15, 27, 0.96);
}
button {
  background: linear-gradient(135deg, var(--accent), #5da4ff);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(124, 92, 255, 0.16);
}
button:hover { transform: translateY(-1px); background: linear-gradient(135deg, var(--accent-hover), #6cb0ff); }

.money,
.full-id { font-family: 'JetBrains Mono', monospace; }
.full-id { font-size: 0.72rem; }

.pagination { margin-top: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid rgba(160, 183, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.76rem;
  line-height: 1.2;
}
.page-btn:hover {
  border-color: rgba(124, 92, 255, 0.16);
  background: rgba(124, 92, 255, 0.06);
  color: var(--heading);
}
.page-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.32), rgba(14, 165, 233, 0.18));
  border-color: rgba(124, 92, 255, 0.35);
  color: #e2ddff;
  font-weight: 700;
}
html[data-theme="light"] .page-btn.page-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(14, 165, 233, 0.08));
  border-color: rgba(124, 92, 255, 0.16);
  color: var(--heading);
  font-weight: 700;
}

.msg-success,
.msg-error {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
}
.msg-success { background: rgba(86, 227, 159, 0.1); color: #a4f3c7; border-color: rgba(86, 227, 159, 0.16); }
.msg-error { background: rgba(255, 124, 150, 0.1); color: #ffc2cd; border-color: rgba(255, 124, 150, 0.16); }

.copy-btn {
  min-height: auto;
  padding: 1px 3px;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--accent-cyan);
  font-size: 0.72rem;
  cursor: pointer;
}
.copy-btn:hover { color: #99e9ff; text-decoration: underline; transform: none; }

.anomaly-mismatch { background: rgba(255, 212, 121, 0.08); }
.fail-reason-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; color: #ff9aae; }
.item-name-cell { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fail-reason-cell.has-error { cursor: pointer; }
.fail-reason-cell.has-error:hover {
  color: #ffd4dc;
  text-decoration: underline;
}
.fail-reason-cell.has-error:focus-visible {
  outline: 2px solid rgba(255, 154, 174, 0.28);
  outline-offset: 2px;
  border-radius: 6px;
}

.section-shell { display: grid; gap: 16px; }
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.section-header-tight { margin-bottom: 14px; }
.section-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: #ffd8a5;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-intro {
  margin-top: 6px;
  max-width: 72ch;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.section-caption {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.summary-pill strong {
  color: var(--heading);
  font-size: 0.94rem;
}

.surface-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(10, 16, 28, 0.94));
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
}
.surface-card > * { min-width: 0; }
.surface-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(138, 223, 255, 0.24), rgba(255, 255, 255, 0));
}
.table-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
}
.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 183, 255, 0.26) transparent;
}
.table-scroll::-webkit-scrollbar { height: 7px; }
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(160, 183, 255, 0.26);
  border-radius: 999px;
}
.table-overview,
.table-balance,
.table-history { min-width: var(--ui-table-min-base); }
.table-trades { min-width: var(--ui-table-min-trades); }
.table-shell table,
.table-scroll table { max-width: none; }

.filter-card { padding: 16px; }
.filter-form {
  align-items: center;
}
.filter-form input,
.filter-form select {
  min-width: min(100%, var(--ui-filter-field-min, 180px));
}
.filter-input-wide {
  min-width: min(100%, calc(var(--ui-filter-field-min, 180px) * 1.4));
}
.filter-select {
  min-width: min(100%, var(--ui-filter-field-min, 180px));
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border);
  color: var(--heading);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.filters-form-trades,
.filters-form-logs {
  align-items: end;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field-label {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.reset-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffc0ca;
  font-weight: 600;
}
.reset-link:hover { color: #ffd4dc; }
.or-divider {
  align-self: end;
  padding-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.empty-state {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(160, 183, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}
.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
}
.table-helper {
  color: var(--text-muted);
  font-size: 0.76rem;
}
.amount-positive { color: #97f0bf; }
.amount-negative { color: #ffb4c0; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-card-min-compact, 220px)), 1fr));
  gap: var(--ui-gap-sm, 10px);
}
.detail-row {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(160, 183, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.detail-key {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-value {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
}
.detail-value-code {
  display: block;
  color: var(--heading);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
.inline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.summary-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.deposit-grid,
.setup-grid,
.settings-grid {
  display: grid;
  gap: var(--ui-gap-md, 14px);
}
.deposit-grid {
  align-items: stretch;
  grid-template-columns: minmax(320px, clamp(460px, 28vw, 540px)) minmax(0, 1fr) !important;
}
.deposit-grid > .surface-card {
  height: 100%;
}
.setup-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-card-min, 300px)), 1fr));
}
.settings-grid {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.settings-grid > .surface-card {
  min-width: 0;
}
.settings-account-card {
  grid-column: 1 / -1;
}
.webhook-settings-card {
  grid-column: auto !important;
}
.qr-card {
  display: grid;
  align-content: start;
  gap: 10px;
  justify-items: center;
  padding-block: 16px;
  text-align: center;
}
.qr-card h3 {
  margin-bottom: 0;
}
.qr-card .deposit-network-list,
.qr-card .qr-frame,
.qr-card .address-actions,
.qr-card .notice-card-spaced {
  justify-self: center;
}
.network-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 121, 0.22);
  background: rgba(255, 212, 121, 0.12);
  color: #ffe1a5;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.qr-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(160, 183, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.qr-canvas {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.qr-card .code-block {
  justify-self: center;
  width: min(100%, 360px);
  padding: 8px 10px;
  font-size: 0.72rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.qr-card .notice-card-spaced {
  width: min(100%, 320px);
  margin-top: 4px;
  padding: 12px 14px;
}
.address-actions,
.inline-button-group,
.form-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.address-actions { justify-content: center; }
.form-actions { justify-content: flex-start; }
.modal-actions { justify-content: flex-end; }
.copy-feedback {
  display: none;
  color: #97f0bf;
  font-size: 0.76rem;
  font-weight: 700;
}
.copy-feedback.is-visible { display: inline; }
.notice-stack,
.info-stack,
.stack-form {
  display: grid;
  gap: 12px;
}
.notice-card,
.info-block {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(160, 183, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.notice-card-warning {
  color: #ffe1a5;
  border-color: rgba(255, 212, 121, 0.2);
  background: rgba(255, 212, 121, 0.08);
}
.notice-card-info {
  color: #c9f6ff;
  border-color: rgba(52, 209, 255, 0.18);
  background: rgba(52, 209, 255, 0.08);
}
.notice-card-danger {
  color: #ffb4c0;
  border-color: rgba(255, 124, 150, 0.22);
  background: rgba(255, 124, 150, 0.1);
}
.notice-card strong:first-child,
.info-block strong:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
}
.info-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.code-block {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(160, 183, 255, 0.12);
  background: rgba(7, 12, 22, 0.82);
  color: var(--heading);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  word-break: break-all;
}
.code-block-lg {
  font-size: 0.9rem;
  line-height: 1.55;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.status-dot-positive {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(86, 227, 159, 0.14);
}
.status-dot-neutral {
  background: #8adfff;
  box-shadow: 0 0 0 4px rgba(138, 223, 255, 0.14);
}
.form-note {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.76rem;
}
.webhook-form,
.market-search-form {
  display: grid;
  gap: var(--ui-gap-sm, 10px);
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-filter-field-min, 180px)), 1fr));
}
.settings-grid .webhook-form {
  align-items: end;
  column-gap: 12px;
  row-gap: 10px;
  grid-template-columns: minmax(260px, 1fr) auto !important;
}
.webhook-form,
.webhook-form .field-group,
.webhook-form input {
  min-width: 0;
}
.webhook-form input {
  width: 100%;
}
.webhook-form .form-actions {
  min-width: 0;
}
.settings-grid .webhook-form .form-actions {
  align-items: center;
  justify-content: flex-end;
  width: auto;
}
.webhook-settings-card {
  container-type: inline-size;
}
.webhook-form .form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.settings-grid .webhook-form .form-actions button {
  flex: 0 0 auto;
  min-width: 0;
  padding-inline: 12px;
}
.webhook-settings-card .section-caption {
  margin-top: 3px;
}
.webhook-actions {
  align-self: end;
  flex-wrap: nowrap;
}
.compact-form-actions button,
.webhook-actions button {
  width: auto;
}
@container (max-width: 620px) {
  .settings-grid .webhook-settings-form {
    grid-template-columns: 1fr !important;
  }
  .settings-grid .webhook-settings-form .field-group,
  .settings-grid .webhook-settings-form .form-actions {
    width: 100%;
  }
  .webhook-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .webhook-actions button {
    flex: 1 1 150px;
  }
}
.table-deposits { min-width: var(--ui-table-min-deposits); }
.table-market { min-width: var(--ui-table-min-market); }
.sticker-cell { display: flex; gap: 2px; align-items: center; }
.sticker-cell img { width: 28px; height: 22px; object-fit: contain; }
.item-thumb {
  width: 50px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.item-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
}
.item-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: var(--ui-table-item-max);
  overflow: hidden;
}
.item-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  color: var(--heading);
  font-weight: 700;
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; }
.modal-card {
  width: min(100%, 500px);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(10, 16, 28, 0.98));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}
.modal-card h3 {
  margin-bottom: 6px;
}
.modal-text-block {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.6);
  color: var(--heading);
  font-size: 0.84rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.modal-card-wide {
  width: min(100%, 860px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}
.modal-section-stack {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}
.modal-section-stack > section {
  display: grid;
  gap: 12px;
}
.modal-subtitle {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.modal-price {
  margin-bottom: 14px;
  color: var(--heading);
  font-size: 1.18rem;
  font-weight: 800;
}
.modal-status-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(160, 183, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}
.modal-status-note.is-success {
  border-color: rgba(86, 227, 159, 0.24);
  background: rgba(86, 227, 159, 0.1);
  color: #b8f7d4;
}
.modal-status-note.is-error {
  border-color: rgba(255, 124, 150, 0.24);
  background: rgba(255, 124, 150, 0.1);
  color: #ffd2db;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd4dc;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { color: #ffe5ea; }
button.btn-secondary,
button.btn-success,
button.btn-danger,
button.btn-warning {
  box-shadow: none;
}
button.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(160, 183, 255, 0.12);
  color: var(--text);
}
button.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
button.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
button.btn-success:hover {
  background: linear-gradient(135deg, #2ad06a, #1eb457);
}
button.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
button.btn-danger:hover {
  background: linear-gradient(135deg, #f15b5b, #e03838);
}
button.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}
button.btn-warning:hover {
  background: linear-gradient(135deg, #f7ad2e, #ef6d2a);
}
button.btn-inline {
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

.sidebar-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  right: auto;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  color: var(--heading);
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 1;
}
.sidebar-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(160, 183, 255, 0.22); border-radius: 999px; }

@media (max-width: 1440px) and (min-width: 1025px) {
  .sidebar {
    width: 220px;
    padding: 18px 10px 16px;
  }
  .sidebar-inner { gap: 10px; }
  .brand,
  .merchant-panel {
    padding: 12px;
    border-radius: 14px;
  }
  .merchant-panel p { display: none; }
  .sidebar-nav { gap: 6px; }
  .sidebar-nav a,
  .sidebar-logout {
    padding: 10px 11px;
    font-size: 0.84rem;
  }
  .main { padding: 16px 16px 24px; }
  .topbar {
    padding: 15px 16px;
    border-radius: 18px;
  }
  .topbar h1 { font-size: 1.56rem; }
  .topbar p { font-size: 0.84rem; }
  .topbar-chip { min-width: 126px; }
  .content { gap: 14px; }
  .surface-card { padding: 15px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ui-dashboard-card-min, 170px)), 1fr)); }
  .card { padding: 14px; }
  .card .value { font-size: 1.34rem; }
  :root {
    --ui-table-min-trades: 1260px;
    --ui-table-min-market: 980px;
  }
}

@media (max-width: 1024px) {
  .sidebar-toggle {
    display: inline-flex;
    top: 12px;
    left: 12px;
    padding: 9px 11px;
    gap: 6px;
    font-size: 0.82rem;
    max-width: calc(100vw - 24px);
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(2, 8, 23, 0.58);
    backdrop-filter: blur(8px);
  }
  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .main { width: 100%; padding: 78px 18px 24px; }
  .topbar { padding: 18px; flex-direction: column; align-items: flex-start; }
  .topbar-meta { width: 100%; justify-content: flex-start; }
}

@media (max-width: 768px) {
  .main { padding-left: 16px; padding-right: 16px; }
  .topbar { border-radius: 18px; }
  .topbar h1 { font-size: 1.58rem; }
  .topbar-chip { width: 100%; min-width: 0; }
  .deposit-grid,
  .settings-grid,
  .settings-grid .webhook-form {
    grid-template-columns: 1fr !important;
  }
  .settings-grid > .surface-card,
  .webhook-form .field-group,
  .webhook-form .form-actions {
    grid-column: auto;
    min-width: 0;
    width: 100%;
  }
  .webhook-form .form-actions button {
    flex: 1 1 150px;
  }
  .webhook-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .or-divider {
    align-self: center;
    justify-self: center;
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .sidebar { width: min(88vw, 304px); padding: 20px 13px 16px; }
  .brand,
  .merchant-panel,
  .sidebar-nav a,
  .sidebar-logout { border-radius: 14px; }
  .topbar { padding: 16px; }
  .topbar h1 { font-size: 1.42rem; }
  input, select, button, textarea { width: 100%; }
  .filter-actions .reset-link { justify-content: center; }
  .summary-pill { width: 100%; justify-content: space-between; }
  .surface-card { padding: 16px; }
  .webhook-form .form-actions button {
    flex: 1 1 auto;
    width: 100%;
  }
  .copy-btn { width: auto; }
  .modal-card { padding: 18px; border-radius: 16px; }
}

html[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #ecf2f9;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-muted: rgba(148, 163, 184, 0.1);
  --border: rgba(148, 163, 184, 0.28);
  --border-strong: rgba(124, 92, 255, 0.22);
  --text: #1f2937;
  --text-soft: #526072;
  --text-muted: #748197;
  --heading: #0f172a;
  --accent: #6d4cff;
  --accent-hover: #5b3ff0;
  --accent-cyan: #0284c7;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.1), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(14, 165, 233, 0.08), transparent 18%),
    linear-gradient(180deg, #f9fbff 0%, #f3f7fc 42%, #eef3f9 100%);
}
html[data-theme="light"] a:hover,
html[data-theme="light"] .copy-btn:hover,
html[data-theme="light"] .text-link:hover,
html[data-theme="light"] .reset-link:hover {
  color: #0369a1;
}
html[data-theme="light"] .page-glow {
  opacity: 0.42;
}
html[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.4);
}
html[data-theme="light"] .sidebar::before,
html[data-theme="light"] .surface-card::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(124, 92, 255, 0.18), rgba(255, 255, 255, 0));
}
html[data-theme="light"] .brand {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.98));
}
html[data-theme="light"] .brand-mark {
  box-shadow: 0 10px 22px rgba(124, 92, 255, 0.14);
}
html[data-theme="light"] .merchant-panel {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(255, 255, 255, 0.98));
}
html[data-theme="light"] .merchant-label,
html[data-theme="light"] .section-kicker {
  color: #a16207;
}
html[data-theme="light"] .sidebar-nav a:hover,
html[data-theme="light"] .sidebar-logout:hover {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.14);
}
html[data-theme="light"] .sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(14, 165, 233, 0.06));
  border-color: rgba(124, 92, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 18px rgba(124, 92, 255, 0.08);
}
html[data-theme="light"] .sidebar-logout,
html[data-theme="light"] .reset-link,
html[data-theme="light"] .text-link {
  color: #b91c1c;
}
html[data-theme="light"] .sidebar-logout {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.12);
}
html[data-theme="light"] .topbar {
  background: linear-gradient(180deg, var(--surface-strong), rgba(246, 249, 252, 0.98));
  box-shadow: var(--shadow);
}
html[data-theme="light"] .topbar-chip,
html[data-theme="light"] button.theme-toggle,
html[data-theme="light"] .summary-pill,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .detail-row,
html[data-theme="light"] .notice-card,
html[data-theme="light"] .info-block,
html[data-theme="light"] .qr-frame,
html[data-theme="light"] .modal-status-note,
html[data-theme="light"] .page-btn,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] button.btn-secondary,
html[data-theme="light"] .code-block {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
html[data-theme="light"] .topbar-chip-accent {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(14, 165, 233, 0.06));
  border-color: rgba(124, 92, 255, 0.14);
}
html[data-theme="light"] .card,
html[data-theme="light"] table,
html[data-theme="light"] .surface-card,
html[data-theme="light"] .modal-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.98));
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] th {
  background: #f7f9fc;
  color: var(--heading);
}
html[data-theme="light"] th,
html[data-theme="light"] td {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}
html[data-theme="light"] tbody tr:hover {
  background: rgba(124, 92, 255, 0.05);
}
html[data-theme="light"] .badge-green {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.16);
}
html[data-theme="light"] .badge-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.16);
}
html[data-theme="light"] .badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.16);
}
html[data-theme="light"] .badge-blue {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.16);
}
html[data-theme="light"] .badge-gray {
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.16);
}
html[data-theme="light"] .badge-purple {
  background: rgba(124, 92, 255, 0.12);
  color: #5b21b6;
  border-color: rgba(124, 92, 255, 0.16);
}
html[data-theme="light"] .badge-pink {
  background: rgba(239, 68, 68, 0.1);
  color: #be123c;
  border-color: rgba(239, 68, 68, 0.16);
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: var(--text-muted);
}
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: rgba(124, 92, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.08);
  background: rgba(255, 255, 255, 0.98);
}
html[data-theme="light"] .msg-success {
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.16);
}
html[data-theme="light"] .msg-error {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.16);
}
html[data-theme="light"] .fail-reason-cell {
  color: #b91c1c;
}
html[data-theme="light"] .fail-reason-cell.has-error:hover {
  color: #991b1b;
}
html[data-theme="light"] .anomaly-mismatch {
  background: rgba(245, 158, 11, 0.08);
}
html[data-theme="light"] .amount-positive,
html[data-theme="light"] .copy-feedback {
  color: #15803d;
}
html[data-theme="light"] .amount-negative {
  color: #b91c1c;
}
html[data-theme="light"] .notice-card-warning {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.16);
  background: rgba(245, 158, 11, 0.08);
}
html[data-theme="light"] .notice-card-info {
  color: #0f766e;
  border-color: rgba(14, 165, 233, 0.16);
  background: rgba(14, 165, 233, 0.08);
}
html[data-theme="light"] .notice-card-danger {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.16);
  background: rgba(239, 68, 68, 0.08);
}
html[data-theme="light"] .network-pill {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.16);
  background: rgba(245, 158, 11, 0.08);
}
html[data-theme="light"] .code-block,
html[data-theme="light"] .modal-text-block {
  background: rgba(248, 250, 252, 0.92);
  border-color: var(--border);
  color: var(--heading);
}
html[data-theme="light"] .modal-overlay,
html[data-theme="light"] .sidebar-backdrop {
  background: rgba(15, 23, 42, 0.32);
}
html[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.08);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb,
html[data-theme="light"] .table-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.32);
}
html[data-theme="light"] .table-scroll {
  scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}
html[data-theme="light"] .status-dot-positive {
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}
html[data-theme="light"] .status-dot-neutral {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}
.sidebar-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(160, 183, 255, 0.12);
  color: var(--heading);
}
html[data-theme="light"] .sidebar-toggle {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border);
  color: var(--heading);
  box-shadow: var(--shadow-soft);
}

.sidebar-nav a svg,
.sidebar-logout svg { width: 18px; height: 18px; flex: none; }
.sidebar-toggle svg { width: 18px; height: 18px; }
.theme-toggle strong svg { width: 16px; height: 16px; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.copy-btn svg { width: 14px; height: 14px; }
.btn-secondary svg,
.btn-inline svg { width: 14px; height: 14px; vertical-align: -2px; }
.reset-link svg { width: 14px; height: 14px; }
.heading-icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; margin-right: 8px; color: var(--accent-cyan); }
.heading-icon svg { width: 22px; height: 22px; }
h2 .heading-icon svg,
h3 .heading-icon svg { width: 18px; height: 18px; }
.badge svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }

.token-icon { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: -5px; }
h2 .token-icon, h3 .token-icon { width: 18px; height: 18px; vertical-align: -4px; }
.token-icon-pair { display: inline-flex; align-items: center; margin-right: 8px; }
.token-icon-pair .token-icon + .token-icon { margin-left: -6px; }
.token-amount { display: inline-flex; align-items: center; gap: 6px; }
.token-amount .token-icon { width: 16px; height: 16px; vertical-align: middle; }

.network-pill .dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; flex: none; }

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(138, 223, 255, 0.22);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(52, 209, 255, 0.08));
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 600;
}
.demo-banner svg { width: 18px; height: 18px; color: var(--accent-cyan); flex: none; }
.demo-banner-text { color: var(--text-soft); font-weight: 500; }
.demo-banner a { color: var(--accent-cyan); font-weight: 700; text-decoration: none; }
.demo-banner a:hover { color: #99e9ff; text-decoration: underline; }

.notice-card { display: flex; align-items: flex-start; gap: 10px; }
.notice-card-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; }
.notice-card-icon svg { width: 20px; height: 20px; }
.notice-card-warning .notice-card-icon { color: #ffd479; }
.notice-card-info .notice-card-icon { color: var(--accent-cyan); }
.notice-card-danger .notice-card-icon { color: var(--danger); }
.notice-card-body { flex: 1; }

.btn-secondary .btn-label,
.btn-inline .btn-label { display: inline-flex; align-items: center; gap: 6px; }
.btn-secondary,
.btn-inline { gap: 6px; }

