/* ==========================================================================
   🎉 IET LUCKNOW - MCA FRESHERS 2026 PLATFORM
   Global Design System (Dark & Light Theme Tokens, Glassmorphism, Components)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap');

/* --- THEME TOKENS --- */
:root,
[data-theme="dark"] {
  --bg-base: #050510;
  --bg-surface: #0d0e1f;
  --bg-card: rgba(16, 18, 38, 0.75);
  --bg-card-hover: rgba(22, 25, 52, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-strong: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #050510;

  --primary: #7c3aed;
  --primary-light: #9061f9;
  --primary-glow: rgba(124, 58, 237, 0.4);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.4);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --error: #ef4444;
  --error-glow: rgba(239, 68, 68, 0.3);
  --warning: #f59e0b;

  --nav-bg: rgba(5, 5, 16, 0.82);
  --shadow-card: 0 20px 45px -10px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.25);
  --mesh-opacity: 0.18;

  --badge-primary-bg: rgba(124, 58, 237, 0.25);
  --badge-primary-text: #ddd6fe;
  --badge-primary-border: rgba(167, 139, 250, 0.4);

  --badge-success-bg: rgba(16, 185, 129, 0.2);
  --badge-success-text: #6ee7b7;
  --badge-success-border: rgba(16, 185, 129, 0.4);

  --badge-warning-bg: rgba(245, 158, 11, 0.2);
  --badge-warning-text: #fde68a;
  --badge-warning-border: rgba(245, 158, 11, 0.4);

  --badge-danger-bg: rgba(239, 68, 68, 0.2);
  --badge-danger-text: #fca5a5;
  --badge-danger-border: rgba(239, 68, 68, 0.4);

  /* Party Theme Accents */
  --neon-pink: #ec4899;
  --neon-pink-glow: rgba(236, 72, 153, 0.45);
  --electric-purple: #8b5cf6;
  --neon-cyan: #06b6d4;
  --disco-gold: #f59e0b;
  --party-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(241, 245, 249, 0.9);
  --bg-glass-strong: #f1f5f9;
  --border-glass: rgba(15, 23, 42, 0.16);
  --border-subtle: rgba(15, 23, 42, 0.10);

  --text-main: #0f172a;       /* Maximum contrast deep slate */
  --text-muted: #1e293b;      /* Crisp, highly readable dark slate */
  --text-dim: #334155;        /* Clear secondary text, never washed out */
  --text-inverse: #ffffff;

  --primary: #6d28d9;         /* Rich purple */
  --primary-light: #5b21b6;
  --primary-glow: rgba(109, 40, 217, 0.2);
  --cyan: #0369a1;            /* Deep accessible blue-cyan for clear readability on light bg */
  --cyan-glow: rgba(3, 105, 161, 0.2);
  --gold: #b45309;            /* High contrast amber */
  --gold-glow: rgba(180, 83, 9, 0.25);

  --success: #047857;         /* Deep emerald */
  --success-glow: rgba(4, 120, 87, 0.2);
  --error: #b91c1c;           /* Deep crimson */
  --error-glow: rgba(185, 28, 28, 0.2);
  --warning: #b45309;

  --nav-bg: rgba(255, 255, 255, 0.95);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(109, 40, 217, 0.12);
  --mesh-opacity: 0.10;

  --badge-primary-bg: #ede9fe;
  --badge-primary-text: #3730a3;
  --badge-primary-border: #c7d2fe;

  --badge-success-bg: #d1fae5;
  --badge-success-text: #064e3b;
  --badge-success-border: #a7f3d0;

  --badge-warning-bg: #fef3c7;
  --badge-warning-text: #78350f;
  --badge-warning-border: #fde68a;

  --badge-danger-bg: #fee2e2;
  --badge-danger-text: #7f1d1d;
  --badge-danger-border: #fca5a5;

  /* Party Theme Accents (Light Mode High Contrast) */
  --neon-pink: #db2777;
  --neon-pink-glow: rgba(219, 39, 119, 0.25);
  --electric-purple: #7c3aed;
  --neon-cyan: #0284c7;
  --disco-gold: #d97706;
  --party-gradient: linear-gradient(135deg, #db2777 0%, #7c3aed 50%, #0284c7 100%);
}

/* --- RESET & DEFAULTS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Animated Gradient Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: var(--mesh-opacity);
  background: 
    radial-gradient(circle at 15% 20%, #7c3aed 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, #06b6d4 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, #f43f5e 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, #f59e0b 0%, transparent 35%);
  filter: blur(80px);
  animation: meshFloat 20s infinite alternate ease-in-out;
}

@keyframes meshFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-15px, 20px); }
  100% { transform: scale(1) translate(15px, -15px); }
}

/* Grid Pattern Overlay */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, black 60%, transparent 95%);
}

/* Floating Disco Party Ambient Orbs */
.disco-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.30;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .disco-orb {
  opacity: 0.16;
  filter: blur(75px);
}
.disco-orb-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--neon-pink) 0%, rgba(236, 72, 153, 0) 70%);
  top: 8%;
  left: 3%;
  animation: floatPartyOrb1 18s ease-in-out infinite alternate;
}
.disco-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--electric-purple) 0%, rgba(139, 92, 246, 0) 70%);
  top: 30%;
  right: 3%;
  animation: floatPartyOrb2 22s ease-in-out infinite alternate;
}
.disco-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--neon-cyan) 0%, rgba(6, 182, 212, 0) 70%);
  bottom: 12%;
  left: 25%;
  animation: floatPartyOrb3 20s ease-in-out infinite alternate;
}
@keyframes floatPartyOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 50px) scale(1.1); }
  100% { transform: translate(-25px, 20px) scale(0.95); }
}
@keyframes floatPartyOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, -35px) scale(1.12); }
  100% { transform: translate(30px, 40px) scale(0.9); }
}
@keyframes floatPartyOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.92); }
}

.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #6d28d9 0%, #0284c7 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 0;
}

.navbar .nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

.nav-titles {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.nav-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #9333ea 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, #a855f7 100%);
  box-shadow: 0 6px 25px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-glass-strong);
  color: var(--text-main);
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn-danger {
  background: var(--error);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--error-glow);
}

.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-glass);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.theme-icon {
  stroke: var(--text-main);
}

/* --- GLASS CARDS --- */
.card {
  background-color: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

/* --- FORMS & INPUTS --- */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder {
  color: var(--text-dim);
}

/* Password Input Wrapper & Visibility Toggle Button */
.password-input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.password-input-wrapper .form-input {
  width: 100% !important;
  padding-right: 3rem !important;
}

.password-toggle-btn {
  position: absolute !important;
  right: 0.75rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  color: var(--text-dim) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  border-radius: 6px !important;
  z-index: 10 !important;
  transition: color 0.2s ease, transform 0.15s ease !important;
}

.password-toggle-btn:hover {
  color: var(--text-main) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--primary) !important;
}

.password-toggle-btn .eye-icon {
  display: block;
  pointer-events: none;
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.badge-primary {
  background: var(--badge-primary-bg);
  color: var(--badge-primary-text) !important;
  border: 1px solid var(--badge-primary-border);
}

.badge-success {
  background: var(--badge-success-bg);
  color: var(--badge-success-text) !important;
  border: 1px solid var(--badge-success-border);
}

.badge-warning {
  background: var(--badge-warning-bg);
  color: var(--badge-warning-text) !important;
  border: 1px solid var(--badge-warning-border);
}

.badge-danger {
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text) !important;
  border: 1px solid var(--badge-danger-border);
}

/* Force High Contrast Badges in Light Mode (WCAG AAA) */
[data-theme="light"] .badge-primary {
  background-color: #ede9fe !important;
  color: #3730a3 !important;
  border: 1px solid #c7d2fe !important;
  font-weight: 800 !important;
}

[data-theme="light"] .badge-success {
  background-color: #d1fae5 !important;
  color: #064e3b !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .badge-warning {
  background-color: #fef3c7 !important;
  color: #78350f !important;
  border: 1px solid #fde68a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .badge-danger {
  background-color: #fee2e2 !important;
  color: #7f1d1d !important;
  border: 1px solid #fca5a5 !important;
  font-weight: 800 !important;
}

/* Exclusivity Notice Pill */
.exclusivity-notice {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-glass);
}

[data-theme="light"] .exclusivity-notice {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Blinking Red Receiver Name Animation */
.blinking-red-name {
  color: #ef4444 !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  animation: blinkRed 1.1s infinite ease-in-out;
  display: inline-block;
}

@keyframes blinkRed {
  0%, 100% {
    opacity: 1;
    color: #ef4444;
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.8), 0 0 2px #ffffff;
    transform: scale(1.02);
  }
  50% {
    opacity: 0.2;
    color: #991b1b;
    text-shadow: none;
    transform: scale(0.98);
  }
}

/* Disciplinary & Misconduct Alert Box */
.disciplinary-alert-box {
  background: rgba(239, 68, 68, 0.12);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
  animation: pulseDisciplinary 2.2s infinite ease-in-out;
}

@keyframes pulseDisciplinary {
  0%, 100% {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
  }
  50% {
    border-color: #dc2626;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.55);
  }
}

[data-theme="light"] .disciplinary-alert-box {
  background: #fef2f2;
  border-color: #dc2626;
  color: #7f1d1d;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(5, 5, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  position: relative;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--text-main);
  background: var(--bg-glass-strong);
  transform: rotate(90deg);
}

/* Toasts / Alerts */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 380px;
}

.toast {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--error);
}

.toast-warning {
  border-left: 4px solid var(--warning);
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- STEP PROGRESS TRACKER --- */
.steps-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.steps-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border-glass);
  z-index: 0;
  transform: translateY(-50%);
}

.step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: default;
}

.step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.step-item.active .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.step-item.active .step-label {
  color: var(--text-main);
}

.step-item.completed .step-circle {
  border-color: var(--success);
  background: var(--success);
  color: #ffffff;
}

/* --- FOOTER --- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  background-color: var(--bg-surface);
  padding: 3rem 0 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-helpline-box {
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.75rem;
}

.footer-phone-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.4rem;
  transition: color 0.2s ease;
}

.footer-phone-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* --- RESPONSIVE UTILITIES & GRIDS --- */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  align-items: center;
}

.pass-student-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.pass-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.key-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

/* ==========================================================================
   🎉 PARTY THEME EXTENSIONS & CELEBRATION OVERLAY
   ========================================================================== */

/* Shimmer Sheen for CTA Buttons */
.btn-party-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-party-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(28deg);
  animation: btnPartySweep 4.5s infinite ease-in-out;
  pointer-events: none;
}
@keyframes btnPartySweep {
  0% { left: -75%; }
  22% { left: 135%; }
  100% { left: 135%; }
}

/* Card Party Hover Glow */
.card-party-highlight {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-party-highlight:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 24px var(--neon-pink-glow);
}
[data-theme="light"] .card-party-highlight:hover {
  border-color: rgba(219, 39, 119, 0.4);
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.15), 0 0 20px rgba(219, 39, 119, 0.2);
}

/* DJ Equalizer Soundwave Bars */
.equalizer-container {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
}
[data-theme="light"] .equalizer-container {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
}
.eq-bar {
  width: 3.5px;
  background: linear-gradient(to top, var(--neon-pink), var(--neon-cyan));
  border-radius: 2px;
  animation: eqBounce 1.2s infinite ease-in-out;
}
.eq-bar:nth-child(1) { height: 45%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 90%; animation-delay: 0.35s; }
.eq-bar:nth-child(3) { height: 60%; animation-delay: 0.0s; }
.eq-bar:nth-child(4) { height: 100%; animation-delay: 0.45s; }
.eq-bar:nth-child(5) { height: 75%; animation-delay: 0.2s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.25); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
}

/* Replay Celebration Hero Trigger Button */
.btn-replay-party {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
[data-theme="light"] .btn-replay-party {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #be185d;
}
.btn-replay-party:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}
[data-theme="light"] .btn-replay-party:hover {
  background: #fce7f3;
  color: #9d174d;
}

/* Celebration Welcome Pop-up Overlay */
.party-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at center, rgba(13, 14, 31, 0.94) 0%, rgba(5, 5, 16, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
[data-theme="light"] .party-welcome-overlay {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%);
}
.party-welcome-overlay.party-overlay-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.party-welcome-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: linear-gradient(145deg, rgba(24, 20, 52, 0.96) 0%, rgba(13, 14, 31, 0.99) 100%);
  border-radius: 24px;
  padding: 2.5rem 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 50px rgba(236, 72, 153, 0.35);
  animation: partyPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow: hidden;
  border: 2px solid rgba(236, 72, 153, 0.3);
}
[data-theme="light"] .party-welcome-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.99) 100%);
  border: 2px solid rgba(109, 40, 217, 0.25);
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.25), 0 0 40px rgba(219, 39, 119, 0.2);
}

/* Holographic animated perimeter border */
.party-welcome-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4, #f59e0b, #ec4899);
  background-size: 400% 400%;
  z-index: -1;
  animation: borderPartySweep 6s linear infinite;
  opacity: 0.85;
}
@keyframes borderPartySweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes partyPopIn {
  0% { opacity: 0; transform: scale(0.85) translateY(24px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.party-disco-ball {
  font-size: 3.6rem;
  display: inline-block;
  margin-bottom: 0.6rem;
  animation: discoSway 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.65));
}
@keyframes discoSway {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.1); }
}

.party-welcome-title {
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.85rem 0 0.6rem;
  color: var(--text-main);
}

.party-welcome-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 1.4rem;
}

.party-host-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #ddd6fe;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
[data-theme="light"] .party-host-badge {
  background: #ede9fe;
  border-color: #c7d2fe;
  color: #4338ca;
}

.party-close-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  z-index: 2;
}
.party-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: scale(1.12);
}

.party-timer-container {
  margin-top: 1.4rem;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
[data-theme="light"] .party-timer-container {
  background: rgba(15, 23, 42, 0.1);
}
.party-timer-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--neon-pink), var(--electric-purple), var(--neon-cyan));
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.1s linear;
}

.party-dismiss-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  font-weight: 500;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .admin-table th, .admin-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.82rem;
  }
}

/* Tablets & Large Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 0.75rem 0;
  }
  .nav-subtitle {
    display: none;
  }
  .nav-title {
    font-size: 1.05rem;
  }
  .nav-logo {
    width: 34px;
    height: 34px;
  }
  
  /* Containers & Spacing */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Payment Grid collapses to 1 column */
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Admin Header and Tabs */
  .admin-tabs-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    justify-content: flex-start;
  }
  .admin-tab-btn {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
  }

  .admin-search-bar {
    width: 100%;
  }
  .admin-search-bar input,
  .admin-search-bar select {
    width: 100% !important;
  }
  #export-csv-btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Cards */
  .card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  /* Modals */
  .modal-card {
    padding: 1.25rem;
    max-width: 95vw;
    border-radius: 16px;
    margin: 0.5rem;
  }

  /* Key info grid */
  .key-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Standard & Small Mobile (max-width: 540px) */
@media (max-width: 540px) {
  /* Headings */
  h1 {
    font-size: 1.65rem !important;
  }
  h2 {
    font-size: 1.35rem !important;
  }

  /* Pass Student Card: Center avatar & stack metadata */
  .pass-student-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .pass-meta-grid {
    grid-template-columns: 1fr;
    text-align: left;
    margin-top: 0.75rem;
  }
  #pass-printable-card {
    padding: 1.25rem;
  }

  /* Step Progress Tracker */
  .steps-wrapper {
    margin-bottom: 1.75rem;
  }
  .steps-wrapper::before {
    top: 17px;
    transform: none;
    left: 8%;
    right: 8%;
  }
  .step-circle {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
  .step-label {
    display: none; /* Hide labels on mobile to avoid overcrowding */
  }

  /* Hero CTA Buttons */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Countdown Grid */
  .countdown-grid {
    gap: 0.4rem;
  }
  .countdown-grid > div {
    padding: 0.6rem 0.25rem !important;
  }
  .countdown-grid div[id^="timer-"] {
    font-size: 1.35rem !important;
  }

  /* Terms Scroll Box */
  #terms-scroll-box {
    height: 200px !important;
    padding: 0.9rem !important;
    font-size: 0.82rem !important;
  }

  /* Button Touch Heights */
  .btn {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 36px;
  }

  /* Input fields minimum height */
  .form-input, .form-select {
    min-height: 44px;
    font-size: 0.92rem;
  }

  /* Nav actions */
  .nav-actions {
    gap: 0.4rem;
  }
  .nav-actions .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }
  #nav-user-pill {
    padding: 0.2rem 0.5rem !important;
  }
  #nav-user-name {
    max-width: 80px !important;
    font-size: 0.75rem !important;
  }
  #admin-user-tag {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Celebration Overlay Mobile Adjustments */
  .party-welcome-card {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 20px;
  }
  .party-disco-ball {
    font-size: 2.8rem;
  }
  .party-welcome-title {
    font-size: 1.45rem !important;
  }
  .party-welcome-subtitle {
    font-size: 0.88rem;
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .key-info-grid {
    grid-template-columns: 1fr;
  }
  .countdown-grid div[id^="timer-"] {
    font-size: 1.15rem !important;
  }
  .btn-primary.btn-lg, .btn-secondary.btn-lg {
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
  }
}
