:root {
  --bg: #0a0a0b;
  --panel: #141416;
  --panel-2: #1c1c1f;
  --line: #2b2a27;
  --gold: #c9a24b;
  --gold-hi: #ecd08a;
  --text: #f3ecdc;
  --muted: #9a9384;
  --bad: #e2725b;
  --ok: #8fc48a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--sans);
  background-image: radial-gradient(900px 500px at 50% -200px, rgba(201,162,75,.16), transparent 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
}
a { color: var(--gold-hi); }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px 56px; }
.wrap.wide { max-width: 760px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { font: italic 700 28px/1 var(--serif); color: var(--gold-hi); text-decoration: none; letter-spacing: .5px; }
.brand small { display: block; font: 600 10px/1 var(--sans); letter-spacing: 3px; color: var(--muted); margin-top: 6px; font-style: normal; }
.top a.link { font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }

h1 { font: 700 38px/1.1 var(--serif); margin: 28px 0 14px; }
h1 em { color: var(--gold-hi); }
h2 { font: 700 22px/1.2 var(--serif); margin: 36px 0 12px; color: var(--gold-hi); }
p.lead { color: #cfc7b5; font-size: 17px; margin: 0 0 22px; }
.muted { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }

.btn {
  display: inline-block; width: 100%; text-align: center; cursor: pointer;
  font: 700 16px/1 var(--sans); padding: 16px 20px; border-radius: 12px; text-decoration: none;
  border: 1px solid var(--gold); color: #171204;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
}
.btn.ghost { background: transparent; color: var(--gold-hi); }
.btn.small { width: auto; padding: 11px 16px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack > * + * { margin-top: 10px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel + .panel { margin-top: 12px; }
.panel h3 { margin: 0 0 6px; font: 700 17px/1.3 var(--serif); color: var(--gold-hi); }
.panel p { margin: 0; color: #cfc7b5; font-size: 15px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=number], input[type=password], select {
  width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; font: 16px var(--sans); outline: none; appearance: none;
}
input:focus, select:focus { border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; color: #cfc7b5; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); }
.msg { margin: 12px 0 0; font-size: 14px; min-height: 20px; }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }

/* club card */
.card {
  position: relative; border-radius: 20px; padding: 22px; overflow: hidden;
  background: linear-gradient(135deg, #1d1b17 0%, #0d0d0e 55%, #1a160d 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(236,208,138,.12);
}
.card::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(201,162,75,.35); box-shadow: 0 0 0 26px rgba(201,162,75,.06), 0 0 0 60px rgba(201,162,75,.04);
}
.card .c-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.card .c-brand { font: italic 700 26px/1 var(--serif); color: var(--gold-hi); }
.card .c-num { font: 600 13px/1 var(--sans); letter-spacing: 2px; color: var(--muted); }
.card .c-name { margin-top: 26px; font: 700 22px/1.2 var(--serif); position: relative; z-index: 1; }
.card .c-bal { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; position: relative; z-index: 1; }
.card .c-bal b { font: 700 44px/1 var(--serif); color: var(--gold-hi); }
.card .c-bal span { color: var(--muted); font-size: 14px; }
.card .c-foot { margin-top: 16px; font-size: 13px; color: var(--muted); position: relative; z-index: 1; }
.qr { background: #fff; border-radius: 14px; padding: 14px; width: 220px; margin: 18px auto 6px; }
.qr svg, .qr img { display: block; width: 100%; height: auto; }

ul.hist { list-style: none; margin: 0; padding: 0; }
ul.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
ul.hist li:last-child { border-bottom: 0; }
ul.hist .when { color: var(--muted); font-size: 12px; }
.plus { color: var(--ok); font-weight: 700; white-space: nowrap; }
.minus { color: var(--bad); font-weight: 700; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stats b { display: block; font: 700 22px/1.1 var(--serif); color: var(--gold-hi); }
.stats span { font-size: 12px; color: var(--muted); }

table.guests { width: 100%; border-collapse: collapse; font-size: 15px; }
table.guests td { padding: 12px 6px; border-bottom: 1px solid var(--line); }
table.guests tr { cursor: pointer; }
table.guests td:last-child { text-align: right; color: var(--gold-hi); font-weight: 700; white-space: nowrap; }
table.guests .n { color: var(--muted); font-size: 13px; width: 52px; }

video#cam { width: 100%; border-radius: 14px; border: 1px solid var(--gold); background: #000; }
footer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }
[hidden] { display: none !important; }
