:root {
  --blue: #0b63e5;
  --blue-dark: #0a4fb8;
  --blue-light: #e8f1fe;
  --navy: #0f1b2d;
  --ink: #1c2b3a;
  --slate: #5a6b7d;
  --line: #e3eaf2;
  --bg-soft: #f5f8fc;
  --white: #ffffff;
  --teal: #0d9488;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 27, 45, 0.08);
  --shadow-lift: 0 14px 38px rgba(15, 27, 45, 0.14);
  --max: 1180px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--white); color: var(--ink); }
body { line-height: 1.55; font-size: 16px; }
button, input { font: inherit; }
a { color: var(--blue); }
.hidden { display: none !important; }
.muted { color: var(--slate); }
.error { color: #be123c; margin-top: 0.5rem; }
.fineprint { font-size: 0.8rem; color: var(--slate); line-height: 1.45; margin-top: 1rem; }
.view { min-height: 100vh; }

.btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--blue); border-color: var(--blue-dark); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary { background: var(--blue-light); border-color: #c9dcfb; color: var(--blue-dark); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { padding: 0.35rem 0.7rem; border-radius: 9px; font-size: 0.8rem; }
.btn.danger { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.btn.danger:hover { background: #ffe4e6; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Login ---------- */
.login-view {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, #dbeafe 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, #ccfbf1 0%, transparent 50%),
    var(--bg-soft);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.login-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
}
.login-brand {
  background: linear-gradient(160deg, var(--navy) 0%, #173257 55%, #0f766e 140%);
  color: #e8eef7;
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow-lift);
}
.brand-row { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 1.75rem; }
.brand-logo { height: 48px; width: auto; background: #fff; border-radius: 10px; padding: 4px 8px; }
.brand-logo-sm { height: 34px; width: auto; background: #fff; border-radius: 8px; padding: 3px 6px; }
.brand-title { font-size: 1.15rem; font-weight: 700; color: #fff; }
.brand-sub { font-size: 0.82rem; color: #9fb2c9; }
.login-brand h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.2; margin-bottom: 0.85rem; color: #fff; }
.login-brand h1 em { font-style: normal; color: #7dd3fc; }
.lede { color: #c5d3e5; margin-bottom: 1.25rem; }
.login-points { list-style: none; display: grid; gap: 0.55rem; color: #d7e3f3; font-size: 0.95rem; }
.login-points li::before { content: "✓ "; color: #2dd4bf; font-weight: 700; }
.login-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card h2 { margin-bottom: 0.35rem; }
.login-card form { display: grid; gap: 0.9rem; margin-top: 1.2rem; }
.login-card label { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--slate); font-weight: 600; }
.login-card input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #fbfcfe;
  color: var(--ink);
}

/* ---------- App shell ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  min-height: 68px;
  padding: 0.65rem 1.4rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1;
}
.brand-text { display: flex; align-items: baseline; }
/* Header brand is 50% larger than the original 1.45rem / 1.05rem pair */
.topbar .brand-wordmark { font-size: 2.18rem; }
.topbar .brand-uni { font-size: 2.18rem; }
/* Small flush version of the cap animation — no tile, lives in the header */
.cap-mini { position: relative; display: block; width: 48px; height: 48px; flex: 0 0 auto; }
.cap-mini .cap-stage {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 380px;
  height: 380px;
  transform: scale(0.1263); /* 48 / 380 */
  transform-origin: top left;
}
.cap-mini .cap-label,
.cap-mini .dot { display: none; }
.brand-wordmark {
  font-family: "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}
.brand-wordmark .mer { color: var(--navy); }
.brand-wordmark .it { color: #0066ff; font-weight: 700; }
.brand-uni {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-left: 0.2rem;
}
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav-link {
  border: 0;
  background: transparent;
  color: var(--slate);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.nav-link:hover, .nav-link.active { background: var(--blue-light); color: var(--blue-dark); }
.nav-link.accent {
  background: linear-gradient(135deg, #0b63e5, #0d9488);
  color: #fff;
}
.nav-link.accent:hover { filter: brightness(1.05); color: #fff; }
.top-actions { display: flex; align-items: center; gap: 0.6rem; }
.viewer-chip {
  font-size: 0.82rem;
  color: var(--slate);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.page { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.page.hidden { display: none !important; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0 2rem;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.85rem;
}
.eyebrow.live { background: #ccfbf1; color: #0f766e; }
.hero h1, .page-hero h1, .about-panel h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.hero p { color: var(--slate); max-width: 52ch; margin-bottom: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.4rem; }
.hero-stats {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-stats div {
  min-width: 110px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow);
}
.hero-stats strong { display: block; font-size: 1.35rem; color: var(--navy); }
.hero-stats span { font-size: 0.8rem; color: var(--slate); }

/* Graduation cap animation — flush on the page, no tile */
.hero-art {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: transparent;
}
.cap-stage {
  position: relative;
  width: min(380px, 90vw);
  aspect-ratio: 1;
  background: transparent;
  overflow: visible;
}
.cap-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.cap-label {
  fill: #5a6b7d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.cap { transform-origin: 160px 160px; animation: capBob 4.5s ease-in-out infinite; }
.ring-spin { transform-origin: 160px 160px; animation: spin 18s linear infinite; }
.tassel-line, .tassel-end { transform-origin: 248px 124px; animation: tassel 2.8s ease-in-out infinite; }

.orbit {
  position: absolute;
  inset: 0;
  z-index: 4;
  animation: spin 14s linear infinite;
  pointer-events: none;
}
.o-a { animation-duration: 12s; }
.o-b { animation-duration: 17s; animation-direction: reverse; }
.o-c { animation-duration: 22s; }
.o-d { animation-duration: 15s; animation-direction: reverse; animation-delay: -4s; }
.orb-item {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 8px;
  background: var(--blue-light);
  border: 1px solid #c9dcfb;
  box-shadow: 0 4px 14px rgba(11, 99, 229, 0.15);
}
.o-b .orb-item { top: 5%; background: #ecfdf5; border-color: #a7f3d0; }
.o-c .orb-item { top: 12%; background: #fff7ed; border-color: #fed7aa; }
.o-d .orb-item { top: 7%; background: #f5f3ff; border-color: #ddd6fe; }
.orb-item::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  background: #0b63e5;
  opacity: 0.85;
}
.book::after { clip-path: polygon(20% 15%, 80% 15%, 80% 85%, 20% 85%); }
.shield::after {
  background: #0d9488;
  clip-path: polygon(50% 8%, 88% 22%, 88% 55%, 50% 92%, 12% 55%, 12% 22%);
}
.mail::after {
  background: #ea580c;
  clip-path: polygon(10% 25%, 50% 55%, 90% 25%, 90% 75%, 10% 75%);
}
.key::after {
  background: #7c3aed;
  border-radius: 50%;
  inset: 7px;
}

/* stationary dots */
.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 2;
  background: #93c5fd;
}
.d1 { top: 14%; left: 16%; }
.d2 { top: 22%; right: 18%; background: #5eead4; }
.d3 { bottom: 18%; left: 20%; background: #fcd34d; }
.d4 { bottom: 24%; right: 14%; background: #c4b5fd; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes capBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes tassel {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(10deg); }
}

.section { margin-top: 1.5rem; }
.section.soft {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
}
.section-head { margin-bottom: 1rem; }
.section-head h2 { color: var(--navy); margin-bottom: 0.25rem; }

.track-grid, .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}
.track-card, .feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.track-card.available { border-color: #bfdbfe; }
.track-card.coming_soon { opacity: 0.85; }
.track-card h3, .feature-card h3 { color: var(--navy); margin: 0.35rem 0; }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.pill.live { background: #ccfbf1; color: #0f766e; }
.pill.soon { background: #f1f5f9; color: #64748b; }
.f-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue-light); color: var(--blue-dark); font-weight: 800;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.search {
  min-width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fff;
}

.catalog-wrap { display: grid; gap: 1.1rem; }
.series-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.series-block h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, #f8fbff, #f0fdfa);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.95rem;
}
.vid-list { display: grid; }
.vid-btn {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.vid-btn:last-child { border-bottom: 0; }
.vid-btn:hover, .vid-btn.active { background: #f8fbff; }
.vid-btn .id {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
}
.vid-btn .title { font-weight: 600; color: var(--ink); }
.vid-btn .meta { font-size: 0.8rem; color: var(--slate); }

.about-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
  max-width: 720px;
}
.about-panel p { margin: 0.75rem 0; color: var(--slate); }

/* Player */
.player-dock {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 27, 45, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.player-panel {
  width: min(1000px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #0b1220;
  color: #e2e8f0;
  border-radius: 20px;
  border: 1px solid #243247;
  box-shadow: var(--shadow-lift);
  padding: 1rem 1.1rem 1.2rem;
}
.player-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.8rem;
}
.player-head h2 { color: #fff; font-size: 1.2rem; margin-top: 0.25rem; }
.player-panel .btn.ghost { color: #cbd5e1; border-color: #334155; }
.player-panel .btn.ghost:hover {
  background: rgba(96, 165, 250, 0.18);
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.viewport {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #1f2937;
  user-select: none;
}
#video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  pointer-events: none;
}
.protect-overlay { position: absolute; inset: 0; z-index: 4; cursor: pointer; }
.big-play {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  font-size: 2.8rem; color: #fff;
  text-shadow: 0 6px 24px rgba(0,0,0,.55);
  pointer-events: none; transition: opacity .2s;
}
.big-play.playing { opacity: 0; }
.big-play.loading { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.05em; }
.watermark {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: grid; place-items: center; text-align: center;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem); font-weight: 600;
  color: rgba(255,255,255,0.22); line-height: 1.45; padding: 1rem;
  mix-blend-mode: soft-light;
  animation: wm 16s ease-in-out infinite alternate;
}
@keyframes wm {
  from { transform: translate(-5%, -3%) rotate(-6deg); }
  to { transform: translate(6%, 5%) rotate(6deg); }
}
.controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.85rem;
}
.progress-readonly {
  height: 8px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #334155;
  pointer-events: none;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #2dd4bf);
}
.time { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: #94a3b8; min-width: 6.5rem; text-align: right; }
.policy { margin-top: 0.75rem; font-size: 0.8rem; line-height: 1.45; color: #94a3b8 !important; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.88rem;
}

/* Login tabs + brand title */
.brand-title-lg { font-size: 1.5rem; margin-bottom: 0.25rem; color: #fff; }
.login-brand .brand-wordmark .mer { color: #fff; }
.login-brand .brand-wordmark .it { color: #66b3ff; }
.login-brand .brand-uni { color: #e8eef7; font-size: 1.25rem; }
.login-tabs { display: flex; gap: 0.35rem; margin-bottom: 1rem; background: var(--bg-soft); padding: 0.3rem; border-radius: 12px; }
.login-tabs .tab, .admin-tabs .tab {
  flex: 1; border: 0; background: transparent; padding: 0.55rem 0.75rem;
  border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--slate);
}
.login-tabs .tab.active, .admin-tabs .tab.active { background: #fff; color: var(--blue-dark); box-shadow: var(--shadow); }
.auth-form h2 { margin-bottom: 0.25rem; }
.auth-form label { display: grid; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; color: var(--slate); margin-top: 0.75rem; }
.auth-form input, .form-grid input, .form-grid select, .admin-toolbar select, .search {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.85rem; background: #fbfcfe;
}
.auth-form .btn { margin-top: 1rem; }
.opt { font-weight: 500; color: #94a3b8; font-size: 0.8rem; }

/* Admin */
.admin-tabs { display: flex; gap: 0.35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-panel { margin-top: 0.5rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.admin-toolbar label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--slate); }
.export-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin: 1.4rem 0 1.6rem; }
.stat-pill {
  --accent: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  padding: 0.95rem 1rem 0.85rem;
  box-shadow: var(--shadow);
}
.stat-pill strong { display: block; font-size: 1.65rem; line-height: 1.2; color: var(--accent); }
.stat-pill span {
  font-size: 0.72rem; font-weight: 700; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.stat-pill:nth-child(1) { --accent: #0b63e5; }
.stat-pill:nth-child(2) { --accent: #0d9488; }
.stat-pill:nth-child(3) { --accent: #f59e0b; }
.stat-pill:nth-child(4) { --accent: #7c3aed; }
.stat-pill:nth-child(5) { --accent: #e11d48; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .admin-grid-2 { grid-template-columns: 1fr; } }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); }
.panel-card h3 { margin-bottom: 0.75rem; color: var(--navy); font-size: 1rem; }
.form-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.form-grid label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--slate); }
/* Submit buttons sit on their own row beneath the fields, at natural size */
.form-grid > .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0.25rem; }
.table-wrap { overflow: auto; max-height: 320px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.55rem 0.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--slate); font-weight: 700; position: sticky; top: 0; background: #fff; }
.row-actions { white-space: nowrap; }
.row-actions .btn + .btn { margin-left: 0.35rem; }
.users-import { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.file-btn { cursor: pointer; display: inline-block; }
.users-table-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.users-table-head h3 { margin-bottom: 0; }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--blue); }
.check-col { width: 2.2rem; }
.analytics-search input { border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.85rem; background: #fbfcfe; min-width: 180px; }
/* Filter bar — its own tinted surface so it reads as one zone */
.analytics-filters {
  justify-content: flex-start;
  row-gap: 0.85rem;
  background: linear-gradient(135deg, #eef5ff 0%, #f0faf8 100%);
  border: 1px solid #d8e6fa;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(11, 99, 229, 0.06);
}
.analytics-filters label { color: #33506e; }
.analytics-filters .export-btns { margin-left: auto; }
.analytics-filters input[type="datetime-local"],
.analytics-filters input[type="search"],
.analytics-filters select {
  border: 1px solid #c9dcfb; border-radius: 12px; padding: 0.6rem 0.7rem; background: #fff;
}
.analytics-filters select { max-width: 240px; }
.analytics-filters .export-btns .btn.secondary { background: #fff; }
.analytics-filters .btn.ghost { background: rgba(255, 255, 255, 0.7); }

/* Admin cards — colored header strips, zebra rows, clear zones (all tabs) */
#page-admin .page-hero { justify-content: center; text-align: center; }
#admin-analytics .admin-grid-2 { gap: 1.1rem; }
.admin-panel .panel-card { --accent: var(--blue); }
.admin-panel .panel-card > h3,
.admin-panel .panel-card > .users-table-head {
  margin: -1rem -1rem 0.9rem;
  padding: 0.72rem 1rem;
  background: linear-gradient(135deg, #f6f9ff, #f5fbfa);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 15px 15px 0 0;
}
.admin-panel .panel-card > h3,
.users-table-head h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-size: 0.95rem;
}
.users-table-head h3 { margin: 0; }
.admin-panel .panel-card > h3::before,
.users-table-head h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
  flex: 0 0 auto;
}
.admin-panel .panel-card:nth-of-type(2),
#admin-analytics .admin-grid-2 .panel-card:nth-child(2) { --accent: var(--teal); }
#admin-analytics > .panel-card { --accent: #f59e0b; }
.admin-panel tbody tr:nth-child(even) { background: #f7faff; }
.admin-panel tbody tr:hover { background: var(--blue-light); }
.typeahead { position: relative; display: block; }
.typeahead-list {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 40;
  min-width: 280px; max-height: 280px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lift); padding: 0.25rem;
}
.typeahead-item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 0.45rem 0.6rem; border-radius: 8px; cursor: pointer; font-size: 0.88rem; color: var(--ink);
}
.typeahead-item:hover { background: var(--blue-light); }
.typeahead-item .muted { font-size: 0.78rem; }
tr.editing input[type="text"], tr.editing input:not([type]) {
  width: 100%; min-width: 7rem; border: 1px solid var(--line); border-radius: 9px;
  padding: 0.35rem 0.5rem; background: #fbfcfe; font-size: 0.85rem;
}
.inline-check { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--slate); font-size: 0.85rem; }
.edit-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.form-grid label.check-label { display: flex; align-items: center; gap: 0.45rem; padding-bottom: 0.7rem; }
.notice { color: var(--teal); font-weight: 600; margin-bottom: 0.75rem; }
.forgot-line { margin-top: 0.85rem; text-align: center; font-size: 0.85rem; }
.forgot-line a { color: var(--blue); font-weight: 600; text-decoration: none; }
.forgot-line a:hover { text-decoration: underline; }
