:root {
  --bg: #0b0b0d;
  --panel: #17171a;
  --panel-2: #222226;
  --line: #34343a;
  --text: #ffffff;
  --muted: #a9a9b0;
  --gold: #ffc21a;
  --gold-light: #ffe45c;
  --gold-dark: #c98700;
  --danger: #ff6b6b;
  --ok: #5ddc8a;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, #2a2410 0, var(--bg) 45%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-style: italic; text-transform: uppercase; }
h1 span { color: var(--gold); }
[hidden] { display: none !important; }

.wrap { width: min(1100px, 92vw); margin: 0 auto; }
.narrow { width: min(460px, 92vw); margin: 2rem auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

.nav { border-bottom: 2px solid var(--gold-dark); background: #000c; position: sticky; top: 0; z-index: 5; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.nav nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav nav a { color: var(--text); text-decoration: none; }
.nav nav a:hover { color: var(--gold); }

.btn {
  display: inline-block;
  border: 2px solid #000;
  border-radius: var(--radius);
  padding: .65rem 1.2rem;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  color: #111 !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--gold-dark);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--panel-2); color: var(--text) !important; }
.btn.block { display: block; width: 100%; }
.btn.small { padding: .3rem .7rem; font-size: .85rem; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

.hero { text-align: center; padding: 3rem 0; }
.hero img { width: min(340px, 75vw); }
.actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.stat { font-size: 2rem; font-weight: 800; color: var(--gold); }

label { display: block; margin: .8rem 0 .25rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: .65rem .75rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--gold); }
.check { display: flex; gap: .5rem; align-items: center; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; margin: .5rem 0; }
.row > * { flex: 1 1 140px; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pay label { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: .7rem; display: flex; gap: .5rem; cursor: pointer; }
.pay label:has(input:checked) { border-color: var(--gold); background: var(--panel-2); }
.status { min-height: 1.5em; color: var(--gold-light); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-size: .8rem; text-transform: uppercase; }
.badge { border-radius: 99px; padding: .1rem .6rem; font-size: .8rem; border: 1px solid currentColor; }
.badge.paid { color: var(--ok); }
.badge.refunded, .badge.disputed { color: var(--danger); }
.badge.pending { color: var(--gold); }

.bar { height: 28px; background: var(--bg); border: 2px solid var(--gold-dark); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: linear-gradient(180deg, var(--gold-light), var(--gold-dark)); transition: width .8s; }

.alert { text-align: center; padding: 1rem; text-shadow: 0 2px 4px #000, 0 0 2px #000; overflow-wrap: anywhere; }
.alert img { width: 140px; }
.alert .title { font-size: 1.8rem; font-weight: 900; font-style: italic; color: var(--gold-light); }
.alert .msg { font-size: 1.3rem; }
.anim-pop { animation: pop .5s ease-out; }
.anim-slide { animation: slide .5s ease-out; }
.anim-fade { animation: fade .8s ease-in; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
@keyframes slide { from { transform: translateY(-60px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.stage { min-height: 280px; display: grid; place-items: center; background: repeating-conic-gradient(#222 0 25%, #2c2c2c 0 50%) 0 0 / 24px 24px; border-radius: var(--radius); }

body.obs { background: transparent; overflow: hidden; }
body.obs main { width: min(700px, 100vw); margin: 0 auto; padding: 1rem; }

footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0; text-align: center; color: var(--muted); }

@media (max-width: 520px) { .pay { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { body:not(.obs) * { animation: none !important; transition: none !important; } }

.pay-card { display:flex; align-items:center; gap:1rem; }
.pay-logo { width:56px; height:56px; flex:0 0 56px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:#fff; }
.pay-logo img { width:32px; height:32px; object-fit:contain; display:block; }
.pay-card + .pay-card { margin-top: .75rem; }

.card:has(> .pay-card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-content: start; }
.card:has(> .pay-card) > h3 { grid-column: 1 / -1; margin: 0; }
.pay-card + .pay-card { margin-top: 0; }
