@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=Josefin+Sans:wght@200;300;400&display=swap');

:root {
  --black:    #080808;
  --charcoal: #111111;
  --panel:    #161616;
  --border:   #2a2a2a;
  --gold:     #c9a84c;
  --gold-dim: #8a6f2e;
  --cream:    #f0e8d5;
  --muted:    #666666;
  --white:    #ffffff;
  --danger:   #c0392b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: var(--black);
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 999;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  animation: fadeIn 0.8s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wordmark {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.event-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1;
  color: var(--white);
  text-align: center;
}

.event-title em { font-style: italic; color: var(--gold); }

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold-dim);
  margin: 1.5rem auto;
}

.subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.card-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.field { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 1px;
  padding: 0.75rem 1rem;
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
}

input:focus { border-color: var(--gold-dim); }

.waiver-text {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 1px;
  padding: 1rem;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.check-row input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  min-width: 18px;
  border: 1px solid var(--gold-dim);
  border-radius: 1px;
  background: var(--charcoal);
  cursor: pointer;
  position: relative;
  margin-top: 2px;
}

.check-row input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.check-row input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
}

.check-label {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--cream);
}

.btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.25s, color 0.25s;
}

.btn:hover { background: var(--gold); color: var(--black); }
.btn-solid { background: var(--gold); color: var(--black); }
.btn-solid:hover { background: var(--cream); border-color: var(--cream); }
.btn + .btn { margin-top: 0.75rem; }

.welcome-wrap { text-align: center; }
.welcome-wrap .date-line {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

.progress-bar {
  width: 120px;
  height: 1px;
  background: var(--border);
  margin: 2rem auto 0;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--gold);
  animation: progress 3s linear forwards;
}

@keyframes progress {
  from { width: 0; }
  to   { width: 100%; }
}

.floorplan-wrap { width: 100%; max-width: 600px; text-align: center; }

.floorplan-img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: block;
  background: var(--panel);
  min-height: 280px;
  object-fit: contain;
}

.floorplan-placeholder {
  width: 100%;
  min-height: 280px;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.btn-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.btn-row .btn { flex: 1; }

.genre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.genre-btn {
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--border);
  background: var(--charcoal);
  color: var(--muted);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 1px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.genre-btn:hover { border-color: var(--gold-dim); color: var(--cream); }
.genre-btn.selected { border-color: var(--gold); background: rgba(201,168,76,0.12); color: var(--gold); }
.genre-btn.disabled { opacity: 0.35; cursor: not-allowed; }

.pick-hint {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.program-placeholder {
  width: 100%;
  min-height: 420px;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── ADMIN ── */
.admin-body { background: #0d0d0d; padding: 0; min-height: 100vh; }
.wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.admin-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
}

.stat-row { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }

.stat-card {
  flex: 1;
  min-width: 120px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }

.admin-table th {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1a1a1a;
  color: var(--cream);
  vertical-align: middle;
}

.admin-table tr:hover td { background: var(--panel); }

.export-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  transition: all 0.2s;
}

.export-btn:hover { background: var(--gold); color: var(--black); }

.manual-tap {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--gold);
  color: var(--black);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 0.75rem;
}

.manual-tap:hover { background: var(--cream); }

.logout-link { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--muted); text-decoration: none; }
.logout-link:hover { color: var(--cream); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
