:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #090909;
  --surface-raised: #101010;
  --line: #292929;
  --gold: #ffcf24;
  --text: #fafafa;
  --muted: #b8b8b8;
  --green: #a8d5ac;
  --red: #f0aaa2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 36px 0 20px;
}

.card {
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 80px #000a;
}

.invite-card {
  max-width: 520px;
  padding: 30px 38px 28px;
  text-align: center;
}

.eyebrow,
.kicker,
.detail-label,
.stat span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
}

.brand-logo-horizontal {
  display: block;
  width: 100%;
  max-width: 370px;
  height: auto;
  margin: 20px auto 24px;
  object-fit: contain;
}

.kicker { margin: 0 0 10px; }

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 750;
  letter-spacing: -.035em;
}

.invite-card h1 {
  font-size: clamp(34px, 7vw, 43px);
  line-height: 1.08;
}

.title-extra {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold);
  font-size: .68em;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.intro {
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.event-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-details div { display: grid; gap: 6px; }
.detail-label { font-size: 9px; }
.event-details strong { font-size: 13px; font-weight: 650; }

.form {
  display: grid;
  gap: 10px;
  text-align: left;
}

.form > label,
.form legend {
  margin-top: 7px;
  color: #f0f0f0;
  font-size: 13px;
  font-weight: 650;
}

.form input:not([type=radio]) {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #343434;
  border-radius: 9px;
  outline: none;
  background: #050505;
  color: var(--text);
  font: inherit;
}

.form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #ffcf2424;
}

.form input::placeholder { color: #888; }

fieldset {
  display: grid;
  gap: 11px;
  margin: 8px 0 4px;
  padding: 0;
  border: 0;
}

fieldset legend { margin: 0 0 12px; }

.choice {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e4e4e4;
  cursor: pointer;
  font-size: 14px;
}

.choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}

button,
.export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--gold);
  color: #111;
  font: 700 14px Inter, "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

button:hover,
.export-link:hover { background: #ffda52; transform: translateY(-1px); }
.form button { margin-top: 5px; }
.form button span { font-size: 20px; }

.privacy-note {
  margin: 5px 0 0;
  color: #999;
  font-size: 11px;
  text-align: center;
}

.notice {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}

.notice.success { background: #172319; color: #b9e1bd; }
.notice.error { background: #2d1918; color: #f3b8b1; }
.closed-message { padding: 15px 0; color: var(--muted); }

footer {
  padding: 24px;
  color: #929292;
  font-size: 11px;
  text-align: center;
}

footer span { color: var(--gold); }

.login-card { max-width: 440px; padding: 32px; }
.back-link { color: var(--muted); font-size: 12px; text-decoration: none; }
.login-card .kicker { margin-top: 32px; }
.login-card h1 { font-size: 32px; }
.login-card .intro { margin-top: 8px; }

.dashboard { padding: 10px 0 20px; }
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.dash-header h1 { font-size: 38px; }
.dash-header .intro { margin: 5px 0; }
.button-secondary {
  height: 40px;
  border: 1px solid #494949;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}
.button-secondary:hover { background: #171717; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat,
.list-card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.stat { padding: 18px; }
.stat span { font-size: 9px; letter-spacing: .12em; }
.stat strong { display: block; margin-top: 8px; font-size: 36px; font-weight: 750; }
.list-card { padding: 20px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.list-heading h2 { font-size: 22px; }
.list-heading p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.export-link { height: 36px; padding: 0 12px; font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
th, td { padding: 13px 9px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 650; }
.badge.yes { background: #172319; color: var(--green); }
.badge.no { background: #2d1918; color: var(--red); }
.empty { padding: 12px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 540px) {
  .shell { width: min(100% - 22px, 760px); padding-top: 18px; }
  .invite-card { padding: 25px 22px 23px; border-radius: 15px; }
  .brand-logo-horizontal { max-width: 340px; margin: 18px auto 20px; }
  .invite-card h1 { font-size: clamp(31px, 8vw, 38px); }
  .title-extra { font-size: .66em; }
  .event-details { gap: 8px; }
  .event-details strong { font-size: 12px; }
  .dash-header h1 { font-size: 32px; }
  .stats { gap: 7px; }
  .stat { padding: 13px 10px; }
  .stat span { font-size: 8px; letter-spacing: .07em; }
  .stat strong { font-size: 28px; }
  .list-card { padding: 15px; }
  .list-heading { align-items: flex-start; flex-direction: column; }
  .export-link { height: 34px; }
}
