:root {
  --red: #cf1f36;
  --bg: #0a0a0b;
  --card: #141416;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--red); }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg i {
  position: absolute; border-radius: 50%; filter: blur(90px); background: var(--red);
  animation: drift 10s ease-in-out infinite alternate;
}
.bg i:nth-child(1) { width: 340px; height: 340px; opacity: 0.2; top: -120px; left: -80px; }
.bg i:nth-child(2) { width: 280px; height: 280px; opacity: 0.13; bottom: -80px; right: -100px; animation-delay: -5s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(120px, 160px); } }

#app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }

/* ---------- Motion ---------- */
.rise { opacity: 0; animation: rise 0.6s var(--spring) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(0.95); } to { opacity: 1; transform: none; } }
.fade { animation: fade 0.35s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.shake { opacity: 1; animation: shake 0.45s linear; } /* stays visible: .rise starts at opacity 0 and relied on its own animation */
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-9px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }

/* ---------- Typography ---------- */
h1, h2 { margin: 0; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; }
h1 { font-size: 24px; }
h2 { font-size: 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.error { color: var(--red); font-size: 13px; text-align: center; margin: 0; animation: pop 0.4s var(--spring); }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Auth ---------- */
.auth { padding: calc(var(--safe-top) + 48px) 28px 40px; display: flex; flex-direction: column; gap: 20px; min-height: 100dvh; justify-content: center; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand img { width: 64px; height: 64px; filter: drop-shadow(0 0 22px rgba(207, 31, 54, 0.6)); animation: logo 0.9s var(--spring) both; }
@keyframes logo { from { opacity: 0; transform: scale(0.3) rotate(-40deg); } to { opacity: 1; transform: none; } }
.brand span { font-size: 15px; letter-spacing: 0.1em; font-weight: 300; }
.brand b { font-weight: 900; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: #232326; border-radius: 12px; padding: 3px; position: relative; }
.segmented button { padding: 9px 0; font-size: 14px; font-weight: 600; border-radius: 10px; position: relative; z-index: 1; transition: color 0.2s; color: var(--muted); }
.segmented button.on { color: var(--text); }
.segmented .pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: #5f5f65; border-radius: 10px; transition: transform 0.4s var(--spring); }
.segmented[data-mode="login"] .pill { transform: translateX(100%); }

.fields { display: flex; flex-direction: column; gap: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; padding: 15px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  font-size: 16px; outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.input::placeholder { color: rgba(255, 255, 255, 0.3); }
.input:focus { border-color: rgba(207, 31, 54, 0.8); box-shadow: 0 0 14px rgba(207, 31, 54, 0.35); }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.collapse { overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s; }

.terms { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; color: var(--muted); }
.terms .check { margin-top: 1px; }
.check { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--muted); display: grid; place-items: center; flex: none; transition: all 0.25s var(--spring); }
.check svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 3; fill: none; transform: scale(0); transition: transform 0.25s var(--spring); }
.check.on { background: var(--red); border-color: var(--red); transform: scale(1.1); }
.check.on svg { transform: scale(1); }

.btn {
  width: 100%; padding: 16px; border-radius: 14px; background: var(--red); color: #fff; font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 16px rgba(207, 31, 54, 0.45); transition: transform 0.2s var(--spring), opacity 0.25s, box-shadow 0.25s, filter 0.2s;
}
.btn:active { transform: scale(0.95); filter: brightness(0.92); }
.btn:disabled { opacity: 0.45; box-shadow: none; cursor: default; }
.btn:disabled:active { transform: none; }
.link { font-size: 13px; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; display: inline-block; animation: spin 0.7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.splash { display: grid; place-items: center; min-height: 100dvh; }
.loader { position: relative; width: 56px; height: 56px; display: grid; place-items: center; animation: loaderIn 0.35s ease-out both; }
.loader-mark { width: 34px; height: 34px; border-radius: 50%; filter: drop-shadow(0 0 10px rgba(207, 31, 54, 0.55)); animation: breathe 1.4s ease-in-out infinite; }
.loader-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 62%, rgba(207, 31, 54, 0.25) 75%, var(--red) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); animation: spin 1s linear infinite; }
.loader-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); }
@keyframes breathe { 0%, 100% { transform: scale(0.92); opacity: 0.85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes loaderIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .loader-mark { animation: none; } .loader-ring { animation-duration: 2.5s; } }

/* ---------- Shell ---------- */
.page { padding: calc(var(--safe-top) + 16px) 16px calc(96px + var(--safe-bottom)); min-height: 100dvh; }
.page-head { text-align: center; padding: 12px 0 8px; }
.page-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-bottom)); z-index: 5;
  width: min(448px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(var(--tabs, 4), 1fr); padding: 6px;
  background: rgba(24, 24, 27, 0.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 30px;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; border-radius: 24px; font-size: 11px; font-weight: 600; color: #fff; transition: background 0.3s, color 0.3s, transform 0.2s var(--spring); }
.tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--spring); }
.tab:active { transform: scale(0.92); }
.tab.on { color: var(--red); background: rgba(255, 255, 255, 0.1); }
.tab.on svg { transform: scale(1.15); }
.tab .tab-pic { width: 24px; height: 24px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.75); transition: transform 0.35s var(--spring), box-shadow 0.3s; }
.tab.on .tab-pic { transform: scale(1.15); box-shadow: 0 0 0 2px var(--red), 0 0 10px rgba(207, 31, 54, 0.6); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; }
.days { display: flex; gap: 8px; padding: 10px 0 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.days::-webkit-scrollbar { display: none; }
.chip { min-width: 76px; padding: 10px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; align-items: center; transition: all 0.4s var(--spring); }
.chip small { font-size: 11px; font-weight: 700; color: var(--muted); }
.chip b { font-size: 15px; }
.chip.on { background: var(--red); border-color: transparent; transform: scale(1.05); box-shadow: 0 4px 12px rgba(207, 31, 54, 0.5); }
.chip.on small { color: #fff; }

.session { display: flex; gap: 14px; padding: 14px; margin-bottom: 10px; transition: transform 0.25s var(--spring), border-color 0.4s, box-shadow 0.4s; }
.session:active { transform: scale(0.97); }
.session.live { border-color: rgba(207, 31, 54, 0.7); box-shadow: 0 0 14px rgba(207, 31, 54, 0.3); }
.cat { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.live .cat { background: color-mix(in srgb, var(--c) 30%, transparent); animation: breathe 1.6s ease-in-out infinite; }
.cat svg, .meta svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes breathe { 50% { transform: scale(1.1); } }
.session h3 { margin: 0 0 3px; font-size: 17px; }
.session .time { color: var(--red); font-size: 15px; margin-bottom: 3px; }
.meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.meta svg { width: 13px; height: 13px; }
.livebadge { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--red); margin-bottom: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: ping 1.3s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

.empty { text-align: center; padding: 90px 32px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; stroke: currentColor; fill: none; stroke-width: 1.6; margin-bottom: 12px; animation: breathe 2s ease-in-out infinite; }

/* ---------- Check in ---------- */
.checkin { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 48px; min-height: calc(100dvh - 130px); }
.rings { position: relative; width: 280px; height: 280px; display: grid; place-items: center; }
.rings i { position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 2px solid rgba(207, 31, 54, 0.7); animation: ring 2.4s ease-out infinite; }
.rings i:nth-child(2) { animation-delay: 0.8s; }
.rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.45); opacity: 0; } }
.bigbtn {
  position: relative; width: 190px; height: 190px; border-radius: 50%; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 0 40px rgba(207, 31, 54, 0.6); transition: transform 0.25s var(--spring);
  font-weight: 800; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase;
}
.bigbtn:active { transform: scale(0.92); }
.bigbtn svg { width: 46px; height: 46px; stroke: #fff; fill: none; stroke-width: 2; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(1.12); } }
.locked { width: 190px; height: 190px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.locked svg { width: 56px; height: 56px; stroke: currentColor; fill: none; stroke-width: 1.8; animation: breathe 2s ease-in-out infinite; }
.done { padding: 28px; text-align: center; width: calc(100% - 32px); max-width: 360px; animation: bounceIn 0.7s var(--spring) both; }
@keyframes bounceIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
.done svg { width: 64px; height: 64px; stroke: #22c55e; fill: none; stroke-width: 1.8; filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.55)); }
.done h2 { margin: 10px 0 4px; font-size: 20px; }
.footer-links { display: flex; gap: 28px; justify-content: center; margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--muted); }
.footer-links button { color: var(--muted); font-size: 13px; }
.confetti { position: absolute; top: 40%; left: 50%; width: 0; height: 0; pointer-events: none; z-index: 20; }
.confetti i { position: absolute; width: 10px; height: 5px; border-radius: 2px; animation: burst 1.7s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* ---------- Tables ---------- */
.seat { margin: 12px 4px 22px; padding: 26px 24px; text-align: center; border-color: rgba(207, 31, 54, 0.6); box-shadow: 0 0 24px rgba(207, 31, 54, 0.25); border-radius: 28px; }
.seat .num { font-size: clamp(64px, 28vw, 120px); font-weight: 800; color: var(--red); line-height: 1.05; text-shadow: 0 0 28px rgba(207, 31, 54, 0.55); overflow-wrap: anywhere; }
/* The table's facilitator: a gold badge on their own seat card, and a gold tag on their row for everyone else */
.seat.fac { border-color: rgba(245, 196, 81, 0.6); box-shadow: 0 0 26px rgba(245, 196, 81, 0.22), 0 0 24px rgba(207, 31, 54, 0.18); }
.fac-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 12px; padding: 7px 14px 7px 11px; border-radius: 999px; background: linear-gradient(135deg, #f7d26a, #d99a1a); color: #2a1d05; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; box-shadow: 0 4px 16px rgba(217, 154, 26, 0.4); }
.fac-badge svg { width: 14px; height: 14px; fill: #2a1d05; stroke: #2a1d05; stroke-width: 1.5; }
.fac-note { margin: 12px auto 0; max-width: 300px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.row.is-fac { border-color: rgba(245, 196, 81, 0.45); }
.row .name .fac-tag { display: inline-flex; align-items: center; gap: 4px; vertical-align: 2px; margin-left: 8px; padding: 2px 8px 2px 6px; border-radius: 999px; background: rgba(245, 196, 81, 0.18); color: #f5c451; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.row .name .fac-tag svg { width: 11px; height: 11px; fill: #f5c451; stroke: #f5c451; stroke-width: 1.5; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; margin-bottom: 10px; transition: transform 0.25s var(--spring); }
.row:active { transform: scale(0.97); }
.row .name { font-weight: 600; font-size: 17px; flex: 1; overflow-wrap: anywhere; }
.row .chev { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2.5; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 15px; color: var(--red); background: rgba(207, 31, 54, 0.18); }
.avatar.big { width: 84px; height: 84px; font-size: 30px; border: 1.5px solid rgba(207, 31, 54, 0.6); box-shadow: 0 0 18px rgba(207, 31, 54, 0.4); }
.sec-head { display: flex; justify-content: space-between; padding: 0 4px 10px; }

/* ---------- Profile ---------- */
.who { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; text-align: center; }
.who h2 { overflow-wrap: anywhere; }
.facts .fact { display: flex; gap: 14px; padding: 16px; align-items: center; }
.facts .fact + .fact { border-top: 1px solid var(--border); }
.facts svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.facts b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.topbar { display: flex; justify-content: flex-end; }
.topbar button { color: var(--red); font-weight: 600; font-size: 17px; padding: 8px 4px; }

/* ---------- Multiple choice ---------- */
.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.question { margin: 0 0 2px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.choice { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: 14px; line-height: 1.35; transition: transform 0.3s var(--spring), background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.choice:active { transform: scale(0.96); }
.choice .letter { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, 0.35); font-size: 12px; font-weight: 800; color: var(--muted); transition: all 0.25s var(--spring); }
.choice.on { background: rgba(207, 31, 54, 0.16); border: 1.5px solid var(--red); box-shadow: 0 0 10px rgba(207, 31, 54, 0.3); transform: scale(1.01); }
.choice.on .letter { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.1); }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.25s ease both; }
.sheet { width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; background: #101012; border: 1px solid var(--border); border-radius: 24px 24px 0 0; padding: 18px 20px calc(24px + var(--safe-bottom)); animation: slide 0.45s var(--spring) both; }
@keyframes slide { from { transform: translateY(100%); } to { transform: none; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-head button { color: var(--red); font-weight: 600; font-size: 17px; }
.sheet-head h3 { margin: 0; font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Admin ---------- */
.section-title { margin: 22px 4px 8px; }
.form-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.form-card .btn { margin-top: 4px; }
.input.bare { background: rgba(255, 255, 255, 0.04); padding: 12px 14px; border-radius: 12px; font-size: 16px; }
textarea.input { resize: vertical; min-height: 84px; font-family: inherit; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input[type="date"].input, input[type="datetime-local"].input { color-scheme: dark; min-height: 46px; }
.statusbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.statusbar span { flex: 1; }
.statusbar button { color: var(--red); font-weight: 700; }
.dot-ok { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; flex: none; transition: background 0.3s; }
.statusbar[data-status="pending"] .dot-ok, .statusbar[data-status="saving"] .dot-ok { background: #facc15; animation: breathe 1s ease-in-out infinite; }
.statusbar[data-status="error"] .dot-ok { background: var(--red); }
.list-card { overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font-size: 16px; }
.list-row + .list-row { border-top: 1px solid var(--border); }
.list-row > span:first-child:not(.cat):not(.stack) { flex: 1; }
button.list-row { transition: background 0.2s; }
button.list-row:active { background: rgba(255, 255, 255, 0.06); }
.list-row svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2.5; flex: none; }
.list-row.accent { color: var(--red); font-weight: 600; }
.list-row.accent svg { stroke: var(--red); width: 20px; height: 20px; }
.list-row .stack { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.list-row small { font-size: 12px; }
.add-row .input { flex: 1; }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-weight: 700; white-space: nowrap; }
.chip-btn svg { stroke: var(--red); width: 18px; height: 18px; }
.cat.sm { width: 34px; height: 34px; }
.cat.sm svg { width: 16px; height: 16px; }
.btn.ghost { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.btn.danger { background: transparent; color: var(--red); border: 1px solid rgba(207, 31, 54, 0.6); box-shadow: none; }
/* Admin check-in question switches */
.meal-switch { padding: 10px 0; border-top: 1px solid var(--border); }
.meal-switch .switch-row > span { display: grid; gap: 2px; min-width: 0; }
.meal-switch b { font-size: 15px; }
.meal-switch small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
/* Admin reset area */
.reset-area { border-color: rgba(207, 31, 54, 0.45); }
.reset-row { padding: 12px 0; border-top: 1px solid var(--border); }
.reset-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reset-head > div { display: grid; gap: 2px; min-width: 0; }
.reset-head b { font-size: 15px; }
.reset-head small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.reset-head .btn, .reset-line .btn { width: auto; flex: none; padding: 9px 14px; }
.reset-confirm { margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(207, 31, 54, 0.08); border: 1px solid rgba(207, 31, 54, 0.35); }
.reset-confirm p { margin: 0 0 8px; font-size: 14px; }
.reset-line { display: flex; gap: 8px; align-items: center; }
.reset-line input { flex: 1; min-width: 0; text-transform: uppercase; }
.reset-msg { margin: 8px 0 0; }
.reset-msg.error { color: var(--red); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; position: relative; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: #39393d; position: relative; transition: background 0.25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--spring); }
.switch-row input:checked + .switch { background: var(--red); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(207, 31, 54, 0.5); }
.topbar.left { justify-content: flex-start; }
.topbar button { display: inline-flex; align-items: center; gap: 2px; }
.topbar svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 2.5; }
.ok-note { color: #22c55e; font-size: 14px; text-align: center; margin: 4px 0 12px; }
.small { font-size: 12px; }

/* ---------- Tier picker (schedule) ---------- */
.tierpick { position: relative; margin: 4px 0 12px; z-index: 6; }
.tierbtn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; border-radius: 16px; background: var(--card); border: 1px solid var(--border); transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s var(--spring); }
.tierbtn:active { transform: scale(0.98); }
.tierbtn.open { border-color: var(--t); box-shadow: 0 0 16px color-mix(in srgb, var(--t) 40%, transparent); }
.tdot { width: 12px; height: 12px; border-radius: 50%; background: var(--t); box-shadow: 0 0 10px var(--t); flex: none; }
.tmain { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tmain small { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.tmain b { font-size: 17px; }
.tmine { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); color: var(--muted); flex: none; }
.tcaret { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform 0.35s var(--spring); }
.tierbtn.open .tcaret { transform: rotate(180deg); }
.tiermenu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #141416; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97); transform-origin: top; transition: opacity 0.2s, transform 0.35s var(--spring), visibility 0.2s; }
.tiermenu.open { opacity: 1; visibility: visible; transform: none; }
.tiermenu li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; cursor: pointer; outline: none; transition: background 0.15s; }
.tiermenu li:hover, .tiermenu li:focus-visible { background: rgba(255, 255, 255, 0.07); }
.tiermenu li.on { background: color-mix(in srgb, var(--t) 14%, transparent); }
.tiermenu li b { font-size: 16px; }
.tcheck { width: 18px; height: 18px; stroke: var(--t); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Admin: choose which tier's days to edit ---------- */
.tierchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.tierchips::-webkit-scrollbar { display: none; }
.tierchip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 14px; font-weight: 600; white-space: nowrap; transition: all 0.3s var(--spring); }
.tierchip.on { background: color-mix(in srgb, var(--t) 22%, transparent); border-color: var(--t); transform: scale(1.04); box-shadow: 0 0 12px color-mix(in srgb, var(--t) 35%, transparent); }
.tierchip .custom { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t); }
.inherit-note { padding: 14px; margin-bottom: 10px; }
.inherit-note p { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.inherit-note.slim { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; font-size: 13px; color: var(--muted); }
.inherit-note.slim button { color: var(--red); font-weight: 600; font-size: 13px; text-align: right; }
.list-row.dim { opacity: 0.55; }

/* ---------- meal questions ---------- */
.right-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dpill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.dpill.yes { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.dpill.no { background: rgba(255, 255, 255, 0.08); color: var(--muted, #9a9aa3); }

.meal-ask { display: grid; gap: 12px; padding-bottom: 4px; }
.meal-ask > .muted { margin: 0; text-align: center; font-size: 14px; }
.meal-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.meal-card h3 { margin: 0; font-size: 16px; }
.meal-when { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.meal-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); font-style: italic; }
.meal-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.meal-choice { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid transparent; font-weight: 600; font-size: 15px; color: var(--text, #fff); transition: transform 0.2s var(--spring), background 0.2s; }
.meal-choice:active { transform: scale(0.95); }
.meal-choice.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(207, 31, 54, 0.35); }
#mealsConfirm { position: sticky; bottom: 0; margin-top: 4px; box-shadow: 0 0 0 10px #101012, 0 6px 18px rgba(207, 31, 54, 0.25); }
.meal-list { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 8px; text-align: left; }
.meal-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.meal-row span { display: inline-flex; align-items: center; gap: 8px; }
/* ---------- Award Status (under the check-in card) ---------- */
.award { display: flex; align-items: center; gap: 16px; width: calc(100% - 32px); max-width: 360px; padding: 18px 20px; border-radius: 22px; text-align: left; border-color: color-mix(in srgb, var(--award) 55%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--award) 28%, transparent); }
.award-ribbon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--award) 18%, transparent); }
.award-ribbon svg { width: 30px; height: 30px; stroke: var(--award); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--award) 70%, transparent)); }
.award-text { display: grid; gap: 3px; min-width: 0; }
.award-text .eyebrow { color: var(--award); }
.award-text b { font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.award-text small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.award.white .award-text .eyebrow { color: var(--muted); }
.award.none { box-shadow: none; border-color: var(--border); }
.award.none .award-ribbon svg { filter: none; }
.award.none .award-text .eyebrow { color: var(--muted); }
.award.none .award-text b { font-size: 16px; color: #d4d4d8; }
.award.sfa { background: linear-gradient(135deg, rgba(245, 196, 81, 0.16), rgba(207, 31, 54, 0.14)), var(--card); border-color: rgba(245, 196, 81, 0.7); box-shadow: 0 0 30px rgba(245, 196, 81, 0.3); }
.award.sfa .award-ribbon { background: linear-gradient(135deg, #f7d26a, #d99a1a); box-shadow: 0 4px 16px rgba(217, 154, 26, 0.45); }
.award.sfa .award-ribbon svg { stroke: #2a1d05; filter: none; }
.award.sfa .award-text b { background: linear-gradient(90deg, #fff1c2, #f5c451); -webkit-background-clip: text; background-clip: text; color: transparent; }
.award.multi { border-color: rgba(245, 196, 81, 0.95); box-shadow: 0 0 36px rgba(245, 196, 81, 0.45), inset 0 0 0 1px rgba(245, 196, 81, 0.35); }
.done .meal-row svg { width: 15px; height: 15px; stroke: var(--red); fill: none; stroke-width: 2; filter: none; flex: none; }
.meal-row b.yes { color: #4ade80; }
.meal-change { justify-self: center; margin-top: 6px; color: var(--red); font-weight: 600; font-size: 14px; }
.meal-counts { display: grid; gap: 6px; margin: 0 0 12px; font-size: 13px; }
.meal-counts div { display: flex; align-items: baseline; gap: 8px; }
.meal-counts span { color: var(--muted); flex: 1; }
.meal-counts b { color: #4ade80; font-weight: 600; }
.meal-counts small { color: var(--muted); min-width: 40px; text-align: right; }

/* ---------- Mastermind Tables sign-up (Tables page) ---------- */
.mm-btn { display: flex; align-items: center; gap: 14px; width: 100%; margin: 2px 0 18px; padding: 16px 18px 16px 16px; border-radius: 22px; text-align: left; color: #fff;
  background: var(--red); border: 1.5px solid rgba(255, 255, 255, 0.12); box-shadow: 0 8px 24px rgba(207, 31, 54, 0.35); transition: transform 0.25s var(--spring), opacity 0.2s; }
.mm-btn:active { transform: scale(0.97); }
.mm-btn.busy { opacity: 0.7; }
.mm-glow { display: none; }
.mm-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.16); }
.mm-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mm-text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.mm-text b { font-size: 16.5px; line-height: 1.25; }
.mm-text small { color: rgba(255, 255, 255, 0.8); font-size: 12.5px; font-weight: 600; }
.mm-btn .chev { width: 18px; height: 18px; stroke: rgba(255, 255, 255, 0.85); fill: none; stroke-width: 2.5; flex: none; }
.mm-done { display: flex; align-items: center; gap: 14px; margin: 2px 0 18px; padding: 16px 18px; border-radius: 22px; border-color: rgba(34, 197, 94, 0.55); box-shadow: 0 0 24px rgba(34, 197, 94, 0.18); }
.mm-done > svg { width: 40px; height: 40px; flex: none; stroke: #22c55e; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.55)); }
.mm-done div { display: grid; gap: 3px; min-width: 0; }
.mm-done b { font-size: 16px; line-height: 1.25; }
.mm-done small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* ---------- seating switch + breakout rooms ---------- */
.seatswitch { display: flex; gap: 4px; padding: 4px; margin: 6px 0 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-radius: 14px; }
.seatswitch button { flex: 1; padding: 10px 8px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background 0.25s, color 0.25s, transform 0.2s var(--spring); }
.seatswitch button:active { transform: scale(0.96); }
.seatswitch button.on { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(207, 31, 54, 0.35); }
.bk-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.bk-q { margin: 18px 4px 2px; }
.form-card textarea.input { margin-top: 10px; }
.room-text { display: grid; gap: 2px; }
.room-text small { color: var(--muted); font-size: 12.5px; }
#bkTopicBlock { margin-top: 18px; }
#bkTopicBlock .question { margin: 0 4px 2px; }
#bkSave { margin-top: 16px; }
.bk-cancel { display: block; margin: 12px auto 0; padding: 8px; }
.bk-status { padding: 22px; text-align: center; }
.bk-status h2 { margin: 6px 0 8px; font-size: 22px; }
.bk-topic { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(207, 31, 54, 0.16); color: #ff8a98; font-size: 13px; font-weight: 700; }
.bk-issue { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: #d8d8de; font-style: italic; overflow-wrap: anywhere; }
.bk-place { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 10px 16px; border-radius: 999px; background: var(--red); font-size: 15px; }
.bk-place svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.bk-place.big { display: flex; font-size: 17px; margin: 6px 0 6px; }
.bk-wait { margin: 16px 0 0; font-size: 13px; }
.bk-status + .btn { margin-top: 14px; }
.brief-link { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin-bottom: 14px; text-align: left; }
.brief-link > svg:first-child { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 2; flex: none; }
.brief-link span { display: grid; flex: 1; }
.brief-link small { color: var(--muted); font-size: 12.5px; }
.brief-head { text-align: center; padding: 6px 0 10px; }
.brief-head h2 { margin: 4px 0; font-size: 24px; }
.brief-head p { margin: 2px 0; font-size: 14px; }
.brief-tip { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(207, 31, 54, 0.12); border: 1px solid rgba(207, 31, 54, 0.35); font-size: 13.5px; line-height: 1.45; }
.brief-topic { padding: 14px; margin-bottom: 10px; }
.brief-th { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.brief-th b { flex: 1; font-size: 15.5px; }
.brief-th .num { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--red); font-weight: 800; font-size: 13px; flex: none; }
.brief-person { padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.bka-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.bka-stats b { display: block; font-size: 20px; }
.bka-stats span { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bka-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn.small { width: auto; padding: 10px 14px; font-size: 14px; }
.bka-room { padding: 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.bka-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.bka-count { min-width: 34px; text-align: center; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-weight: 800; font-size: 14px; }
.bka-count.alert { background: rgba(250, 204, 21, 0.2); color: #facc15; }
.bka-space { display: grid; gap: 4px; }
.bka-space label { font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.bka-topics { margin: 0; font-size: 13px; line-height: 1.5; color: #c8c8d0; }
.bk-warn { color: #fb7185; font-weight: 700; }

.center-link { display: block; margin: 14px auto 0; padding: 8px; text-align: center; }

/* ---------- profile photos ---------- */
.avatar.photo { color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat; }
.avatar-edit { position: relative; cursor: pointer; }
.avatar-edit .cam { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--red); border: 2px solid #0b0b0d; }
.avatar-edit .cam svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }
.photo-link { color: var(--red); font-weight: 600; font-size: 14px; margin-top: -2px; }
.photo-editor { display: grid; gap: 12px; }
.ph-stage { position: relative; width: 256px; max-width: 100%; aspect-ratio: 1; margin: 4px auto; border-radius: 50%; overflow: hidden; border: 2px solid rgba(207, 31, 54, 0.6); background: #101012; touch-action: none; }
.ph-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.ph-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.ph-empty[hidden] { display: none; }
.ph-empty svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.6; }
#phZoom { width: 100%; accent-color: var(--red); }

/* ---------- directory ---------- */
.dir-search { position: relative; margin: 6px 0 4px; }
.dir-search > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; stroke: var(--muted); fill: none; stroke-width: 2; pointer-events: none; }
.dir-search .input { padding-left: 42px; }
.dir-count { margin: 6px 4px 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-height: 1em; }
.dir-row { align-items: center; }
.dir-text { display: grid; gap: 2px; flex: 1; min-width: 0; text-align: left; }
.dir-text b { font-size: 16px; overflow-wrap: anywhere; }
.dir-text small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-text .you { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(207, 31, 54, 0.2); color: #ff8a98; margin-left: 4px; }

@media (max-width: 360px) { .tab { font-size: 10px; } }

/* ---------- sign-up step 2 ---------- */
.su-photo { display: grid; justify-items: center; gap: 12px; margin-bottom: 8px; padding: 6px 0 2px; border-radius: 18px; }
.su-photo .avatar.big { width: 160px; height: 160px; }
.su-photo .ph-icon svg { width: 56px; height: 56px; stroke: var(--red); fill: none; stroke-width: 1.8; }
.su-photo .avatar-edit .cam { width: 42px; height: 42px; right: 4px; bottom: 4px; }
.su-photo .avatar-edit .cam svg { width: 20px; height: 20px; }
.su-photo .hint { font-size: 18px; font-weight: 700; color: #fff; text-align: center; }
.su-error { font-size: 15px; line-height: 1.4; margin-top: 10px; }
.missing .input { border-color: var(--red); }
.choices.missing, .su-photo.missing { outline: 1.5px solid var(--red); outline-offset: 6px; border-radius: 16px; }
.su-photo.missing .avatar.big { border-color: var(--red); }
.auth .hint.center { text-align: center; }
.auth .hint.pin-hint { font-size: 17px; font-weight: 700; line-height: 1.35; color: #fff; }

/* ---------- sign-up: which email to use (pops up over the email boxes when you tap into them) ---------- */
.email-group { position: relative; display: flex; flex-direction: column; gap: 12px; }
.email-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 5; padding: 11px 14px; border-radius: 14px; background: #1b1b1f; border: 1px solid rgba(207, 31, 54, 0.65); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(207, 31, 54, 0.25); font-size: 13.5px; line-height: 1.35; text-align: center; text-wrap: balance; color: #ececf0; opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.94); transform-origin: 50% 100%; pointer-events: none; transition: opacity 0.2s, transform 0.35s var(--spring), visibility 0s 0.35s; }
.email-pop::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: #1b1b1f; border-right: 1px solid rgba(207, 31, 54, 0.65); border-bottom: 1px solid rgba(207, 31, 54, 0.65); transform: rotate(45deg); }
.email-pop.show { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.35s var(--spring), visibility 0s; }
.email-pop b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .email-pop, .email-pop.show { transform: none; transition: opacity 0.15s; } }

/* ---------- table lock ---------- */
.tables-locked { padding: 28px 22px; text-align: center; margin-top: 4px; }
.tables-locked > svg { width: 40px; height: 40px; stroke: var(--red); fill: none; stroke-width: 1.8; margin-bottom: 6px; }
.tables-locked h3 { margin: 4px 0 6px; font-size: 18px; }
.tables-locked p { margin: 0; font-size: 14px; line-height: 1.5; }
.admin-note { margin: 0 4px 12px; color: #ff8a98; }

/* nearby restaurants link + list */
.eat-link { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 14px 16px; text-align: left; font-size: 16px; font-weight: 700; color: #fff; background: rgba(207, 31, 54, 0.14); border: 1px solid rgba(207, 31, 54, 0.45); border-radius: 16px; transition: transform 0.2s var(--spring), background 0.2s; }
.eat-link:active { transform: scale(0.98); }
.eat-link > svg:first-child { width: 22px; height: 22px; flex: none; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eat-link span { flex: 1; }
.eat-link .chev { width: 18px; height: 18px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; }
.eat-intro { margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.eat-list { display: grid; gap: 10px; }
.eat-card { display: grid; gap: 4px; padding: 14px 16px; }
.eat-card b { font-size: 16px; }
.eat-note { font-size: 13px; color: var(--muted); }
.eat-hours { font-size: 13px; color: #cfd2da; }
.eat-card a { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #fff; text-decoration: none; padding-top: 2px; }
.eat-card a svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eat-card a span { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }

/* ======================================================================
   Theme v2 — a richer, more distinctive look. Delete this block to revert.
   ====================================================================== */
:root { --bg: #08080b; --card: rgba(22, 22, 27, 0.72); --border: rgba(255, 255, 255, 0.09); --red2: #ff3b55; }
html, body { background: #08080b; }
body { background: radial-gradient(1200px 700px at 85% -10%, rgba(207, 31, 54, 0.22), transparent 60%), radial-gradient(900px 600px at -10% 100%, rgba(207, 31, 54, 0.14), transparent 60%), linear-gradient(180deg, #0b0a0f 0%, #08080b 55%, #0a0709 100%); }
/* a faint film grain so flat areas don't band */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.045; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
/* the 7FA mark, huge and ghosted, bleeding off the top-right */
body::after { content: ""; position: fixed; z-index: 0; pointer-events: none; width: 420px; height: 420px; top: -120px; right: -150px; background: url("/sfa-mark.png") center / contain no-repeat; opacity: 0.045; filter: grayscale(1) brightness(2); transform: rotate(12deg); }
.bg i { filter: blur(110px); }
.bg i:nth-child(1) { opacity: 0.26; }
.bg i:nth-child(2) { opacity: 0.16; background: #ff3b55; }

/* headings: a little tighter, with a short red rule under page titles */
h1, h2 { letter-spacing: 0.02em; }
.page-head { position: relative; padding-bottom: 14px; }
.page-head h2 { background: linear-gradient(180deg, #fff 55%, rgba(255, 255, 255, 0.72)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head:has(h2:empty)::after { display: none; }
.page-head::after { content: ""; display: block; width: 34px; height: 3px; margin: 10px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--red2)); box-shadow: 0 0 12px rgba(207, 31, 54, 0.7); }
.eyebrow { color: rgba(255, 255, 255, 0.48); }
.section-title { color: var(--red2); letter-spacing: 0.2em; }

/* cards: frosted glass with a hairline top highlight */
.card { background: linear-gradient(165deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018) 60%), rgba(18, 18, 22, 0.78); border: 1px solid var(--border); border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 30px rgba(0, 0, 0, 0.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.choice, .chip, .input, .seatswitch, .sheet { background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), rgba(18, 18, 22, 0.8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.input:focus { background: rgba(207, 31, 54, 0.06); }

/* buttons: a gradient with a glossy top edge */
.btn { background: linear-gradient(180deg, #e8324a 0%, var(--red) 55%, #b2152a 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 22px rgba(207, 31, 54, 0.45); }
.btn.ghost { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn.danger { background: transparent; box-shadow: none; }
.bigbtn { background: radial-gradient(circle at 35% 30%, #ff4b62, var(--red) 55%, #a6132a 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 0 50px rgba(207, 31, 54, 0.6); }
.chip.on { background: linear-gradient(180deg, #e8324a, var(--red)); }
.seatswitch button.on, .mm-btn { background: linear-gradient(180deg, #e8324a, var(--red) 60%, #b2152a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px rgba(207, 31, 54, 0.4); }

/* tab bar: deeper glass, glowing active pill with a dot */
.tabbar { background: rgba(14, 14, 18, 0.78); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07); backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3); }
.tab { position: relative; color: rgba(255, 255, 255, 0.82); }
.tab.on { color: #fff; background: linear-gradient(180deg, rgba(207, 31, 54, 0.38), rgba(207, 31, 54, 0.18)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 22px rgba(207, 31, 54, 0.35); }
.tab.on svg { stroke: #fff; filter: drop-shadow(0 0 6px rgba(255, 80, 100, 0.8)); }
.tab.on::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--red2); transform: translateX(-50%); box-shadow: 0 0 8px var(--red2); }

/* schedule: category colour as a left accent, time as a chip */
.session { border-left: 3px solid var(--c); padding-left: 14px; }
.session.live { border-left-color: var(--red2); }
.session .time { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #ffb3bd; background: rgba(207, 31, 54, 0.14); font-variant-numeric: tabular-nums; margin: 2px 0 5px; }
.session h3 { letter-spacing: -0.01em; }
.cat { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.eat-link { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }

/* seat number and avatars */
.seat .num { background: linear-gradient(180deg, #ff5a70, var(--red) 60%, #a6132a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 22px rgba(207, 31, 54, 0.55)); }
.avatar { background: linear-gradient(135deg, rgba(207, 31, 54, 0.32), rgba(207, 31, 54, 0.12)); box-shadow: inset 0 0 0 1px rgba(207, 31, 54, 0.35); }
.avatar.photo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* directory + profile */
.dir-row { border-radius: 18px; }
.who h2 { background: linear-gradient(180deg, #fff 55%, rgba(255, 255, 255, 0.72)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts svg { filter: drop-shadow(0 0 6px rgba(207, 31, 54, 0.5)); }

/* check-in rings a touch bolder */
.rings i { border-color: rgba(255, 59, 85, 0.6); }
.done { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 40px rgba(34, 197, 94, 0.12); }
