:root {
  --navy: #0c1b33;
  --navy-2: #152844;
  --navy-3: #1c3358;
  --ink: #16141f;
  --ivory: #f4f1ea;
  --paper: #fbf8f2;
  --sand: #e8e2d6;
  --crimson: #c41e3a;
  --gold: #c6a15b;
  --gold-2: #e8d7a8;
  --muted: #5c574e;
  --forest: #1b6b3a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100dvh;
}
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
a { color: inherit; }
button, [role="button"] { cursor: pointer; }
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.app { min-height: 100dvh; }
@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 260px 1fr; }
}
.sidebar {
  background: var(--navy);
  color: var(--ivory);
  padding: 1.2rem 0.8rem 2rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.6rem 1.2rem; }
.brand img { width: 42px; height: 42px; }
.brand strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.15rem; }
.brand span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }
.nav a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.62rem 0.75rem; border-radius: 10px;
  color: rgba(244,241,234,0.78); text-decoration: none; font-size: 0.92rem;
}
.nav a:hover, .nav a.active { background: var(--navy-2); color: var(--ivory); }
.main { padding: 1.25rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.card {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.grid { display: grid; gap: 0.85rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stat { font-variant-numeric: tabular-nums; }
.stat .n { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; line-height: 1; color: var(--navy); }
.stat .l { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1rem; border-radius: 10px; border: 0;
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-crimson { background: var(--crimson); color: var(--paper); }
.btn-ghost { background: transparent; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.btn:disabled { opacity: 0.5; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.7rem 0.55rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 0.55rem 0.75rem;
  border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: #fff; font: inherit;
}
textarea { min-height: 90px; }
.flash { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.flash-ok { background: color-mix(in srgb, var(--forest) 12%, white); }
.flash-error { background: color-mix(in srgb, var(--crimson) 12%, white); color: var(--crimson); }
.muted { color: var(--muted); }
.kicker { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 0.5rem; margin-top: 1rem; }
.kiosk { min-height: 100dvh; background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 60%), var(--navy); color: var(--ivory); padding: 1.2rem; }
.kiosk .panel { max-width: 520px; margin: 2rem auto; }
.kiosk .choice {
  display: block; width: 100%; text-align: center; padding: 1.4rem;
  border-radius: 16px; background: var(--ivory); color: var(--navy);
  font-family: "Cormorant Garamond", serif; font-size: 1.8rem; text-decoration: none; margin-top: 0.8rem;
}
.bar { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--gold); }
.menu-btn { display: none; }
@media (max-width: 959px) {
  .menu-btn { display: inline-flex; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 280px); z-index: 40; transform: translateX(-110%); transition: transform .2s; overflow: auto; }
  .sidebar.open { transform: none; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; }
  .scrim.open { display: block; }
}
.auth-grid { min-height: 100dvh; display: grid; }
@media (min-width: 960px) { .auth-grid { grid-template-columns: 1fr 1fr; } }
.auth-hero { display: none; position: relative; color: var(--ivory); padding: 2.5rem; }
@media (min-width: 960px) { .auth-hero { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.auth-hero .veil { position: absolute; inset: 0; background: linear-gradient(to top, var(--navy), rgba(12,27,51,.5)); }
.auth-form { display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--ivory); }
.auth-form .box { width: 100%; max-width: 24rem; }
.hero-home { background: var(--navy); color: var(--ivory); min-height: 100dvh; }
.hero-home header, .hero-home section { max-width: 72rem; margin: 0 auto; padding: 1.2rem 1.25rem; }
.hero-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero-split { grid-template-columns: 1fr 1fr; padding-top: 3rem !important; } }
.hero-home h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; }
.badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: 11px; background: var(--sand); }
.qr-box { width: 220px; height: 220px; background: white; padding: 10px; border-radius: 12px; }
