/* ==========================================================================
   OONGISVOCE ACADEMY OF MUSIC × SCSM — CONTEMPORARY UK MUSIC ACADEMY UI
   Inspired by Academy of Music & Sound (academyofmusic.ac.uk)
   ========================================================================== */

:root {
  /* Default: Crisp, Inviting Editorial Light + Deep Studio Hero Contrast */
  --bg: #f5f7fc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-subtle: #eef2f9;
  --bg-input: #f8fafd;
  --bg-hover: rgba(15, 23, 42, 0.04);

  --border: rgba(15, 23, 42, 0.085);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-accent: rgba(255, 42, 109, 0.35);

  --text: #0b1021;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Vibrant Contemporary Music-Tech Accents */
  --primary: #ff2a6d;
  --primary-hover: #e6195b;
  --primary-soft: rgba(255, 42, 109, 0.1);

  --indigo: #4f46e5;
  --indigo-soft: rgba(79, 70, 229, 0.1);

  --cyan: #0891b2;
  --cyan-bright: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.12);

  --emerald: #059669;
  --emerald-bright: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);

  --amber: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.14);

  --rose: #e11d48;
  --rose-soft: rgba(225, 29, 72, 0.11);

  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, 0.11);

  --gold: #d97706;
  --gold-bright: #b45309;
  --gold-soft: rgba(245, 158, 11, 0.12);

  --shadow-sm: 0 4px 14px rgba(11, 16, 33, 0.05);
  --shadow-card: 0 14px 36px rgba(11, 16, 33, 0.07);
  --shadow-lg: 0 28px 68px rgba(11, 16, 33, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #080b16;
  --bg-elevated: #101528;
  --bg-card: #11172b;
  --bg-card-solid: #11172b;
  --bg-subtle: #171f38;
  --bg-input: #0c1120;
  --bg-hover: rgba(255, 255, 255, 0.05);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(255, 42, 109, 0.45);

  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.15);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.15);
  --rose: #fb7185;
  --rose-soft: rgba(251, 113, 133, 0.15);
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --gold: #fbbf24;
  --gold-bright: #fcd34d;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 72px rgba(0, 0, 0, 0.6);
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

body.student-mode .admin-only {
  display: none !important;
}

.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }

/* ==========================================================================
   TOP ANNOUNCEMENT TICKER & STICKY HEADER
   ========================================================================== */
.top-ticker {
  background: linear-gradient(90deg, #0b1021 0%, #1a1438 50%, #0b1021 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ticker-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-right: 8px;
}

.ticker-cta {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ticker-cta:hover { color: #ffffff; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.logo-slot {
  height: 42px;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(255, 42, 109, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16.5px;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
  margin: 0 2px;
}

.scsm-fallback {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 9px;
  background: var(--indigo-soft);
  border: 1px solid rgba(79, 70, 229, 0.22);
  line-height: 1;
}

.scsm-fallback span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--indigo);
}

.scsm-fallback small {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Pill Navigation */
.mode-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.mode-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn:hover { color: var(--text); }

.mode-btn.active {
  background: var(--text);
  color: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-admin-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-admin-pill.unlocked {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.sync-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

/* ==========================================================================
   FULL-BLEED CINEMATIC STUDIO HERO (AMS UK STYLE)
   ========================================================================== */
.cinematic-hero {
  position: relative;
  background: #090c1a;
  color: #ffffff;
  overflow: hidden;
  padding: 64px 0 44px;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.58;
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 10, 24, 0.96) 0%, rgba(10, 14, 32, 0.84) 52%, rgba(12, 16, 38, 0.48) 100%),
    radial-gradient(circle at 82% 24%, rgba(6, 182, 212, 0.25), transparent 45%),
    radial-gradient(circle at 18% 85%, rgba(255, 42, 109, 0.24), transparent 50%);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 42px;
}

.hero-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 20px;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff4d88;
}

.hero-kicker-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

/* Animated Sound Equalizer Bars */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}

.equalizer i {
  display: block;
  width: 2.5px;
  background: #38bdf8;
  border-radius: 2px;
  animation: eqBounce 1.1s ease-in-out infinite;
}

.equalizer i:nth-child(1) { height: 6px; animation-delay: 0s; }
.equalizer i:nth-child(2) { height: 12px; animation-delay: 0.18s; }
.equalizer i:nth-child(3) { height: 8px; animation-delay: 0.35s; }
.equalizer i:nth-child(4) { height: 13px; animation-delay: 0.12s; }
.equalizer i:nth-child(5) { height: 5px; animation-delay: 0.28s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.hero-display-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(95deg, #ff3e7f 0%, #ff8a5b 48%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(241, 245, 249, 0.84);
  max-width: 610px;
  margin-bottom: 28px;
}

/* Spotlight Search Bar Inside Hero */
.spotlight-wrap {
  position: relative;
  max-width: 650px;
}

.spotlight-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 0 5px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-box:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(255, 42, 109, 0.35);
}

.spotlight-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 42, 109, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0b1021;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  min-width: 0;
}

.spotlight-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.spotlight-clear {
  background: none;
  border: none;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px;
}

.spotlight-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff5e62 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(255, 42, 109, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.spotlight-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(255, 42, 109, 0.5);
}

/* Autocomplete Dropdown */
.autocomplete-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #ffffff;
  color: #0b1021;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 40;
  max-height: 320px;
  overflow-y: auto;
}

.ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.ac-item:hover { background: #f1f5f9; }

.ac-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ac-serial {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 42, 109, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
}

.ac-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #0b1021;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-meta {
  font-size: 12px;
  color: #64748b;
  flex-shrink: 0;
}

/* Admin Quick Chips inside Hero */
.quick-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.quick-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.quick-chip code {
  font-family: var(--font-mono);
  color: #38bdf8;
  font-size: 11px;
}

.quick-chip:hover {
  background: rgba(255, 42, 109, 0.28);
  border-color: #ff4d88;
}

/* Right Hero Spotlight Today Widget */
.hero-spotlight-card {
  background: rgba(15, 21, 42, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.today-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.today-big-date {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-centre-meta {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Key Dates Dock (AMS Course Key-Facts Bar Style) */
.key-dates-dock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(9, 13, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dock-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
}

.dock-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 3px;
}

.dock-date {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.dock-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.dock-pill {
  text-align: center;
  padding: 8px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.dock-days {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.dock-days-txt {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
}

/* ==========================================================================
   PAGE SHELL & COMMON TYPOGRAPHY / BUTTONS
   ========================================================================== */
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.view-section {
  display: none;
  animation: fadeUp 0.28s ease;
}

.view-section.active {
  display: block;
}

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

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.accent-highlight {
  background: linear-gradient(95deg, var(--primary) 0%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff5e62 100%);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  font-size: 13.5px;
  box-shadow: 0 8px 20px rgba(255, 42, 109, 0.26);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 42, 109, 0.36);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 12.5px;
}

.btn-lg-full {
  width: 100%;
  padding: 15px 24px;
  font-size: 15px;
}

/* ==========================================================================
   VIP CONCERT BACKSTAGE CANDIDATE PASS
   ========================================================================== */
.pass-container {
  margin-bottom: 56px;
}

.pass-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.pass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Stage-lit Pass Banner */
.pass-header {
  position: relative;
  padding: 32px 36px 28px;
  background:
    linear-gradient(110deg, rgba(11, 16, 33, 0.95) 0%, rgba(26, 20, 56, 0.88) 60%, rgba(79, 70, 229, 0.82) 100%),
    url("assets/awards-stage.jpg") center/cover no-repeat;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pass-identity {
  flex: 1;
  min-width: 260px;
}

.pass-top-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.serial-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: var(--primary);
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 42, 109, 0.4);
}

.pass-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #ffffff;
}

.pass-academy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pass-qr-box {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
}

.qr-svg-wrap {
  width: 68px;
  height: 68px;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.pass-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pass-qr-meta span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.pass-qr-meta strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #ffffff;
}

.pass-actions-bar {
  padding: 14px 36px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pass-actions-left, .pass-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pass-body {
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
}

.pass-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pass-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.pass-block-title h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
}

/* Monthly Tuition & Awards Cards inside Pass */
.extra-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.extra-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.extra-status-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.extra-status-detail {
  font-size: 13px;
  color: var(--text);
}

/* Exam Entries & Spotify-Style Tracklist */
.exam-entry-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exam-entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.exam-entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.exam-entry-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16.5px;
  margin-bottom: 5px;
}

.exam-entry-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.exam-entry-fee {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  text-align: right;
  white-space: nowrap;
}

.exam-entry-fee small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.repertoire-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}

.repertoire-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.song-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--bg-subtle);
  font-size: 13px;
}

.song-track-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 2px 7px;
  border-radius: 6px;
}

.song-name {
  font-weight: 700;
  color: var(--text);
}

.song-composer {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.song-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Payment Metrics & Installments */
.payment-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.pm-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  box-shadow: var(--shadow-sm);
}

.pm-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.pm-val {
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 700;
}

.pm-val.paid { color: var(--emerald); }
.pm-val.due { color: var(--rose); }
.pm-val.zero { color: var(--emerald); }

.progress-track {
  height: 11px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--indigo) 0%, var(--cyan-bright) 50%, var(--emerald-bright) 100%);
  transition: width 0.45s ease;
}

.progress-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.installment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inst-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--emerald-bright);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.inst-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.inst-meta { font-size: 11.5px; color: var(--text-muted); }
.inst-amt { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--emerald); white-space: nowrap; }

.inst-empty {
  padding: 18px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.remarks-strip {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--indigo-soft);
  border: 1px solid rgba(79, 70, 229, 0.22);
  font-size: 13px;
  color: var(--text);
}

/* ==========================================================================
   AMS-STYLE EDITORIAL SPLIT: STUDENT PREPARATION & TIME LIMITS
   ========================================================================== */
.prep-editorial-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 36px;
}

.prep-media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.3;
  background: #101528;
}

.prep-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prep-floating-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(11, 16, 33, 0.86);
  backdrop-filter: blur(14px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.prep-floating-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: #38bdf8;
  margin-bottom: 2px;
}

.prep-floating-badge span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* Interactive Accordions (AMS Course Modules Style) */
.accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.acc-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acc-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}

.acc-trigger {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.acc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 9px;
  border-radius: 8px;
  margin-right: 10px;
}

.acc-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease;
  flex-shrink: 0;
}

.acc-item.open .acc-chevron {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.acc-body {
  display: none;
  padding: 0 20px 18px 58px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.acc-item.open .acc-body {
  display: block;
}

/* Time Limits & Awards Showcase Band */
.timelimits-band {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

.timelimits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tl-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.tl-chip:hover {
  transform: translateY(-2px);
  border-color: var(--indigo);
}

.tl-chip strong {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ffffff;
  background: var(--indigo);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Awards Stage Banner */
.awards-showcase-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 40px 42px;
  color: #ffffff;
  background:
    linear-gradient(95deg, rgba(8, 11, 24, 0.94) 0%, rgba(16, 22, 48, 0.82) 58%, rgba(8, 11, 24, 0.45) 100%),
    url("assets/awards-stage.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.awards-showcase-banner h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  margin-bottom: 6px;
}

.awards-showcase-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  font-size: 14.5px;
}

.awards-date-pill {
  padding: 14px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-align: center;
}

.awards-date-pill span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  font-weight: 800;
}

.awards-date-pill strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
}

/* ==========================================================================
   BADGES & CATEGORY PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-paid, .badge-confirmed { background: var(--emerald-soft); color: var(--emerald); }
.badge-installment, .badge-recording { background: var(--amber-soft); color: var(--amber); }
.badge-submitted { background: var(--cyan-soft); color: var(--cyan); }
.badge-pending { background: var(--rose-soft); color: var(--rose); }

.pass-header .badge-paid, .pass-header .badge-confirmed { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; }
.pass-header .badge-installment, .pass-header .badge-recording { background: rgba(245, 158, 11, 0.24); color: #fcd34d; }
.pass-header .badge-submitted { background: rgba(56, 189, 248, 0.24); color: #7dd3fc; }
.pass-header .badge-pending { background: rgba(251, 113, 133, 0.25); color: #fda4af; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.cat-KIDS { background: var(--amber-soft); color: var(--amber); }
.cat-TEENS { background: var(--emerald-soft); color: var(--emerald); }
.cat-ADULTS { background: var(--indigo-soft); color: var(--indigo); }
.cat-DUET { background: var(--primary-soft); color: var(--primary); }
.cat-THEORY { background: var(--violet-soft); color: var(--violet); }
.cat-TOVS { background: var(--cyan-soft); color: var(--cyan); }
.cat-TBZ { background: var(--emerald-soft); color: var(--emerald); }

/* ==========================================================================
   ADMIN DASHBOARD, REGISTRATION, SUMMARY & SETTINGS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-sub { font-size: 12px; color: var(--text-muted); }

.category-ribbon {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.cat-card {
  flex: 1 0 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.cat-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.cat-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.cat-card-name { font-size: 12px; font-weight: 800; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.cat-card-count { font-family: var(--font-display); font-size: 22px; font-weight: 900; }
.cat-card-fee { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.toolbar-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--text-muted);
}

.toolbar-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
}

.toolbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
}

.control-group label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.control-group select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.control-group select option { background: var(--bg-card-solid); color: var(--text); }

.group-toggle {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.group-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.group-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding: 0 4px;
}

.registry-group { margin-bottom: 26px; }
.registry-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
}

.registry-group-title { display: flex; align-items: center; gap: 10px; font-weight: 800; }

.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.registry-group .table-wrap { border-radius: 0 0 18px 18px; }

.registry-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.registry-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.registry-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.registry-table tbody tr { cursor: pointer; transition: background 0.14s ease; }
.registry-table tbody tr:last-child td { border-bottom: none; }
.registry-table tbody tr:hover { background: var(--bg-hover); }

.cell-serial { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.cell-name { font-weight: 800; font-size: 14px; margin-bottom: 3px; }
.cell-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.cell-exams { font-size: 13px; color: var(--text-secondary); }
.cell-fee-box { min-width: 140px; }
.cell-fee-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; margin-bottom: 4px; }

.mini-bar { height: 6px; border-radius: 999px; background: var(--bg-subtle); overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--emerald-bright); border-radius: 999px; }
.mini-bar-fill.partial { background: var(--amber); }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.row-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Registration, Summary & Settings Cards */
.reg-grid, .settings-grid, .summary-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.reg-card, .summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow-card);
}

.reg-card-title { font-family: var(--font-display); font-size: 21px; font-weight: 800; margin-top: -6px; }
.reg-helper { font-size: 13px; color: var(--text-secondary); margin-top: -6px; }
.form-divider { border: none; border-top: 1px dashed var(--border-strong); margin: 4px 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.form-field input, .form-field select {
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}

.form-field input:focus, .form-field select:focus { border-color: var(--primary); }

.song-inputs-grid { display: flex; flex-direction: column; gap: 10px; }
.song-input-block { display: grid; grid-template-columns: 44px 1.3fr 1.1fr 88px; gap: 8px; align-items: center; }
.song-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 9px 6px;
  border-radius: 10px;
  text-align: center;
}

.song-input-block input {
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  min-width: 0;
}

.reg-success-card {
  background: var(--bg-card);
  border: 2px solid var(--emerald-bright);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}

.wa-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; border-radius: 999px;
  background: #25d366; color: #052e16;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 800;
  text-decoration: none; border: none; cursor: pointer;
}

.btn-whatsapp-outline {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(37, 211, 102, 0.14); color: var(--emerald);
  border: 1px solid rgba(37, 211, 102, 0.4);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 800;
  text-decoration: none; cursor: pointer;
}

.live-link-box {
  margin-top: 12px; padding: 11px 15px; border-radius: 12px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--indigo);
  word-break: break-all;
}

/* Summary Table & Bars */
.summary-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.summary-table th, .summary-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.summary-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.summary-table td.num, .summary-table th.num { text-align: right; font-family: var(--font-mono); }
.summary-table tr.row-highlight td { font-weight: 800; background: var(--primary-soft); color: var(--primary); }
.summary-table tr.row-subtle td { color: var(--text-secondary); font-style: italic; }

.bar-chart-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.bar-chart-row { display: flex; flex-direction: column; gap: 5px; }
.bar-chart-label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.bar-chart-track { height: 10px; border-radius: 999px; background: var(--bg-subtle); overflow: hidden; }
.bar-chart-fill { height: 100%; border-radius: 999px; }

/* Settings */
.staff-list { display: flex; flex-direction: column; gap: 10px; }
.staff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px; border-radius: 14px; background: var(--bg-subtle); border: 1px solid var(--border); }
.staff-role-tag { grid-column: 1 / -1; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.staff-row input { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); font-family: inherit; font-size: 13px; }
.logo-guide-box { padding: 10px 12px; border-radius: 12px; background: var(--bg-subtle); border: 1px dashed var(--border-strong); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.logo-guide-box code { font-family: var(--font-mono); color: var(--indigo); font-weight: 700; }
.settings-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sync-log { font-size: 12.5px; color: var(--text-secondary); }
.field-hint { font-size: 11.5px; color: var(--text-muted); }

/* ==========================================================================
   ACADEMY FOOTER (AMS UK STYLE)
   ========================================================================== */
.site-footer {
  background: #090c1a;
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 24px 28px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-desc { font-size: 13.5px; line-height: 1.65; max-width: 440px; }
.footer-heading { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: #ff4d88; margin-bottom: 10px; }
.site-footer a { color: #38bdf8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: 1280px;
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   MODALS, PRESENTATION OVERLAY & TOAST
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 11, 22, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-xl { max-width: 780px; }
.modal-scroll { max-height: 80vh; overflow-y: auto; }

.modal-header {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-title { font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 26px; cursor: pointer; line-height: 1; }
.modal-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 15px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

.pay-summary-strip {
  display: flex; justify-content: space-between; padding: 12px 15px;
  border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border); font-size: 13px;
}

.quick-amount-row { display: flex; gap: 6px; margin-top: 2px; }
.mini-pill {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-card); color: var(--text-secondary); font-size: 11px; font-weight: 700; cursor: pointer;
}
.mini-pill:hover { border-color: var(--primary); color: var(--primary); }

.edit-subpanel { padding: 16px; border-radius: 16px; background: var(--bg-subtle); border: 1px solid var(--border); }
.compact-select { padding: 7px 11px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); font-weight: 700; font-size: 12.5px; }

.present-overlay {
  position: fixed; inset: 0; z-index: 85;
  background: var(--bg); overflow-y: auto; padding: 24px 24px 60px;
}
.present-toolbar {
  max-width: 1020px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border);
}
.present-label { font-size: 13px; font-weight: 800; color: var(--emerald); }
.present-actions { display: flex; gap: 8px; }
.present-stage { max-width: 1020px; margin: 0 auto; }

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  padding: 13px 20px; border-radius: 999px;
  background: #0b1021; color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700; font-size: 13.5px;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & PRINT
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content-grid, .key-dates-dock, .prep-editorial-split,
  .pass-body, .reg-grid, .settings-grid, .summary-grid, .footer-inner {
    grid-template-columns: 1fr;
  }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .topbar-inner { flex-wrap: wrap; justify-content: center; }
  .kpi-grid, .form-row, .extra-status-grid, .payment-metrics { grid-template-columns: 1fr; }
  .song-input-block, .staff-row { grid-template-columns: 1fr; }
  .spotlight-box { border-radius: 22px; flex-wrap: wrap; padding: 12px; }
  .spotlight-submit { width: 100%; justify-content: center; }
  .pass-header, .pass-body, .pass-actions-bar { padding-left: 20px; padding-right: 20px; }
}

@media print {
  body { background: #ffffff !important; color: #0b1021 !important; }
  .no-print, .top-ticker, .topbar, .cinematic-hero, .site-footer, .pass-actions-bar { display: none !important; }
  .page-shell { padding: 0 !important; max-width: 100% !important; }
  .pass-card, .pass-block, .exam-entry-card, .pm-box, .inst-item, .summary-card {
    background: #ffffff !important; color: #0b1021 !important; border-color: #cbd5e1 !important; box-shadow: none !important;
  }
  .pass-header { background: #f8fafc !important; color: #0b1021 !important; border-bottom: 2px solid #0b1021 !important; }
  .pass-name { color: #0b1021 !important; }
  .pass-body { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   MOBILE-FIRST POLISH, TEACHER PILL, DANGER BUTTON & TIME-LIMIT FIXES
   ========================================================================== */

.btn-danger-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid rgba(225, 29, 72, 0.35);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.btn-danger-ghost:hover {
  background: var(--rose);
  color: #ffffff;
}

/* Teacher Pill next to Category */
.teacher-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
}

.teacher-pill strong {
  color: var(--indigo);
}

/* Real Scannable QR Code SVG Container */
.qr-svg-wrap {
  width: 82px;
  height: 82px;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.qr-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fix Time-Limit Pills (Image 4): Never wrap "10 – 20 mins" or "Concert Certificate 5" awkwardly */
.timelimits-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tl-chip {
  flex-wrap: nowrap;
  gap: 10px;
}

.tl-chip span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-chip strong {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Prevent horizontal cutoff anywhere inside Candidate Pass (Image 1 fix) */
.pass-card, .pass-body, .pass-block, .exam-entry-card, .extra-status-card, .song-row, .song-track-left {
  min-width: 0;
  max-width: 100%;
}

.exam-entry-top, .repertoire-head {
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  html, body {
    overflow-x: clip;
  }

  .ticker-inner {
    padding: 8px 14px;
    font-size: 11.5px;
  }

  .topbar-inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .cinematic-hero {
    padding: 36px 0 28px;
  }

  .hero-container {
    padding: 0 14px;
  }

  .page-shell {
    padding: 24px 12px 56px;
  }

  .pass-header {
    padding: 20px 16px;
  }

  .pass-identity {
    min-width: 0;
    width: 100%;
  }

  .pass-qr-box {
    width: 100%;
    padding: 12px;
  }

  .pass-actions-bar {
    padding: 12px 16px;
  }

  .pass-body {
    padding: 16px 12px;
    gap: 16px;
  }

  .pass-block {
    padding: 14px 12px;
    border-radius: 16px;
  }

  /* Stack Monthly & Awards cards cleanly on mobile so badges never clip off-screen */
  .extra-status-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .exam-entry-card {
    padding: 14px 12px;
  }

  .exam-entry-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .exam-entry-fee {
    text-align: left;
  }

  .song-row {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 9px 10px;
  }

  .song-track-left {
    flex: 1 1 200px;
    align-items: flex-start;
  }

  .timelimits-band {
    padding: 20px 14px;
  }

  .timelimits-grid {
    grid-template-columns: 1fr;
  }

  .tl-chip {
    padding: 11px 12px;
    font-size: 12.5px;
  }

  .tl-chip strong {
    font-size: 11.5px;
    padding: 4px 10px;
  }

  .awards-showcase-banner {
    padding: 26px 18px;
  }

  .acc-body {
    padding: 0 16px 16px 16px;
  }
}

/* ==========================================================================
   V3: TWO-TIER ROLES, FOCUSED STUDENT STATUS VIEW, BALANCE SHEET & CATEGORIES
   ========================================================================== */

/* Role Visibility */
body.student-mode .staff-only,
body.student-mode .admin-only {
  display: none !important;
}

body.staff-role .admin-only {
  display: none !important;
}

.mode-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Zero-Scroll Focused Status Mode (when student opens ?serial= link from WhatsApp) */
body.status-focus-mode .cinematic-hero,
body.status-focus-mode #concertPrepContainer {
  display: none !important;
}

body.status-focus-mode .page-shell {
  padding-top: 20px;
}

.status-focus-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.awards-save-date-wrap {
  margin-bottom: 36px;
}

/* Accounting Balance Sheet Styles */
.bs-section-row td {
  background: var(--bg-subtle);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  padding: 9px 12px;
}

.bs-remit-row td {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

.bs-income-row td {
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 900;
  font-size: 15px;
  border-top: 2px solid var(--emerald-bright);
  border-bottom: 2px solid var(--emerald-bright);
}

/* Dynamic Category Manager */
.cat-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.cat-mgr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.cat-mgr-del {
  background: none;
  border: none;
  color: var(--rose);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.cat-add-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr auto;
  gap: 10px;
  margin-top: 6px;
}

.cat-add-row input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}

/* Footer Disclaimer */
.footer-disclaimer {
  max-width: 1280px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 780px) {
  .cat-add-row {
    grid-template-columns: 1fr;
  }
}
