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

:root {
  --black: #000000;
  --surface: #0f0f0f;
  --surface2: #1a1a1a;
  --surface3: #222222;
  --border: rgba(255,255,255,.10);
  --text: #ffffff;
  --muted: #888888;
  --red: #c0392b;
  --red-bright: #e74c3c;
  --gold: #c9a84c;
  --gold-light: #f0c040;
}

body {
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}
.page-reset-btn {
  padding: 14px 40px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: .02em;
  box-shadow: 0 4px 20px rgba(37,99,235,.5);
  transition: background .15s, transform .1s;
}
.page-reset-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.page-reset-btn:active { transform: translateY(0); }

/* ── Phone Frame ────────────────────── */
.phone-wrap {
  position: relative;
  width: 390px;
  height: 844px;
  flex-shrink: 0;
}
.phone-frame {
  position: absolute;
  inset: 0;
  border-radius: 52px;
  border: 2px solid #333;
  background: var(--black);
  box-shadow:
    0 0 0 1px #111,
    0 0 0 10px #1a1a1a,
    0 0 0 12px #222,
    0 30px 80px rgba(0,0,0,.8),
    inset 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
}
/* Notch */
.phone-notch {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 34px;
  background: #1a1a1a;
  border-radius: 0 0 22px 22px;
  z-index: 100;
}
/* Screen */
.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  overflow: hidden;
  background: var(--black);
}
/* Side buttons */
.phone-btn-left {
  position: absolute;
  left: -4px; top: 120px;
  width: 4px; height: 36px;
  background: #2a2a2a; border-radius: 2px 0 0 2px;
  box-shadow: 0 44px 0 #2a2a2a, 0 88px 0 #2a2a2a;
}
.phone-btn-right {
  position: absolute;
  right: -4px; top: 160px;
  width: 4px; height: 60px;
  background: #2a2a2a; border-radius: 0 2px 2px 0;
}

/* ── All Screens ────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--black);
}
.screen.active { display: flex; }

/* ── Fade Overlay ──────────────────── */
#fade-overlay {
  position: absolute; inset: 0; z-index: 999;
  background: #000; opacity: 0; pointer-events: none;
  transition: opacity 0.8s ease;
}
#fade-overlay.visible { opacity: 1; pointer-events: all; }

/* ── Lang Screen ────────────────────── */
#screen-lang {
  align-items: center;
  justify-content: center;
  background: #000;
  gap: 14px;
  padding: 40px 32px;
}
.lang-screen-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 8px;
}
.lang-choice {
  width: 100%; padding: 18px 22px;
  background: #111; border: 1px solid #2a2a2a;
  border-radius: 16px; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  transition: border-color .15s, background .15s;
}
.lang-choice:hover { border-color: var(--red); background: #180000; }
.lang-choice-code { font-size: 16px; font-weight: 900; color: var(--red); min-width: 32px; font-family: monospace; }
.lang-choice-name { font-size: 17px; font-weight: 700; color: #fff; }
.lang-choice-sub  { font-size: 12px; color: #555; margin-top: 2px; }

/* ── Intro Screen ──────────────────── */
#screen-intro {
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
}
#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* ── Splash Screen ──────────────────── */
#screen-splash {
  align-items: center;
  justify-content: center;
  background: var(--black);
  cursor: pointer;
}
.splash-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(192,57,43,.18) 0%, transparent 65%),
              radial-gradient(ellipse at 50% 80%, rgba(201,168,76,.10) 0%, transparent 55%);
}
.splash-content {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
  padding: 40px;
}
.splash-logo-wrap {
  width: 120px; height: 120px;
  border-radius: 28px;
  background: linear-gradient(145deg, #1a0a08, #0a0a0a);
  border: 1px solid rgba(192,57,43,.4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(192,57,43,.25), 0 8px 32px rgba(0,0,0,.6);
}
.splash-logo-svg { width: 80px; height: 80px; }
.splash-brand { text-align: center; }
.splash-brand-main {
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.splash-brand-sub {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  color: var(--gold); text-transform: uppercase; margin-top: 4px;
}
.splash-tagline {
  font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px;
}
.splash-cta {
  margin-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.splash-tap {
  font-size: 13px; color: var(--muted); letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}
.splash-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }
@keyframes introFadeIn { 0%{opacity:0;transform:scale(0.88)} 100%{opacity:1;transform:scale(1)} }

/* ── Language Toggle ──────────────────── */
.lang-toggle {
  position: absolute;
  top: 50px; right: 16px;
  display: flex; gap: 5px;
  z-index: 10;
}
.lang-btn {
  padding: 5px 9px; border-radius: 8px; font-size: 11px; font-weight: 700;
  cursor: pointer; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.45);
  color: var(--muted); transition: all .15s; letter-spacing: .06em;
}
.lang-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.lang-btn:hover:not(.active) { border-color: rgba(255,255,255,.35); color: #fff; }

/* Stars rating row */
.splash-stars { display: flex; gap: 4px; margin-top: 6px; }
.star { color: var(--gold); font-size: 16px; }

/* Slash marks */
.splash-slashes {
  font-size: 22px; font-weight: 900; color: var(--red); letter-spacing: -4px;
}

/* ── Login Screen ───────────────────── */
#screen-login {
  background: var(--black);
}
/* Back / Reset nav bar */
.screen-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 52px 20px 0;
}
.back-btn {
  display: flex; align-items: center; gap: 6px;
  color: var(--red); font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 6px 0;
}
.back-btn:hover { opacity: .8; }
.back-arrow { font-size: 20px; line-height: 1; }
.reset-btn {
  font-size: 13px; font-weight: 600; color: var(--red); cursor: pointer;
  padding: 7px 14px; border: 1px solid rgba(192,57,43,.4);
  border-radius: 10px; background: rgba(192,57,43,.08);
}
.reset-btn:hover { background: rgba(192,57,43,.18); }

.login-header {
  padding: 12px 28px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.login-logo-sm {
  width: 60px; height: 60px;
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.login-title { font-size: 20px; font-weight: 700; color: var(--text); }
.login-sub { font-size: 13px; color: var(--muted); }
.login-body { flex: 1; padding: 8px 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.field-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.field-input {
  width: 100%; padding: 14px 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font-size: 15px;
  outline: none; transition: border-color .2s;
}
.field-input:focus { border-color: var(--red); }
.login-btn {
  width: 100%; padding: 15px;
  background: var(--red); border: none; border-radius: 14px;
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  margin-top: 8px; transition: background .15s;
}
.login-btn:hover { background: var(--red-bright); }
.login-accounts { margin-top: 16px; text-align: center; }
.login-demo-label { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.demo-accounts { display: flex; flex-direction: column; gap: 8px; }
.demo-account {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: border-color .15s;
}
.demo-account:hover { border-color: rgba(192,57,43,.5); }
.demo-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.demo-info { flex: 1; text-align: left; }
.demo-name { font-size: 13px; font-weight: 600; color: var(--text); }
.demo-role { font-size: 11px; color: var(--muted); }
.demo-arrow { color: var(--muted); font-size: 14px; }

/* ── Team Select Screen ─────────────── */
#screen-teams {
  background: var(--black);
}
.teams-header {
  padding: 52px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.teams-greeting { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.teams-title { font-size: 22px; font-weight: 800; color: var(--text); }
.teams-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.teams-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.team-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 16px;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 14px;
}
.team-card:hover { border-color: rgba(192,57,43,.5); background: var(--surface3); }
.team-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}
.team-info { flex: 1; }
.team-name { font-size: 15px; font-weight: 700; color: var(--text); }
.team-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.team-chevron { color: var(--muted); font-size: 16px; }
.team-badge-unread {
  background: var(--red); color: #fff; border-radius: 10px;
  font-size: 10px; font-weight: 700; padding: 2px 7px;
}

/* ── Main App Screen ────────────────── */
#screen-app {
  background: var(--black);
  flex-direction: column;
}

/* Status bar */
.status-bar {
  height: 44px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 20px;
  flex-shrink: 0;
}
.status-time { font-size: 15px; font-weight: 600; color: var(--text); }
.status-icons { display: flex; gap: 6px; align-items: center; }
.status-icon { font-size: 12px; color: var(--text); }

/* App header */
.app-header {
  padding: 4px 20px 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.app-header-left { display: flex; align-items: center; gap: 10px; }
.app-header-team-badge {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; border: 1px solid rgba(255,255,255,.08);
}
.app-header-info {}
.app-header-team { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.app-header-season { font-size: 11px; color: var(--gold); font-weight: 600; }
.app-header-right { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
}

/* Content area */
.app-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Tab pages */
.tab-page { display: none; padding: 16px; }
.tab-page.active { display: block; }

/* Bottom nav */
.bottom-nav {
  display: flex; border-top: 1px solid var(--border);
  background: rgba(0,0,0,.95); flex-shrink: 0;
  padding-bottom: 8px;
}
.nav-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 10px 0 6px;
  cursor: pointer; gap: 4px; position: relative;
}
.nav-tab-icon { font-size: 22px; transition: transform .15s; }
.nav-tab-label { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.nav-tab.active .nav-tab-label { color: var(--red); }
.nav-tab.active .nav-tab-icon { transform: scale(1.1); }
.nav-tab-dot {
  position: absolute; top: 8px; right: calc(50% - 14px);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 1.5px solid var(--black);
}

/* ── Schedule Tab ───────────────────── */
.section-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 8px 0 10px;
}
.next-game-card {
  background: linear-gradient(135deg, #1a0505, #0a0a0a);
  border: 1px solid rgba(192,57,43,.35);
  border-radius: 16px; padding: 16px;
  margin-bottom: 16px; position: relative; overflow: hidden;
}
.next-game-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(192,57,43,.15) 0%, transparent 70%);
}
.ngc-label { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.ngc-teams { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.ngc-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.ngc-meta span { display: flex; align-items: center; gap: 4px; }
.ngc-actions { display: flex; gap: 8px; margin-top: 14px; }
.ngc-btn {
  padding: 8px 16px; border-radius: 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; border: none;
}
.ngc-btn.primary { background: var(--red); color: #fff; }
.ngc-btn.outline { background: transparent; color: var(--text); border: 1px solid var(--border); }

.game-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 8px;
}
.game-date-box {
  width: 40px; text-align: center; flex-shrink: 0;
}
.game-date-m { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; }
.game-date-d { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1; }
.game-info { flex: 1; }
.game-opponent { font-size: 13px; font-weight: 700; color: var(--text); }
.game-details { font-size: 11px; color: var(--muted); margin-top: 2px; }
.game-result {
  font-size: 12px; font-weight: 700; padding: 3px 10px;
  border-radius: 8px; flex-shrink: 0;
}
.game-result.win { background: rgba(52,211,153,.15); color: #34d399; }
.game-result.loss { background: rgba(248,113,113,.15); color: #f87171; }
.game-result.upcoming { background: rgba(201,168,76,.15); color: var(--gold); }

/* ── Roster Tab ─────────────────────── */
.roster-search {
  width: 100%; padding: 11px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font-size: 14px;
  outline: none; margin-bottom: 14px;
}
.roster-search:focus { border-color: var(--red); }
.player-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 8px; cursor: pointer;
  transition: border-color .15s;
}
.player-card:hover { border-color: rgba(192,57,43,.4); }
.player-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  flex-shrink: 0; font-family: monospace;
}
.player-num {
  font-size: 11px; font-weight: 800; color: var(--gold);
  font-family: monospace; min-width: 24px; text-align: center;
}
.player-info { flex: 1; }
.player-name { font-size: 14px; font-weight: 700; color: var(--text); }
.player-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.player-pos {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; flex-shrink: 0;
}

/* ── Messages Tab ───────────────────── */
.msg-thread {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 8px; cursor: pointer; transition: border-color .15s;
}
.msg-thread:hover { border-color: rgba(192,57,43,.4); }
.msg-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; background: var(--surface3);
}
.msg-body { flex: 1; }
.msg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.msg-from { font-size: 13px; font-weight: 700; color: var(--text); }
.msg-time { font-size: 10px; color: var(--muted); }
.msg-preview { font-size: 12px; color: var(--muted); line-height: 1.4; }
.msg-unread .msg-from { color: var(--text); }
.msg-unread .msg-preview { color: #aaa; font-weight: 500; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: 6px; }

/* Message detail */
.msg-detail { display: none; flex-direction: column; height: 100%; }
.msg-detail.active { display: flex; }
.msg-detail-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.msg-back { font-size: 22px; cursor: pointer; color: var(--red); }
.msg-bubbles { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.bubble.them { background: var(--surface2); color: var(--text); align-self: flex-start; border-radius: 4px 16px 16px 16px; }
.bubble.me { background: var(--red); color: #fff; align-self: flex-end; border-radius: 16px 4px 16px 16px; }
.bubble-time { font-size: 10px; color: var(--muted); margin-top: 2px; }
.bubble-time.right { text-align: right; }
.msg-input-row {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.msg-input {
  flex: 1; padding: 10px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text); font-size: 14px; outline: none;
}
.msg-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); border: none; color: #fff;
  font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}

/* ── Admin Tab ──────────────────────── */
.admin-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(192,57,43,.15); border: 1px solid rgba(192,57,43,.3);
  border-radius: 8px; padding: 6px 12px; margin-bottom: 16px;
}
.admin-badge-text { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.notif-compose {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; margin-bottom: 16px;
}
.notif-compose-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.notif-type-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.notif-type-btn {
  padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 700;
  cursor: pointer; border: 1px solid var(--border); background: var(--surface3);
  color: var(--muted); transition: all .15s;
}
.notif-type-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.notif-textarea {
  width: 100%; padding: 12px; background: var(--surface3);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 13px; resize: none;
  outline: none; font-family: inherit; margin-bottom: 10px;
}
.notif-textarea:focus { border-color: var(--red); }
.notif-send-btn {
  width: 100%; padding: 12px; background: var(--red); border: none;
  border-radius: 12px; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.notif-send-btn:hover { background: var(--red-bright); }
.notif-history { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
}
.notif-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.notif-tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .05em;
}
.notif-tag.game { background: rgba(201,168,76,.15); color: var(--gold); }
.notif-tag.practice { background: rgba(79,142,247,.15); color: #4f8ef7; }
.notif-tag.general { background: rgba(255,255,255,.08); color: var(--muted); }
.notif-tag.urgent { background: rgba(192,57,43,.15); color: var(--red); }
.notif-item-time { font-size: 10px; color: var(--muted); }
.notif-item-msg { font-size: 12px; color: var(--text); line-height: 1.5; }
.notif-item-reach { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Admin non-admin */
.no-admin {
  padding: 40px 20px; text-align: center;
  color: var(--muted); font-size: 14px;
}
.no-admin-icon { font-size: 40px; margin-bottom: 12px; }

/* Stats strip */
.stats-strip { display: flex; gap: 8px; margin-bottom: 16px; }
.stat-chip {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 8px; text-align: center;
}
.stat-chip-val { font-size: 20px; font-weight: 800; color: var(--text); }
.stat-chip-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* Attendance availability */
.avail-row { display: flex; gap: 6px; margin-top: 10px; }
.avail-btn {
  flex: 1; padding: 8px 4px; border-radius: 10px; font-size: 11px; font-weight: 700;
  cursor: pointer; border: 1px solid var(--border); background: var(--surface3);
  color: var(--muted); text-align: center; transition: all .15s;
}
.avail-btn:hover { border-color: var(--gold); color: var(--gold); }
.avail-btn.yes { background: rgba(52,211,153,.15); border-color: #34d399; color: #34d399; }
.avail-btn.no { background: rgba(248,113,113,.15); border-color: #f87171; color: #f87171; }
.avail-btn.maybe { background: rgba(201,168,76,.15); border-color: var(--gold); color: var(--gold); }

/* Toast */
.toast {
  position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #222; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 20px; font-size: 13px; color: var(--text); white-space: nowrap;
  opacity: 0; transition: all .3s; pointer-events: none; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* ── Register Screen ──────────────────── */
.register-header {
  padding: 12px 24px 16px;
  flex-shrink: 0;
}
.register-title { font-size: 20px; font-weight: 700; color: var(--text); }
.register-sub { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.register-scroll {
  flex: 1; overflow-y: auto; padding: 0 24px 12px;
}
.register-field { margin-bottom: 14px; }
.register-footer {
  padding: 12px 24px 24px; flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.radio-group { display: flex; gap: 16px; margin-top: 4px; }
.radio-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text); cursor: pointer;
}
.radio-label input[type="radio"] { accent-color: var(--red); }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text); cursor: pointer; line-height: 1.4;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }
.confirm-icon { font-size: 48px; margin-bottom: 16px; }
.confirm-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.confirm-msg { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 280px; }

/* ── Pending Registrations (Admin) ────── */
.pending-section { margin-bottom: 20px; }
.pending-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.pending-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pending-name { font-size: 14px; font-weight: 700; color: var(--text); }
.pending-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .05em;
}
.pending-badge.returning { background: rgba(52,211,153,.15); color: #34d399; }
.pending-badge.new { background: rgba(79,142,247,.15); color: #4f8ef7; }
.pending-detail { font-size: 11px; color: var(--muted); margin-bottom: 4px; line-height: 1.5; }
.pending-actions { display: flex; gap: 8px; margin-top: 8px; }
.pending-btn {
  flex: 1; padding: 8px; border-radius: 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; border: none; text-align: center;
}
.pending-btn.approve { background: rgba(52,211,153,.15); color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.pending-btn.decline { background: rgba(248,113,113,.15); color: #f87171; border: 1px solid rgba(248,113,113,.3); }
.pending-btn.approve:hover { background: rgba(52,211,153,.25); }
.pending-btn.decline:hover { background: rgba(248,113,113,.25); }

/* ── Intro Brand Screen ──────────────── */
#screen-intro { background: #000; cursor: pointer; }
#intro-brand {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px; background: #000;
}
#intro-logo-img {
  width: 200px; height: 200px;
  border-radius: 36px; object-fit: cover;
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
  box-shadow: 0 0 60px rgba(192,57,43,.3), 0 20px 60px rgba(0,0,0,.8);
}
#intro-logo-img.visible { opacity: 1; transform: scale(1); }
#intro-skip {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  color: rgba(255,255,255,.25);
  animation: pulse 2s ease-in-out infinite;
}

/* ── Admin Sub-nav ───────────────────── */
.admin-subnav {
  display: flex; gap: 4px; padding: 0 0 14px;
  overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
}
.admin-subnav::-webkit-scrollbar { display: none; }
.admin-subnav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface2);
  cursor: pointer; flex-shrink: 0; min-width: 52px; transition: all .15s;
}
.admin-subnav-btn .asn-icon { font-size: 16px; }
.admin-subnav-btn .asn-lbl {
  font-size: 9px; font-weight: 700; color: var(--muted);
  letter-spacing: .02em; text-transform: uppercase;
}
.admin-subnav-btn.active { background: rgba(192,57,43,.15); border-color: rgba(192,57,43,.4); }
.admin-subnav-btn.active .asn-lbl { color: var(--red); }

/* ── Check-in Panel ──────────────────── */
.checkin-item {
  display: flex; flex-direction: column;
  padding: 12px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px;
}
.checkin-row { display: flex; align-items: center; gap: 12px; }
.checkin-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.checkin-info { flex: 1; }
.checkin-name { font-size: 13px; font-weight: 700; color: var(--text); }
.checkin-type { font-size: 11px; color: var(--muted); margin-top: 2px; }
.checkin-actions { display: flex; gap: 6px; }
.checkin-btn {
  padding: 6px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 700; border: none; cursor: pointer;
}
.checkin-btn.done-btn { background: rgba(52,211,153,.15); color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.checkin-btn.done-btn:hover { background: rgba(52,211,153,.25); }
.checkin-btn.reschedule-btn { background: var(--surface3); color: var(--muted); border: 1px solid var(--border); }
.checkin-btn.reschedule-btn:hover { border-color: var(--gold); color: var(--gold); }
.checkin-status-done { font-size: 11px; font-weight: 700; color: #34d399; white-space: nowrap; }
.checkin-status-rescheduled { font-size: 11px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.checkin-reschedule-row {
  display: none; margin-top: 10px; padding-left: 52px;
  display: none; gap: 6px; align-items: center;
}
.checkin-date-input {
  flex: 1; padding: 7px 10px; background: var(--surface3);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 12px; outline: none;
}
.checkin-date-input:focus { border-color: var(--red); }
.checkin-date-confirm {
  padding: 7px 12px; background: var(--red); border: none;
  border-radius: 8px; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer;
}

/* ── Stats Table ─────────────────────── */
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th {
  font-size: 9px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border);
}
.stats-table td {
  padding: 10px 8px; font-size: 12px; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.stats-table tr:last-child td { border-bottom: none; }
.stat-pct { font-weight: 700; }
.stat-pct.high { color: #34d399; }
.stat-pct.mid  { color: var(--gold); }
.stat-pct.low  { color: #f87171; }

/* ── PWA Install Screen ──────────────── */
#screen-install {
  background: var(--black);
  overflow-y: auto;
}
.install-header {
  padding: 52px 24px 20px;
  text-align: center;
}
.install-title {
  font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px;
}
.install-sub {
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.install-tabs {
  display: flex; gap: 0; margin: 0 24px 20px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.install-tab {
  flex: 1; padding: 10px; text-align: center;
  font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--muted); background: var(--surface2);
  transition: all .15s;
}
.install-tab.active { background: var(--red); color: #fff; }
.install-steps { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.install-step {
  display: flex; gap: 14px; align-items: flex-start;
}
.install-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.install-step-body { flex: 1; padding-top: 4px; }
.install-step-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.install-step-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.install-step-icon {
  display: inline-block; padding: 2px 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; font-size: 12px; margin: 4px 0;
}
.install-done-btn {
  margin: 0 24px 32px;
  width: calc(100% - 48px);
  padding: 15px; background: var(--red); border: none;
  border-radius: 14px; color: #fff; font-size: 16px;
  font-weight: 700; cursor: pointer;
}
.install-done-btn:hover { background: var(--red-bright); }
