:root {
  --obsidian: #07090d;
  --steel: #111720;
  --steel-2: #171f2a;
  --gold: #d7b451;
  --paper: #f2eee4;
  --muted: #8c929d;
  --green: #55c78a;
  --line: rgba(215, 180, 81, .22);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { background: var(--obsidian); overflow-x: hidden; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--obsidian);
  background-size: 42px 42px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
button, input, code, .balance, .eyebrow, dt, dd, footer {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
button { color: inherit; }
.app-shell { width: min(100%, 640px); min-height: 100vh; margin: 0 auto; padding: 0 16px calc(20px + var(--safe-bottom)); }
.masthead { display: grid; grid-template-columns: 48px 1fr 40px; gap: 12px; align-items: center; padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: italic 700 20px Georgia, serif; }
.eyebrow { margin: 0 0 4px; color: var(--gold); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { font-size: 24px; }
h2 { font-size: 27px; line-height: 1.05; }
.icon-button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.12); background: transparent; font-size: 20px; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.balance-card { position: relative; margin: 18px 0 14px; padding: 20px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(215,180,81,.09), rgba(17,23,32,.95) 58%); }
.balance-card::after { content: "ZC"; position: absolute; right: -10px; bottom: -35px; color: rgba(215,180,81,.05); font: italic 700 120px Georgia, serif; }
.balance-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.balance-topline p { margin: 0; }
.status-dot { font: 10px "JetBrains Mono", monospace; color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.status-dot i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.balance { position: relative; z-index: 1; margin: 18px 0 12px; font-size: clamp(36px, 10vw, 56px); letter-spacing: -.06em; }
.balance small { color: var(--gold); font-size: 13px; letter-spacing: .12em; }
.confirmation-track { height: 3px; background: rgba(255,255,255,.08); }
.confirmation-track span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .45s ease; }
.pending { margin: 10px 0 0; color: var(--muted); font: 11px "JetBrains Mono", monospace; }
.actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.action { min-width: 0; padding: 11px 2px 9px; border: 1px solid rgba(255,255,255,.09); background: var(--steel); cursor: pointer; }
.action b { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 6px; color: var(--gold); font-size: 17px; font-weight: 500; }
.action span { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.action.active { border-color: var(--gold); background: rgba(215,180,81,.09); }
.action.primary { color: #080a0d; border-color: var(--gold); background: var(--gold); }
.action.primary b { color: #080a0d; }
.panel { border: 1px solid rgba(255,255,255,.1); background: rgba(17,23,32,.9); padding: 18px; animation: panel-in .25s ease both; }
.panel[hidden] { display: none; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.network-badge { flex: none; border: 1px solid var(--line); padding: 6px 8px; color: var(--gold); font: 10px "JetBrains Mono", monospace; }
.address-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
.qr-frame { width: 104px; height: 104px; display: grid; place-items: center; border: 7px solid var(--paper); color: var(--gold); background: repeating-conic-gradient(#07090d 0 25%, #f2eee4 0 50%) 0/14px 14px; box-shadow: inset 0 0 0 3px var(--obsidian); }
.qr-frame span { display: grid; place-items: center; width: 38px; height: 38px; background: var(--obsidian); font: italic 700 16px Georgia, serif; }
.address-copy { min-width: 0; align-self: center; }
.address-copy p { margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.address-copy code { display: block; overflow-wrap: anywhere; color: var(--paper); font-size: 12px; line-height: 1.55; }
.address-copy button { margin-top: 12px; padding: 8px 10px; border: 1px solid var(--line); background: transparent; color: var(--gold); font-size: 10px; cursor: pointer; }
.address-copy button:disabled { cursor: not-allowed; opacity: .45; }
.notice { margin: 0; padding: 12px; border-left: 2px solid var(--gold); color: var(--muted); background: rgba(215,180,81,.05); font-size: 12px; line-height: 1.55; }
.notice strong { color: var(--paper); }
.form-grid { display: grid; gap: 12px; padding-top: 18px; }
.form-grid label { position: relative; display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.form-grid input { width: 100%; padding: 14px 58px 14px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 0; color: var(--paper); background: var(--obsidian); font-size: 16px; }
.form-grid label > span { position: absolute; right: 12px; bottom: 16px; color: var(--gold); font: 10px "JetBrains Mono", monospace; }
.submit { min-height: 48px; border: 1px solid var(--gold); background: var(--gold); color: #080a0d; font-size: 11px; font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.confirm-order { width: 100%; margin-top: 14px; }
.order-success { margin: 14px 0 0; padding: 14px; border: 1px solid rgba(203,164,71,.45); background: rgba(203,164,71,.08); color: #f2dfad; line-height: 1.55; }
.quote-result { margin: 16px 0 0; }
.quote-result div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.quote-result dt { color: var(--muted); font-size: 10px; }
.quote-result dd { margin: 0; font-size: 12px; }
.quote-result .total { padding-top: 15px; color: var(--gold); font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 18px 0 0 18px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 12px; color: var(--muted); font-size: 12px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 3px; width: 7px; height: 7px; background: var(--gold); }
.support-copy { color: var(--muted); font-size: 13px; line-height: 1.6; }
.error-banner { margin: 12px 0 0; padding: 12px; border: 1px solid #9f4d4d; color: #ffd5d5; background: rgba(159,77,77,.12); font-size: 12px; }
.admin-shell { max-width: 980px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.admin-metrics article { padding: 16px; border: 1px solid var(--line); background: var(--panel-2); }
.admin-metrics span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.admin-metrics strong { display: block; margin-top: 9px; color: var(--gold); font-size: 17px; }
.queue-heading { margin-top: 26px; }
@media (max-width: 700px) { .admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
footer { display: flex; justify-content: center; gap: 8px; padding: 16px 0 0; color: #626873; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 360px) {
  .app-shell { padding-inline: 10px; }
  .address-card { grid-template-columns: 84px minmax(0, 1fr); gap: 11px; }
  .qr-frame { width: 84px; height: 84px; }
  .action span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
