:root {
  color-scheme: dark;
  --bg: #090d11;
  --surface: #111920;
  --surface-strong: #18232b;
  --line: rgba(232, 201, 120, 0.2);
  --gold: #e6c274;
  --gold-strong: #f2d58a;
  --text: #f5f2ea;
  --secondary: #a8afb3;
  --success: #7fd7ad;
  --danger: #f08d82;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(230, 194, 116, 0.14), transparent 40%),
    var(--bg);
  color: var(--text);
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom));
}

.hero { padding: 18px 4px 22px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.18;
}

.lead, .muted {
  color: var(--secondary);
  line-height: 1.6;
}

.card {
  margin-bottom: 14px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

form { margin-top: 18px; }
label {
  display: block;
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 13px;
}

input[type="text"], input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 14px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 16px;
}

input:focus {
  outline: 2px solid rgba(230, 194, 116, 0.55);
  border-color: transparent;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
  margin: 8px 0 18px;
}
.consent input { margin-top: 3px; }
.notice {
  margin: 0 0 18px;
  padding: 12px;
  color: var(--gold-strong);
  background: rgba(230, 194, 116, 0.08);
  border: 1px solid rgba(230, 194, 116, 0.22);
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.55;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 650;
}

button:disabled { opacity: 0.45; }
.primary {
  width: 100%;
  background: var(--gold);
  color: #19130a;
}
.secondary {
  background: var(--surface-strong);
  border: 1px solid rgba(230, 194, 116, 0.3);
  color: var(--gold-strong);
}
.full { width: 100%; }

.status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 13px;
}
.status.error { color: var(--danger); }
.status.ok { color: var(--success); }
.hidden { display: none; }

.success-mark {
  color: var(--success);
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.success-mark.pending { color: var(--gold); }
.member-meta {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}
.member-meta div {
  flex: 1;
  padding: 11px;
  background: var(--surface-strong);
  border-radius: 11px;
}
.member-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--secondary);
  font-size: 11px;
}
.member-meta strong { font-size: 14px; }
.qr-box {
  display: flex;
  justify-content: center;
  margin: 8px auto 16px;
  padding: 12px;
  width: max-content;
  background: white;
  border-radius: 14px;
}
.tip {
  margin: 0 0 16px;
  color: var(--secondary);
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
}
.section-title { margin: 18px 0 8px; font-weight: 650; }
.group-qr { display: block; width: 180px; border-radius: 10px; }
.small { font-size: 12px; }
