@font-face {
  font-family: 'Shadhinata';
  src: url('assets/fonts/Shadhinata2.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AlinurSnigdha';
  src: url('assets/fonts/AlinurSnigdha.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Typography: one self-hosted Bengali family (Shadhinata).
   Remote Bengali families removed — they cost megabytes and never rendered first. */

:root {
  --maroon: #6D1A1A;
  --maroon-dark: #4E1010;
  --maroon-text: #6D1A1A;
  --maroon-tint: rgba(109, 26, 26, 0.08);
  --green: #14532D;
  --forest: #14532D;
  --heading-accent: #6D1A1A;
  --gold: #B48C14;
  --gold-soft: #FEF9E7;
  --rep-bg: rgba(254, 249, 231, 0.95);
  --rep-border: rgba(180, 140, 20, 0.45);
  --rep-title: #1D1D1F;
  /* Paper, not screen: warm ground + warm hairlines replace the Apple greys. */
  --bg: #F7F3E9;
  --surface: #FFFFFF;
  --surface-solid: #FFFFFF;
  --surface-secondary: #F3EDE0;
  --surface-glass-border: rgba(26, 22, 20, 0.10);
  --ink: #1A1614;
  --ink-secondary: #4A423C;
  --muted: #6B6157;
  --hairline: rgba(26, 22, 20, 0.12);
  --hairline-strong: rgba(26, 22, 20, 0.20);
  --success: #166534;
  --success-bg: #ECFDF3;
  --error: #B91C1C;
  --error-bg: #FEF2F2;
  /* Previously referenced but never defined — caused transparent backgrounds
     and silently dropped colors. */
  --bg-grouped: #F1EAD9;
  --emerald: #0D6E3F;
  --ink-muted: #6B6157;
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.375rem;
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 12px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --glass-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --max-width: 1040px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Shadhinata', 'AlinurSnigdha', 'Kalpurush', 'SolaimanLipi', 'Anek Bangla', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base link styling — previously missing, causing browser-default blue links
   on contact.html and other pages. */
a {
  color: var(--maroon);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--maroon-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon);
  color: #FFFFFF;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Liquid Glass Translucent Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #FFFFFF;
    backdrop-filter: none;
  }
}

.nav-bar,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-toggle {
  display: none;
  background: var(--surface-secondary, #F3EDE0);
  border: 1px solid var(--hairline-strong, #D8D1C3);
  color: var(--ink, #1A1614);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover {
  background: #E8E2D2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-crest {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 168, 24, 0.55);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.nav-cta {
  background: var(--maroon) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  padding: 0.45rem 1rem !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--maroon-dark) !important;
}

/* Mobile Header Navigation — Collapsed Under 3 Lines (Hamburger) */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex !important;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--hairline);
    border-bottom: 3px solid var(--maroon);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    gap: 0.35rem;
    z-index: 999;
  }

  .nav-links.is-open {
    display: flex !important;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink) !important;
  }

  .nav-links a:hover {
    background: var(--surface-secondary, #F3EDE0);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links .nav-cta {
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
    background: var(--maroon) !important;
    color: #FFFFFF !important;
    border-radius: 9999px;
    padding: 0.85rem;
    font-weight: 700;
  }
}

/* Hero Banner */
.hero {
  padding: 2rem 0 2.5rem;
}

/* Hero Banner — Exact Second Style from Image 2 */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  min-height: 32rem;
  display: flex;
  align-items: center;
  background: #0C1A12;
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 25%;
  display: block;
}

.hero-banner-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 32rem;
  display: flex;
  align-items: center;
  padding: 3.25rem 3.5rem;
  background: linear-gradient(
    90deg,
    rgba(10, 26, 18, 0.95) 0%,
    rgba(10, 26, 18, 0.88) 46%,
    rgba(10, 26, 18, 0.65) 65%,
    rgba(10, 26, 18, 0.12) 100%
  );
}

.hero-banner-content {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
}

/* Badge (Green Glass with Gold Dot & Text — Image 2) */
.hero-banner .hero-badge-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 83, 45, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FDE68A;
  border: 1px solid rgba(253, 230, 138, 0.4);
  border-radius: 9999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-banner .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FDE68A;
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.25);
  display: inline-block;
}

/* Title (Bold Crisp White Text — Image 2) */
.hero-title-banner {
  color: #FFFFFF !important;
  font-family: 'Shadhinata', 'AlinurSnigdha', sans-serif !important;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7) !important;
}

/* Subtitle (Dark Translucent Pill with Crisp White Text — Image 2) */
.hero-sub-banner {
  color: #FFFFFF !important;
  font-size: 1.02rem !important;
  line-height: 1.6 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  padding: 0.65rem 1rem !important;
  margin: 0 !important;
  max-width: 38rem;
  display: inline-block;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

/* Digital Countdown Clock — Sleek Glass Tiles */
.hero-countdown-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md, 10px);
  padding: 0.5rem 0.85rem;
  margin: 0.25rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.4rem;
  background: rgba(20, 35, 26, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm, 6px);
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.countdown-unit .count-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FDE68A;
  font-family: 'Shadhinata', 'AlinurSnigdha', -apple-system, sans-serif;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit .count-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #D1D5DB;
  margin-top: 0.15rem;
}

.countdown-sep {
  font-size: 1.25rem;
  font-weight: 700;
  color: #9CA3AF;
  margin-top: -0.45rem;
}

/* Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.btn-pill {
  border-radius: 9999px !important;
  padding: 0.75rem 1.6rem !important;
  font-weight: 700 !important;
}

.hero-actions .btn-primary {
  background: var(--maroon, #6D1A1A) !important;
  color: #FFFFFF !important;
  border: 1.5px solid var(--maroon, #6D1A1A) !important;
  box-shadow: 0 4px 14px rgba(109, 26, 26, 0.45);
}

.hero-actions .hero-btn-glass {
  background: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
}

.hero-actions .hero-btn-glass:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.event-card-row {
  margin-top: 1.5rem;
}

.event-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

/* Mobile Responsive Hero Banner — Keeps Image 2 Style (Integrated over Photo, NOT split!) */
@media (max-width: 820px) {
  .hero-banner {
    min-height: auto;
    border-radius: var(--radius-md, 12px);
  }
  .hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
  }
  .hero-banner-overlay {
    min-height: auto;
    padding: 2.25rem 1.25rem;
    background: linear-gradient(
      180deg,
      rgba(10, 26, 18, 0.94) 0%,
      rgba(10, 26, 18, 0.88) 55%,
      rgba(10, 26, 18, 0.75) 100%
    );
  }
  .hero-banner-content {
    max-width: 100%;
    gap: 0.85rem;
  }
  .hero-title-banner {
    font-size: 1.65rem !important;
    line-height: 1.28 !important;
  }
  .hero-sub-banner {
    font-size: 0.92rem !important;
    padding: 0.55rem 0.85rem !important;
  }
  .hero-countdown-glass {
    width: 100%;
    justify-content: space-between;
  }
  .countdown-unit {
    min-width: 0;
    flex: 1;
    padding: 0.3rem 0.25rem;
  }
  .countdown-unit .count-num {
    font-size: 1.25rem;
  }
  .countdown-unit .count-lbl {
    font-size: 0.68rem;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .event-list-grid {
    grid-template-columns: 1fr;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* Scoped to .hero-banner so the generic .hero-badge (maroon tint) does not
   override .hero-banner .hero-badge-banner (green glass) on the same element. */
.hero-banner .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--maroon-tint);
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Hero banner overlay — scoped to .hero so the generic .hero h1 (L333) cannot
   steal its white text and leave the headline near-black on a dark photo. */
.hero .hero-banner-overlay h1 {
  color: #FFFFFF;
  text-shadow: none;
}

/* Remove the generic .hero h1 color override so the banner's own rules win.
   (The generic rule was overriding the banner's white text with #1D1D1F,
   producing a 1.06:1 contrast headline.) */
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.18;
}

.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--ink-secondary);
  font-size: 1.08rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons (44px+ Apple Touch Target) */
.btn {
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid rgba(109, 26, 26, 0.35);
  outline-offset: 2px;
}

.btn-primary,
.btn-maroon {
  background: var(--maroon);
  color: #FFFFFF;
}

.btn-primary:hover,
.btn-maroon:hover {
  background: var(--maroon-dark);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.btn-outline:hover {
  background: var(--surface-secondary);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Event Info Bento Card */
.event-card {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.event-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading-accent);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--hairline);
}

.event-value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--maroon-text);
  border: 1px solid rgba(109, 26, 26, 0.22);
  padding: 0.4rem 0.6rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

.countdown-pill.is-green {
  background: var(--surface);
  color: var(--ink);
  border-color: rgba(180, 140, 20, 0.45);
}

.clock-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.35rem;
  padding: 0.25rem 0.38rem;
  border-radius: 9px;
  background: rgba(109, 26, 26, 0.08);
  line-height: 1.05;
}

.countdown-pill.is-green .clock-unit {
  background: var(--gold-soft);
}

.clock-unit strong {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: normal;
  font-variant-numeric: tabular-nums;
}

.clock-unit small {
  font-size: 0.64rem;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 0.12rem;
}

.clock-sep {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.5;
  padding-bottom: 0.45rem;
}

/* Registration Fee Schedule Card */
.fee-card {
  margin-top: 1.25rem;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.fee-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--hairline);
}

.fee-card-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--heading-accent);
}

.fee-card-header span {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

/* Fee schedule — a printed register, not five coloured pricing pills.
   One column, hairline rules, amounts right-aligned on tabular figures. */
.fee-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline-strong);
}

.fee-tier {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid var(--hairline);
  background: none;
  box-shadow: none;
  border-radius: 0;
  text-align: left;
}

.fee-batch {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: none;
}

/* Neutralise the inherited rainbow tier colours. */
.fee-tier .fee-batch-1,
.fee-tier .fee-batch-2,
.fee-tier .fee-batch-3,
.fee-tier .fee-batch-4,
.fee-tier .fee-batch-5 {
  background: none;
  color: var(--ink-secondary);
}

.fee-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.event-list li {
  display: grid;
  gap: 0.15rem;
}

.event-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--ink-secondary);
  font-weight: 700;
}

.event-value {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
}

.event-note {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: normal;
  color: var(--ink);
}

.section-header p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

/* Grouped Form Container (Apple Settings Style) */
.form-shell {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-elevated);
}

.demo-banner {
  background: var(--rep-bg);
  border: 1px solid var(--rep-border);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.deadline-value {
  color: var(--maroon-text);
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--hairline);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}

.form-section-title {
  margin: 0 0 1.15rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-accent);
  border-left: 4px solid var(--heading-accent);
  padding-left: 0.65rem;
  letter-spacing: normal;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.req {
  color: var(--error);
  margin-left: 0.15rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="search"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  font-family: inherit;
  font-size: 0.96rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(109, 26, 26, 0.14);
}

.field input.is-invalid {
  border-color: var(--error);
  background: var(--error-bg);
}

.helper {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

.field-error {
  font-size: 0.8rem;
  color: var(--error);
  font-weight: 600;
  min-height: 1.1em;
}

/* Segmented / Pill Choices (44px tap targets) */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice-pill {
  position: relative;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface-secondary);
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.choice-pill span:hover {
  background: #ECECF0;
}

.choice-pill input:checked + span {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #FFFFFF;
}

.choice-pill input:focus-visible + span {
  outline: 3px solid rgba(109, 26, 26, 0.35);
  outline-offset: 2px;
}

/* Batch Rep Info Box (Modern Apple-style Glass Card) */
.rep-box {
  margin-top: 0.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--rep-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--rep-border);
  box-shadow: 0 6px 24px -2px rgba(15, 23, 42, 0.06);
  display: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rep-box.visible {
  display: block;
  animation: fadeInRep 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInRep {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rep-box-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--hairline);
}

.rep-box-badge-icon {
  font-size: 1.4rem;
  line-height: 1;
  background: var(--surface);
  border-radius: 50%;
  padding: 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.rep-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rep-title, var(--maroon));
  margin: 0 0 0.15rem;
  letter-spacing: normal;
}

.rep-box-sub {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.rep-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.rep-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rep-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.rep-card.fee-rep-featured {
  border: 1.5px solid var(--maroon);
  background: var(--maroon-tint);
  box-shadow: none;
}

.rep-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rep-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(109, 26, 26, 0.1);
  color: var(--maroon);
}

.rep-badge.badge-fee {
  background: var(--maroon);
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(109, 26, 26, 0.2);
}

.rep-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.rep-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.rep-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

.rep-btn-call {
  background: var(--forest, #0D6E3F);
  color: #fff !important;
}

.rep-btn-call:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.rep-btn-wa {
  background: #25D366;
  color: #fff !important;
}

.rep-btn-wa:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

.rep-btn-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.rep-btn-text {
  letter-spacing: normal;
}

/* Conditional MFS / Bank Panel */
.mfs-panel {
  display: none;
  margin-top: 1.15rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: var(--surface-secondary);
  border: 1px solid var(--hairline-strong);
}

.mfs-panel.visible {
  display: block;
}

.mfs-instructions {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink);
}

/* Declaration Box */
.declaration-box {
  background: var(--surface-secondary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.declaration-box p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  min-height: 2.75rem;
  padding-top: 0.25rem;
}

.checkbox-row input {
  margin-top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--maroon);
}

.status-banner {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.status-banner.error {
  display: block;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #FECACA;
}

.status-banner.success {
  display: block;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #BBF7D0;
}

/* Printable Receipt */
.receipt-card {
  display: none;
  background: var(--gold-soft);
  border: 1px solid rgba(109, 26, 26, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.receipt-card.visible {
  display: block;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px dashed rgba(109, 26, 26, 0.35);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.receipt-header h3 {
  margin: 0;
  color: var(--maroon-text);
  font-size: 1.15rem;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  font-size: 0.95rem;
}

.receipt-footer-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}

.receipt-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Optional Attendee Photo Upload & Digital ID Card Preview */
.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.photo-upload-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2b6b29;
  background: var(--surface);
  flex-shrink: 0;
}

.photo-upload-input {
  flex: 1 1 240px;
}

/* Style the native file picker — previously rendered as an unstyled
   "Choose File / No file chosen" control inside an otherwise designed form. */
.photo-upload-input input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  cursor: pointer;
}

.photo-upload-input input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  margin-right: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--surface-secondary);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.photo-upload-input input[type="file"]::file-selector-button:hover {
  background: var(--maroon-tint);
  border-color: var(--maroon);
  color: var(--maroon);
}

.id-card-preview-wrap {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(109, 26, 26, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.id-card-preview-title {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 700;
}

.id-card-canvas {
  width: min(100%, 340px);
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 45, 18, 0.18);
  display: block;
}

/* Public Photo Gallery & Albums */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.gallery-chip {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gallery-chip:hover {
  background: var(--surface-secondary);
  border-color: var(--maroon);
  transform: translateY(-1px);
}

.gallery-chip.active {
  background: var(--maroon);
  color: #FFFFFF;
  border-color: var(--maroon);
  box-shadow: 0 4px 12px rgba(109, 26, 26, 0.25);
}

.album-showcase-card {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--glass-shadow);
}

.album-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hairline);
}

.album-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(109, 26, 26, 0.1);
  color: var(--maroon);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.album-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 0.35rem;
}

.album-meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.album-count-tag {
  background: var(--surface-secondary);
  color: var(--ink-secondary);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg, 16px);
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--maroon);
  outline-offset: 2px;
}

.gallery-item-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: normal;
}

.gallery-item-tag.tag-2019 {
  background: rgba(13, 110, 63, 0.85);
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1A1A1E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  background: var(--surface);
  flex-grow: 1;
}

.gallery-subcaption {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Committee Search & Directory */
.committee-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.search-wrap {
  flex: 1 1 260px;
  max-width: 380px;
}

.search-wrap input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 4px rgba(109, 26, 26, 0.12);
}

.committee-count {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  font-weight: 600;
}

.committee-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
}

.committee-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.committee-panel-title {
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--maroon);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
}

.committee-panel-body {
  padding: 1.15rem 1rem;
}

.committee-panel-body p:last-child {
  margin-bottom: 0;
}

/* Two-way switch between the committee and batch-rep registers */
.committee-switch {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.25rem 0 2rem;
  flex-wrap: wrap;
}

.committee-switch .btn {
  padding: 0.55rem 1.25rem;
}

.committee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.committee-table thead th {
  background: var(--green);
  color: #FFFFFF;
  text-align: left;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.82rem;
}

.committee-table tbody td {
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--hairline);
}

.committee-table tbody tr:nth-child(even) {
  background: var(--surface-secondary);
}

.committee-table a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
}

.committee-table a:hover {
  text-decoration: underline;
}

.rules-card {
  margin-top: 2rem;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--glass-shadow);
}

.rules-card h3 {
  margin: 0 0 0.85rem;
  color: var(--maroon);
  font-size: 1.1rem;
}

.rules-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.rules-list strong {
  color: var(--ink);
}

.committee-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

/* Lightbox & Modals */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
  animation: fadeInModal 0.2s ease-out;
}

.lightbox.open,
.lightbox.active {
  display: flex !important;
}

.lightbox-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg, 16px);
  max-width: 920px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-img-wrap {
  position: relative;
  background: #0B0B0D;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: 72vh;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: var(--maroon);
  transform: translateY(-50%) scale(1.08);
  border-color: transparent;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-body {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.lightbox-caption-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  flex-grow: 1;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.lightbox-close-btn {
  background: var(--surface-secondary);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lightbox-close-btn:hover {
  background: var(--maroon);
  color: #FFFFFF;
  border-color: var(--maroon);
}

/* Footer */
.site-footer {
  background: var(--surface);
  color: var(--ink-secondary);
  padding: 2rem 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.88rem;
}

.site-footer strong {
  color: var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

h1, h2, h3, .brand-text strong {
  font-family: 'Shadhinata', 'AlinurSnigdha', 'Kalpurush', 'SolaimanLipi', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--maroon);
  text-decoration: underline;
}

.footer-credit {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.88rem;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.footer-credit-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.creator-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--hairline-strong);
  background: #FFFFFF;
}

.creator-signature {
  height: 2rem;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  background: transparent;
}

.footer-credit a {
  color: var(--maroon);
  font-weight: 700;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}



.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  color: var(--maroon);
  font-size: 1.25rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.15s ease;
  touch-action: manipulation;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--maroon);
  color: #FFFFFF;
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(109, 26, 26, 0.45);
  outline-offset: 2px;
}



@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn, .gallery-item {
    transition: none;
  }
}

@media (max-width: 820px) {
  .hero-inner,
  .committee-directory,
  .grid-2,
  .receipt-grid {
    grid-template-columns: 1fr;
  }
  .form-shell {
    padding: 1.25rem;
  }
}

/* Verification & Admin Authorization Portal */
.id-approval-notice {
  margin-top: 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.id-approval-notice.rejected {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
}

.id-approval-notice p {
  margin: 0.55rem 0 0;
  font-size: 0.94rem;
  color: var(--ink);
}

.approval-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.approval-badge.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.approval-badge.approved {
  background: rgba(22, 163, 74, 0.18);
  color: #166534;
}

.approval-badge.rejected {
  background: rgba(220, 38, 38, 0.16);
  color: #991b1b;
}



.verify-card,
.admin-sig-card,
.admin-list-card {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.admin-login-card {
  max-width: 460px;
  margin: 1rem auto 2rem;
  padding: 2rem 1.85rem;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
}

/* Rainbow tier colours removed — fee schedule now uses one institutional rule. */

.admin-login-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.admin-login-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 18px;
  background: var(--bg-grouped);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.admin-login-badge img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-login-header h2,
.admin-login-header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  letter-spacing: normal;
}

.admin-login-header .helper {
  margin: 0;
  font-size: 0.92rem;
}

.admin-login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 0.9rem;
  border-radius: 10px;
  font-size: 1rem;
}

.verify-search-row {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.verify-input-wrap {
  flex: 1 1 280px;
  margin-bottom: 0;
}

.verify-submit-btn {
  min-height: 44px;
}

.verify-result {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

.verify-badge-row {
  margin-bottom: 1rem;
}

.verify-meta-grid {
  background: var(--bg-grouped);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}

.admin-sig-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-sig-header h3 {
  margin: 0 0 0.25rem;
}

.signature-pad-wrap {
  margin-top: 1rem;
}

.signature-pad-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.signature-pad {
  width: 100%;
  max-width: 520px;
  height: 150px;
  border: 1.5px dashed rgba(25, 91, 34, 0.45);
  border-radius: var(--radius-md);
  background: #ffffff;
  touch-action: none;
  cursor: crosshair;
  display: block;
}

.signature-pad-actions {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-filter-pills {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 14px;
  background: var(--bg-grouped);
  border: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.filter-pill {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.filter-pill.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-search-wrap {
  display: flex;
  gap: 0.5rem;
  flex: 1 1 260px;
  justify-content: flex-end;
}

.admin-search-wrap input {
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  flex: 1 1 180px;
}

.admin-records-list {
  display: grid;
  gap: 0.9rem;
}

.admin-record-item {
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--bg-grouped);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-record-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.admin-record-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.admin-record-id {
  font-size: 0.84rem;
  color: var(--emerald);
}

.admin-record-top h4 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
}

.admin-record-meta {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.admin-record-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.empty-state {
  text-align: center;
  color: var(--ink-muted);
  padding: 1.5rem 0;
}

/* Program & Event Highlights (Khs2027.pdf) */
.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.program-kicker {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--maroon-text);
  margin-bottom: 0.35rem;
}

.program-pdf-btn {
  flex-shrink: 0;
}

.program-welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.program-feature-card,
.program-event-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.program-feature-badge,
.program-step {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(13, 110, 63, 0.14);
  color: var(--emerald);
  margin-bottom: 0.55rem;
}

.program-feature-badge.gold {
  background: rgba(217, 119, 6, 0.16);
  color: #b45309;
}



.program-feature-card h3,
.program-event-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.program-bullet-list,
.program-event-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.program-bullet-list strong,
.program-event-card li strong {
  color: var(--ink);
}

.program-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 960px) {
  .program-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .program-welcome-grid,
  .program-events-grid {
    grid-template-columns: 1fr;
  }
}

.admin-role-select {
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}

.edit-modal-content {
  max-width: 720px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.35rem;
}

.edit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.edit-modal-header h3 {
  margin: 0;
}

.edit-modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

@media print {
  body * {
    visibility: hidden;
  }
  #receiptCard,
  #receiptCard * {
    visibility: visible;
  }
  #receiptCard {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 2px solid #000;
  }
  .receipt-actions,
  .back-to-top {
    display: none !important;
  }
}

/* ==========================================================================
   DE-SLOP PASS — one surface language
   --------------------------------------------------------------------------
   Removes the generated-looking decoration layer:
     1. Glass/blur everywhere except the sticky header and the lightbox,
        where content genuinely moves behind the element.
     2. Card shadows replaced by hairline structure (one elevation only).
     3. Bengali script: no letter-spacing, no uppercase transform, no 800
        weights — all three are Latin-only rules that damage conjuncts.
     4. Committee table: neutral column header instead of maroon-on-green.
   ========================================================================== */

/* 1. Flatten decorative glass (header + lightbox intentionally excluded) */
.event-card,
.fee-card,
.form-shell,
.rep-box,
.rep-card,
.album-showcase-card,
.rules-card,
.committee-panel,
.section-alt,
.countdown-pill,
.gallery-item,
.gallery-chip,
.gallery-item-tag,
.receipt-card,
.verify-card,
.admin-login-card,
.admin-sig-card,
.admin-list-card,
.program-feature-card,
.back-to-top {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Hero glass becomes a solid scrim so it reads on any photo */
.hero-banner .hero-badge-banner,
.hero-banner .hero-sub-banner,
.hero-banner .hero-btn-glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-banner .hero-badge.hero-badge-banner {
  background: rgba(250, 246, 234, 0.94);
  color: var(--maroon);
  border-color: rgba(26, 22, 20, 0.12);
  border-radius: 6px;
  font-weight: 600;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-banner .hero-sub-banner {
  background: rgba(20, 17, 15, 0.66);
}
.hero-banner .hero-btn-glass {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.55);
}
.hero-banner .hero-btn-glass:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* The status dot must contrast against the badge, not blend into it */
.hero-banner .hero-badge.hero-badge-banner::before {
  background: var(--gold);
}

/* 2. One elevation: hairlines carry structure, not shadows */
:root {
  --shadow-card: none;
  --shadow-elevated: none;
  --glass-shadow: none;
}
.event-card,
.fee-card,
.form-shell,
.rep-box,
.rep-card,
.album-showcase-card,
.rules-card,
.committee-panel,
.countdown-pill,
.gallery-chip,
.receipt-card,
.verify-card,
.admin-login-card,
.admin-sig-card,
.admin-list-card,
.program-feature-card,
.back-to-top {
  box-shadow: none;
}
.event-card,
.fee-card,
.form-shell,
.rep-box,
.album-showcase-card,
.rules-card,
.committee-panel,
.receipt-card,
.verify-card {
  border-color: var(--hairline);
}
/* The one element that may float: the sticky header, on scroll */
.site-header {
  box-shadow: 0 1px 0 var(--hairline);
}

/* 3. Bengali typography discipline */
.event-label,
.brand-text strong,
.hero h1,
.section-header h2,
.fee-batch,
.committee-table th {
  letter-spacing: normal;
  text-transform: none;
}

/* 4. Committee register: neutral column header */
.committee-table thead th {
  background: var(--surface-secondary);
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--hairline-strong);
  font-weight: 600;
}

/* 2b. Same for the one-off shadows that were hard-coded rather than tokenised.
   Functional focus rings, the lightbox and the header hairline stay. */
.hero-banner,
.rep-box-badge-icon,
.rep-card:hover,
.rep-badge.badge-fee,
.rep-btn,
.id-card-canvas,
.gallery-chip.active,
.gallery-item:hover,
.admin-login-badge,
.filter-pill.active,
.admin-record-item:hover,
.program-feature-card,
.program-event-card,
.program-welcome-grid {
  box-shadow: none;
}

.hero-banner {
  border: 1px solid var(--hairline);
}

/* 6. Flat section bands: no translucent panel between page and cards */
.section-alt {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

/* 7. Corner discipline — chips are printed labels, not pills.
   Rounding reserved for avatars, the badge dot and the lightbox. */
:root {
  --radius-sm: 0.4rem;
  --radius-md: 0.6rem;
  --radius-lg: 0.85rem;
}
.nav-links a,
.hero-badge,
.choice-pill,
.choice-pill span,
.rep-badge,
.gallery-chip,
.album-badge,
.album-count-tag,
.gallery-item-tag,
.approval-badge,
.program-feature-badge,
.program-step,
.search-wrap input {
  border-radius: 6px;
}

/* 8. Program badges leave green behind — maroon is the only accent now */
.program-feature-badge,
.program-step {
  background: var(--maroon-tint);
  color: var(--maroon);
}

/* 9. Header discipline: the school name never breaks mid-name */
.brand {
  flex-shrink: 0;
}

.brand-text strong {
  white-space: nowrap;
}

/* 5. Buttons: soften the universal pill into an institutional edge */
.btn {
  border-radius: 10px;
}

/* ========================================================
   Admin Tab Navigation & Photo Gallery Management
   ======================================================== */
.admin-tab-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  background: var(--surface-secondary, #F3EDE0);
}

.admin-tab-btn.active {
  background: var(--maroon);
  color: #FFFFFF;
  border-color: var(--maroon);
  box-shadow: 0 2px 8px rgba(128, 0, 32, 0.25);
}

.admin-tab-logout {
  margin-left: auto;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
  .admin-tab-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-tab-logout {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* Gallery Admin Header Card */
.gallery-admin-header-card {
  margin-bottom: 1.5rem;
}

.gallery-admin-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gallery-admin-title-row h2 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.gallery-admin-quick-actions {
  display: flex;
  gap: 0.65rem;
}

.gallery-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .gallery-stat-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-stat-box {
  background: var(--surface-secondary, #F9F7F2);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-stat-num {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
}

.gallery-stat-label {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  font-weight: 500;
}

/* 2-Column Forms Grid */
.gallery-forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .gallery-forms-grid {
    grid-template-columns: 1fr;
  }
}

.card-title-badge {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.card-title-badge h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

/* Dropzone */
.photo-upload-dropzone {
  position: relative;
  border: 2px dashed var(--gold, #C5A059);
  background: rgba(197, 160, 89, 0.05);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.photo-upload-dropzone:hover,
.photo-upload-dropzone.dragover {
  border-color: var(--maroon);
  background: rgba(128, 0, 32, 0.06);
}

.photo-upload-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.dropzone-icon {
  font-size: 2.2rem;
}

.dropzone-preview {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.dropzone-preview img {
  max-height: 180px;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Custom Folders List */
.custom-folders-wrap {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--hairline);
}

.custom-folders-wrap h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--ink-secondary);
}

.custom-folders-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.custom-folder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-secondary, #FAF8F5);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--hairline);
}

.custom-folder-key {
  font-size: 0.8rem;
  color: var(--gold-dark, #8A6D3B);
  font-family: monospace;
}

.custom-folder-desc {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-top: 0.2rem;
}

/* Gallery Manage Card & Grid */
.gallery-manage-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gallery-manage-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-manage-search input {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  font-size: 0.92rem;
  min-width: 240px;
  background: #FFFFFF;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .admin-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.admin-photo-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.admin-photo-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

.admin-photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.admin-photo-card:hover .admin-photo-thumb-wrap img {
  transform: scale(1.03);
}

.admin-photo-cat-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(12, 26, 18, 0.85);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-photo-details {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-photo-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.admin-photo-subcaption {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  flex: 1;
}

.admin-photo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #888;
  border-top: 1px solid var(--hairline);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.photo-id-tag {
  font-family: monospace;
  background: var(--surface-secondary, #F3EDE0);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.admin-photo-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface-secondary, #FAF8F5);
  border-top: 1px solid var(--hairline);
}

.admin-photo-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  text-align: center;
  justify-content: center;
}

/* Edit Photo Modal */
.photo-modal-preview-wrap {
  width: 100%;
  max-height: 200px;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #000;
  text-align: center;
}

.photo-modal-preview-wrap img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
}

.btn-block {
  width: 100%;
  display: block;
}

/* ========================================================
   Gate QR Attendance, T-Shirt & Food Tracking + Admin Tab
   ======================================================== */
.gate-dashboard {
  display: grid;
  gap: 1.25rem;
}

.gate-staff-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
}

.gate-staff-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.gate-staff-pill {
  background: var(--surface-secondary, #F3EDE0);
  border: 1px solid var(--hairline);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.gate-demo-pill {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
}

.gate-staff-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gate-demo-box {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--hairline);
  display: grid;
  gap: 0.75rem;
}

.gate-demo-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (max-width: 520px) {
  .gate-demo-roles {
    grid-template-columns: 1fr;
  }
}

.gate-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .gate-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gate-stat-box {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.9rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.gate-stat-val {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.1;
}

.gate-stat-lbl {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  font-weight: 600;
}

.gate-mode-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.gate-mode-header h2 {
  font-size: 1.15rem;
  margin: 0;
}

.gate-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .gate-mode-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gate-mode-btn {
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong, var(--hairline));
  background: var(--surface-secondary, #FAF8F5);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
}

.gate-mode-btn:hover {
  background: #EFE7D6;
}

.gate-mode-btn.active {
  background: var(--maroon);
  color: #FFFFFF;
  border-color: var(--maroon);
  box-shadow: 0 3px 10px rgba(128, 0, 32, 0.22);
}

.gate-demo-bar {
  background: #FFFBEB;
  border-color: #FCD34D;
}

.gate-demo-bar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gate-demo-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scan-result-card {
  border-width: 2px;
  padding: 1.25rem;
}

.scan-result-card.result-success {
  border-color: #16A34A;
  background: #F0FDF4;
}

.scan-result-card.result-duplicate {
  border-color: #DC2626;
  background: #FEF2F2;
}

.scan-result-card.result-error {
  border-color: #D97706;
  background: #FFFBEB;
}

.scan-result-banner h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.result-success .scan-result-banner h3 { color: #166534; }
.result-duplicate .scan-result-banner h3 { color: #991B1B; }
.result-error .scan-result-banner h3 { color: #92400E; }

.scan-result-banner p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.scan-attendee-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid var(--hairline);
}

.scan-attendee-photo,
.scan-attendee-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--maroon);
}

.scan-attendee-photo {
  object-fit: cover;
}

.scan-attendee-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-secondary, #F3EDE0);
  color: var(--maroon);
  font-weight: 700;
  font-size: 1.35rem;
}

.scan-attendee-meta {
  flex: 1;
  min-width: 0;
}

.scan-attendee-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.scan-attendee-meta h4 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
}

.scan-meta-line {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.scan-milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.9rem;
}

@media (max-width: 700px) {
  .scan-milestones-grid {
    grid-template-columns: 1fr;
  }
}

.milestone-box {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.88rem;
}

.milestone-box.done {
  border-color: #86EFAC;
  background: #F0FDF4;
}

.milestone-box.done span {
  color: #166534;
  font-weight: 700;
}

.milestone-box.pending span {
  color: var(--ink-secondary);
}

.scan-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.gate-scanner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .gate-scanner-grid {
    grid-template-columns: 1fr;
  }
}

.qr-reader-box {
  width: 100%;
  min-height: 220px;
  background: #111827;
  border-radius: 10px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.gate-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.gate-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.gate-scan-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gate-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-secondary, #FAF8F5);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

/* Admin Attendance & Volunteers Tab */
.attendance-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .attendance-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.volunteer-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.volunteer-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface-secondary, #FAF8F5);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.volunteer-passcode-pill {
  font-family: monospace;
  background: #FFFFFF;
  border: 1px solid var(--hairline-strong, var(--hairline));
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}


