/* ═══════════════════════════════════════════════════════════
   IYEC — Global Styles
   Design System: Saffron (#FF9933) · Navy (#030d1a) · Green (#138808)
═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ────────────────────────────────── */
:root {
  --saffron: #FF9933;
  --saffron-dark: #e8851f;
  --navy: #030d1a;
  --navy-mid: #0d1b2e;
  --green: #138808;
  --green-light: #1aa50a;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Base Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: #fff;
  color: #1e293b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Keyframe Animations ──────────────────────────────── */
@keyframes orb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.08); }
  66% { transform: translate(30px, -20px) scale(0.92); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255,153,51,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255,153,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,153,51,0); }
}

/* ── Utility Classes ──────────────────────────────────── */
.text-saffron   { color: var(--saffron); }
.text-navy      { color: var(--navy); }
.text-green     { color: var(--green); }
.bg-saffron     { background-color: var(--saffron); }
.bg-navy        { background-color: var(--navy); }
.bg-green       { background-color: var(--green); }
.border-saffron { border-color: var(--saffron); }

.animate-orb1    { animation: orb1 12s ease-in-out infinite; }
.animate-orb2    { animation: orb2 14s ease-in-out infinite 2s; }
.animate-float   { animation: float 6s ease-in-out infinite; }
.animate-float-d { animation: float 6s ease-in-out infinite 3s; }
.animate-bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 3s linear infinite; background-size: 200% auto; }
.animate-spin    { animation: spin 0.8s linear infinite; }
.animate-pulse   { animation: pulse-ring 2s ease-in-out infinite; }
.animate-fadein  { animation: fadeIn 0.5s ease forwards; }

/* ── Dot Grid Background ──────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.07;
}

/* ── Gradient Text ────────────────────────────────────── */
.gradient-text-saffron {
  background: linear-gradient(to right, #FF9933, #fbbf24, #FF9933);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-white {
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ───────────────────────────────────────────── */
/* ── Site Header (fixed wrapper) ──────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  overflow: visible;
}

/* Tricolor announcement bar */
.tri-bar {
  background: linear-gradient(135deg, var(--saffron), #ffffff 50%, var(--green));
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  color: #1a1a1a;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main navbar */
#navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Desktop nav trigger buttons */
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  border-radius: 6px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-trigger:hover, .nav-trigger.nav-active {
  color: var(--navy);
  background: #f8fafc;
}

/* Desktop plain nav links */
.nav-plain-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-plain-link:hover, .nav-plain-link.nav-active {
  color: var(--navy);
  background: #f8fafc;
}

/* Login button */
.nav-login-btn {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-login-btn:hover { background: #0d2147; }

/* Member avatar circle */
.nav-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.15s;
}
.nav-avatar:hover { background: #0d2147; }

/* Profile dropdown */
.nav-profile-dd {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 280px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  z-index: 60;
}
.nav-dd-link-outline {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: #1e293b;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dd-link-outline:hover { background: #f8fafc; }
.nav-dd-link-navy {
  display: block;
  background: var(--navy);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dd-link-navy:hover { background: #0d2147; }

/* ── Mega Menu (white theme, matching React) ─────────── */
.mega-panel {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(100,116,139,0.2);
  overflow: hidden;
  z-index: 1000;
  display: none;
  animation: slideDown 0.15s ease forwards;
  min-width: 400px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.mega-panel.show { display: block; }

/* Grid layout: 3 cols (2 content + 1 featured) */
.mega-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 240px;
}
.mega-cols-2 {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border-right: 1px solid #f1f5f9;
}
.mega-featured {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

/* Section heading */
.mega-section-head {
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  padding: 0 8px;
}

/* Item link rows */
.mega-item-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 8px 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.12s;
  color: inherit;
  margin-bottom: 2px;
}
.mega-item-link:hover { background: #f8fafc; }
.mega-icon { font-size: 1.25rem; margin-top: 1px; flex-shrink: 0; line-height: 1; }
.mega-item-title { font-size: 0.875rem; font-weight: 700; color: #1e293b; line-height: 1.3; }
.mega-item-link:hover .mega-item-title { color: var(--navy); }
.mega-item-desc { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }

/* Featured card elements */
.mega-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
}
.mega-feat-title {
  color: #fff;
  font-weight: 900;
  font-size: 0.9375rem;
  line-height: 1.3;
  margin-top: 1rem;
}
.mega-feat-desc {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}
.mega-feat-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1.25rem;
  transition: opacity 0.15s;
}
.mega-feat-link:hover { opacity: 0.75; }

/* Services dropdown specifics */
.svc-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.svc-cat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.svc-cat-link:hover { border-color: rgba(10,25,47,0.2); color: var(--navy); background: rgba(219,234,254,0.3); }
.svc-cat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); flex-shrink: 0; }
.svc-view-all-btn {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid rgba(10,25,47,0.2);
  border-radius: 8px;
  padding: 6px 12px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.svc-view-all-btn:hover { background: var(--navy); color: #fff; }
.hover-saffron:hover { color: var(--saffron) !important; }

/* ── Mobile Menu (white theme, accordion) ─────────────── */
.mob-drawer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  max-height: 80vh;
  overflow-y: auto;
}
.mob-acc-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.mob-acc-btn:hover { background: #f8fafc; color: var(--navy); }
.mob-acc-panel { padding: 0 4px 4px; }
.mob-acc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  color: #475569;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.mob-acc-link:hover { background: #f8fafc; color: var(--navy); }
.mob-plain-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background 0.12s;
}
.mob-plain-link:hover { background: #f8fafc; color: var(--navy); }
.mob-svc-cat {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  text-decoration: none;
  transition: background 0.12s;
}
.mob-svc-cat:hover { background: #f1f5f9; color: var(--navy); }
.mob-chevron { flex-shrink: 0; transition: transform 0.2s; }

/* Legacy mobile-link (keep for backward compat) */
.mobile-link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  border-radius: 0.75rem;
  transition: background 0.15s, color 0.15s;
}
.mobile-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-section-title {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  padding: 0.5rem 1rem 0.25rem;
  margin-top: 0.5rem;
}

/* ── Hero Section ─────────────────────────────────────── */
.hero-orb-1 {
  position: absolute;
  top: -160px;
  left: -160px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(255,153,51,0.12);
  filter: blur(160px);
  pointer-events: none;
}
.hero-orb-2 {
  position: absolute;
  bottom: -160px;
  right: -160px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(19,136,8,0.08);
  filter: blur(160px);
  pointer-events: none;
}

/* ── Section Reveal ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Footer Link ──────────────────────────────────────── */
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  display: inline-block;
}
.footer-link:hover { color: #fff; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-saffron {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #FF9933, #e8851f);
  box-shadow: 0 8px 24px rgba(255,153,51,0.25);
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-saffron:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,153,51,0.35); color: #fff; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  background: transparent;
  border: 2px solid rgba(255,255,255,0.15);
  transition: all 0.25s;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); color: #fff; }

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--navy);
  border: none;
  transition: all 0.25s;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ── Card Styles ──────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.white-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ── Section Labels ───────────────────────────────────── */
.section-label {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(255,153,51,0.1);
  color: var(--saffron);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

/* ── Form Styles ──────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: rgba(255,153,51,0.5); }
.form-input::placeholder { color: rgba(255,255,255,0.2); }

.form-input-light {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input-light:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,153,51,0.12); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.form-label-light { color: #1e293b; }
.form-label-dark  { color: rgba(255,255,255,0.7); }

/* ── Admin Shell ──────────────────────────────────────── */
.admin-sidebar {
  width: 260px;
  height: 100vh;           /* fixed height so flex children can scroll */
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,0.06);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  overflow: hidden;        /* clip, let inner nav scroll */
}
.admin-sidebar nav {
  flex: 1;
  min-height: 0;           /* required for flexbox overflow scroll */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.admin-sidebar nav::-webkit-scrollbar { width: 4px; }
.admin-sidebar nav::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.admin-main {
  margin-left: 260px;
  min-height: 100vh;
  background: #f1f5f9;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: all 0.15s;
  text-decoration: none;
}
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.admin-nav-link.active { color: var(--saffron); background: rgba(255,153,51,0.1); }

/* ── Admin Components ─────────────────────────────────── */

/* Card */
.admin-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.admin-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-card-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 900;
  color: #1e293b;
  font-size: 0.9375rem;
}
.admin-card-title .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.filter-tab {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-tab:hover { background: #f1f5f9; color: #1e293b; }
.filter-tab.active { background: #030d1a; color: #fff; border-color: #030d1a; }

/* Search box */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.375rem 0.625rem 0.375rem 0.875rem;
  min-width: 200px;
  flex: 1;
  max-width: 360px;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: #1e293b;
  background: transparent;
  min-width: 0;
}
.search-box input::placeholder { color: #94a3b8; }

/* Action buttons */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-action-approve { background: #dcfce7; color: #16a34a; }
.btn-action-approve:hover { background: #bbf7d0; }
.btn-action-reject { background: #fee2e2; color: #dc2626; }
.btn-action-reject:hover { background: #fecaca; }
.btn-action-view { background: #dbeafe; color: #2563eb; }
.btn-action-view:hover { background: #bfdbfe; }
.btn-action-delete { background: #fee2e2; color: #dc2626; }
.btn-action-delete:hover { background: #fecaca; }

/* Admin buttons */
.btn-admin,
.btn-admin-primary,
.btn-admin-secondary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-admin-primary {
  background: var(--saffron);
  color: var(--navy);
  border-color: var(--saffron);
}
.btn-admin-primary:hover { background: #f59e0b; border-color: #f59e0b; }
.btn-admin-secondary, .btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.btn-admin-secondary:hover, .btn-secondary:hover { background: #e2e8f0; color: #1e293b; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #94a3b8;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.empty-state-title { font-size: 1rem; font-weight: 700; color: #64748b; margin-bottom: 0.375rem; }
.empty-state-text { font-size: 0.875rem; color: #94a3b8; }

/* ── Member / Provider Shell ──────────────────────────── */
.portal-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Show hamburger on tablet and mobile */
@media (max-width: 1023px) {
  .portal-mob-btn { display: flex !important; }
  .portal-header { position: relative; padding: 0.75rem 1rem; }
}

/* Mobile menu - fullscreen overlay */
#portalMobNav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 9999;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
  padding-top: 5rem;
}
#portalMobNav.open { display: flex; }
#portalMobNav .close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#portalMobNav::before {
  content: 'Menu';
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}

/* ── Modal ────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #0d1b2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  animation: fadeIn 0.25s ease;
}

/* ── Alert / Toast ────────────────────────────────────── */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(19,136,8,0.12); color: #22c55e; border: 1px solid rgba(19,136,8,0.25); }
.alert-error   { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.alert-info    { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }

/* ── Stat Cards ───────────────────────────────────────── */
.stat-card {
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  transition: background 0.2s;
}
.stat-card:hover { background: rgba(255,255,255,0.07); }

/* ── Table ────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
.data-table td {
  padding: 1rem;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.data-table tr:hover td { background: #f8fafc; }

/* ── Badge ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green   { background: rgba(19,136,8,0.12);  color: #22c55e; }
.badge-yellow  { background: rgba(234,179,8,0.12);  color: #eab308; }
.badge-orange  { background: rgba(234,88,12,0.12);  color: #ea580c; }
.badge-red     { background: rgba(239,68,68,0.12);  color: #ef4444; }
.badge-blue    { background: rgba(59,130,246,0.12); color: #3b82f6; }
.badge-saffron { background: rgba(255,153,51,0.15); color: var(--saffron); }
.badge-gray    { background: rgba(100,116,139,0.12); color: #64748b; }

/* ── Loading Spinner ──────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.spinner-saffron {
  border-color: rgba(255,153,51,0.2);
  border-top-color: var(--saffron);
}
.spinner-navy {
  border-color: rgba(3,13,26,0.2);
  border-top-color: var(--navy);
}

/* ── Bid Slider ───────────────────────────────────────── */
#bid-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  outline: none;
  cursor: pointer;
}
#bid-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255,153,51,0.25), 0 2px 8px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
#bid-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(255,153,51,0.35), 0 2px 8px rgba(0,0,0,0.4);
}
#bid-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255,153,51,0.25);
  cursor: pointer;
  border: none;
}
#bid-slider::-webkit-slider-runnable-track {
  border-radius: 9999px;
}

/* ── Program Card ─────────────────────────────────────── */
.program-card {
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.program-card:hover { transform: translateY(-6px); }

/* ── Pricing Card ─────────────────────────────────────── */
.pricing-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  transition: all 0.4s ease;
}
.pricing-card.popular {
  border-color: rgba(255,153,51,0.5);
  box-shadow: 0 0 60px rgba(255,153,51,0.12);
}

/* ── Timeline ─────────────────────────────────────────── */
.timeline-line {
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, #FF9933, #60a5fa, #a855f7);
}
.timeline-dot {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--saffron);
}

/* ── Blog Card ────────────────────────────────────────── */
.blog-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* ── Partner Logo ─────────────────────────────────────── */
.partner-logo {
  padding: 1rem 2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.2s;
}
.partner-logo:hover { background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* ── Counter ──────────────────────────────────────────── */
[data-count] { font-variant-numeric: tabular-nums; }

/* ── CTA Section ──────────────────────────────────────── */
.cta-card {
  border-radius: 2.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3rem;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2);
  backdrop-filter: blur(20px);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Sidebar slides off-screen instead of display:none — toggled by JS */
  .admin-sidebar {
    transform: translateX(-280px);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    display: flex !important;
    z-index: 500;
  }
  .admin-sidebar.sidebar-open { transform: translateX(0); }
  .admin-main    { margin-left: 0; }
  /* Overlay behind open sidebar */
  .admin-mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3,13,26,.55);
    backdrop-filter: blur(2px);
    z-index: 499;
  }
  .admin-mob-overlay.sidebar-open { display: block; }
  /* Hamburger visible on mobile */
  .admin-hamburger { display: flex !important; }
  /* All admin tables: block + horizontal scroll on small screens */
  .admin-main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Admin stat cards: full-width stacking */
  .admin-stats-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
}
@media (max-width: 640px) {
  .admin-stats-grid { grid-template-columns: 1fr !important; }
  /* Filter bar stacks on mobile */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-tabs { justify-content: flex-start; }
  .search-box { max-width: none; width: 100%; }
  /* Card header stacks */
  .admin-card-header { flex-direction: column; align-items: flex-start; }
  /* Reduce card padding */
  .admin-card .overflow-x-auto { margin: 0 -1px; }
  /* Action buttons wrap tightly */
  .btn-action { font-size: 0.6875rem; padding: 0.2rem 0.5rem; }
  .admin-main .p-6 { padding: 1rem !important; }
  /* Page-level flex headers wrap on very small screens */
  .admin-main .space-y-6 > .flex,
  .admin-main .space-y-4 > .flex,
  .admin-main > div > .flex.justify-between {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  /* Modals: full-screen on mobile */
  .admin-main .max-w-2xl { max-width: 100% !important; }
  /* Buttons don't overflow */
  .btn-admin, .btn-secondary { white-space: nowrap; }
}
@media (max-width: 1280px) {
  .mega-panel { display: none !important; }
  .nav-trigger, .nav-plain-link { display: none; }
}
@media (max-width: 768px) {
  .cta-card   { padding: 1.5rem; border-radius: 1.5rem; }
  /* User-side: ensure hero text is readable on small screens */
  .hero-title  { font-size: clamp(1.8rem, 6vw, 3.5rem) !important; }
}

/* ── Portal mobile hamburger & nav ───────────────────── */
.portal-mob-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s;
}
.portal-mob-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

@media (max-width: 1023px) {
  .portal-mob-btn { display: flex; }
  .portal-header { position: relative; }
}

/* Navbar height fix */
#navbar {
  height: auto;
  min-height: 64px;
}
@media (min-width: 1280px) {
  #navbar {
    height: 64px;
  }
}

/* Header spacer - accounts for fixed header (36px tri-bar + 64px navbar = 100px) */
.header-spacer {
  height: 100px;
}

/* ── Page-specific helpers ────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}
.tricolor-bar { height: 4px; display: flex; }
.tricolor-bar div { flex: 1; }

/* ── Image Upload Preview ─────────────────────────────── */
.img-preview {
  width: 72px;
  height: 72px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

/* ── OTP Input ────────────────────────────────────────── */
.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.otp-input:focus { border-color: var(--saffron); }

/* ── Member / Provider Shell ──────────────────────────── */
