/* ==========================================================================
   PVC ZPHS SCHOOL GOVADA - 75 YEARS PLATINUM JUBILEE
   Executive & Professional Institutional Design System
   Mobile-First, Elegant, High-Contrast & Production-Grade
   ========================================================================== */

:root {
  /* Institutional Color Palette */
  --navy-primary: #0F172A;
  --navy-secondary: #1E293B;
  --navy-dark: #020617;
  --blue-accent: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-subtle: #EFF6FF;
  --gold-accent: #D97706;
  --gold-primary: #B45309;
  --gold-subtle: #FEF3C7;
  --emerald-success: #059669;

  /* Neutral Slate Palette */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Radii & Elevations */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-elevated: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #F8FAFC;
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   WELCOME SPLASH & ENTRY OVERLAY (OPTIMIZED & ULTRA SMOOTH)
   ========================================================================== */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 40%, #0F1E36 0%, #081220 60%, #02060D 100%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
}

.welcome-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  pointer-events: none;
}

.welcome-skip-btn {
  position: fixed;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #E2E8F0;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.welcome-skip-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.welcome-skip-btn:active {
  transform: translateY(0) scale(0.97);
}

.welcome-content-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.welcome-crest-wrapper {
  position: relative;
  margin-bottom: 18px;
}

.welcome-crest-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
  animation: glowAura 2.6s infinite alternate ease-in-out;
}

@keyframes glowAura {
  0% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 0.95; }
}

.welcome-crest {
  position: relative;
  width: clamp(100px, 22vw, 140px);
  height: clamp(100px, 22vw, 140px);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.6));
  animation: welcomePop 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes welcomePop {
  0% { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.welcome-tagline {
  color: #FDE047;
  font-size: clamp(0.78rem, 2.3vw, 0.94rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 800;
}

.welcome-title {
  color: #FFFFFF;
  font-size: clamp(1.75rem, 5.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.welcome-title .gold-highlight {
  background: linear-gradient(135deg, #FFF9D2 0%, #F5C518 40%, #EAB308 70%, #CA8A04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(250, 204, 21, 0.35);
  display: inline-block;
}

.welcome-subtitle {
  color: #93C5FD;
  font-size: clamp(1.1rem, 3.4vw, 1.55rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.welcome-location-note {
  color: #94A3B8;
  font-size: clamp(0.85rem, 2.4vw, 0.98rem);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 24px;
}

.welcome-location-note strong {
  color: #E2E8F0;
  font-weight: 600;
}

.welcome-btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-btn-enter:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.6);
}

.welcome-btn-enter:active {
  transform: translateY(0) scale(0.98);
}

.welcome-auto-dismiss-hint {
  color: #64748B;
  font-size: 0.78rem;
  margin-top: 14px;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* ==========================================================================
   TOP INSTITUTIONAL BRANDING RIBBON
   ========================================================================== */
.top-gov-ribbon {
  background: var(--navy-dark);
  color: #94A3B8;
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-gov-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   MAIN NAVIGATION HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-subtle);
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.brand-text h1 span {
  color: var(--blue-accent);
}

.brand-text p {
  font-size: 0.78rem;
  color: var(--slate-500);
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-700);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-links a:hover {
  background: var(--slate-100);
  color: var(--navy-primary);
}

.nav-links a.active {
  color: var(--blue-accent);
  background: var(--blue-subtle);
}

.nav-links .btn-nav-register {
  background: var(--navy-primary);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-primary);
  transition: all 0.15s ease;
}

.nav-links .btn-nav-register:hover {
  background: var(--navy-secondary);
  border-color: var(--navy-secondary);
}

.mobile-nav-toggle {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--navy-primary);
}

/* ==========================================================================
   FLOATING OFFICIAL REGISTRATION COUNTER (TOP-RIGHT)
   ========================================================================== */
.live-counter-corner {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--navy-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-counter-corner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--blue-accent);
}

.counter-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--emerald-success);
  border-radius: 50%;
  position: relative;
}

.counter-pulse-dot::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(5, 150, 105, 0.25);
  animation: pulseBeacon 2s infinite ease-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.counter-inner {
  display: flex;
  flex-direction: column;
}

.counter-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.counter-text {
  font-size: 0.68rem;
  color: var(--slate-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ==========================================================================
   INSTITUTIONAL HERO BANNER
   ========================================================================== */
.hero-jubilee-banner {
  max-width: 1060px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.hero-content-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 70%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FDE047;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-content-box h2 {
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.hero-location-line {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-desc {
  font-size: 1rem;
  color: #CBD5E1;
  max-width: 720px;
  line-height: 1.6;
}

.hero-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
}

.stat-pill .stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FACC15;
  font-variant-numeric: tabular-nums;
}

.stat-pill .stat-label {
  font-size: 0.72rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ==========================================================================
   PROFESSIONAL REGISTRATION FORM CARD
   ========================================================================== */
.registration-section {
  max-width: 900px;
  margin: 36px auto 60px;
  padding: 0 20px;
}

.registration-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

/* Card Header */
.card-header-styled {
  background: #FFFFFF;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 36px) 20px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 20px;
}

.card-header-emblem {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.card-header-text h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.card-header-text p {
  color: var(--slate-500);
  font-size: 0.92rem;
  margin-top: 4px;
}

.form-body-styled {
  padding: clamp(20px, 4vw, 36px);
}

/* Section Title & Subheading */
.form-section-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--slate-200);
}

.form-section-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-number {
  background: var(--slate-100);
  color: var(--navy-primary);
  border: 1px solid var(--slate-300);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-primary);
  letter-spacing: -0.2px;
}

/* ==========================================================================
   RESIDENCE SELECTOR: PROFESSIONAL TILES
   ========================================================================== */
.residence-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.residence-tile {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.15s ease;
  user-select: none;
}

.residence-tile:hover {
  border-color: var(--slate-400);
  background: var(--slate-50);
}

.residence-tile input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.residence-tile.active {
  border-color: var(--blue-accent);
  background: var(--blue-subtle);
  box-shadow: 0 0 0 1px var(--blue-accent);
}

.tile-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

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

.tile-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.tile-subtitle {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.tile-radio-circle {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.residence-tile.active .tile-radio-circle {
  border-color: var(--blue-accent);
}

.residence-tile.active .tile-radio-circle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-accent);
}

/* ==========================================================================
   FORM CONTROLS & GRID
   ========================================================================== */
.form-grid-styled {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field-col-full {
  grid-column: 1 / -1;
}

.form-group-custom {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label .required {
  color: #DC2626;
  margin-left: 2px;
}

.field-helper {
  font-size: 0.76rem;
  color: var(--slate-500);
  margin-top: 5px;
}

/* Professional Input Styles */
.custom-input,
.custom-select,
.custom-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--navy-primary);
  background: #FFFFFF;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-input:focus,
.custom-select:focus,
.custom-textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-glow);
}

.custom-input::placeholder,
.custom-textarea::placeholder {
  color: var(--slate-400);
  font-size: 0.92rem;
}

.custom-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ==========================================================================
   BATCH SELECTION: PROFESSIONAL INTEGRATED DROPDOWN & YEAR FILTER
   ========================================================================== */
.batch-select-card {
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
}

.batch-inputs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.batch-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.batch-quick-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.batch-badge-chip {
  background: #FFFFFF;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.batch-badge-chip:hover {
  background: var(--blue-subtle);
  color: var(--blue-accent);
  border-color: var(--blue-accent);
}

.batch-badge-chip.active {
  background: var(--blue-accent);
  color: #FFFFFF;
  border-color: var(--blue-accent);
}

.batch-status-confirmed {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-success);
}

/* ==========================================================================
   EXECUTIVE PRIMARY SUBMIT BUTTON
   ========================================================================== */
.btn-submit-styled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--navy-primary);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-primary);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  margin-top: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-submit-styled:hover {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  transform: translateY(-1px);
}

.btn-submit-styled:active {
  transform: translateY(1px);
}

.btn-submit-styled:disabled {
  background: var(--slate-300);
  border-color: var(--slate-300);
  color: var(--slate-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.form-alert-banner {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 22px;
  border: 1px solid transparent;
}

.form-alert-banner.alert-danger {
  display: block;
  background-color: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.form-alert-banner.alert-success {
  display: block;
  background-color: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}

/* ==========================================================================
   OFFICIAL CELEBRATION MODAL (POST-REGISTRATION)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.modal-header-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 28px 24px;
  text-align: center;
}

.modal-celebration-badge {
  width: 65px;
  height: 65px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.modal-header-banner h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FACC15;
  margin-bottom: 4px;
}

.modal-header-banner p {
  font-size: 0.9rem;
  color: #CBD5E1;
}

.modal-body {
  padding: 24px;
}

.alumni-pass-preview {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.pass-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--slate-200);
  font-size: 0.9rem;
}

.pass-row:last-child {
  border-bottom: none;
}

.pass-label {
  color: var(--slate-500);
  font-weight: 600;
}

.pass-value {
  color: var(--navy-primary);
  font-weight: 700;
}

.pass-reg-id {
  color: var(--blue-accent);
  font-weight: 800;
  background: var(--blue-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
}

.share-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-share-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  transition: background 0.15s ease;
}

.btn-share-whatsapp:hover {
  background: #128C7E;
}

.btn-secondary-share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-share-copy,
.btn-share-facebook {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: #FFFFFF;
  color: var(--navy-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-share-copy:hover,
.btn-share-facebook:hover {
  background: var(--slate-100);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: var(--slate-400);
  padding: 44px 20px 24px;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-col h3 span {
  color: var(--blue-accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: #64748B;
}

/* ==========================================================================
   ADMIN / EPSON PORTAL STYLES
   ========================================================================== */
.admin-navbar {
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--blue-accent);
}

.admin-container {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--blue-accent);
  box-shadow: var(--shadow-subtle);
}

.admin-stat-card h4 {
  font-size: 0.78rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.admin-stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1;
}

.admin-table-card {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-subtle);
  padding: 24px;
  margin-bottom: 28px;
}

.win11-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.win11-data-table th {
  background: var(--slate-50);
  color: var(--slate-600);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--slate-200);
}

.win11-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--navy-primary);
}

.win11-data-table tr:hover td {
  background: var(--slate-50);
}

.badge-residence-india {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

.badge-residence-nri {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FDF2F8;
  color: #BE185D;
  border: 1px solid #FBCFE8;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

.btn-export-excel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #107C41;
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(16, 124, 65, 0.25);
  transition: background 0.15s ease;
}

.btn-export-excel:hover {
  background: #0E6B38;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    padding: 10px 14px;
  }

  .live-counter-corner {
    top: 72px;
    right: 12px;
    padding: 6px 12px;
  }

  .counter-num {
    font-size: 1rem;
  }

  .counter-text {
    font-size: 0.65rem;
  }

  .card-header-styled {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }

  .residence-tiles-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-grid-styled {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .batch-inputs-container {
    grid-template-columns: 1fr;
  }

  .form-body-styled {
    padding: 20px 16px;
  }

  .custom-input,
  .custom-select,
  .custom-textarea {
    font-size: 16px; /* Prevents auto-zoom on mobile */
    padding: 12px 14px;
  }

  .btn-submit-styled {
    padding: 15px 20px;
    font-size: 1.05rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
