@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #120727;
  --bg-darker: #0a0418;
  --p: #1b0a33;
  --p2: #2d114c;
  --g: #f4c96b;
  --c: #fff8e8;
  --m: #bfaecf;
  --l: rgba(244, 201, 107, 0.22);
  --card-bg: rgba(255, 248, 232, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --ink: #120727;

  /* Team Specific Brand Colors */
  --teal: #0ac69e;
  --teal-glow: rgba(10, 198, 158, 0.25);
  --pink: #ff3d6e;
  --pink-glow: rgba(255, 61, 110, 0.25);
  --orange: #ff9c1c;
  --orange-glow: rgba(255, 156, 28, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 10%, #3e1657 0%, transparent 40%),
              radial-gradient(circle at 88% 65%, #2a0b45 0%, transparent 45%),
              var(--bg-dark);
  color: var(--c);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(var(--g) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  z-index: 0;
}

/* Base Link & Typography */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

h1, h2, h3, h4 {
  color: #ffffff;
}

.text-center {
  text-align: center;
}

/* Navigation Bar */
.nav {
  height: 76px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(18, 7, 39, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.phi-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--g);
  border-radius: 50%;
  color: var(--g);
  font: 22px serif;
  box-shadow: 0 0 12px rgba(244, 201, 107, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--m);
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--g);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--ink);
  background: var(--g);
  font-weight: 700;
}

.nav-links a.admin-link {
  border: 1px solid var(--l);
}

/* Layout Container */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

/* Hero & Section Headers */
.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.eyebrow-badge {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--l);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--g);
  background: rgba(244, 201, 107, 0.06);
  text-transform: uppercase;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 30px;
  padding: 40px 0;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--g);
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1, .page-head h1, .form-intro h1, .success h1, .teams-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  margin: 18px 0;
  letter-spacing: -0.03em;
}

.hero h1 span, .teams-title span, .accent-title {
  color: var(--g);
}

.hero h1 em {
  font-style: normal;
  font-size: 0.65em;
  color: #c8b2d9;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--m);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: all 0.25s ease;
}

.btn-gold {
  background: var(--g);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(244, 201, 107, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: #ffd67d;
  box-shadow: 0 6px 25px rgba(244, 201, 107, 0.45);
}

.btn-ghost {
  border: 1px solid var(--l);
  color: var(--c);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--g);
}

/* Event Strip */
.event-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 26px;
  border-top: 1px solid var(--l);
  border-bottom: 1px solid var(--l);
  background: rgba(255, 248, 232, 0.02);
  border-radius: 12px;
  color: var(--m);
  font-size: 13px;
  margin-bottom: 60px;
}

.event-strip strong {
  color: var(--g);
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Game Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  padding: 32px;
  border: 1px solid var(--l);
  background: var(--card-bg);
  border-radius: 16px;
  min-height: 270px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 248, 232, 0.09);
  border-color: rgba(244, 201, 107, 0.6);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.grand-card {
  position: relative;
  overflow: hidden;
}

.grand-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.event-type-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(244, 201, 107, 0.12);
  color: var(--g);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--l);
}

.game-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.card-footer-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--g);
  font-weight: 700;
  font-size: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-footer-link .arrow {
  transition: transform 0.25s ease;
}

.grand-card:hover .card-footer-link .arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   INPUT FORMS & GRAND INTERACTIVE TOGGLE STYLING
   ========================================================================== */

.form-shell {
  padding: 50px 0 80px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 100px;
}

.form-perks {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 248, 232, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.perk-icon {
  font-size: 24px;
}

.perk-item strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

.perk-item span {
  display: block;
  font-size: 12px;
  color: var(--m);
}

/* Grand Form Card Container */
.grand-form {
  background: rgba(18, 7, 39, 0.88);
  border: 1.5px solid var(--l);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(244, 201, 107, 0.06);
  display: grid;
  gap: 24px;
  position: relative;
  backdrop-filter: blur(14px);
}

.form-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
}

.form-header-bar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin: 0;
}

.form-step-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  background: rgba(244, 201, 107, 0.12);
  color: var(--g);
  border-radius: 999px;
  border: 1px solid var(--l);
}

/* Input Groups & Labels */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c);
  letter-spacing: 0.02em;
}

.input-group .req {
  color: var(--g);
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group textarea {
  width: 100%;
  background: rgba(10, 4, 24, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.input-group input[type="text"]:focus,
.input-group input[type="number"]:focus,
.input-group textarea:focus {
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(244, 201, 107, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3);
  background: rgba(18, 7, 39, 0.95);
}

/* CUSTOM INTERACTIVE TOGGLE GROUPS (NO RADIO/SELECT BUTTONS) */
.custom-toggle-group {
  display: grid;
  gap: 10px;
}

/* 1. Card Toggle Group (2 columns or 3 columns) */
.card-toggle-group, .team-toggle-group {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.toggle-option {
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--m);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  text-align: left;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.toggle-option:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.toggle-option.active {
  border-color: var(--g);
  background: rgba(244, 201, 107, 0.12);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(244, 201, 107, 0.18);
  font-weight: 700;
}

.toggle-option .check-mark {
  margin-left: auto;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  color: var(--g);
  font-weight: 900;
  font-size: 14px;
}

.toggle-option.active .check-mark {
  opacity: 1;
  transform: scale(1);
}

.toggle-option .option-icon {
  font-size: 22px;
}

.toggle-option .option-text {
  display: flex;
  flex-direction: column;
}

.toggle-option .option-text strong {
  font-size: 13px;
  color: #ffffff;
}

.toggle-option .option-text small {
  font-size: 10px;
  color: var(--m);
}

/* Team Specific Colored Options */
.toggle-option.team-option.teal.active {
  border-color: var(--teal);
  background: rgba(10, 198, 158, 0.15);
  box-shadow: 0 4px 20px rgba(10, 198, 158, 0.25);
}

.toggle-option.team-option.pink.active {
  border-color: var(--pink);
  background: rgba(255, 61, 110, 0.15);
  box-shadow: 0 4px 20px rgba(255, 61, 110, 0.25);
}

.toggle-option.team-option.orange.active {
  border-color: var(--orange);
  background: rgba(255, 156, 28, 0.15);
  box-shadow: 0 4px 20px rgba(255, 156, 28, 0.25);
}

/* 2. Pill Toggle Group (Segmented Bar) */
.pill-toggle-group {
  display: flex;
  background: rgba(10, 4, 24, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.pill-toggle-group .toggle-option {
  flex: 1;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: transparent;
}

.pill-toggle-group .toggle-option.active {
  background: var(--g);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(244, 201, 107, 0.3);
}

/* Mini Toggle for Vadam Vali Member Cards */
.mini-toggle {
  padding: 3px;
  border-radius: 8px;
}

.mini-toggle .toggle-option {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* Vadam Vali Live Gender Counter Gauge */
.gender-gauge-card {
  margin-top: 24px;
  padding: 20px;
  background: rgba(18, 7, 39, 0.8);
  border: 1.5px solid var(--l);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.gauge-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--g);
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-badge.valid {
  background: rgba(10, 198, 158, 0.15);
  color: var(--teal);
  border: 1px solid var(--teal);
}

.status-badge.invalid {
  background: rgba(255, 156, 28, 0.15);
  color: var(--orange);
  border: 1px solid var(--orange);
}

.gauge-rows {
  display: grid;
  gap: 12px;
}

.gauge-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gauge-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--m);
}

.gauge-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.male-fill {
  background: linear-gradient(90deg, #3a8bfd, #00d2ff);
  box-shadow: 0 0 10px rgba(58, 139, 253, 0.5);
}

.female-fill {
  background: linear-gradient(90deg, var(--pink), #ff758c);
  box-shadow: 0 0 10px rgba(255, 61, 110, 0.5);
}

/* Vadam Vali Members Grid */
.vadam-members-grid {
  display: grid;
  gap: 12px;
}

.vadam-member-card {
  background: rgba(10, 4, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-idx-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--g);
  background: rgba(244, 201, 107, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

.member-slot-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c);
}

.member-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.flex-1 {
  flex: 1;
}

/* Submit Grand Button */
.btn-submit-grand {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-sparkle {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.btn-submit-grand:hover .btn-sparkle {
  transform: rotate(20deg) scale(1.2);
}

/* ==========================================================================
   MEET THE TEAMS PAGE (POSTER LAYOUT & ANIMATION)
   ========================================================================== */

.teams-hero {
  text-align: center;
  padding: 60px 0 35px;
}

.teams-hero h1 {
  font-size: clamp(44px, 6vw, 82px);
  margin: 14px 0 8px;
}

.teams-subtitle {
  color: var(--m);
  font-size: 18px;
  margin-bottom: 30px;
}

/* Controls: Search & Tabs */
.teams-controls, .registry-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
}

.search-box {
  position: relative;
  width: min(520px, 100%);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--g);
}

.search-box input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  background: rgba(18, 7, 39, 0.85);
  border: 1.5px solid var(--l);
  border-radius: 999px;
  color: var(--c);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-box input:focus {
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(244, 201, 107, 0.2), 0 6px 25px rgba(0, 0, 0, 0.3);
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--m);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.clear-search-btn:hover {
  color: #ffffff;
}

.search-summary {
  background: rgba(244, 201, 107, 0.1);
  border: 1px solid var(--l);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--g);
  margin-bottom: 25px;
  text-align: center;
}

.team-tabs, .member-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.team-tab, .filter-btn {
  border: 1px solid var(--l);
  background: rgba(255, 255, 255, 0.04);
  color: var(--m);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.team-tab:hover, .filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.team-tab.active, .filter-btn.active {
  background: var(--g);
  color: var(--ink);
  border-color: var(--g);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(244, 201, 107, 0.3);
}

.tab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-all { background: var(--g); }
.dot-teal { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.dot-pink { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.dot-orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

.tab-count {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 7px;
  border-radius: 99px;
  color: inherit;
}

/* Stage & Poster Grid Layout */
.team-stage.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

/* Individual Team Panel Styling */
.crew-panel {
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: #0d061c;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.crew-panel.teal { --team-color: var(--teal); }
.crew-panel.pink { --team-color: var(--pink); }
.crew-panel.orange { --team-color: var(--orange); }

.crew-panel:hover {
  border-color: var(--team-color);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Top Header Banner */
.crew-top-banner {
  padding: 22px 24px 18px;
  background: var(--team-color);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.team-name-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
}

.team-dept-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-top: 4px;
}

.crew-count-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border: 1.5px solid rgba(18, 7, 39, 0.3);
  border-radius: 999px;
  white-space: nowrap;
}

/* Poster Subheader Bar */
.poster-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--m);
  text-transform: uppercase;
}

.poster-subheader .crew-tag {
  color: var(--c);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.poster-subheader .leadership-tag {
  color: var(--g);
  opacity: 0.9;
}

/* Crew Members List Grid */
.crew-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.crew-panel:only-child .crew-grid,
.team-stage:not(.poster-grid) .crew-grid {
  grid-template-columns: repeat(3, 1fr);
}

.crew-member-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  animation: memberIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 22ms);
  transition: transform 0.2s ease, background 0.2s ease;
}

.crew-member-card:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.crew-num {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c);
  font-size: 10px;
  font-weight: 800;
}

.crew-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* HIGHLIGHTED LEADERSHIP CARDS */
.crew-member-card.is-leader {
  grid-column: 1 / -1;
  background: var(--team-color);
  color: var(--ink);
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.crew-member-card.is-leader .crew-num {
  background: var(--ink);
  color: var(--team-color);
  font-weight: 900;
}

.crew-member-card.is-leader .member-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.leader-role-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.85;
  margin-top: 1px;
}

/* Teams Footer Note */
.teams-footer-note {
  text-align: center;
  padding: 70px 20px 40px;
}

.festival-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.teams-footer-note h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  margin: 0 0 10px;
}

.teams-footer-note p {
  color: var(--m);
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
   REGISTERED MEMBERS PAGE
   ========================================================================== */

.registered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.registered-team {
  border: 1px solid var(--card-border);
  background: rgba(13, 6, 28, 0.85);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.registered-team.teal { border-top: 4px solid var(--teal); }
.registered-team.pink { border-top: 4px solid var(--pink); }
.registered-team.orange { border-top: 4px solid var(--orange); }

.registered-team-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.registered-team-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin: 4px 0 0;
}

.team-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.registration-block {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.registration-block:last-of-type {
  border-bottom: 0;
}

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

.block-header h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--g);
  display: flex;
  align-items: center;
  gap: 6px;
}

.count-badge {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--l);
  border-radius: 99px;
  padding: 2px 8px;
  color: var(--g);
}

.participant-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.participant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.p-info {
  display: flex;
  flex-direction: column;
}

.p-name {
  color: #ffffff;
}

.p-details {
  font-size: 11px;
  color: var(--m);
}

.p-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--g);
}

.empty-note {
  font-size: 12px;
  margin: 6px 0;
  font-style: italic;
}

.team-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.mini-register-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--g);
  border: 1px dashed var(--l);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-block;
}

.mini-register-btn:hover {
  background: rgba(244, 201, 107, 0.1);
  border-style: solid;
}

/* Flash Messages */
.flash-stack {
  margin: 20px 0;
}

.flash {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.flash.success {
  background: rgba(10, 198, 158, 0.15);
  border: 1px solid var(--teal);
  color: #ffffff;
}

.flash.error {
  background: rgba(255, 61, 110, 0.15);
  border: 1px solid var(--pink);
  color: #ffffff;
}

/* Animations */
@keyframes memberIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Footer */
.footer {
  text-align: center;
  color: var(--m);
  padding: 35px 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   EVENT ITINERARY TIMELINE STYLING
   ========================================================================== */

.itinerary-section {
  padding: 80px 0;
}

.section-desc {
  color: var(--m);
  font-size: 16px;
  max-width: 540px;
  margin: 10px auto 40px;
}

.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.timeline-track {
  position: absolute;
  left: 28px;
  top: 25px;
  bottom: 25px;
  width: 2px;
  background: linear-gradient(180deg, var(--g) 0%, var(--teal) 50%, var(--pink) 100%);
  opacity: 0.35;
  z-index: 0;
}

.timeline-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.25s ease;
}

.timeline-card:hover {
  transform: translateX(6px);
}

.timeline-node {
  min-width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #190933;
  border: 2px solid var(--l);
  display: grid;
  place-items: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.timeline-card:hover .timeline-node {
  border-color: var(--g);
  box-shadow: 0 0 20px rgba(244, 201, 107, 0.4);
  transform: scale(1.08);
}

.node-icon {
  font-size: 24px;
}

.timeline-content {
  flex: 1;
  background: rgba(18, 7, 39, 0.85);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.timeline-card:hover .timeline-content {
  border-color: var(--l);
  background: rgba(255, 248, 232, 0.07);
}

.time-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--g);
  border: 1px solid var(--l);
  margin-bottom: 8px;
}

.time-badge.gold-time {
  background: rgba(244, 201, 107, 0.18);
  color: var(--g);
  border-color: var(--g);
}

.time-badge.highlight-time {
  background: rgba(255, 61, 110, 0.18);
  color: var(--pink);
  border-color: var(--pink);
}

.timeline-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin: 4px 0 6px;
  line-height: 1.2;
}

.timeline-content p {
  color: var(--m);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.highlight-node .timeline-node {
  border-color: var(--g);
  background: rgba(244, 201, 107, 0.15);
}

.finale-node .timeline-node {
  border-color: var(--pink);
  background: rgba(255, 61, 110, 0.15);
}

/* Responsive adjustments for Timeline */
@media (max-width: 640px) {
  .timeline-track {
    left: 20px;
  }
  .timeline-node {
    min-width: 42px;
    height: 42px;
  }
  .node-icon {
    font-size: 18px;
  }
  .timeline-card {
    gap: 12px;
  }
  .timeline-content {
    padding: 16px;
  }
  .timeline-content h3 {
    font-size: 18px;
  }
}

/* ==========================================================================
   DYNAMIC RESPONSIVE MEDIA QUERIES (LAPTOPS, TABLETS, PHONES)
   ========================================================================== */

/* Laptops & Mid-size Desktops (1025px - 1280px) */
@media (max-width: 1280px) {
  .container {
    width: 94vw;
  }
  .team-stage.poster-grid {
    gap: 16px;
  }
  .crew-grid {
    padding: 14px;
    gap: 6px;
  }
  .crew-top-banner {
    padding: 18px 20px;
  }
}

/* Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
  .container {
    width: 92vw;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 0;
    min-height: auto;
  }

  .lead {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .form-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0 60px;
  }

  .form-intro {
    position: static;
    text-align: center;
  }

  .form-intro .lead {
    margin: 0 auto;
  }

  .form-perks {
    max-width: 500px;
    margin: 20px auto 0;
  }

  .team-stage.poster-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .registered-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .nav {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 12px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
  }

  .hero h1, .page-head h1, .form-intro h1, .teams-title {
    font-size: clamp(36px, 9vw, 60px);
  }

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

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

  .grand-form {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .card-toggle-group, .team-toggle-group {
    grid-template-columns: 1fr;
  }

  .member-inputs {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pill-toggle-group.mini-toggle {
    width: 100%;
  }

  .event-strip {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .teams-controls, .registry-controls {
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .team-tabs, .member-filters {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .team-tabs::-webkit-scrollbar, .member-filters::-webkit-scrollbar {
    display: none;
  }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    width: 95vw;
    padding-bottom: 50px;
  }

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

  .crew-top-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .crew-count-badge {
    align-self: flex-start;
  }

  .btn-submit-grand {
    font-size: 14px;
    padding: 14px;
  }

  .gender-gauge-card {
    padding: 14px;
  }

  .gauge-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

