:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fff6ff;
  background: #080610;
  --pink: #ff78d0;
  --cyan: #78f6ff;
  --muted: #c9bbd5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 4% 22%, #9607552e, transparent 49%),
    radial-gradient(ellipse at 100% 56%, #00748436, transparent 52%),
    #080610;
}
main { width: min(100%, 530px); margin: auto; padding: 10px 16px 30px; }
.hero { margin: 0 -8px; }
h1, h2 { margin: 0; }
.hero img { display: block; width: 100%; height: auto; }
.balances { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.balances > div {
  --light: var(--cyan);
  min-width: 0;
  display: grid;
  gap: 5px;
  text-align: center;
  padding: 12px 5px;
  background: #061722;
  border: 1px solid var(--light);
  border-radius: 12px;
  box-shadow: inset 0 0 10px #3ddeff30, 0 0 10px #36ddff50;
}
.balances > div + div {
  --light: var(--pink);
  background: #240a22;
  box-shadow: inset 0 0 10px #ff2da438, 0 0 10px #ff2da449;
}
.balances span { font-size: .9rem; font-weight: 750; }
.balances strong {
  font: 800 clamp(1.28rem,6.1vw,2.55rem)/1.05 ui-monospace,monospace;
  letter-spacing: -.07em;
  color: var(--light);
  text-shadow: 0 0 10px var(--light);
  overflow-wrap: anywhere;
}
button {
  min-height: 44px;
  font: inherit;
  font-weight: 750;
  color: inherit;
  border: 1px solid #7c547d;
  border-radius: 9px;
  background: #25182f;
  padding: 8px 11px;
  cursor: pointer;
}
button:hover { filter: brightness(1.12); }
button:active { transform: translateY(2px); }
:focus-visible { outline: 2px solid #fff2ff; outline-offset: 3px; }
.quick-actions { display: grid; gap: 12px; margin: 21px 4px 23px; }
.quick-actions button {
  min-height: 49px;
  border-radius: 999px;
  font-size: 1.05rem;
  border: 2px solid #ff9ddb;
  background: linear-gradient(#ff79c8 0%, #c60073 48%, #970054 52%, #a30063 86%, #ff51bd);
  color: white;
  text-shadow: 0 1px 2px #4f0032;
  box-shadow: inset 0 0 0 2px #ffb3e76e, 0 3px #600343, 0 0 14px #ff39ac65;
}
.quick-actions button + button {
  border-color: #a0f9ff;
  background: linear-gradient(#86f9ff 0%, #00a1bc 48%, #00667f 52%, #006f8e 86%, #20d9f5);
  text-shadow: 0 1px 2px #002633;
  box-shadow: inset 0 0 0 2px #b7faff72, 0 3px #043b51, 0 0 14px #29e7ff60;
}
.ledger {
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 13px;
  background: linear-gradient(#171023,#100c20) padding-box, linear-gradient(130deg,#ff61c3,#a373ff 53%,#60efff) border-box;
  box-shadow: 0 0 13px #c755d641;
}
.ledger-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
h2 { font-size: 1.22rem; }
small, .meta, footer { color: var(--muted); }
.tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-top: 9px; border-bottom: 1px solid #62405e; }
.tabs button { padding-inline: 3px; background: transparent; border-color: transparent; color: var(--muted); }
.tabs button[aria-pressed=true] { color: var(--cyan); background: #123042; border-color: #489bb0; }
.empty, .card { padding: 12px 1px; overflow-wrap: anywhere; }
.empty { color: var(--muted); }
.empty strong { display: block; color: #fff6ff; }
.suit { display: none; }
.card + .card { border-top: 1px solid #62405e; }
.line, .payment { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.line strong:last-child { color: var(--cyan); white-space: nowrap; }
.meta { margin: 5px 0 0; font-size: .9rem; }
.actions, .form-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.actions button, .payment button { font-size: .88rem; }
.primary { background: #b1f2fa; color: #10333f; border-color: #c2faff; }
.payment { margin-top: 7px; }
.note { white-space: pre-wrap; }
#notice { margin: 8px 0 0; color: var(--cyan); }
#notice:empty, .error:empty { display: none; }
footer { margin-top: 19px; text-align: center; font-size: .85rem; }
dialog { width: min(440px,calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; border: 1px solid #ed72cc; border-radius: 15px; background: #20142c; color: inherit; padding: 18px; box-shadow: 0 0 20px #e33eae50; }
dialog::backdrop { background: #05030ddc; }
form, label { display: grid; gap: 10px; }
label { gap: 4px; font-weight: 650; }
input, select { width: 100%; min-height: 44px; background: #100c1d; color: inherit; border: 1px solid #a47caa; border-radius: 7px; padding: 8px; font: inherit; }
.error { margin: 0; color: #ffb1ca; }
.form-actions { justify-content: flex-end; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: min(100%, max(650px, 86vh));
  margin-inline: auto;
  background: url("neon-road.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}
main { position: relative; }
.hero { mix-blend-mode: screen; }
@media (max-width: 530px) {
  main { padding-inline: clamp(19px, 6.3vw, 32px); }
}
