/* ================================================================
   SCHOOL CHAMELEONS — GLOBAL ACTION LIBRARY
   Premium Redesign | assets/css/style.css
   ================================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Palette */
  --ink:        #0F172A;
  --ink-2:      #1E293B;
  --body-txt:   #475569;
  --muted:      #94A3B8;
  --faint:      #CBD5E1;

  --blue:       #2563EB;
  --blue-dk:    #1D4ED8;
  --blue-dkr:   #1E3A8A;
  --blue-lt:    #EFF6FF;
  --blue-lt2:   #DBEAFE;

  --green:      #059669;
  --green-dk:   #047857;
  --green-lt:   #ECFDF5;

  --amber:      #D97706;
  --amber-lt:   #FEF3C7;

  --rose:       #E11D48;
  --rose-lt:    #FFE4E6;

  --navy:       #050C1A;
  --navy-2:     #0B1530;
  --navy-3:     #0F2044;

  --surface:    #FFFFFF;
  --surface-2:  #F8FAFC;
  --surface-3:  #F1F5F9;
  --surface-4:  #E8EEF6;

  --border:     #E2E8F0;
  --border-2:   #CBD5E1;

  /* Semantic */
  --primary:        var(--blue);
  --primary-dark:   var(--blue-dk);
  --secondary:      var(--green);
  --accent:         var(--amber);

  /* Gradients */
  --g-brand:    linear-gradient(135deg, #2563EB 0%, #059669 100%);
  --g-brand-v:  linear-gradient(180deg, #2563EB 0%, #059669 100%);
  --g-hero:     linear-gradient(135deg, #050C1A 0%, #0B1F60 55%, #063A25 100%);
  --g-hero-r:   radial-gradient(ellipse 80% 70% at 50% -10%, rgba(37,99,235,.45) 0%, transparent 70%);
  --g-mesh-1:   radial-gradient(ellipse 60% 55% at 80% 20%, rgba(5,150,105,.18) 0%, transparent 70%);
  --g-card:     linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  --g-navy:     linear-gradient(160deg, #050C1A 0%, #0F2044 100%);

  /* Shadows */
  --s-xs:  0 1px 3px rgba(15,23,42,.06);
  --s-sm:  0 2px 8px rgba(15,23,42,.08),  0 1px 3px rgba(15,23,42,.04);
  --s-md:  0 4px 20px rgba(15,23,42,.09),  0 2px 6px rgba(15,23,42,.04);
  --s-lg:  0 12px 40px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.05);
  --s-xl:  0 24px 80px rgba(15,23,42,.12), 0 8px 24px rgba(15,23,42,.06);
  --s-blue:  0 8px 32px rgba(37,99,235,.28);
  --s-green: 0 8px 32px rgba(5,150,105,.25);
  --s-card-hover: 0 20px 60px rgba(37,99,235,.14), 0 4px 16px rgba(15,23,42,.08);

  /* Radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  40px;
  --r-pill: 9999px;

  /* Spacing system (8pt) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  /* Section rhythm */
  --section-y:    clamp(72px, 10vw, 128px);
  --section-y-sm: clamp(48px, 6vw, 80px);

  /* Container */
  --cx: clamp(20px, 5vw, 60px);
  --cw: 1280px;

  /* Type */
  --font: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,.55,.45,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t1: 150ms var(--ease);
  --t2: 250ms var(--ease);
  --t3: 400ms var(--ease);
  --t-spring: 500ms var(--ease-spring);
}

/* ── 2. RESET & BASE ──────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body-txt);
  background: var(--surface);
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul,ol { list-style: none; }
input,textarea,select {
  font: inherit;
  border: none;
  outline: none;
  background: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface-3); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }

/* Selection */
::selection { background: var(--blue-lt2); color: var(--blue-dk); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── 3. TYPOGRAPHY ────────────────────────────────────────────── */
.display {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--ink);
}
h1,.h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h2,.h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h3,.h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h4,.h4 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h5,.h5 { font-size: 1rem; font-weight: 500; line-height: 1.5; color: var(--ink); }
h6,.h6 { font-size: .875rem; font-weight: 500; line-height: 1.5; color: var(--ink); }

.text-gradient {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-white-gradient {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead { font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.75; color: var(--body-txt); }
.caption { font-size: .8125rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue);
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 2px;
  background: var(--g-brand); border-radius: 99px;
  flex-shrink: 0;
}

/* ── 4. LAYOUT HELPERS ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--cw) + var(--cx) * 2);
  margin-inline: auto;
  padding-inline: var(--cx);
}
.container-sm { max-width: calc(900px + var(--cx) * 2); margin-inline: auto; padding-inline: var(--cx); }
.container-xs { max-width: calc(680px + var(--cx) * 2); margin-inline: auto; padding-inline: var(--cx); }

.section { padding-block: var(--section-y); }
.section-sm { padding-block: var(--section-y-sm); }

.grid { display: grid; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ── 5. NAVIGATION ────────────────────────────────────────────── */
.site-nav {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: 1000;
  height: 72px;
  display: flex; align-items: center;
  transition: background var(--t2), box-shadow var(--t2), border-color var(--t2);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(15,23,42,.06);
}
.site-nav.scrolled .nav-link { color: var(--body-txt); }
.site-nav.scrolled .nav-link:hover { color: var(--blue); }
.site-nav.scrolled .nav-logo-name { color: var(--ink); }
.site-nav.scrolled .nav-logo-sub { color: var(--muted); }
.site-nav.scrolled .nav-logo-mark { content: url('../images/logo-black.png'); }
.nav-inner {
  width: 100%;
  max-width: calc(var(--cw) + var(--cx) * 2);
  margin-inline: auto;
  padding-inline: var(--cx);
  display: flex; align-items: center; gap: var(--sp-6);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.nav-logo-mark {
  height: 50px; flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name {
  font-size: .9375rem; font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  transition: color var(--t2);
}
.nav-logo-sub {
  font-size: .6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  transition: color var(--t2);
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-inline-start: auto;
}
.nav-link {
  padding: 7px 13px;
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: var(--r-sm);
  transition: color var(--t1), background var(--t1);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,.12);
}
.nav-link.active { font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger svg { transition: transform var(--t2); }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--s-xl);
  padding: 6px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transition: opacity var(--t2), transform var(--t2), visibility var(--t2);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translateY(0) scale(1);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: .875rem; font-weight: 500;
  color: var(--body-txt);
  border-radius: var(--r-md);
  transition: background var(--t1), color var(--t1);
}
.nav-dropdown-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-dropdown-item .di-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  background: var(--surface-3);
}
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-search-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: all var(--t1);
}
.nav-search-btn:hover { background: rgba(255,255,255,.18); color: white; border-color: rgba(255,255,255,.35); }
.site-nav.scrolled .nav-search-btn {
  background: var(--surface-2); border-color: var(--border);
  color: var(--body-txt);
}
.site-nav.scrolled .nav-search-btn:hover { background: var(--blue-lt); border-color: var(--blue); color: var(--blue); }
.btn-nav-cta {
  padding: 8px 18px;
  background: var(--g-brand);
  color: white !important;
  border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600;
  box-shadow: var(--s-blue);
  transition: transform var(--t1), box-shadow var(--t1), filter var(--t1);
  white-space: nowrap;
}
.btn-nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 40px rgba(37,99,235,.35); }
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background var(--t1);
}
.nav-hamburger:hover { background: rgba(255,255,255,.1); }
.site-nav.scrolled .nav-hamburger:hover { background: var(--surface-2); }
.nav-hamburger span {
  display: block; height: 2px; border-radius: 99px;
  background: white; transition: all var(--t2);
}
.site-nav.scrolled .nav-hamburger span { background: var(--ink); }
.nav-mobile {
  display: none; position: fixed; inset: 0;
  background: rgba(5,12,26,.6);
  backdrop-filter: blur(8px);
  z-index: 999;
}
.nav-mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 90vw);
  background: var(--surface);
  box-shadow: var(--s-xl);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t3);
}
.nav-mobile.open { display: block; }
.nav-mobile.open .nav-mobile-panel { transform: translateX(0); }
.nav-mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  font-size: .9375rem; font-weight: 500;
  color: var(--body-txt);
  border-radius: var(--r-md);
  transition: background var(--t1), color var(--t1);
  border-bottom: 1px solid var(--border);
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-mobile-link.active { color: var(--blue); font-weight: 700; }

/* ── 6. BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  font-size: .9375rem; font-weight: 600;
  border-radius: var(--r-pill);
  transition: all var(--t2);
  cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--g-brand);
  color: white;
  box-shadow: var(--s-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(37,99,235,.35); filter: brightness(1.06); color: white; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border-2);
  box-shadow: var(--s-sm);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px var(--blue-lt); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-ghost:hover { background: var(--blue-lt); box-shadow: 0 0 0 3px var(--blue-lt2); }

.btn-white {
  background: white; color: var(--ink);
  box-shadow: 0 4px 20px rgba(255,255,255,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,.25); color: var(--blue); }

.btn-ghost-white {
  background: rgba(255,255,255,.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }

.btn-sm { padding: 8px 16px; font-size: .8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--r-md); }
.btn-icon-sm { width: 34px; height: 34px; padding: 0; border-radius: var(--r-sm); }

/* ── 7. HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--g-hero);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  padding-top: 72px;
}

/* Animated mesh blobs */
.hero-blob {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(80px);
  opacity: .5;
}
.hero-blob-1 {
  width: 700px; height: 700px;
  top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(37,99,235,.5) 0%, transparent 70%);
  animation: blobFloat1 18s ease-in-out infinite;
}
.hero-blob-2 {
  width: 600px; height: 600px;
  top: 10%; right: -5%;
  background: radial-gradient(circle, rgba(5,150,105,.45) 0%, transparent 70%);
  animation: blobFloat2 22s ease-in-out infinite;
}
.hero-blob-3 {
  width: 400px; height: 400px;
  bottom: -10%; left: 35%;
  background: radial-gradient(circle, rgba(217,119,6,.3) 0%, transparent 70%);
  animation: blobFloat3 16s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px,-30px) scale(1.08); }
  66%  { transform: translate(-20px,40px) scale(.94); }
}
@keyframes blobFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%  { transform: translate(-50px,30px) scale(1.1); }
  70%  { transform: translate(30px,-40px) scale(.92); }
}
@keyframes blobFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%  { transform: translate(30px,-50px) scale(1.12); }
}

/* Grid overlay for texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm1 1v38h38V1H1z' fill='%23ffffff' fill-opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-block: clamp(60px, 8vh, 100px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-16);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.5); }
}
.hero-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 24px;
}
.hero-title .highlight {
  position: relative;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin-bottom: 40px;
}
.hero-search-wrap {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl);
  padding: 6px 6px 6px 20px;
  display: flex; align-items: center; gap: 10px;
  max-width: 560px;
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
  transition: border-color var(--t2), box-shadow var(--t2);
}
.hero-search-wrap:focus-within {
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.hero-search-icon { color: rgba(255,255,255,.5); flex-shrink: 0; }
.hero-search-input {
  flex: 1; min-width: 0;
  font-size: .9375rem;
  color: white; background: transparent;
}
.hero-search-input::placeholder { color: rgba(255,255,255,.4); }
.hero-search-btn {
  background: var(--g-brand);
  color: white;
  border: none; border-radius: var(--r-xl);
  padding: 11px 22px;
  font-size: .875rem; font-weight: 600;
  cursor: pointer; flex-shrink: 0;
  transition: filter var(--t1), transform var(--t1);
}
.hero-search-btn:hover { filter: brightness(1.1); transform: scale(1.02); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 340px;
}
.hero-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  transition: background var(--t2);
}
.hero-stat:hover { background: rgba(255,255,255,.12); }
.hero-stat-num {
  display: block;
  font-size: 1.625rem; font-weight: 900;
  color: #FCD34D;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-label {
  display: block;
  font-size: .6875rem; font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 4px;
}

/* Hero right: Globe visual */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-globe-wrap {
  position: relative;
  width: 360px; height: 360px;
  flex-shrink: 0;
}
.hero-globe-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  animation: ringRotate 20s linear infinite;
}
.hero-globe-ring:nth-child(2) {
  inset: 20px;
  border-color: rgba(255,255,255,.08);
  animation-duration: 30s;
  animation-direction: reverse;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.hero-globe-core {
  position: absolute; inset: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.15), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 5.5rem;
  animation: float 6s ease-in-out infinite;
  box-shadow: inset 0 0 60px rgba(37,99,235,.3), 0 0 60px rgba(5,150,105,.2);
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
.sdg-orbit-item {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform var(--t-spring);
}
.sdg-orbit-item:hover { transform: scale(1.2) !important; z-index: 10; }
.sdi-1 { top: 4%;  left: 50%; transform: translateX(-50%); background: #e5243b; }
.sdi-2 { top: 22%; right: 8%; background: #DDA63A; }
.sdi-3 { top: 55%; right: 0%;  background: #4C9F38; }
.sdi-4 { bottom: 4%; left: 50%; transform: translateX(-50%); background: #C5192D; }
.sdi-5 { top: 55%; left: 0%; background: #FF3A21; }
.sdi-6 { top: 22%; left: 8%; background: #26BDE2; }

/* ── 8. STATS STRIP ───────────────────────────────────────────── */
.stats-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 28px;
}
.stats-strip-inner {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 900px; margin-inline: auto;
}
.stat-item {
  flex: 1; min-width: 140px;
  text-align: center;
  padding: 12px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: 2rem; font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .75rem; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin-top: 4px;
}
.stat-icon { font-size: 1.25rem; margin-bottom: 6px; display: block; }

/* ── 9. SECTION HEADERS ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-header.left { text-align: left; margin-inline: 0; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 14px; }
.section-header .lead { margin-bottom: 0; }

/* ── 10. SDG CARDS ────────────────────────────────────────────── */

/* SDG color + shadow tokens */
.sdg-c1  { --sdg-clr:#E5243B; --sdg-lt:#FDE8EA; --sdg-sh:rgba(229,36,59,.30); }
.sdg-c2  { --sdg-clr:#DDA63A; --sdg-lt:#FDF4E3; --sdg-sh:rgba(221,166,58,.30); }
.sdg-c3  { --sdg-clr:#4C9F38; --sdg-lt:#E8F6E8; --sdg-sh:rgba(76,159,56,.30); }
.sdg-c4  { --sdg-clr:#C5192D; --sdg-lt:#FEEEE6; --sdg-sh:rgba(197,25,45,.30); }
.sdg-c5  { --sdg-clr:#FF3A21; --sdg-lt:#FEE9E5; --sdg-sh:rgba(255,58,33,.30); }
.sdg-c6  { --sdg-clr:#26BDE2; --sdg-lt:#E4F5FB; --sdg-sh:rgba(38,189,226,.30); }
.sdg-c7  { --sdg-clr:#FCC30B; --sdg-lt:#FFF8E1; --sdg-sh:rgba(252,195,11,.32); }
.sdg-c8  { --sdg-clr:#A21942; --sdg-lt:#FCE4EC; --sdg-sh:rgba(162,25,66,.30); }
.sdg-c9  { --sdg-clr:#FD6925; --sdg-lt:#FEE9DA; --sdg-sh:rgba(253,105,37,.30); }
.sdg-c10 { --sdg-clr:#DD1367; --sdg-lt:#F5E5F8; --sdg-sh:rgba(221,19,103,.30); }
.sdg-c11 { --sdg-clr:#FD9D24; --sdg-lt:#FEF3E3; --sdg-sh:rgba(253,157,36,.30); }
.sdg-c12 { --sdg-clr:#BF8B2E; --sdg-lt:#FEF2DA; --sdg-sh:rgba(191,139,46,.30); }
.sdg-c13 { --sdg-clr:#3F7E44; --sdg-lt:#E4EDE4; --sdg-sh:rgba(63,126,68,.30); }
.sdg-c14 { --sdg-clr:#0A97D9; --sdg-lt:#E3F3FB; --sdg-sh:rgba(10,151,217,.30); }
.sdg-c15 { --sdg-clr:#56C02B; --sdg-lt:#E8F7E2; --sdg-sh:rgba(86,192,43,.30); }
.sdg-c16 { --sdg-clr:#00689D; --sdg-lt:#E3EDF7; --sdg-sh:rgba(0,104,157,.30); }
.sdg-c17 { --sdg-clr:#19486A; --sdg-lt:#E4EBF2; --sdg-sh:rgba(25,72,106,.30); }

/* Also keep old text/bg fallback for non-card uses (badges etc.) */
.sdg-c1  { color: #C01B2E; }
.sdg-c2  { color: #B07A1A; }
.sdg-c3  { color: #2E7A23; }
.sdg-c4  { color: #A0160E; }
.sdg-c5  { color: #C4260F; }
.sdg-c6  { color: #147BA6; }
.sdg-c7  { color: #A07005; }
.sdg-c8  { color: #7A0E2E; }
.sdg-c9  { color: #C44806; }
.sdg-c10 { color: #A00B5A; }
.sdg-c11 { color: #A4620D; }
.sdg-c12 { color: #8A5C10; }
.sdg-c13 { color: #255022; }
.sdg-c14 { color: #075680; }
.sdg-c15 { color: #2A7A0E; }
.sdg-c16 { color: #053E6E; }
.sdg-c17 { color: #0E2D4A; }

.sdg-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.sdg-card {
  border-radius: 18px;
  padding: 1.25rem 1.1rem 1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 175px;
  background: var(--sdg-lt, #f5f5f5);
  border: 1.5px solid rgba(0,0,0,.05);
  transition: transform .36s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .25s ease;
  cursor: pointer;
  isolation: isolate;
}

/* Shine sweep on hover */
.sdg-card::before {
  content: '';
  position: absolute;
  top: 0; left: -120%; width: 65%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
  transition: left .55s ease;
  pointer-events: none;
  z-index: 3;
}

/* Full color fill layer */
.sdg-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--sdg-clr, currentColor);
  opacity: 0;
  transition: opacity .28s ease;
  z-index: 0;
  border-radius: inherit;
}

.sdg-card > * { position: relative; z-index: 1; }

/* Watermark number */
.sdg-wm {
  position: absolute;
  bottom: -18px; right: -2px;
  font-size: 6rem; font-weight: 900; line-height: 1;
  color: var(--sdg-clr);
  opacity: .1;
  transition: opacity .3s, transform .4s ease;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -.05em;
}

.sdg-card-icon {
  font-size: 1.6rem;
  color: var(--sdg-clr);
  margin-bottom: .5rem;
  display: block;
  transition: color .25s, transform .4s cubic-bezier(.34,1.56,.64,1);
}

.sdg-num {
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--sdg-clr);
  opacity: .72; display: block; margin-bottom: 4px;
  transition: color .25s, opacity .25s;
}

.sdg-name {
  font-size: .8rem; font-weight: 700; line-height: 1.3;
  color: var(--ink); display: block; flex: 1;
  transition: color .25s;
}

.sdg-count {
  font-size: .68rem; color: var(--muted);
  display: block; margin-top: .5rem;
  transition: color .25s, opacity .25s;
}

.sdg-arrow {
  position: absolute; bottom: .8rem; right: .8rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: var(--sdg-clr);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  opacity: 0;
  transform: scale(.6) translateY(6px);
  transition: all .32s cubic-bezier(.34,1.56,.64,1);
  z-index: 3;
}

/* ── Hover ── */
.sdg-card:hover {
  transform: translateY(-9px) scale(1.025);
  box-shadow: 0 22px 52px -10px var(--sdg-sh, rgba(0,0,0,.2));
  border-color: var(--sdg-clr);
}
.sdg-card:hover::after  { opacity: 1; }
.sdg-card:hover::before { left: 120%; }
.sdg-card:hover .sdg-wm { opacity: .2; transform: scale(1.06) translateY(-6px); }
.sdg-card:hover .sdg-card-icon { color: rgba(255,255,255,.95); transform: scale(1.14) translateY(-2px); }
.sdg-card:hover .sdg-num  { color: rgba(255,255,255,.75); opacity: 1; }
.sdg-card:hover .sdg-name { color: #fff; }
.sdg-card:hover .sdg-count{ color: rgba(255,255,255,.72); }
.sdg-card:hover .sdg-arrow{ opacity: 1; transform: scale(1) translateY(0); }
.sdg-card:active { transform: translateY(-4px) scale(.985); }

/* ── 11. CARDS ────────────────────────────────────────────────── */
/* Story Card */
.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t2), box-shadow var(--t2), border-color var(--t2);
  height: 100%;
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--s-card-hover);
  border-color: rgba(37,99,235,.2);
}
.story-card-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--g-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.story-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-card-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4) 100%);
  opacity: 0;
  transition: opacity var(--t2);
}
.story-card:hover .story-card-thumb-overlay { opacity: 1; }
.story-card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.story-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.story-card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--ink); line-height: 1.45;
  flex: 1; margin-bottom: 10px;
}
.story-card-title a { color: inherit; }
.story-card-title a:hover { color: var(--blue); }
.story-card-excerpt { font-size: .875rem; color: var(--body-txt); line-height: 1.65; flex: 1; }
.story-card-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted);
  margin-top: 14px;
}
.meta-pill { display: flex; align-items: center; gap: 4px; }
.story-card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}

/* Action Card */
.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex; flex-direction: column;
  transition: transform var(--t2), box-shadow var(--t2), border-color var(--t2);
  position: relative; overflow: hidden;
  height: 100%;
}
.action-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--g-brand);
}
.action-card:hover { transform: translateY(-5px); box-shadow: var(--s-card-hover); border-color: rgba(37,99,235,.18); }
.action-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.action-card-title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.4; flex: 1; margin: 8px 0; }
.action-stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; margin-block: 14px;
}
.action-stat {
  text-align: center; padding: 10px 6px;
  background: var(--surface-2);
  border-radius: var(--r-md);
}
.action-stat-val { font-size: .9375rem; font-weight: 800; color: var(--blue); display: block; }
.action-stat-lbl { font-size: .65rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin-top: 2px; }

/* Blog Card */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t2), box-shadow var(--t2);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--s-card-hover); }
.blog-card-img {
  width: 100%; aspect-ratio: 3 / 2;
  background: var(--g-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  overflow: hidden; position: relative;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.blog-card-body { padding: 22px; }
.blog-card-tag { font-size: .72rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.blog-card-title { font-size: .9375rem; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 8px; }
.blog-card-excerpt { font-size: .875rem; color: var(--body-txt); line-height: 1.65; }
.blog-card-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* Event Card */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  transition: transform var(--t2), box-shadow var(--t2);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--s-lg); }
.event-date-col {
  background: var(--g-brand);
  color: white; padding: 16px 14px;
  text-align: center; min-width: 64px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.event-day { font-size: 1.75rem; font-weight: 900; line-height: 1; display: block; }
.event-month { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.event-body { padding: 14px 16px; flex: 1; }
.event-type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 4px; }
.event-title { font-size: .9375rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.event-meta { font-size: .78rem; color: var(--muted); }
.event-action { padding: 14px; display: flex; align-items: center; }

/* Testimonial Card */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--r-xl);
  padding: 32px 28px 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform var(--t2), box-shadow var(--t2), border-color var(--t2);
  overflow: hidden;
}
.testi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--g-brand);
  border-radius: 0 0 2px 2px;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--s-lg); }
.testi-quote-mark {
  position: absolute; top: 16px; right: 22px;
  font-size: 5rem; line-height: 1;
  color: var(--blue);
  opacity: .06;
  font-family: Georgia, serif;
  user-select: none;
}
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testi-stars i { color: #F59E0B; font-size: .9rem; }
.testi-badge { display: inline-flex; align-items: center; gap: .35rem; background: var(--blue-lt); color: var(--blue); font-size: .7rem; font-weight: 700; padding: .2rem .65rem; border-radius: 20px; margin-bottom: 14px; }
.testi-text { font-size: .9375rem; line-height: 1.8; color: var(--body-txt); font-style: italic; margin-bottom: 20px; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: auto; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59,130,246,.25);
}
.testi-name { font-size: .875rem; font-weight: 700; color: var(--ink); }
.testi-role { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* Plan Card */
.plan-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--t2), box-shadow var(--t2), transform var(--t2);
  height: 100%;
}
.plan-card:hover { border-color: var(--blue); box-shadow: var(--s-card-hover); transform: translateY(-4px); }
.plan-card.featured { border-color: var(--blue); background: linear-gradient(145deg, #EFF6FF, #ECFDF5); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--g-brand); color: white;
  padding: 4px 16px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.plan-name { font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.plan-desc { font-size: .8125rem; color: var(--muted); margin-bottom: 16px; }
.plan-price { font-size: 2.5rem; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -0.04em; }
.plan-price sup { font-size: 1rem; font-weight: 600; vertical-align: super; margin-right: 2px; letter-spacing: 0; }
.plan-period { font-size: .8125rem; color: var(--muted); }
.plan-divider { height: 1px; background: var(--border); margin-block: 20px; }
.plan-feature {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .875rem; padding: 5px 0;
  color: var(--body-txt);
}
.plan-check { color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.plan-x { color: var(--faint); flex-shrink: 0; margin-top: 1px; }

/* ── 12. TAGS & BADGES ────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.tag-blue  { background: var(--blue-lt);  color: var(--blue); }
.tag-green { background: var(--green-lt); color: var(--green); }
.tag-amber { background: var(--amber-lt); color: var(--amber); }
.tag-rose  { background: var(--rose-lt);  color: var(--rose); }
.tag-ink   { background: var(--surface-3); color: var(--ink); }
.tag-easy   { background: #DCFCE7; color: #166534; }
.tag-medium { background: #FEF9C3; color: #854D0E; }
.tag-hard   { background: #FFE4E6; color: #9F1239; }
.badge-jury {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg,#FEF3C7,#FDE68A);
  color: #92400E; border: 1px solid #FCD34D;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.sdg-badge-sm {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600;
  background: var(--blue-lt); color: var(--blue);
}
.author-mini { display: flex; align-items: center; gap: 8px; }
.author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .72rem;
  flex-shrink: 0;
}
.author-name { font-size: .8125rem; font-weight: 600; color: var(--body-txt); }
.read-time { font-size: .75rem; color: var(--muted); }

/* ── 13. FORMS ────────────────────────────────────────────────── */
.form-field {
  display: flex; flex-direction: column; gap: 6px;
}
.form-label { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.form-label .req { color: var(--rose); margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color var(--t1), box-shadow var(--t1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  outline: none;
}
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.form-select { appearance: none; cursor: pointer; }
.form-hint { font-size: .75rem; color: var(--muted); }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--s-md);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--r-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t2), background var(--t2);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--blue);
  background: var(--blue-lt);
}
.upload-icon { font-size: 2.5rem; color: var(--blue); margin-bottom: 10px; }
.upload-text { font-size: .9375rem; color: var(--body-txt); font-weight: 500; }
.upload-sub { font-size: .8125rem; color: var(--muted); margin-top: 4px; }

/* Submit-story media library grid */
.sc-media-library-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.sc-media-library-hint {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #64748b;
  margin-bottom: 10px;
}

.sc-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.sc-media-tile {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  cursor: grab;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.sc-media-tile:active {
  cursor: grabbing;
}

.sc-media-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.sc-media-tile.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.sc-media-tile.is-drag-over {
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35);
}

.sc-media-tile.drag-before::before,
.sc-media-tile.drag-after::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: #0d9488;
  z-index: 4;
  pointer-events: none;
}

.sc-media-tile.drag-before::before {
  left: 2px;
}

.sc-media-tile.drag-after::after {
  right: 2px;
}

.sc-media-tile.is-cover {
  border-color: rgba(13, 148, 136, 0.45);
}

.sc-media-tile-handle {
  position: absolute;
  top: 6px;
  right: 34px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.sc-media-tile:hover .sc-media-tile-handle,
.sc-media-tile:focus-within .sc-media-tile-handle,
.sc-media-tile.is-dragging .sc-media-tile-handle {
  opacity: 1;
}

.sc-media-tile-cover {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 64px);
  padding: 3px 7px;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.sc-media-tile-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: #f1f5f9;
  cursor: grab;
  overflow: hidden;
}

.sc-media-tile-preview:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: -2px;
}

.sc-media-tile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.sc-media-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.75rem;
  color: #64748b;
}

.sc-media-tile-icon-video { background: linear-gradient(145deg, #eef2ff, #e0e7ff); color: #4338ca; }
.sc-media-tile-icon-audio { background: linear-gradient(145deg, #ecfdf5, #d1fae5); color: #047857; }
.sc-media-tile-icon-pdf { background: linear-gradient(145deg, #fff7ed, #ffedd5); color: #c2410c; }
.sc-media-tile-icon-link { background: linear-gradient(145deg, #eff6ff, #dbeafe); color: #1d4ed8; }

.sc-media-url-box {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.sc-media-url-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.sc-media-url-row .form-input {
  flex: 1;
  min-width: 0;
}

.sc-media-url-row .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .sc-media-url-row {
    flex-direction: column;
  }
}

.sc-media-preview-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}

.sc-media-preview-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sc-media-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  font-size: 1.35rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.sc-media-tile-preview:hover .sc-media-tile-overlay,
.sc-media-tile-preview:focus-visible .sc-media-tile-overlay {
  opacity: 1;
}

.sc-media-tile-meta {
  padding: 6px 8px 8px;
  font-size: 0.68rem;
  line-height: 1.3;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-media-tile-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.sc-media-tile:hover .sc-media-tile-remove,
.sc-media-tile:focus-within .sc-media-tile-remove {
  opacity: 1;
}

.sc-media-tile-remove:hover {
  background: #dc2626;
}

.sc-media-preview-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.sc-media-preview-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border-radius: 12px;
  min-height: 220px;
  overflow: hidden;
}

.sc-media-preview-image img {
  max-width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  display: block;
}

.sc-media-preview-player video {
  width: 100%;
  max-height: min(70vh, 640px);
  border-radius: 12px;
  background: #0f172a;
  display: block;
}

.sc-media-preview-audio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px 12px;
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%);
  border-radius: 12px;
}

.sc-media-preview-audio-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}

.sc-media-preview-audio-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  word-break: break-word;
}

.sc-media-preview-audio audio {
  width: 100%;
}

/* Step indicator */
.steps-row {
  display: flex; align-items: flex-start;
  overflow-x: auto; padding-bottom: 4px;
  gap: 0;
  margin-bottom: 32px;
}
.step-item {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 60px; position: relative;
}
.step-item::before {
  content: ''; position: absolute;
  top: 16px; left: calc(50% + 16px); right: calc(-50% + 16px);
  height: 2px; background: var(--border-2);
  z-index: 0;
}
.step-item:last-child::before { display: none; }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-3); border: 2px solid var(--border-2);
  color: var(--muted); font-weight: 700; font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; transition: all var(--t2);
  flex-shrink: 0;
}
.step-item.active .step-circle { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 0 0 4px var(--blue-lt2); }
.step-item.done .step-circle { background: var(--green); border-color: var(--green); color: white; }
.step-item.done::before { background: var(--green); }
.step-item.active::before { background: linear-gradient(90deg, var(--blue), var(--border-2)); }
.step-label { font-size: .65rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 6px; white-space: nowrap; }
.step-item.active .step-label { color: var(--blue); }
.step-item.done .step-label { color: var(--green); }

/* ── 14. HOW IT WORKS ─────────────────────────────────────────── */
.hiw-step {
  text-align: center; padding: 32px 20px; position: relative;
}
.hiw-num-wrap {
  width: 60px; height: 60px; margin: 0 auto 18px;
  background: var(--g-brand);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 1.375rem;
  box-shadow: var(--s-blue);
  position: relative; z-index: 2;
}
.hiw-connector {
  position: absolute;
  top: 62px; left: calc(50% + 30px);
  right: calc(-50% + 30px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: .2;
}
.hiw-step:last-child .hiw-connector { display: none; }
.hiw-icon { font-size: 2.25rem; display: block; margin-bottom: 12px; }
.hiw-title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.hiw-desc { font-size: .875rem; color: var(--body-txt); line-height: 1.7; }

/* ── 15. SOP FRAMEWORK ────────────────────────────────────────── */
.sop-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
  transition: transform var(--t1), box-shadow var(--t1);
}
.sop-step:hover { transform: translateX(4px); box-shadow: var(--s-sm); }
.sop-num {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--g-brand); color: white;
  font-weight: 800; font-size: .8125rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.sop-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.sop-desc { font-size: .875rem; color: var(--body-txt); line-height: 1.65; }

/* ── 16. DARK SECTION ─────────────────────────────────────────── */
.dark-section {
  background: var(--g-navy);
  position: relative; overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -5%, rgba(37,99,235,.3) 0%, transparent 70%);
  pointer-events: none;
}

/* Newsletter */
.newsletter-bar {
  max-width: 520px; margin-inline: auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
}
.newsletter-input {
  flex: 1; min-width: 0;
  font-size: .9375rem; color: white; background: transparent;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-btn {
  background: var(--amber);
  color: #1a0a00; border: none; border-radius: var(--r-pill);
  padding: 10px 22px; font-size: .875rem; font-weight: 700;
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
  transition: filter var(--t1), transform var(--t1);
}
.newsletter-btn:hover { filter: brightness(1.1); transform: scale(1.02); }

/* ── 17. PAGE HEADER ──────────────────────────────────────────── */
.page-hero {
  background: var(--g-hero);
  background-size: cover;
  background-position: center;
  padding: 120px 0 70px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,15,35,.72) 0%, rgba(5,15,35,.82) 100%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: white; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 600px; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px 5px 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

/* ── 18. SEARCH UI ────────────────────────────────────────────── */
.search-hero-box {
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--s-xl);
  max-width: 760px; margin-inline: auto;
}
.search-input-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 18px;
  background: var(--surface-2);
  transition: border-color var(--t1), box-shadow var(--t1);
  margin-bottom: 16px;
}
.search-input-wrap:focus-within {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.search-main-input {
  flex: 1; font-size: 1rem; color: var(--ink); background: transparent;
}
.search-main-input::placeholder { color: var(--muted); }
.filter-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 500;
  color: var(--body-txt);
  cursor: pointer;
  transition: all var(--t1);
  white-space: nowrap;
}
.filter-pill:hover, .filter-pill.active {
  border-color: var(--blue); color: var(--blue);
  background: var(--blue-lt);
}
.filter-pill .pill-count {
  background: var(--blue); color: white;
  border-radius: var(--r-pill);
  padding: 1px 6px; font-size: .65rem; font-weight: 700;
}

/* ── 19. SIDEBAR (Dashboard) ──────────────────────────────────── */
.db-layout { display: flex; min-height: 100vh; padding-top: 70px; }
.db-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed; top: 70px; left: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
  transition: transform var(--t3);
}
.db-sidebar-inner { padding: 16px 12px; }
.db-user-card {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.db-user-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.db-user-name { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.db-user-role { font-size: .72rem; color: var(--muted); }
.db-user-badge {
  font-size: .65rem; font-weight: 700; color: var(--amber);
  background: var(--amber-lt); border-radius: 4px;
  padding: 1px 6px; display: inline-block; margin-top: 2px;
}
.db-section-label {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
  padding: 14px 12px 5px;
}
.db-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: .875rem; font-weight: 500;
  color: var(--body-txt);
  border-radius: var(--r-md);
  transition: background var(--t1), color var(--t1);
  text-decoration: none;
  position: relative;
}
.db-menu-link:hover { background: var(--surface-2); color: var(--ink); }
.db-menu-link.active {
  background: var(--blue-lt); color: var(--blue);
  font-weight: 600;
}
.db-menu-link.active::before {
  content: '';
  position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 3px; background: var(--blue);
  border-radius: 0 3px 3px 0;
}
.db-menu-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.db-badge {
  margin-left: auto;
  background: var(--blue); color: white;
  border-radius: var(--r-pill);
  padding: 1px 8px; font-size: .65rem; font-weight: 700;
}
.db-main { flex: 1; margin-left: 260px; padding: clamp(20px, 3vw, 36px); background: var(--surface-2); min-height: calc(100vh - 70px); }
.db-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 70px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding-inline: clamp(16px, 3vw, 32px);
  z-index: 200;
  box-shadow: var(--s-xs);
}
.db-topbar-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; text-decoration: none; }
.db-topbar-title { font-size: .9375rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }

/* Widgets */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  box-shadow: var(--s-xs);
  transition: box-shadow var(--t2), transform var(--t2);
}
.widget:hover { box-shadow: var(--s-sm); }
.widget-title { font-size: .9375rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.stat-widget-row { display: flex; align-items: center; gap: 14px; }
.stat-widget-icon {
  width: 50px; height: 50px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; flex-shrink: 0;
}
.stat-widget-num { font-size: 1.625rem; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.stat-widget-label { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.stat-widget-change { font-size: .75rem; font-weight: 600; margin-top: 3px; }
.change-up { color: var(--green); }
.change-dn { color: var(--rose); }

/* Data table */
.data-tbl { width: 100%; border-collapse: collapse; }
.data-tbl th {
  background: var(--surface-2);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  text-align: left; white-space: nowrap;
}
.data-tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .875rem; vertical-align: middle;
}
.data-tbl tr:hover td { background: var(--surface-2); }
.data-tbl tr:last-child td { border-bottom: none; }
.status-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.sb-pending  { background: #FEF9C3; color: #854D0E; }
.sb-approved { background: #DCFCE7; color: #166534; }
.sb-rejected { background: #FFE4E6; color: #9F1239; }
.sb-featured { background: var(--blue-lt); color: var(--blue); }

/* ── 21. STORY DETAIL ─────────────────────────────────────────── */
.story-hero-page {
  background: var(--g-hero);
  padding: 110px 0 75px;
  position: relative; overflow: hidden;
}
.story-hero-page::before {
  content: ''; position: absolute; inset: 0;
  background: var(--g-hero-r); pointer-events: none;
}
.story-hero-page::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 60px; background: var(--surface);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.story-body-content { max-width: 720px; margin: 0 auto; }
.story-body-content p { font-size: 1.0625rem; line-height: 1.85; color: var(--body-txt); margin-bottom: 20px; }
.story-body-content h2 { font-size: 1.5rem; margin: 36px 0 14px; color: var(--ink); font-weight: 800; }
.story-body-content h3 { font-size: 1.1875rem; margin: 28px 0 10px; color: var(--ink); font-weight: 700; }
.story-sidebar-sticky { position: sticky; top: 90px; }
.impact-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.impact-row:last-child { border-bottom: none; }
.impact-icon { font-size: 1.25rem; width: 28px; text-align: center; flex-shrink: 0; }
.impact-val { font-weight: 800; font-size: 1.0625rem; color: var(--blue); }
.impact-lbl { font-size: .78rem; color: var(--muted); margin-top: 1px; }

/* ── 22. CHATBOT ──────────────────────────────────────────────── */
.chatbot-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--g-brand);
  color: white; border: none; cursor: pointer;
  box-shadow: var(--s-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  z-index: 1100;
  transition: transform var(--t-spring), box-shadow var(--t2);
}
.chatbot-fab:hover { transform: scale(1.1); box-shadow: 0 16px 48px rgba(37,99,235,.45); }
.chatbot-window {
  position: fixed; bottom: 98px; right: 28px;
  width: 360px; max-height: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--s-xl);
  display: flex; flex-direction: column;
  z-index: 1099;
  overflow: hidden;
  animation: chatOpen .35s var(--ease-spring);
}
@keyframes chatOpen {
  from { opacity: 0; transform: scale(.85) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.chatbot-head {
  background: var(--g-brand);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chatbot-head-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.chatbot-head-name { font-weight: 700; font-size: .9375rem; color: white; }
.chatbot-head-status {
  font-size: .71rem; color: rgba(255,255,255,.75);
  display: flex; align-items: center; gap: 5px;
}
.chatbot-head-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 6px #4ade80;
  display: inline-block;
}
.chatbot-msgs {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 300px;
}
.chat-bubble {
  max-width: 86%; padding: 10px 14px;
  border-radius: 16px; font-size: .875rem; line-height: 1.55;
}
.chat-bot { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-user { background: var(--blue); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.chatbot-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 8px; }
.chat-sug {
  background: var(--blue-lt); color: var(--blue);
  border: 1px solid var(--blue-lt2);
  border-radius: var(--r-pill);
  padding: 4px 12px; font-size: .78rem; font-weight: 500;
  cursor: pointer; transition: all var(--t1);
}
.chat-sug:hover { background: var(--blue); color: white; }
.chatbot-input-row {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center;
}
.chatbot-input-field {
  flex: 1; background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 8px 14px;
  font-size: .875rem; color: var(--ink);
  transition: border-color var(--t1), box-shadow var(--t1);
}
.chatbot-input-field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); outline: none; }
.chatbot-send-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: white; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
  transition: background var(--t1), transform var(--t1);
}
.chatbot-send-btn:hover { background: var(--blue-dk); transform: scale(1.08); }
.chatbot-hidden { display: none !important; }

/* ── 23. MISC COMPONENTS ──────────────────────────────────────── */
/* Reading progress */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--g-brand); z-index: 9999;
  transition: width .1s linear;
}

/* Back to top */
.back-top {
  position: fixed; bottom: 98px; right: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--s-md);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t2), transform var(--t2), box-shadow var(--t2);
  font-size: 1rem;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); box-shadow: var(--s-lg); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(5,12,26,.7);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  padding-inline: 20px;
}
.search-overlay.open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-overlay-box {
  width: 100%; max-width: 660px;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--s-xl);
  animation: slideDown .25s var(--ease-out);
}
@keyframes slideDown {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Leaderboard */
.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t1), box-shadow var(--t1);
  margin-bottom: 8px;
}
.lb-row:hover { transform: translateX(4px); box-shadow: var(--s-sm); }
.lb-rank {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .82rem; flex-shrink: 0;
}
.lb-gold   { background: linear-gradient(135deg,#F59E0B,#D97706); color: white; }
.lb-silver { background: linear-gradient(135deg,#94A3B8,#64748B); color: white; }
.lb-bronze { background: linear-gradient(135deg,#B45309,#92400E); color: white; }
.lb-score  { margin-left: auto; font-weight: 800; color: var(--blue); font-size: 1.0625rem; }

/* Countdown */
.countdown-wrap { display: flex; gap: 12px; justify-content: center; }
.countdown-unit { text-align: center; }
.countdown-num {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: white; border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: 1.75rem; font-weight: 900;
  display: block; min-width: 56px; text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.countdown-lbl {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-top: 5px; display: block;
}

/* Tag cloud */
.tag-cloud-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-item {
  padding: 5px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 500; color: var(--body-txt);
  cursor: pointer; transition: all var(--t1);
  text-decoration: none;
}
.tag-cloud-item:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }

/* Ribbon */
.ribbon {
  position: absolute; top: 14px; right: -4px;
  background: var(--rose); color: white;
  font-size: .65rem; font-weight: 800;
  padding: 3px 10px 3px 8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
  text-transform: uppercase; letter-spacing: .06em;
}

/* Glass card */
.glass-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
}

/* ── 24. FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding-block-start: clamp(56px, 8vw, 96px);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 50px; }
.footer-brand-name { font-size: 1rem; font-weight: 800; color: white; letter-spacing: -0.02em; }
.footer-brand-sub { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); }
.footer-about { font-size: .875rem; line-height: 1.7; max-width: 280px; margin-bottom: 22px; }
.footer-social-row { display: flex; gap: 8px; margin-bottom: 28px; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font-size: .875rem;
  cursor: pointer; transition: all var(--t1); text-decoration: none;
}
.footer-social-btn:hover { background: var(--blue); border-color: var(--blue); color: white; transform: translateY(-2px); }
.footer-col-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: white; margin-bottom: 14px; }
.footer-link {
  display: block; font-size: .875rem; color: rgba(255,255,255,.55);
  padding: 4px 0; transition: color var(--t1), padding-left var(--t1);
}
.footer-link:hover { color: white; padding-left: 4px; }
.footer-sdg-mini { display: flex; flex-wrap: wrap; gap: 5px; }
.footer-sdg-dot {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 800; color: white;
  cursor: pointer; transition: transform var(--t1);
  text-decoration: none;
}
.footer-sdg-dot:hover { transform: scale(1.2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-block: 22px;
  margin-top: clamp(40px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copyright { font-size: .8125rem; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .8125rem; color: rgba(255,255,255,.35); transition: color var(--t1); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── 25. ANIMATIONS ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }

/* ── 26. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .db-sidebar { transform: translateX(-100%); }
  .db-sidebar.open { transform: translateX(0); box-shadow: var(--s-xl); }
  .db-main { margin-left: 0; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .stats-strip-inner { gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); flex-basis: 50%; }
  .stat-item:nth-child(2n) { border-right: none; }
  .chatbot-window { width: calc(100vw - 40px); right: 20px; }
  .sdg-grid-layout { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .sdg-grid-layout { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .steps-row { flex-direction: column; align-items: flex-start; }
  .step-item::before { display: none; }
  .countdown-num { font-size: 1.25rem; min-width: 42px; }
}

/* ================================================================
   ADMIN PANEL STYLES — moved from page <style> blocks
   ================================================================ */

/* ── Block 1 ── */
/* ---- Admin-specific overrides ---- */
    body:has(.admin-layout) { background: #F1F5F9; color: #334155; }
    .admin-layout { display: flex; min-height: 100vh; }

    /* Sidebar */
    .admin-sidebar {
      width: 260px; min-height: 100vh; background: #FFFFFF;
      border-right: 1px solid rgba(0,0,0,.07);
      display: flex; flex-direction: column;
      position: fixed; top: 0; left: 0; z-index: 200;
      transition: transform .3s ease;
    }
    .admin-sidebar.collapsed { transform: translateX(-260px); }
    .admin-sidebar-header {
      height: 60px; padding: 0 1.25rem;
      border-bottom: 1px solid rgba(0,0,0,.07);
      display: flex; align-items: center; gap: .75rem;
      flex-shrink: 0;
    }
    .admin-sidebar-header .logo-text { font-weight: 800; font-size: .95rem; color: #0F172A; line-height: 1.2; }
    .admin-sidebar-header .logo-sub { font-size: .7rem; color: #94A3B8; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
    .admin-nav-section { padding: .75rem 1rem .25rem; font-size: .68rem; color: #94A3B8; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
    .admin-nav-link {
      display: flex; align-items: center; gap: .75rem;
      padding: .6rem 1.25rem; color: #475569; font-size: .875rem; font-weight: 500;
      text-decoration: none; border-radius: 0; position: relative;
      transition: color .2s, background .2s;
    }
    .admin-nav-link i { font-size: 1.05rem; width: 1.25rem; text-align: center; }
    .admin-nav-link:hover { color: #0F172A; background: rgba(0,0,0,.05); }
    .admin-nav-link.active { color: #60A5FA; background: rgba(37,99,235,.12); border-left: 3px solid #2563EB; }
    .admin-badge { margin-left: auto; background: #FEE2E2; color: #991B1B; font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: 20px; min-width: 20px; text-align: center; }
    .admin-badge.green { background: #DCFCE7; color: #166534; }
    .admin-badge.amber { background: #FEF9C3; color: #92400E; }
    .admin-sidebar-footer { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid rgba(0,0,0,.07); }
    .admin-topbar { position: fixed; top: 0; left: 260px; right: 0; z-index: 100; height: 60px; background: #FFFFFF; border-bottom: 1px solid rgba(0,0,0,.07); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; transition: left .3s ease; }
    .admin-topbar.sidebar-collapsed { left: 0; }
    .admin-page-title { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0; }
    .admin-breadcrumb { font-size: .78rem; color: #64748B; display: flex; align-items: center; gap: .35rem; }
    .admin-topbar-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
    .admin-icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); background: rgba(0,0,0,.04); color: #475569; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; text-decoration: none; position: relative; }
    .admin-icon-btn:hover { background: rgba(0,0,0,.1); color: #1E293B; }
    .admin-notif-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; border: 2px solid #FFFFFF; }
    .admin-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#059669); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; }
    .admin-main { flex: 1; min-width: 0; margin-left: 260px; padding-top: 60px; min-height: 100vh; background: #F1F5F9; transition: margin-left .3s ease; }
    .admin-main.sidebar-collapsed { margin-left: 0; }
    .admin-content { padding: 2rem 1.5rem; }
    .admin-card { background: #FFFFFF; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 1.5rem; position: relative; overflow: hidden; }
    .admin-card-title { font-size: .8rem; color: #64748B; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
    .admin-stat-num { font-size: 2rem; font-weight: 800; color: #0F172A; line-height: 1; margin-bottom: .25rem; }
    .admin-stat-label { font-size: .8rem; color: #64748B; }
    .admin-stat-delta { font-size: .78rem; font-weight: 600; }
    .admin-stat-delta.up { color: #059669; }
    .admin-stat-delta.down { color: #DC2626; }
    .admin-stat-icon { position: absolute; top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
    .admin-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
    .admin-tbl thead th { background: #F8FAFC; color: #64748B; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .75rem 1rem; border-bottom: 1px solid rgba(0,0,0,.07); }
    .admin-tbl tbody tr { transition: background .15s; }
    .admin-tbl tbody tr:hover td { background: rgba(0,0,0,.03); }
    .admin-tbl tbody td { padding: .85rem 1rem; color: #334155; border-bottom: 1px solid rgba(0,0,0,.06); vertical-align: middle; }
    .admin-tbl tbody tr:last-child td { border-bottom: none; }
    .tbl-title { font-weight: 600; color: #0F172A; }
    .tbl-sub { font-size: .75rem; color: #64748B; margin-top: .15rem; }
    .tbl-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#059669); color:#fff; font-weight:700; font-size:.7rem; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .status-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 20px; font-size: .72rem; font-weight: 600; }
    .status-pending { background: rgba(217,119,6,.15); color: #B45309; }
    .status-approved { background: rgba(5,150,105,.15); color: #059669; }
    .status-rejected { background: rgba(239,68,68,.15); color: #DC2626; }
    .status-review { background: rgba(99,102,241,.15); color: #4F46E5; }
    .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
div.admin-bar { height: 6px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; }
    .admin-bar-fill { height: 100%; border-radius: 99px; background: var(--g-brand); }
    .activity-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid rgba(0,0,0,.04); }
    .activity-item:last-child { border-bottom: none; }
    .activity-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
    .activity-text { font-size: .8rem; color: #475569; line-height: 1.5; }
    .activity-time { font-size: .72rem; color: #94A3B8; margin-top: .15rem; }
    .section-hdr { display: flex; align-items: center; justify-content: space-between; }
    .section-hdr h2 { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0; }
    .section-hdr .see-all { font-size: .8rem; color: #60A5FA; text-decoration: none; }
    .section-hdr .see-all:hover { text-decoration: underline; }
    .tbl-btn { display: inline-flex; align-items: center; gap: .3rem; padding: 5px 10px; border-radius: 7px; font-size: .75rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: opacity .15s; }
    .tbl-btn:hover { opacity: .82; }
    .tbl-btn-view { background: rgba(37,99,235,.12); color: #2563EB; }
    .tbl-btn-approve { background: rgba(5,150,105,.12); color: #059669; }
    .tbl-btn-reject { background: rgba(239,68,68,.12); color: #DC2626; }
    .tbl-btn-edit { background: rgba(217,119,6,.12); color: #B45309; }
    .tbl-btn-ai { background: rgba(139,92,246,.15); color: #A78BFA; }
    .tbl-btn-suspend { background: rgba(245,158,11,.12); color: #B45309; }
    .tbl-btn-delete { background: rgba(239,68,68,.12); color: #DC2626; }
    .tbl-btn-deny { background: rgba(239,68,68,.12); color: #DC2626; }
    .sdg-cov-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
    .sdg-cov-label { font-size: .72rem; font-weight: 700; width: 24px; flex-shrink: 0; }
    .sdg-cov-bar-wrap { flex: 1; }
    .sdg-cov-count { font-size: .72rem; color: #94A3B8; width: 28px; text-align: right; }
    .admin-search { background: rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.1); color: #1E293B; border-radius: 8px; padding: 7px 14px 7px 36px; font-size: .82rem; outline: none; width: 200px; transition: border-color .15s; }
    .admin-search::placeholder { color: #94A3B8; }
    .admin-search:focus { border-color: rgba(37,99,235,.5); }
    .admin-card.stat-blue  { border-top: 3px solid #2563EB; }
    .admin-card.stat-green { border-top: 3px solid #059669; }
    .admin-card.stat-amber { border-top: 3px solid #D97706; }
    .admin-card.stat-violet{ border-top: 3px solid #7C3AED; }
    .admin-card.stat-red   { border-top: 3px solid #DC2626; }
    .quick-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
    .sidebar-toggle-btn { background: none; border: none; font-size: 1.25rem; color: #475569; cursor: pointer; padding: 4px; border-radius: 6px; display: flex; align-items: center; }
    .sidebar-toggle-btn:hover { background: rgba(0,0,0,.06); color: #0F172A; }
    .admin-hr { border: none; border-top: 1px solid rgba(0,0,0,.07); margin: 1rem 0; }
    .admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 150; }
    .admin-overlay.show { display: block; }
    /* Modal z-index fix */
    .modal { z-index: 1300 !important; }
    .modal-backdrop { z-index: 1250 !important; }
    .modal-dialog { z-index: 1301 !important; }
    @media (max-width: 991px) {
      .admin-sidebar { transform: translateX(-260px); }
      .admin-sidebar.open { transform: translateX(0); }
      .admin-topbar { left: 0; }
      .admin-main { margin-left: 0; }
      .admin-content { padding: 1rem; }
      .quick-stats { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
    }
    @media (min-width: 992px) {
      .admin-card { border-radius: 16px; padding: 1.75rem; }
      .admin-card:hover { box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 8px 30px rgba(15,23,42,.07); transform: translateY(-2px); transition: box-shadow .22s ease, transform .22s ease; }
      .admin-card.p-0:hover { transform: none; box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 4px 20px rgba(15,23,42,.04); }
      .admin-card.p-0 { overflow: hidden !important; }
      .quick-stats { gap: 1.25rem; }
      .section-hdr h2 { font-size: 1.05rem; }
      .admin-content { padding: 2rem 2rem; }
    }

    .form-section-title { font-size: .75rem; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 1.25rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(0,0,0,.06); }
    .form-label { display: block; font-size: .8125rem; font-weight: 600; color: #94A3B8; margin-bottom: .4rem; }
    .form-label .req { color: #DC2626; margin-left: 2px; }
    .form-ctrl { width: 100%; padding: 9px 13px; border: 1.5px solid rgba(0,0,0,.1); border-radius: 10px; font-size: .875rem; color: #1E293B; background: #FAFAFA; outline: none; transition: border-color .15s, box-shadow .15s; }
    .form-ctrl:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: #fff; }

/* ── Block 2 ── */
/* ---- Admin-specific overrides ---- */
    body:has(.admin-layout) { background: #F1F5F9; color: #334155; }
    .admin-layout { display: flex; min-height: 100vh; }

    /* Sidebar */
    .admin-sidebar {
      width: 260px; min-height: 100vh; background: #FFFFFF;
      border-right: 1px solid rgba(0,0,0,.07);
      display: flex; flex-direction: column;
      position: fixed; top: 0; left: 0; z-index: 200;
      transition: transform .3s ease;
    }
    .admin-sidebar.collapsed { transform: translateX(-260px); }
    .admin-sidebar-header {
      height: 60px; padding: 0 1.25rem;
      border-bottom: 1px solid rgba(0,0,0,.07);
      display: flex; align-items: center; gap: .75rem;
      flex-shrink: 0;
    }
    .admin-sidebar-header .logo-text { font-weight: 800; font-size: .95rem; color: #0F172A; line-height: 1.2; }
    .admin-sidebar-header .logo-sub { font-size: .7rem; color: #94A3B8; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
    .admin-nav-section { padding: .75rem 1rem .25rem; font-size: .68rem; color: #94A3B8; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
    .admin-nav-link {
      display: flex; align-items: center; gap: .75rem;
      padding: .6rem 1.25rem; color: #475569; font-size: .875rem; font-weight: 500;
      text-decoration: none; border-radius: 0; position: relative;
      transition: color .2s, background .2s;
    }
    .admin-nav-link i { font-size: 1.05rem; width: 1.25rem; text-align: center; }
    .admin-nav-link:hover { color: #0F172A; background: rgba(0,0,0,.05); }
    .admin-nav-link.active { color: #60A5FA; background: rgba(37,99,235,.12); border-left: 3px solid #2563EB; }
    .admin-badge { margin-left: auto; background: #FEE2E2; color: #991B1B; font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: 20px; min-width: 20px; text-align: center; }
    .admin-badge.green { background: #DCFCE7; color: #166534; }
    .admin-badge.amber { background: #FEF9C3; color: #92400E; }
    .admin-sidebar-footer { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid rgba(0,0,0,.07); }
    .admin-topbar { position: fixed; top: 0; left: 260px; right: 0; z-index: 100; height: 60px; background: #FFFFFF; border-bottom: 1px solid rgba(0,0,0,.07); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; transition: left .3s ease; }
    .admin-topbar.sidebar-collapsed { left: 0; }
    .admin-page-title { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0; }
    .admin-breadcrumb { font-size: .78rem; color: #64748B; display: flex; align-items: center; gap: .35rem; }
    .admin-topbar-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
    .admin-icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); background: rgba(0,0,0,.04); color: #475569; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; text-decoration: none; position: relative; }
    .admin-icon-btn:hover { background: rgba(0,0,0,.1); color: #1E293B; }
    .admin-notif-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; border: 2px solid #FFFFFF; }
    .admin-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#059669); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; }
    .admin-main { flex: 1; min-width: 0; margin-left: 260px; padding-top: 60px; min-height: 100vh; background: #F1F5F9; transition: margin-left .3s ease; }
    .admin-main.sidebar-collapsed { margin-left: 0; }
    .admin-content { padding: 2rem 1.5rem; }
    .admin-card { background: #FFFFFF; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 1.5rem; position: relative; overflow: hidden; }
    .admin-card-title { font-size: .8rem; color: #64748B; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
    .admin-stat-num { font-size: 2rem; font-weight: 800; color: #0F172A; line-height: 1; margin-bottom: .25rem; }
    .admin-stat-label { font-size: .8rem; color: #64748B; }
    .admin-stat-delta { font-size: .78rem; font-weight: 600; }
    .admin-stat-delta.up { color: #059669; }
    .admin-stat-delta.down { color: #DC2626; }
    .admin-stat-icon { position: absolute; top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
    .admin-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
    .admin-tbl thead th { background: #F8FAFC; color: #64748B; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .75rem 1rem; border-bottom: 1px solid rgba(0,0,0,.07); }
    .admin-tbl tbody tr { transition: background .15s; }
    .admin-tbl tbody tr:hover td { background: rgba(0,0,0,.03); }
    .admin-tbl tbody td { padding: .85rem 1rem; color: #334155; border-bottom: 1px solid rgba(0,0,0,.06); vertical-align: middle; }
    .admin-tbl tbody tr:last-child td { border-bottom: none; }
    .tbl-title { font-weight: 600; color: #0F172A; }
    .tbl-sub { font-size: .75rem; color: #64748B; margin-top: .15rem; }
    .tbl-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#059669); color:#fff; font-weight:700; font-size:.7rem; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .status-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 20px; font-size: .72rem; font-weight: 600; }
    .status-pending { background: rgba(217,119,6,.15); color: #B45309; }
    .status-approved { background: rgba(5,150,105,.15); color: #059669; }
    .status-rejected { background: rgba(239,68,68,.15); color: #DC2626; }
    .status-review { background: rgba(99,102,241,.15); color: #4F46E5; }
    .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
div.admin-bar { height: 6px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; }
    .admin-bar-fill { height: 100%; border-radius: 99px; background: var(--g-brand); }
    .activity-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid rgba(0,0,0,.04); }
    .activity-item:last-child { border-bottom: none; }
    .activity-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
    .activity-text { font-size: .8rem; color: #475569; line-height: 1.5; }
    .activity-time { font-size: .72rem; color: #94A3B8; margin-top: .15rem; }
    .section-hdr { display: flex; align-items: center; justify-content: space-between; }
    .section-hdr h2 { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0; }
    .section-hdr .see-all { font-size: .8rem; color: #60A5FA; text-decoration: none; }
    .section-hdr .see-all:hover { text-decoration: underline; }
    .tbl-btn { display: inline-flex; align-items: center; gap: .3rem; padding: 5px 10px; border-radius: 7px; font-size: .75rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: opacity .15s; }
    .tbl-btn:hover { opacity: .82; }
    .tbl-btn-view { background: rgba(37,99,235,.12); color: #2563EB; }
    .tbl-btn-approve { background: rgba(5,150,105,.12); color: #059669; }
    .tbl-btn-reject { background: rgba(239,68,68,.12); color: #DC2626; }
    .tbl-btn-edit { background: rgba(217,119,6,.12); color: #B45309; }
    .tbl-btn-ai { background: rgba(139,92,246,.15); color: #A78BFA; }
    .tbl-btn-suspend { background: rgba(245,158,11,.12); color: #B45309; }
    .tbl-btn-delete { background: rgba(239,68,68,.12); color: #DC2626; }
    .tbl-btn-deny { background: rgba(239,68,68,.12); color: #DC2626; }
    .sdg-cov-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
    .sdg-cov-label { font-size: .72rem; font-weight: 700; width: 24px; flex-shrink: 0; }
    .sdg-cov-bar-wrap { flex: 1; }
    .sdg-cov-count { font-size: .72rem; color: #94A3B8; width: 28px; text-align: right; }
    .admin-search { background: rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.1); color: #1E293B; border-radius: 8px; padding: 7px 14px 7px 36px; font-size: .82rem; outline: none; width: 200px; transition: border-color .15s; }
    .admin-search::placeholder { color: #94A3B8; }
    .admin-search:focus { border-color: rgba(37,99,235,.5); }
    .admin-card.stat-blue  { border-top: 3px solid #2563EB; }
    .admin-card.stat-green { border-top: 3px solid #059669; }
    .admin-card.stat-amber { border-top: 3px solid #D97706; }
    .admin-card.stat-violet{ border-top: 3px solid #7C3AED; }
    .admin-card.stat-red   { border-top: 3px solid #DC2626; }
    .quick-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
    .sidebar-toggle-btn { background: none; border: none; font-size: 1.25rem; color: #475569; cursor: pointer; padding: 4px; border-radius: 6px; display: flex; align-items: center; }
    .sidebar-toggle-btn:hover { background: rgba(0,0,0,.06); color: #0F172A; }
    .admin-hr { border: none; border-top: 1px solid rgba(0,0,0,.07); margin: 1rem 0; }
    .admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 150; }
    .admin-overlay.show { display: block; }
    /* Modal z-index fix */
    .modal { z-index: 1300 !important; }
    .modal-backdrop { z-index: 1250 !important; }
    .modal-dialog { z-index: 1301 !important; }
    @media (max-width: 991px) {
      .admin-sidebar { transform: translateX(-260px); }
      .admin-sidebar.open { transform: translateX(0); }
      .admin-topbar { left: 0; }
      .admin-main { margin-left: 0; }
      .admin-content { padding: 1rem; }
      .quick-stats { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
    }
    @media (min-width: 992px) {
      .admin-card { border-radius: 16px; padding: 1.75rem; }
      .admin-card:hover { box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 8px 30px rgba(15,23,42,.07); transform: translateY(-2px); transition: box-shadow .22s ease, transform .22s ease; }
      .admin-card.p-0:hover { transform: none; box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 4px 20px rgba(15,23,42,.04); }
      .admin-card.p-0 { overflow: hidden !important; }
      .quick-stats { gap: 1.25rem; }
      .section-hdr h2 { font-size: 1.05rem; }
      .admin-content { padding: 2rem 2rem; }
    }

/* ── Block 3 — Auth pages (login, signup, forgot-password, reset-password, two-factor) ── */

/* Background */
body:not(:has(.admin-layout)) {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100svh;
  background: linear-gradient(145deg, #020d08 0%, #071535 50%, #020810 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2.5rem 1rem;
  position: relative; overflow-x: hidden;
}

/* Animated mesh blobs */
body:not(:has(.admin-layout))::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(5,150,105,.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 90% 80%, rgba(37,99,235,.2) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 70% 15%, rgba(124,58,237,.12) 0%, transparent 60%);
}
body:not(:has(.admin-layout))::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0V0zm1 1v58h58V1H1z' fill='%23ffffff' fill-opacity='0.015'/%3E%3C/svg%3E");
}

/* Logo / brand — centered */
.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative; z-index: 2;
  width: 100%;
}
.auth-brand a {
  display: inline-flex;
  align-items: center; justify-content: center;
}
.auth-brand img {
  height: 44px; width: auto;
  display: block; margin: 0 auto;
  filter: drop-shadow(0 2px 12px rgba(255,255,255,.15));
}

/* Card */
.auth-card {
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  box-shadow:
    0 32px 80px rgba(0,0,0,.45),
    0 8px 32px rgba(0,0,0,.2),
    0 1px 0 rgba(255,255,255,.12) inset;
  width: 100%; max-width: 460px;
  position: relative; z-index: 2;
  border: 1px solid rgba(255,255,255,.1);
}

/* Card top accent line — removed per design */

/* Labels & legacy classes */
.auth-title { font-size: 1.4rem; font-weight: 800; color: #0F172A; margin-bottom: .3rem; }
.auth-sub { font-size: .84rem; color: #64748B; line-height: 1.6; margin-bottom: 1.4rem; }
.auth-label {
  display: block; font-size: .8rem; font-weight: 600;
  color: #334155; margin-bottom: .4rem; letter-spacing: .01em;
}

/* Inputs */
.auth-input {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid #E2E8F0; border-radius: 12px;
  font-size: .9rem; color: #0F172A;
  background: #F8FAFC; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  font-family: inherit;
}
.auth-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}
.auth-input.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.auth-input::placeholder { color: #C0CCDA; }

/* Submit button */
.auth-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #059669 100%);
  color: #fff; border: none; border-radius: 12px;
  font-size: .96rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(37,99,235,.3);
  letter-spacing: .01em; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none;
}
.auth-btn:hover { opacity: .93; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,99,235,.4); color: #fff; }
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: .6; transform: none; cursor: not-allowed; box-shadow: none; }

/* Links */
.auth-link { color: #2563EB; font-weight: 600; text-decoration: none; transition: color .15s; }
.auth-link:hover { color: #1D4ED8; text-decoration: underline; }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0; color: #CBD5E1; font-size: .78rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
}

/* Misc */
.input-wrap { position: relative; }
.pwd-toggle {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  cursor: pointer; background: none; border: none; padding: 0; line-height: 1;
  color: #94A3B8; font-size: 1rem; transition: color .15s;
}
.pwd-toggle:hover { color: #475569; }
.pwd-strength { margin-top: .45rem; }
.pwd-strength-bar { height: 4px; background: #E2E8F0; border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.pwd-strength-fill { height: 100%; border-radius: 99px; transition: width .35s, background .35s; }
.pwd-strength-text { font-size: .7rem; color: #94A3B8; }
.field-err { font-size: .75rem; color: #DC2626; margin-top: .25rem; display: none; }
.field-err.show { display: block; }

/* ── Block 4 ── */
/* ---- Admin-specific overrides ---- */
    body:has(.admin-layout) { background: #F1F5F9; color: #334155; }
    .admin-layout { display: flex; min-height: 100vh; }

    /* Sidebar */
    .admin-sidebar {
      width: 260px; min-height: 100vh; background: #FFFFFF;
      border-right: 1px solid rgba(0,0,0,.07);
      display: flex; flex-direction: column;
      position: fixed; top: 0; left: 0; z-index: 200;
      transition: transform .3s ease;
    }
    .admin-sidebar.collapsed { transform: translateX(-260px); }
    .admin-sidebar-header {
      height: 60px; padding: 0 1.25rem;
      border-bottom: 1px solid rgba(0,0,0,.07);
      display: flex; align-items: center; gap: .75rem;
      flex-shrink: 0;
    }
    .admin-sidebar-header .logo-text { font-weight: 800; font-size: .95rem; color: #0F172A; line-height: 1.2; }
    .admin-sidebar-header .logo-sub { font-size: .7rem; color: #94A3B8; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
    .admin-nav-section { padding: .75rem 1rem .25rem; font-size: .68rem; color: #94A3B8; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
    .admin-nav-link {
      display: flex; align-items: center; gap: .75rem;
      padding: .6rem 1.25rem; color: #475569; font-size: .875rem; font-weight: 500;
      text-decoration: none; border-radius: 0; position: relative;
      transition: color .2s, background .2s;
    }
    .admin-nav-link i { font-size: 1.05rem; width: 1.25rem; text-align: center; }
    .admin-nav-link:hover { color: #0F172A; background: rgba(0,0,0,.05); }
    .admin-nav-link.active { color: #60A5FA; background: rgba(37,99,235,.12); border-left: 3px solid #2563EB; }
    .admin-badge { margin-left: auto; background: #FEE2E2; color: #991B1B; font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: 20px; min-width: 20px; text-align: center; }
    .admin-badge.green { background: #DCFCE7; color: #166534; }
    .admin-badge.amber { background: #FEF9C3; color: #92400E; }
    .admin-sidebar-footer { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid rgba(0,0,0,.07); }
    .admin-topbar { position: fixed; top: 0; left: 260px; right: 0; z-index: 100; height: 60px; background: #FFFFFF; border-bottom: 1px solid rgba(0,0,0,.07); display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; transition: left .3s ease; }
    .admin-topbar.sidebar-collapsed { left: 0; }
    .admin-page-title { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0; }
    .admin-breadcrumb { font-size: .78rem; color: #64748B; display: flex; align-items: center; gap: .35rem; }
    .admin-topbar-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
    .admin-icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); background: rgba(0,0,0,.04); color: #475569; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; text-decoration: none; position: relative; }
    .admin-icon-btn:hover { background: rgba(0,0,0,.1); color: #1E293B; }
    .admin-notif-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; border: 2px solid #FFFFFF; }
    .admin-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#059669); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; }
    .admin-main { flex: 1; min-width: 0; margin-left: 260px; padding-top: 60px; min-height: 100vh; background: #F1F5F9; transition: margin-left .3s ease; }
    .admin-main.sidebar-collapsed { margin-left: 0; }
    .admin-content { padding: 2rem 1.5rem; }
    .admin-card { background: #FFFFFF; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 1.5rem; position: relative; overflow: hidden; }
    .admin-card-title { font-size: .8rem; color: #64748B; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
    .admin-stat-num { font-size: 2rem; font-weight: 800; color: #0F172A; line-height: 1; margin-bottom: .25rem; }
    .admin-stat-label { font-size: .8rem; color: #64748B; }
    .admin-stat-delta { font-size: .78rem; font-weight: 600; }
    .admin-stat-delta.up { color: #059669; }
    .admin-stat-delta.down { color: #DC2626; }
    .admin-stat-icon { position: absolute; top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
    .admin-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
    .admin-tbl thead th { background: #F8FAFC; color: #64748B; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .75rem 1rem; border-bottom: 1px solid rgba(0,0,0,.07); }
    .admin-tbl tbody tr { transition: background .15s; }
    .admin-tbl tbody tr:hover td { background: rgba(0,0,0,.03); }
    .admin-tbl tbody td { padding: .85rem 1rem; color: #334155; border-bottom: 1px solid rgba(0,0,0,.06); vertical-align: middle; }
    .admin-tbl tbody tr:last-child td { border-bottom: none; }
    .tbl-title { font-weight: 600; color: #0F172A; }
    .tbl-sub { font-size: .75rem; color: #64748B; margin-top: .15rem; }
    .tbl-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#059669); color:#fff; font-weight:700; font-size:.7rem; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .status-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 20px; font-size: .72rem; font-weight: 600; }
    .status-pending { background: rgba(217,119,6,.15); color: #B45309; }
    .status-approved { background: rgba(5,150,105,.15); color: #059669; }
    .status-rejected { background: rgba(239,68,68,.15); color: #DC2626; }
    .status-review { background: rgba(99,102,241,.15); color: #4F46E5; }
    .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
div.admin-bar { height: 6px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; }
    .admin-bar-fill { height: 100%; border-radius: 99px; background: var(--g-brand); }
    .activity-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid rgba(0,0,0,.04); }
    .activity-item:last-child { border-bottom: none; }
    .activity-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
    .activity-text { font-size: .8rem; color: #475569; line-height: 1.5; }
    .activity-time { font-size: .72rem; color: #94A3B8; margin-top: .15rem; }
    .section-hdr { display: flex; align-items: center; justify-content: space-between; }
    .section-hdr h2 { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0; }
    .section-hdr .see-all { font-size: .8rem; color: #60A5FA; text-decoration: none; }
    .section-hdr .see-all:hover { text-decoration: underline; }
    .tbl-btn { display: inline-flex; align-items: center; gap: .3rem; padding: 5px 10px; border-radius: 7px; font-size: .75rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: opacity .15s; }
    .tbl-btn:hover { opacity: .82; }
    .tbl-btn-view { background: rgba(37,99,235,.12); color: #2563EB; }
    .tbl-btn-approve { background: rgba(5,150,105,.12); color: #059669; }
    .tbl-btn-reject { background: rgba(239,68,68,.12); color: #DC2626; }
    .tbl-btn-edit { background: rgba(217,119,6,.12); color: #B45309; }
    .tbl-btn-ai { background: rgba(139,92,246,.15); color: #A78BFA; }
    .tbl-btn-suspend { background: rgba(245,158,11,.12); color: #B45309; }
    .tbl-btn-delete { background: rgba(239,68,68,.12); color: #DC2626; }
    .tbl-btn-deny { background: rgba(239,68,68,.12); color: #DC2626; }
    .sdg-cov-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
    .sdg-cov-label { font-size: .72rem; font-weight: 700; width: 24px; flex-shrink: 0; }
    .sdg-cov-bar-wrap { flex: 1; }
    .sdg-cov-count { font-size: .72rem; color: #94A3B8; width: 28px; text-align: right; }
    .admin-search { background: rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.1); color: #1E293B; border-radius: 8px; padding: 7px 14px 7px 36px; font-size: .82rem; outline: none; width: 200px; transition: border-color .15s; }
    .admin-search::placeholder { color: #94A3B8; }
    .admin-search:focus { border-color: rgba(37,99,235,.5); }
    .admin-card.stat-blue  { border-top: 3px solid #2563EB; }
    .admin-card.stat-green { border-top: 3px solid #059669; }
    .admin-card.stat-amber { border-top: 3px solid #D97706; }
    .admin-card.stat-violet{ border-top: 3px solid #7C3AED; }
    .admin-card.stat-red   { border-top: 3px solid #DC2626; }
    .quick-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
    .sidebar-toggle-btn { background: none; border: none; font-size: 1.25rem; color: #475569; cursor: pointer; padding: 4px; border-radius: 6px; display: flex; align-items: center; }
    .sidebar-toggle-btn:hover { background: rgba(0,0,0,.06); color: #0F172A; }
    .admin-hr { border: none; border-top: 1px solid rgba(0,0,0,.07); margin: 1rem 0; }
    .admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 150; }
    .admin-overlay.show { display: block; }
    /* Modal z-index fix */
    .modal { z-index: 1300 !important; }
    .modal-backdrop { z-index: 1250 !important; }
    .modal-dialog { z-index: 1301 !important; }
    @media (max-width: 991px) {
      .admin-sidebar { transform: translateX(-260px); }
      .admin-sidebar.open { transform: translateX(0); }
      .admin-topbar { left: 0; }
      .admin-main { margin-left: 0; }
      .admin-content { padding: 1rem; }
      .quick-stats { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
    }
    @media (min-width: 992px) {
      .admin-card { border-radius: 16px; padding: 1.75rem; }
      .admin-card:hover { box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 8px 30px rgba(15,23,42,.07); transform: translateY(-2px); transition: box-shadow .22s ease, transform .22s ease; }
      .admin-card.p-0:hover { transform: none; box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 4px 20px rgba(15,23,42,.04); }
      .admin-card.p-0 { overflow: hidden !important; }
      .quick-stats { gap: 1.25rem; }
      .section-hdr h2 { font-size: 1.05rem; }
      .admin-content { padding: 2rem 2rem; }
    }

    .step-circle { width:32px;height:32px;border-radius:50%;border:2px solid rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:#94A3B8;background:#fff;transition:.2s; }
    .step-item.active .step-circle { background:#2563EB;border-color:#2563EB;color:#fff; }
    .step-item.done .step-circle { background:#059669;border-color:#059669;color:#fff; }
    .step-label { font-size:.7rem;color:#94A3B8;margin-top:4px;text-align:center; }
    .step-item.active .step-label { color:#2563EB;font-weight:600; }
    .step-item.done .step-label { color:#059669; }
    .steps-row { display:flex;justify-content:space-between;margin-bottom:2rem;position:relative; }
    .steps-row::before { content:'';position:absolute;top:16px;left:5%;right:5%;height:2px;background:rgba(0,0,0,.08);z-index:0; }
    .step-item { display:flex;flex-direction:column;align-items:center;flex:1;z-index:1; }
    .form-panel { display:none; }
    .form-panel.active { display:block; }
    .req { color:#DC2626; }
    .form-field { margin-bottom:1rem; }


/* ── ADMIN INLINE STYLE CLASSES ────────────────────────────── */
/* These classes replace inline style="" attributes in admin HTML pages */
.adm-fs-0 { padding-left:2rem;font-size:.82rem; }
.adm-fs-1 { font-size:.6rem; }
.adm-bdr-2 { border-bottom:1px solid rgba(0,0,0,.07); }
.adm-txt-3 { font-size:.8rem;font-weight:600;color:#1E293B; }
.adm-txt-4 { font-size:.8rem;color:#64748B; }
.adm-bg-5 { background:#D97706; }
.adm-clr-6 { color:#059669; }
.adm-size-7 { height:34px;width:auto;display:block; }
.adm-w-8 { min-width:0; }
.adm-size-9 { flex-shrink:0;width:36px;height:36px;border-radius:50%; }
.adm-w-10 { min-width:0;flex:1; }
.adm-txt-11 { font-size:.82rem;font-weight:600;color:#1E293B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.adm-txt-12 { font-size:.72rem;color:#94A3B8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.adm-s-13 { flex-shrink:0; }
.adm-s-14 { color:inherit;text-decoration:none; }
.adm-txt-15 { font-size:.72rem;color:#64748B; }
.adm-fs-16 { font-size:.82rem; }
.adm-txt-17 { font-size:.78rem;color:#64748B; }
.adm-clr-18 { color:#0F172A; }
.adm-clr-19 { color:#DC2626; }
.adm-bg-20 { background:#2563EB; }
.adm-bg-21 { background:#059669; }
.adm-bg-22 { background:#94A3B8; }
.adm-bg-23 { background:#EF4444; }
.adm-pos-24 { position:relative; }
.adm-size-25 { width:34px;height:34px;object-fit:contain; }
.adm-size-26 { width:28px;height:28px;object-fit:contain; }
.adm-bg-clr-27 { background:rgba(255,255,255,.15);border:none;border-radius:8px;width:30px;height:30px;color:white;cursor:pointer; }
.adm-s-28 { row-gap:.35rem; }
.adm-bdr-29 { border-top:1px solid rgba(0,0,0,.07); }
.adm-fs-30 { padding:.25rem .6rem;border-radius:20px;font-size:.72rem;font-weight:700; }
.adm-txt-31 { font-size:.8rem;color:#1E293B; }
.adm-fs-32 { font-size:.85rem; }
.adm-clr-33 { color:#2563EB; }
.adm-txt-34 { font-size:.8rem;color:#334155; }
.adm-pad-35 { text-align:center;padding:2rem;color:#94A3B8; }
.adm-pos-36 { display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:199; }
.adm-bg-37 { background:#64748B; }
.adm-bg-clr-38 { background:rgba(5,150,105,.15);color:#059669; }
.adm-ov-39 { overflow:hidden; }
.adm-txt-40 { font-size:.82rem;color:#1E293B; }
.adm-w-41 { position:relative;flex:1;min-width:200px;max-width:320px; }
.adm-txt-42 { position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#94A3B8;font-size:.85rem;pointer-events:none; }
.adm-fs-43 { width:100%;padding:7px 12px 7px 32px;border-radius:9px;border:1px solid rgba(0,0,0,.1);font-size:.85rem;outline:none; }
.adm-txt-44 { font-size:.8rem;color:#64748B;display:flex;align-items:center;gap:6px; }
.adm-badge-45 { padding:5px 8px;border-radius:7px;border:1px solid rgba(0,0,0,.12);font-size:.8rem;color:#334155;background:#fff;outline:none; }
.adm-ov-46 { overflow-x:auto; }
.adm-bg-clr-47 { background:rgba(124,58,237,.12);color:#7C3AED; }
.adm-clr-48 { color:var(--muted); }
.adm-bdr-49 { background:#FFFFFF;border:1px solid rgba(0,0,0,.1);border-radius:16px;color:#334155; }
.adm-pad-50 { padding:7px 16px; }
.adm-fs-51 { font-size:.68rem; }
.adm-txt-52 { font-size:.7rem;color:#94A3B8;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px; }
.adm-clr-53 { color:#B45309; }
.adm-w-54 { width:80px; }
.adm-txt-55 { background:#05966918;color:#059669;font-size:.68rem; }
.adm-box-56 { border-bottom:1px solid rgba(0,0,0,.08);padding:1.25rem 1.5rem; }
.adm-s-57 { color:#94A3B8;font-weight:600; }
.adm-box-58 { border-top:1px solid rgba(0,0,0,.08);padding:1rem 1.5rem;gap:.5rem; }
.adm-s-59 { color:#0F172A;font-weight:700; }
.adm-badge-60 { background:rgba(0,0,0,.04);border-radius:10px;padding:12px; }
.adm-s-61 { font-weight:600;color:#059669; }
.adm-d-62 { display:none; }
.adm-bg-clr-63 { background:rgba(37,99,235,.15);color:#60A5FA; }
.adm-bg-clr-64 { background:rgba(217,119,6,.15);color:#B45309; }
.adm-pad-65 { padding-right:44px; }
.adm-bg-clr-66 { background:rgba(5,150,105,.15);color:#059669;border-color:rgba(5,150,105,.3); }
.adm-w-67 { max-width:420px; }
.adm-txt-68 { color:#0F172A;font-weight:700;font-size:.95rem; }
.adm-fs-69 { padding:1.25rem 1.5rem;font-size:.875rem; }
.adm-bg-clr-70 { padding:7px 16px;background:rgba(0,0,0,.07);color:#94A3B8; }
.adm-clr-71 { color:#D97706; }
.adm-pad-72 { padding:8px 16px; }
.adm-txt-73 { font-size:.82rem;color:#94A3B8;margin-bottom:6px;display:block; }
.adm-s-74 { font-weight:600;color:#2563EB; }
.adm-txt-75 { font-size:.82rem;color:#475569; }
.adm-clr-76 { color:#1E293B; }
.adm-grid-77 { grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:1.5rem; }
.adm-clr-78 { color:#4F46E5; }
.adm-bg-clr-79 { background:rgba(99,102,241,.15);color:#4F46E5; }
.adm-bg-clr-80 { background:rgba(37,99,235,.15);color:#60A5FA;font-size:.7rem; }
.adm-fs-81 { font-size:1rem; }
.adm-bg-clr-82 { background:rgba(5,150,105,.15);color:#059669;font-size:.7rem; }
.adm-txt-83 { background:#2563EB18;color:#2563EB;font-size:.68rem; }
.adm-bg-clr-84 { background:rgba(100,116,139,.12);color:#475569; }
.adm-txt-85 { font-size:.75rem;color:#94A3B8; }
.adm-txt-86 { font-size:.875rem;color:#334155;line-height:1.7;margin:0; }
.adm-s-87 { font-weight:600;color:#1E293B; }
.adm-txt-88 { font-size:.78rem;color:#DC2626; }
.adm-fs-89 { font-size:.875rem; }
.adm-txt-90 { font-size:.875rem;font-weight:600;color:#1E293B; }
.adm-txt-91 { font-size:.75rem;color:#64748B; }
.adm-bg-clr-92 { background:rgba(239,68,68,.15);color:#DC2626; }
.adm-txt-93 { font-size:.82rem;color:#059669;font-weight:600; }
.adm-clr-94 { color:#7C3AED; }
.adm-grid-95 { grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:1.5rem; }
.adm-txt-96 { font-size:.8rem;font-weight:600;color:#64748B;display:block;margin-bottom:6px; }
.adm-txt-97 { background:#D9770618;color:#D97706;font-size:.68rem; }
.adm-txt-98 { background:#16653418;color:#166534;font-size:.68rem; }
.adm-txt-99 { background:#BE185D18;color:#BE185D;font-size:.68rem; }
.adm-txt-100 { background:#7C3AED18;color:#7C3AED;font-size:.68rem; }
.adm-bg-clr-101 { background:rgba(217,119,6,.15);color:#B45309;font-size:.7rem; }
.adm-txt-102 { font-size:.7rem;color:#94A3B8;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px; }
.adm-clr-103 { color:#334155; }
.adm-pad-104 { padding:8px 20px; }
.adm-bdr-105 { background:#FFFFFF;border:1px solid rgba(239,68,68,.3);border-radius:16px;color:#334155; }
.adm-bg-clr-106 { background:rgba(5,150,105,.12);color:#059669; }
.adm-bg-clr-107 { background:rgba(37,99,235,.12);color:#2563EB; }
.adm-bg-clr-108 { background:rgba(217,119,6,.12);color:#D97706; }
.adm-txt-109 { font-size:.82rem;color:#94A3B8; }


/* ================================================================
   MISSING CSS — Auth pages redesign + new component classes
   ================================================================ */

/* ── Auth page shared structure ─────────────────────────────── */
.auth-icon-badge {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #2563EB 0%, #059669 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white; margin: 0 auto 1.25rem;
  box-shadow: 0 8px 28px rgba(37,99,235,.35);
}
.auth-card-title {
  font-size: 1.5rem; font-weight: 800; color: #0F172A;
  text-align: center; margin-bottom: .35rem;
  font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em;
}
.auth-card-sub {
  font-size: .855rem; color: #64748B; text-align: center;
  margin-bottom: 1.5rem; line-height: 1.6;
}
.auth-card-sub a { color: #2563EB; font-weight: 600; text-decoration: none; }
.auth-card-sub a:hover { text-decoration: underline; }
.auth-field { margin-bottom: 1rem; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.auth-grid .auth-field.full { grid-column: 1 / -1; }
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94A3B8;
  font-size: 1rem; padding: 0; line-height: 1; transition: color .15s;
}
.auth-input-icon:hover { color: #475569; }
.auth-select {
  width: 100%; padding: 11px 15px; border: 1.5px solid #E2E8F0;
  border-radius: 12px; font-size: .875rem; color: #0F172A;
  background: #F8FAFC; outline: none; cursor: pointer;
  transition: border-color .18s, box-shadow .18s; appearance: none;
  font-family: inherit;
}
.auth-select:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem; font-size: .83rem;
}
.auth-check-label { display: flex; align-items: center; gap: .4rem; color: #475569; cursor: pointer; font-size: .83rem; }
.auth-check-label input { accent-color: #2563EB; }
.auth-forgot { color: #2563EB; font-weight: 600; font-size: .83rem; text-decoration: none; transition: color .15s; }
.auth-forgot:hover { color: #1D4ED8; text-decoration: underline; }
.btn-auth {
  width: 100%; padding: 12px; margin-top: .35rem;
  background: linear-gradient(135deg, #2563EB 0%, #059669 100%);
  color: #fff; border: none; border-radius: 12px;
  font-size: .96rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(37,99,235,.3);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .01em;
}
.btn-auth:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,99,235,.4); color: #fff; }
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { opacity: .6; transform: none; cursor: not-allowed; box-shadow: none; }
.auth-note { font-size: .78rem; color: #94A3B8; text-align: center; margin-top: 1rem; line-height: 1.6; }
.auth-note a { color: #64748B; font-weight: 500; transition: color .15s; }
.auth-note a:hover { color: #2563EB; }
.auth-error {
  display: none; align-items: center; gap: .5rem;
  background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.18);
  color: #DC2626; border-radius: 10px; padding: .7rem 1rem;
  font-size: .83rem; margin-bottom: 1rem; font-weight: 500;
}
.auth-error.show { display: flex; }
.auth-terms { display: flex; align-items: flex-start; gap: .6rem; margin: .75rem 0 1.1rem; }
.auth-terms input { margin-top: 3px; accent-color: #2563EB; flex-shrink: 0; }
.auth-terms-text { font-size: .8rem; color: #475569; line-height: 1.6; }
.auth-terms-text a { color: #2563EB; font-weight: 500; }

/* Demo hints (login page) */
/* Legacy demo badges (kept for backward compat) */
.demo-hints { display: flex; gap: .5rem; margin-bottom: 1.1rem; }
.demo-badge {
  flex: 1; padding: .5rem .75rem; border-radius: 10px; border: 1.5px solid #E2E8F0;
  background: #F8FAFC; font-size: .78rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: all .18s; color: #475569;
}
.demo-badge:hover { border-color: #2563EB; color: #2563EB; background: #EFF6FF; transform: translateY(-1px); }
.user-badge { color: #059669; border-color: rgba(5,150,105,.3); background: rgba(5,150,105,.05); }
.user-badge:hover { border-color: #059669; background: rgba(5,150,105,.1); color: #047857; }

/* ── Demo account tabs ────────────────────────────────────── */
.demo-tabs {
  display: flex; gap: 1.5rem; justify-content: center;
  border-bottom: 1.5px solid #E2E8F0;
  margin-bottom: 1.25rem;
}
.demo-tab {
  display: flex; align-items: center; gap: .35rem;
  padding: .5rem 0;
  border: none; background: transparent;
  font-size: .82rem; font-weight: 500; color: #94A3B8;
  cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.demo-tab:hover { color: #475569; }
.demo-tab.active {
  color: #2563EB;
  font-weight: 600;
  border-bottom-color: #2563EB;
}

/* Password strength */
.pwd-strength-label { font-size: .7rem; color: #94A3B8; margin-top: 3px; display: block; }
.pwd-req { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: #94A3B8; margin-bottom: 3px; }
.pwd-req.met { color: #059669; }
.pwd-reqs { margin-top: .5rem; }
.pwd-match { font-size: .75rem; margin-top: .25rem; }

/* Success overlay */
.auth-success { display: none; text-align: center; padding: 1rem 0; }
.auth-success.show { display: block; }
.auth-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #059669, #2563EB);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: white; margin: 0 auto 1rem;
}
.auth-success-title { font-size: 1.15rem; font-weight: 800; color: #0F172A; margin-bottom: .5rem; }
.auth-success-msg { font-size: .875rem; color: #64748B; line-height: 1.6; }
.auth-success-email { font-weight: 700; color: #2563EB; }
.success-overlay { text-align: center; padding: 1rem 0; }
.success-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }

/* OTP inputs (two-factor) */
.otp-group { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 1.4rem 0; }
.otp-input {
  width: 50px; height: 58px; border: 2px solid #E2E8F0; border-radius: 12px;
  text-align: center; font-size: 1.6rem; font-weight: 800; color: #0F172A;
  background: #F8FAFC; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.otp-input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.otp-input.filled { border-color: rgba(37,99,235,.4); background: #EFF6FF; }
.otp-input.error { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.otp-sep { font-size: 1.4rem; color: #CBD5E1; font-weight: 200; margin: 0 .1rem; }
.otp-error { color: #DC2626; font-size: .82rem; font-weight: 500; text-align: center; min-height: 1.4em; margin-bottom: .5rem; }

/* Method pills (two-factor) */
.method-pills { display: flex; gap: .4rem; margin-bottom: 1.3rem; padding: 4px; background: #F1F5F9; border-radius: 12px; }
.method-pill { flex: 1; padding: .5rem .4rem; border-radius: 9px; border: none; background: transparent; font-size: .76rem; font-weight: 600; color: #64748B; cursor: pointer; transition: all .18s; text-align: center; font-family: inherit; }
.method-pill:hover { color: #2563EB; }
.method-pill.active { background: #fff; color: #2563EB; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* Resend row */
.resend-row { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .75rem; font-size: .82rem; color: #94A3B8; }
.resend-btn { background: none; border: none; color: #2563EB; font-weight: 600; font-size: .82rem; cursor: pointer; padding: 0; transition: color .15s; font-family: inherit; }
.resend-btn:hover { color: #1D4ED8; }
.resend-btn:disabled { color: #94A3B8; cursor: not-allowed; }
.resend-timer { font-weight: 700; color: #475569; }

/* Avatar preview */
.avatar-preview { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#059669); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: white; margin: 0 auto .75rem; }

/* Success states */
.auth-success { display: none; text-align: center; padding: 1rem 0; }
.auth-success.show { display: block; }
.auth-success-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg,#059669,#2563EB); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; margin: 0 auto 1.1rem; box-shadow: 0 8px 28px rgba(5,150,105,.3); }
.auth-success-title { font-size: 1.2rem; font-weight: 800; color: #0F172A; margin-bottom: .5rem; }
.auth-success-msg { font-size: .875rem; color: #64748B; line-height: 1.65; }
.auth-success-email { font-weight: 700; color: #2563EB; }
.success-overlay { text-align: center; padding: 1rem 0; }
.success-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }

/* Password requirements */
.pwd-strength-label { font-size: .7rem; color: #94A3B8; margin-top: 3px; display: block; }
.pwd-req { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: #94A3B8; margin-bottom: 3px; }
.pwd-req.met { color: #059669; }
.pwd-reqs { margin-top: .5rem; }
.pwd-match { font-size: .75rem; margin-top: .25rem; }

/* ── Admin panel extra classes ──────────────────────────────── */
.tbl-btn-review { background: rgba(99,102,241,.12); color: #4F46E5; }
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #CBD5E1; border-radius: 24px; transition: background .2s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform .2s; }
.toggle-switch input:checked + .toggle-slider { background: #2563EB; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* add-user.html buttons */
.btn-primary-admin { display: inline-flex; align-items: center; gap: .4rem; padding: 10px 22px; background: linear-gradient(135deg,#2563EB,#059669); color: #fff; border: none; border-radius: 10px; font-size: .9rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: opacity .15s, transform .15s; }
.btn-primary-admin:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.btn-secondary-admin { display: inline-flex; align-items: center; gap: .4rem; padding: 10px 22px; background: rgba(0,0,0,.06); color: #475569; border: 1.5px solid rgba(0,0,0,.1); border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .15s; }
.btn-secondary-admin:hover { border-color: #2563EB; color: #2563EB; background: #EFF6FF; }

/* ── Modal overrides — compound selectors to beat Bootstrap ── */
.admin-layout ~ .modal .modal-content,
.modal .modal-content {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 16px;
  color: #334155;
}
.modal .modal-content.modal-content--red {
  border-color: rgba(239,68,68,.3);
}
.modal .modal-content.modal-content--green {
  border-color: rgba(5,150,105,.3);
}
.modal .modal-content.modal-content--violet {
  border-color: rgba(139,92,246,.3);
}
.modal .modal-header {
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 1.25rem 1.5rem;
}
.modal .modal-body {
  padding: 1.25rem 1.5rem;
}
.modal .modal-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 1rem 1.5rem;
  gap: .5rem;
}

/* ================================================================
   ADMIN DESIGN SYSTEM — Typography, Buttons, Tables, Spacing
   Overrides all duplicate block definitions above
   ================================================================ */

/* ── 1. BASE TYPOGRAPHY ────────────────────────────────────── */
.admin-layout,
.admin-layout * {
  font-family: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body:has(.admin-layout) {
  background: #F0F4F8;
  font-size: .9rem;
  line-height: 1.6;
  color: #334155;
}

/* ── 2. SIDEBAR ────────────────────────────────────────────── */
.admin-sidebar {
  width: 260px; min-height: 100vh;
  background: #FFFFFF;
  border-right: 1px solid #E8EEF6;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; z-index: 200;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 2px 0 16px rgba(15,23,42,.04);
}

.admin-sidebar-header {
  height: 64px; padding: 0 1.25rem;
  border-bottom: 1px solid #F1F5F9;
  display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0;
}

.admin-nav-section {
  padding: 1.25rem 1.25rem .4rem;
  font-size: .65rem; color: #94A3B8;
  font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
}

.admin-nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem 1.25rem; color: #64748B;
  font-size: .845rem; font-weight: 500;
  text-decoration: none; position: relative;
  margin: 1px 0; transition: color .15s, background .15s;
}

.admin-nav-link i { font-size: 1rem; width: 1.15rem; text-align: center; flex-shrink: 0; }
.admin-nav-link:hover { color: #1E293B; background: #F8FAFC; }
.admin-nav-link.active {
  color: #2563EB; background: rgba(37,99,235,.07);
  font-weight: 600;
  border-left: 3px solid #2563EB;
  padding-left: calc(1.25rem - 3px);
}

.admin-badge {
  margin-left: auto; background: #FEE2E2; color: #991B1B;
  font-size: .62rem; font-weight: 700;
  padding: .12rem .42rem; border-radius: 20px;
  min-width: 18px; text-align: center; line-height: 1.6;
}
.admin-badge.green { background: #DCFCE7; color: #166534; }
.admin-badge.amber { background: #FEF9C3; color: #92400E; }

.admin-sidebar-footer {
  margin-top: auto; padding: .875rem 1.25rem;
  border-top: 1px solid #F1F5F9;
}

/* ── 3. TOPBAR ─────────────────────────────────────────────── */
.admin-topbar {
  position: fixed; top: 0; left: 260px; right: 0;
  z-index: 100; height: 64px;
  background: #FFFFFF; border-bottom: 1px solid #E8EEF6;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.75rem;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 8px rgba(15,23,42,.04);
}
.admin-topbar.sidebar-collapsed { left: 0; }

.admin-page-title {
  font-size: 1rem; font-weight: 700;
  color: #0F172A; margin: 0; letter-spacing: -.01em;
}
.admin-breadcrumb {
  font-size: .75rem; color: #94A3B8;
  display: flex; align-items: center; gap: .3rem; margin-top: 1px;
}
.admin-breadcrumb a { color: #94A3B8; text-decoration: none; }
.admin-breadcrumb a:hover { color: #2563EB; }

.admin-main {
  margin-left: 260px; padding-top: 64px;
  min-height: 100vh; background: #F0F4F8;
  transition: margin-left .3s cubic-bezier(.4,0,.2,1);
}
.admin-main.sidebar-collapsed { margin-left: 0; }
.admin-content { padding: 2rem; }

/* ── 4. CARDS ──────────────────────────────────────────────── */
.admin-card {
  background: #FFFFFF;
  border: 1px solid #E8EEF6;
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}
.admin-card:not(.p-0):hover {
  box-shadow: 0 4px 20px rgba(15,23,42,.08);
  transform: translateY(-1px);
}
.admin-card.p-0 { padding: 0; overflow: hidden; }

.admin-card-title {
  font-size: .72rem; color: #94A3B8; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: .6rem;
}

/* Stat cards */
.admin-card.stat-blue   { border-top: 3px solid #2563EB; }
.admin-card.stat-green  { border-top: 3px solid #059669; }
.admin-card.stat-amber  { border-top: 3px solid #D97706; }
.admin-card.stat-violet { border-top: 3px solid #7C3AED; }
.admin-card.stat-red    { border-top: 3px solid #DC2626; }

.admin-stat-num {
  font-size: 2.1rem; font-weight: 800; color: #0F172A;
  line-height: 1; margin-bottom: .3rem; letter-spacing: -.03em;
}
.admin-stat-label { font-size: .78rem; color: #94A3B8; font-weight: 500; }
.admin-stat-delta { font-size: .76rem; font-weight: 600; }
.admin-stat-delta.up   { color: #059669; }
.admin-stat-delta.down { color: #DC2626; }
.admin-stat-icon {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* Quick stats grid */
.quick-stats {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 1.25rem; margin-bottom: 1.75rem;
}

/* Section header */
.section-hdr {
  display: flex; align-items: center; justify-content: space-between;
}
.section-hdr h2 {
  font-size: .96rem; font-weight: 700; color: #0F172A; margin: 0;
}
.section-hdr .see-all {
  font-size: .78rem; color: #2563EB; text-decoration: none;
  font-weight: 500; display: flex; align-items: center; gap: .25rem;
}
.section-hdr .see-all:hover { text-decoration: underline; }

/* ── 5. TABLES ─────────────────────────────────────────────── */
.admin-tbl {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .855rem;
}
.admin-tbl thead th {
  background: #F8FAFC; color: #94A3B8;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .875rem 1.1rem;
  border-bottom: 1px solid #E8EEF6;
  white-space: nowrap;
}
.admin-tbl thead th:first-child { border-radius: 0; }
.admin-tbl tbody tr { transition: background .12s; }
.admin-tbl tbody tr:hover td { background: rgba(37,99,235,.025); }
.admin-tbl tbody td {
  padding: .9rem 1.1rem; color: #334155;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.admin-tbl tbody tr:last-child td { border-bottom: none; }

.tbl-title { font-weight: 600; color: #0F172A; font-size: .875rem; line-height: 1.4; }
.tbl-sub { font-size: .73rem; color: #94A3B8; margin-top: .15rem; }
.tbl-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg,#2563EB,#059669);
  color:#fff; font-weight:700; font-size:.72rem;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}

/* Table action bar (search + filters) */
.tbl-search-wrap {
  position: relative; flex: 1; min-width: 200px; max-width: 320px;
}
.tbl-search-input {
  width: 100%; padding: 8px 13px 8px 34px;
  border-radius: 10px; border: 1.5px solid #E8EEF6;
  font-size: .845rem; outline: none; background: #F8FAFC;
  color: #334155; transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.tbl-search-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff;
}
.tbl-search-icon {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%); color: #94A3B8;
  font-size: .82rem; pointer-events: none;
}
.admin-search {
  background: #F8FAFC; border: 1.5px solid #E8EEF6;
  color: #334155; border-radius: 10px;
  padding: 8px 13px 8px 34px; font-size: .845rem;
  outline: none; transition: border-color .15s;
  font-family: inherit;
}
.admin-search:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.admin-search::placeholder { color: #C0CCDA; }

/* ── 6. BUTTONS ────────────────────────────────────────────── */
.tbl-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: 5px 11px; border-radius: 8px;
  font-size: .76rem; font-weight: 600; border: none;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s, box-shadow .12s, filter .12s;
  font-family: inherit;
}
.tbl-btn:hover { transform: translateY(-1px); filter: brightness(.94); }
.tbl-btn:active { transform: translateY(0); }

.tbl-btn-view     { background: rgba(37,99,235,.1);  color: #2563EB; }
.tbl-btn-approve  { background: rgba(5,150,105,.1);  color: #059669; }
.tbl-btn-reject   { background: rgba(239,68,68,.1);  color: #DC2626; }
.tbl-btn-edit     { background: rgba(217,119,6,.1);  color: #B45309; }
.tbl-btn-ai       { background: rgba(139,92,246,.12); color: #7C3AED; }
.tbl-btn-suspend  { background: rgba(245,158,11,.1); color: #B45309; }
.tbl-btn-delete   { background: rgba(239,68,68,.1);  color: #DC2626; }
.tbl-btn-deny     { background: rgba(239,68,68,.1);  color: #DC2626; }
.tbl-btn-review   { background: rgba(99,102,241,.1); color: #4F46E5; }

/* Icon buttons (topbar) */
.admin-icon-btn {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1.5px solid #E8EEF6;
  background: #F8FAFC; color: #64748B; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; position: relative;
  transition: background .15s, border-color .15s, color .15s;
}
.admin-icon-btn:hover {
  background: #EFF6FF; border-color: #BFDBFE; color: #2563EB;
}
.admin-notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #EF4444; border: 2px solid #FFFFFF;
}

/* Avatar */
.admin-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,#2563EB,#059669);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .78rem; cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

/* Sidebar toggle */
.sidebar-toggle-btn {
  background: none; border: none; font-size: 1.2rem; color: #64748B;
  cursor: pointer; padding: 6px; border-radius: 8px;
  display: flex; align-items: center; transition: background .15s, color .15s;
}
.sidebar-toggle-btn:hover { background: #F1F5F9; color: #1E293B; }

/* ── 7. STATUS BADGES ──────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .65rem; border-radius: 20px;
  font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.status-pending  { background: rgba(217,119,6,.12);  color: #92400E; }
.status-approved { background: rgba(5,150,105,.12);  color: #065F46; }
.status-rejected { background: rgba(239,68,68,.12);  color: #991B1B; }
.status-review   { background: rgba(99,102,241,.12); color: #3730A3; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── 8. ACTIVITY FEED ──────────────────────────────────────── */
.activity-item {
  display: flex; gap: .875rem; padding: .85rem 0;
  border-bottom: 1px solid #F1F5F9;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.activity-text { font-size: .82rem; color: #475569; line-height: 1.55; }
.activity-time  { font-size: .71rem; color: #94A3B8; margin-top: .2rem; }

/* ── 9. PROGRESS BARS ──────────────────────────────────────── */
div.admin-bar {
  height: 5px; background: #F1F5F9;
  border-radius: 99px; overflow: hidden;
}
.admin-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg,#2563EB,#059669);
  transition: width .4s ease;
}

/* ── 10. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-260px); box-shadow: none; }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(15,23,42,.15);
  }
  .admin-topbar { left: 0 !important; }
  .admin-main  { margin-left: 0 !important; }
  .admin-content { padding: 1.25rem 1rem; }
  .quick-stats { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 1rem; }
}

@media (max-width: 575.98px) {
  .quick-stats { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: .75rem; }
  .admin-content { padding: 1rem .75rem; }
  .tbl-btn { padding: 4px 9px; font-size: .72rem; }
}

/* ── 11. FILTER SELECTS ────────────────────────────────────── */
/* Used in table headers and topbar for SDG / role / period filters */
.tbl-select {
  appearance: none;
  background: #F8FAFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2394A3B8' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1.5px solid #E8EEF6;
  border-radius: 8px;
  padding: 6px 30px 6px 11px;
  font-size: .82rem; font-weight: 500;
  color: #475569;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.tbl-select:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.tbl-select:hover { border-color: #CBD5E1; }

/* ── 12. PAGINATION BUTTONS ────────────────────────────────── */
.page-btn {
  min-width: 32px; height: 32px; padding: 0 9px;
  border-radius: 8px;
  border: 1.5px solid #E8EEF6;
  background: #F8FAFC; color: #475569;
  font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s, color .12s;
}
.page-btn:hover:not(:disabled) {
  background: #EFF6FF; border-color: #BFDBFE; color: #2563EB;
}
.page-btn.active {
  background: #2563EB; border-color: #2563EB; color: #fff;
}
.page-btn:disabled {
  opacity: .38; cursor: not-allowed;
}

/* ── 13. MODAL CANCEL / CLOSE BUTTONS ──────────────────────── */
/* Replaces Bootstrap's btn-secondary in admin modals */
.tbl-btn-cancel {
  background: #F1F5F9; color: #64748B;
  border: 1.5px solid #E2E8F0;
}

/* ── 14. TOPBAR — BELL & PROFILE DROPDOWNS ──────────────────── */
.topbar-notif-wrap,
.topbar-profile-wrap { position: relative; }

/* Bell button */
.topbar-notif-wrap .admin-icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
  position: relative; box-sizing: border-box;
}
.topbar-notif-wrap .admin-icon-btn:hover { background: rgba(0,0,0,.09); }

/* Profile button — same height & border as bell */
.topbar-profile-btn {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 6px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  cursor: pointer; transition: background .2s;
  box-sizing: border-box;
}
.topbar-profile-btn:hover { background: rgba(0,0,0,.09); }

/* Avatar inside profile button */
.topbar-profile-btn .admin-avatar {
  width: 24px; height: 24px;
  font-size: .68rem; font-weight: 700; flex-shrink: 0;
}

.topbar-uname {
  font-size: .8rem; font-weight: 600;
  color: #1E293B; white-space: nowrap;
}

#topbarChev {
  font-size: .75rem; color: #94A3B8;
  transition: transform .2s;
}
#topbarChev.rotated { transform: rotate(180deg); }

/* ── Shared dropdown shell ── */
.topbar-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  z-index: 500; overflow: hidden;
}
.topbar-dropdown.open { display: block; }

/* ── Notification dropdown ── */
#notifDropdown { width: 290px; }

.notif-dd-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.notif-dd-hd span { font-size: .85rem; font-weight: 600; color: #0F172A; }
.notif-dd-clear {
  font-size: .75rem; color: #2563EB;
  background: none; border: none; cursor: pointer; padding: 0;
}
.notif-dd-list { max-height: 260px; overflow-y: auto; }

.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  cursor: pointer; transition: background .12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #F8FAFC; }
.notif-item.unread { background: #EFF6FF; }
.notif-item.unread:hover { background: #DBEAFE; }

.notif-dot-read,
.notif-dot-unread {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.notif-dot-read   { background: #CBD5E1; }
.notif-dot-unread { background: #3B82F6; }

.notif-item-title { font-size: .82rem; font-weight: 500; color: #1E293B; }
.notif-item-sub   { font-size: .75rem; color: #64748B; margin-top: 2px; }
.notif-item-time  { font-size: .70rem; color: #94A3B8; margin-top: 3px; }

/* ── Profile dropdown ── */
.profile-dd { width: 200px; }

.profile-dd-info {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.pdd-name { font-size: .85rem; font-weight: 600; color: #0F172A; }
.pdd-role { font-size: .75rem; color: #64748B; margin-top: 1px; }

.profile-dd-menu { padding: 6px 0; }

.pdd-item {
  display: flex; align-items: center;
  padding: 8px 16px;
  font-size: .82rem; color: #1E293B;
  text-decoration: none; transition: background .12s; cursor: pointer;
}
.pdd-item:hover { background: #F1F5F9; color: #1E293B; }

.pdd-div { height: 1px; background: rgba(0,0,0,.07); margin: 4px 0; }

.pdd-out       { color: #EF4444; }
.pdd-out:hover { background: #FEF2F2; color: #EF4444; }
