/* ============================================================
   VISITOR REGISTRATION SYSTEM - CORE STYLESHEET
   ============================================================ */

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

/* ── Lucide Icons Global Rules ── */
.lucide {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2px;
  vertical-align: -0.15em;
  display: inline-block;
}
.lucide-spin {
  animation: lucide-spin 1.5s linear infinite;
}
@keyframes lucide-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── CSS Variables ── */
:root {
  --primary:       #4f46e5; /* Premium Indigo */
  --primary-light: #6366f1; /* Light Indigo */
  --primary-dark:  #3730a3;
  --accent:        #8b5cf6; /* Vibrant Violet */
  --accent-light:  #a78bfa;
  --success:       #10b981; /* Premium Emerald */
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #06b6d4;

  --bg:            #f8fafc;
  --bg-card:       rgba(255, 255, 255, 0.75); /* Glassmorphic white */
  --bg-muted:      rgba(241, 245, 249, 0.6);
  --border:        rgba(226, 232, 240, 0.8);
  --border-focus:  #6366f1;

  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:     0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-lg:     0 20px 50px -12px rgba(0,0,0,0.08);
  --shadow-xl:     0 30px 70px -15px rgba(15, 23, 42, 0.08);

  --radius-sm:     10px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --radius-full:   9999px;

  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Mode ── */
body.dark {
  --bg:            #090d16; /* Deep space slate */
  --bg-card:       rgba(30, 41, 59, 0.6); /* Glassmorphic slate */
  --bg-muted:      rgba(15, 23, 42, 0.5);
  --border:        rgba(51, 65, 85, 0.55);
  --border-focus:  #8b5cf6;
  --text:          #f8fafc;
  --text-muted:    #94a3b8;
  --text-light:    #475569;
  --shadow-md:     0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-lg:     0 20px 50px -12px rgba(0, 0, 0, 0.4);
  --shadow-xl:     0 30px 70px -15px rgba(0, 0, 0, 0.5);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Aura Blobs */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0) 70%);
  z-index: -2;
  pointer-events: none;
  filter: blur(80px);
}
body::after {
  content: "";
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(168, 85, 247, 0) 70%);
  z-index: -2;
  pointer-events: none;
  filter: blur(80px);
}
body.dark::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
}
body.dark::after {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0) 70%);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary-light), var(--accent)); border-radius: 99px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 1rem; left: 2rem; right: 2rem;
  z-index: 1000;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}
body.dark .navbar {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  text-decoration: none;
}
.nav-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: rgba(99, 102, 241, 0.1); }
body.dark .nav-link:hover { color: var(--accent-light); background: rgba(168, 85, 247, 0.1); }
.nav-link.active { color: var(--primary); background: rgba(99, 102, 241, 0.08); font-weight: 700; }
body.dark .nav-link.active { color: var(--accent-light); background: rgba(168, 85, 247, 0.08); }

/* Language Selector */
.lang-select {
  background: rgba(241, 245, 249, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
body.dark .lang-select {
  background: rgba(15, 23, 42, 0.4);
}
.lang-select:hover { border-color: var(--primary-light); }

/* Dark mode toggle */
.dark-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.6);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  color: var(--text);
}
body.dark .dark-toggle {
  background: rgba(15, 23, 42, 0.4);
}
.dark-toggle:hover { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(37,99,235,0.6) 0%,
    rgba(124,58,237,0.45) 50%,
    rgba(6,182,212,0.3) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 800px;
  animation: heroFadeIn 1s ease both;
}
@keyframes heroFadeIn {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
  margin-bottom: 1.5rem;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(96,165,250,0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(96,165,250,0); }
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #bfdbfe 60%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,99,235,0.55); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(10px)} }

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section { padding: 5rem 0; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid #bfdbfe;
}
body.dark .section-tag { background: #1e3a5f; border-color: #2563eb; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ============================================================
   EVENT DETAILS CARDS
   ============================================================ */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.event-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.icon-blue   { background: #eff6ff; }
.icon-purple { background: #f5f3ff; }
.icon-green  { background: #f0fdf4; }
.icon-orange { background: #fff7ed; }
.icon-teal   { background: #f0fdfa; }
.icon-pink   { background: #fdf2f8; }
body.dark .icon-blue   { background: #1e3a5f; }
body.dark .icon-purple { background: #2d1b69; }
body.dark .icon-green  { background: #052e16; }
body.dark .icon-orange { background: #431407; }
body.dark .icon-teal   { background: #042f2e; }
body.dark .icon-pink   { background: #4a044e; }

.event-card-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); font-weight: 600; margin-bottom: 0.4rem; }
.event-card-value { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.event-desc-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 2rem;
  grid-column: 1 / -1;
}
body.dark .event-desc-card { background: linear-gradient(135deg,#1e3a5f,#2d1b69); border-color:#334155; }
.event-desc-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }

/* ============================================================
   REGISTRATION FORM SECTION
   ============================================================ */
.form-section { background: var(--bg-muted); }
body.dark .form-section { background: var(--bg); }

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}
/* High-end double-border shine effect for glass card */
.form-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
body.dark .form-card::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
}

/* Timeline Stepper */
.form-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 3.5rem;
  padding: 0 1rem;
  background: none;
  border: none;
  overflow: visible;
}
.form-steps::before {
  content: "";
  position: absolute;
  top: 21px; /* Center of the 42px circles */
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: var(--radius-full);
}
.form-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex: none;
}
.form-step:hover {
  background: none;
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
body.dark .step-num {
  background: #111827;
}
.form-step.active .step-num {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}
.form-step.completed .step-num {
  background: var(--success);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
.form-step span:not(.step-num) {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.form-step.active span:not(.step-num) {
  color: var(--primary-light);
  font-weight: 700;
}
.form-step.completed span:not(.step-num) {
  color: var(--success);
}

/* Form panels */
.form-panel { display: none; }
.form-panel.active { display: block; animation: panelSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes panelSlideIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* Form Grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media(max-width:640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
.form-label span { color: var(--danger); margin-left: 2px; }
.form-label i {
  color: var(--primary-light);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.form-group:focus-within .form-label i {
  color: var(--accent);
}

/* Glassmorphic Form Control */
.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: rgba(248, 250, 252, 0.45);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
body.dark .form-control {
  background: rgba(15, 23, 42, 0.35);
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-control:focus {
  border-color: var(--border-focus);
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-focus), 0 0 16px rgba(99, 102, 241, 0.2);
}
.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger), 0 0 12px rgba(239, 68, 68, 0.15);
}

.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md); flex:1; }
.input-group-btn {
  padding: 0 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.input-group-btn:hover { opacity: 0.9; transform: scaleX(1.02); }
.input-group-btn:disabled { opacity:0.55; cursor:not-allowed; }

/* OTP Box */
.otp-panel {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: panelSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.otp-panel.show { display: flex; gap:0.75rem; align-items: flex-end; flex-wrap: wrap; }
.otp-panel .otp-label { font-size:0.82rem; font-weight:600; color:var(--primary-light); margin-bottom:0.3rem; display:block; }
.otp-debug {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.25rem 0.8rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--warning);
}

/* Premium Photo upload dropzone */
.photo-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(241, 245, 249, 0.35);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
body.dark .photo-upload { background: rgba(22, 32, 50, 0.25); }
.photo-upload:hover, .photo-upload.dragging {
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.06);
}
.photo-upload input[type="file"] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; z-index: 5; }
.photo-upload-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.photo-upload p { font-size: 0.88rem; color: var(--text-muted); margin:0; }
.photo-upload p strong { color: var(--primary-light); }
.photo-preview {
  display: none;
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  border: 3px solid transparent;
  background: linear-gradient(135deg, var(--primary-light), var(--accent)) border-box;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

/* Checkbox */
.form-check { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary-light);
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}
.form-check label { font-size: 0.88rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.form-check label a { color: var(--primary-light); text-decoration: none; font-weight: 600; transition: var(--transition); }
.form-check label a:hover { color: var(--accent); }

/* Premium Shimmer Sweep Submit Button */
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
  margin-top: 1.5rem;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
}
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.55);
}
.btn-submit:hover::before {
  opacity: 1;
}
.btn-submit:active {
  transform: translateY(-1px);
}
.btn-submit:disabled { opacity:0.65; cursor:not-allowed; transform:none; box-shadow: none; }

/* Step navigation */
.step-nav { display:flex; justify-content: space-between; margin-top: 2.25rem; gap:1rem; }
.btn-next, .btn-prev {
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.btn-next { background: linear-gradient(135deg, var(--primary), var(--accent)); color:#fff; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25); }
.btn-next:hover { transform:translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4); }
.btn-prev { background: rgba(241, 245, 249, 0.6); color: var(--text-muted); border:1px solid var(--border); }
body.dark .btn-prev { background: rgba(30, 41, 59, 0.4); }
.btn-prev:hover { background: var(--border); color: var(--text); transform: translateY(-1px); }

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.show { display: flex; animation: fadeIn 0.4s ease; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  animation: modalSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
body.dark .modal::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 2.25rem 2rem;
  text-align: center;
  color: white;
  position: relative;
}
.success-icon {
  width: 64px; height: 64px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes successPop { from{transform:scale(0)} to{transform:scale(1)} }
.modal-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.modal-header p { opacity:0.85; font-size:0.88rem; }

.modal-body { padding: 2rem; }

/* Holographic Premium Visitor Badge Access Pass */
.visitor-badge {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: white;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.4s ease;
}
.visitor-badge:hover {
  transform: translateY(-2px);
}
/* Holographic iridescent shine gradient overlay */
.visitor-badge::after {
  content: "";
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 55%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.9s ease;
  pointer-events: none;
}
.visitor-badge:hover::after {
  top: 150%;
  left: 150%;
}
.badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}
.badge-event-name { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: #a5b4fc; font-weight: 700; }
.badge-visitor-id {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-body { display: flex; gap: 1.25rem; align-items: center; }
.badge-photo {
  width: 74px; height: 74px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.badge-photo img { width:100%; height:100%; border-radius:50%; object-fit:cover; background: #090d16; }
.badge-photo span { font-size: 1.8rem; }
.badge-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.badge-name { font-size: 1.2rem; font-weight: 800; color: #ffffff; letter-spacing: -0.01em; }
.badge-detail { font-size: 0.82rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 6px; }
.badge-detail i { color: var(--primary-light); width: 14px; opacity: 0.85; }
.badge-type-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.chip-attendee  { background: rgba(30, 64, 175, 0.35); color: #bfdbfe; border-color: rgba(191, 219, 254, 0.15); }
.chip-speaker   { background: rgba(109, 40, 217, 0.35); color: #ddd6fe; border-color: rgba(221, 214, 254, 0.15); }
.chip-exhibitor { background: rgba(6, 95, 70, 0.35); color: #a7f3d0; border-color: rgba(167, 243, 208, 0.15); }
.chip-vip       { background: rgba(146, 64, 14, 0.35); color: #fde68a; border-color: rgba(253, 230, 138, 0.15); }
.chip-media     { background: rgba(30, 58, 95, 0.35); color: #93c5fd; border-color: rgba(147, 197, 253, 0.15); }

.badge-qr { margin-top: 0.75rem; text-align: center; }
.badge-qr #qr-code-container {
  display: inline-block;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.badge-qr canvas { border-radius: var(--radius-sm); }

/* Modal Action Buttons */
.modal-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-download {
  flex: 1;
  min-width: 130px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: 'Inter', sans-serif;
}
.btn-dl-qr    { background: linear-gradient(135deg, var(--primary), var(--accent)); color:#fff; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); }
.btn-dl-qr:hover { opacity:0.9; transform:translateY(-2px); box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3); }
.btn-dl-print { background: rgba(241, 245, 249, 0.6); color:var(--text); border:1px solid var(--border); }
body.dark .btn-dl-print { background: rgba(30, 41, 59, 0.4); }
.btn-dl-print:hover { background:var(--border); transform:translateY(-1px); }
.btn-dl-wa    { background: #25d366; color:#fff; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2); }
.btn-dl-wa:hover { background:#20ba59; transform:translateY(-2px); box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.875rem;
}
.site-footer a { color: #60a5fa; text-decoration: none; }
.site-footer .footer-links { display:flex; gap:1.5rem; justify-content:center; margin-bottom:1rem; flex-wrap:wrap; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: toastSlide 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  font-size: 0.88rem;
  line-height: 1.4;
}
@keyframes toastSlide { from{opacity:0;transform:translateX(100%)} to{opacity:1;transform:translateX(0)} }
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error   { border-left: 4px solid var(--danger); }
.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.toast-info    { border-left: 4px solid var(--info); }
.toast-icon { font-size: 1.2rem; flex-shrink:0; }
.toast-msg  { font-weight: 500; color: var(--text); }
.toast-sub  { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.toast-fade { animation: toastFade 0.35s ease forwards; }
@keyframes toastFade { to{opacity:0;transform:translateX(100%);height:0;padding:0;margin:0;border:0;} }

/* ============================================================
   SPINNER / LOADER
   ============================================================ */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ============================================================
   ADMIN - SHARED
   ============================================================ */
.admin-body {
  background: var(--bg);
  min-height: 100vh;
  padding-top: 68px;
}
.admin-container { max-width: 1380px; margin:0 auto; padding:2rem 1.5rem; }

.stats-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:1.25rem; margin-bottom:2rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.stat-card::before {
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:3.5px;
}
.stat-card.blue::before   { background:linear-gradient(90deg,var(--primary),var(--primary-light)); }
.stat-card.purple::before { background:linear-gradient(90deg,var(--accent),var(--accent-light)); }
.stat-card.green::before  { background:linear-gradient(90deg,#059669,#34d399); }
.stat-card.orange::before { background:linear-gradient(90deg,#d97706,#fbbf24); }
.stat-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-xl), 0 10px 30px -10px rgba(99, 102, 241, 0.15); 
  border-color: rgba(99, 102, 241, 0.3);
}
.stat-icon { 
  width: 52px; height: 52px; 
  border-radius: var(--radius-md); 
  display: flex; align-items: center; justify-content: center; 
  font-size: 1.45rem; flex-shrink: 0; 
  transition: var(--transition);
}
.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-card.blue .stat-icon { background: rgba(79, 70, 229, 0.08); color: var(--primary); border: 1px solid rgba(79, 70, 229, 0.15); }
.stat-card.green .stat-icon { background: rgba(16, 185, 129, 0.08); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.15); }
.stat-card.orange .stat-icon { background: rgba(245, 158, 11, 0.08); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.15); }
.stat-card.purple .stat-icon { background: rgba(139, 92, 246, 0.08); color: var(--accent); border: 1px solid rgba(139, 92, 246, 0.15); }

.stat-value { font-family:'Poppins',sans-serif; font-size:2.15rem; font-weight:800; line-height:1; color:var(--text); letter-spacing:-0.02em; }
.stat-label { font-size:0.75rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); font-weight:700; margin-top:4px; }

/* Charts */
.charts-grid { display:grid; grid-template-columns: 2fr 1fr; gap:1.25rem; margin-bottom:2rem; }
@media(max-width:900px) { .charts-grid { grid-template-columns:1fr; } }
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.chart-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}
.chart-card h3 { font-size:1.05rem; font-weight:700; color:var(--text); margin-bottom:1.25rem; display:flex; align-items:center; gap:8px; }

/* Admin table */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.table-search {
  flex: 1;
  min-width: 180px;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
  font-family:'Inter',sans-serif;
}
.table-search:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,0.1); }
.table-filter {
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.82rem;
  font-weight:500;
  outline: none;
  cursor: pointer;
  font-family:'Inter',sans-serif;
}
.btn-export {
  padding: 0.6rem 1.1rem;
  background: linear-gradient(135deg,var(--success),#059669);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display:flex; align-items:center; gap:5px;
  font-family:'Inter',sans-serif;
  transition:var(--transition);
  text-decoration:none;
}
.btn-export:hover { opacity:.88; transform:translateY(-1px); }

.data-table { width:100%; border-collapse:collapse; }
.data-table thead { background:var(--bg-muted); }
.data-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-muted); }
.data-table .vis-id { font-family:monospace; font-weight:700; color:var(--primary); }
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-registered { background:#eff6ff; color:#1d4ed8; }
.status-checked    { background:#f0fdf4; color:#15803d; }
body.dark .status-registered { background:#1e3a5f; color:#93c5fd; }
body.dark .status-checked    { background:#052e16; color:#4ade80; }
.btn-checkin {
  padding: 0.3rem 0.7rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition:var(--transition);
  font-family:'Inter',sans-serif;
}
.btn-checkin:hover { background: var(--primary-dark); }
.btn-checkin:disabled { background:var(--success); cursor:default; }

.btn-delete {
  padding: 0.3rem 0.7rem;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition:var(--transition);
  font-family:'Inter',sans-serif;
}
.btn-delete:hover { background: #dc2626; }

/* QR Scanner */
.scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.scanner-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}
.scanner-card h3 { font-size:1.05rem; font-weight:700; margin-bottom:1rem; display:flex; align-items:center; gap:8px; }
#qr-reader { border-radius:var(--radius-md); overflow:hidden; }
#qr-reader video { border-radius:var(--radius-md); }
.scan-result {
  margin-top:1rem;
  padding:1rem;
  border-radius:var(--radius-md);
  font-size:0.88rem;
  font-weight:600;
  display:none;
}
.scan-result.ok  { background:#f0fdf4; color:#15803d; border:1px solid #86efac; display:block; }
.scan-result.err { background:#fef2f2; color:#b91c1c; border:1px solid #fca5a5; display:block; }
.scan-result.warn{ background:#fffbeb; color:#92400e; border:1px solid #fde68a; display:block; }
body.dark .scan-result.ok  { background:#052e16; color:#4ade80; border-color:#16a34a; }
body.dark .scan-result.err { background:#450a0a; color:#f87171; border-color:#dc2626; }
body.dark .scan-result.warn{ background:#431407; color:#fde68a; border-color:#d97706; }

/* Admin Login */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 2rem;
}
.admin-login-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  text-align: center;
}
.admin-login-card .brand { font-size:2rem; margin-bottom:0.5rem; }
.admin-login-card h2 { font-size:1.5rem; font-weight:700; color:#f1f5f9; margin-bottom:0.3rem; }
.admin-login-card p { color:#64748b; font-size:0.88rem; margin-bottom:2rem; }
.admin-login-card .form-control {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
  margin-bottom: 1rem;
}
.admin-login-card .form-control:focus { border-color:var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    top: 0.5rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0 1rem;
    height: 54px;
  }
  .form-card { padding: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .form-steps { font-size: 0.72rem; }
  .nav-brand span { font-size: 1rem; }
  .nav-link { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .nav-link:not(.active) { display: none; }
  .nav-link.active { font-size: 0.75rem; padding: 0.35rem 0.65rem; }
  .navbar { left: 0.5rem; right: 0.5rem; padding: 0 0.75rem; height: 50px; }
  .badge-body { flex-direction: column; align-items: center; text-align: center; }
  .nav-brand .brand-icon { width: 30px; height: 30px; font-size: 0.85rem; }
}

/* ============================================================
   PRINT BADGE STYLES
   ============================================================ */
@media print {
  body > *:not(#print-badge-area) { display: none !important; }
  #print-badge-area {
    display: block !important;
    width: 90mm;
    min-height: 120mm;
    margin: 0 auto;
    padding: 8mm;
    background: #0f172a;
    color: white;
    font-family: 'Inter', sans-serif;
    border-radius: 6mm;
  }
  #print-badge-area * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
#print-badge-area { display: none; }

/* Pagination */
.pagination { display:flex; gap:0.5rem; justify-content:center; padding:1rem; flex-wrap:wrap; }
.page-btn {
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family:'Inter',sans-serif;
}
.page-btn:hover, .page-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ============================================================
   ADMIN SIDEBAR LAYOUT
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.admin-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}
.sidebar-brand {
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.sidebar-brand span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.sidebar-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.nav-item, .nav-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}
.nav-item:hover, .nav-item-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}
body.dark .nav-item:hover, body.dark .nav-item-link:hover {
  background: rgba(168, 85, 247, 0.08);
  color: var(--accent-light);
}
.nav-item.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}
.nav-item-link.logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}
.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}
.version-tag {
  font-size: 0.72rem;
  color: var(--text-light);
  font-family: monospace;
}

/* Main Area */
.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-topbar {
  padding: 1.25rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(20px);
}
.topbar-welcome h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.topbar-welcome p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-refresh {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.btn-refresh:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}
.admin-content-area {
  padding: 2rem;
  flex: 1;
}
.admin-tab-content {
  display: none;
  animation: fadeInTab 0.4s ease;
}
.admin-tab-content.active {
  display: block;
}
@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.admin-footer {
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}
.admin-footer .sec-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-weight: 600;
}

@media(max-width: 992px) {
  .admin-sidebar {
    width: 70px;
  }
  .admin-sidebar span, .sidebar-brand span, .version-tag, .sidebar-divider {
    display: none;
  }
  .sidebar-brand {
    justify-content: center;
    padding: 1rem 0;
  }
  .admin-main {
    margin-left: 70px;
  }
  .nav-item, .nav-item-link {
    justify-content: center;
    padding: 0.8rem;
  }
  .nav-item i, .nav-item-link i {
    font-size: 1.2rem;
  }
}


/* ============================================================
   ADMIN TOAST NOTIFICATIONS
   ============================================================ */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 1rem; pointer-events: none; }
.toast { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.25rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3); display: flex; align-items: flex-start; gap: 0.75rem; min-width: 300px; max-width: 400px; animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; pointer-events: auto; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast.toast-fade { opacity: 0; transform: translateX(20px); }
.toast-icon { font-size: 1.25rem; margin-top: 2px; }
.toast-msg { color: var(--text); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.toast-sub { color: var(--text-muted); font-size: 0.82rem; line-height: 1.4; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--primary-light); }

@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   ADMIN TABS
   ============================================================ */
.admin-tab-content { display: none; animation: fadeIn 0.3s ease; }
.admin-tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   MOBILE RESPONSIVENESS (ADMIN DASHBOARD)
   ============================================================ */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  
  /* Transform sidebar into a bottom navigation bar */
  .admin-sidebar {
    width: 100%; height: 65px; top: auto; bottom: 0;
    flex-direction: row; border-right: none; border-top: 1px solid var(--border);
    z-index: 9999; padding: 0;
  }
  .sidebar-brand, .sidebar-divider, .sidebar-footer, .nav-item-link, .version-tag { display: none !important; }
  .sidebar-nav {
    flex-direction: row; padding: 0; justify-content: space-around; align-items: center; width: 100%;
  }
  .nav-item { padding: 0.4rem; flex-direction: column; gap: 4px; font-size: 0.65rem; border-radius: 8px; }
  .nav-item i { font-size: 1.1rem; }
  .nav-item span { display: block !important; }
  
  /* Adjust main content area to make room for bottom nav */
  .admin-main { margin-left: 0; padding-bottom: 75px; }
  
  /* Topbar stacking */
  .admin-topbar { flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .btn-export span, .btn-refresh span { display: none; }
  .admin-content-area { padding: 1rem; }
  
  /* Forms and toolbars */
  .table-toolbar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .table-toolbar > div { flex-direction: column; align-items: stretch; width: 100%; }
  .table-search, .table-filter { width: 100%; min-width: unset !important; }
  
  /* Ensure tables scroll horizontally properly */
  .table-card { padding: 1rem; }
  .data-table th, .data-table td { padding: 0.75rem 0.5rem; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .admin-login-card { padding: 2rem 1.5rem; }
}
