/* ==========================================================================
   Smart Tutor Connect — Ultra-Refined Botanical Luxury & Modern SaaS UI
   All features, class names, and responsive structures 100% preserved.
   Enhanced with fluid spring animations, glassmorphism, ambient lighting,
   interactive spotlight surfaces, and micro-interactions.
   ========================================================================== */

:root {
  /* Core Brand Palette — Deep Botanical Forest & Luminous Emerald */
  --forest: #0f382b;
  --forest-2: #09261d;
  --forest-3: #164f3d;
  --green: #147a52;
  --green-2: #1f9667;
  --green-bright: #34d399;
  --mint: #e3f5ec;
  --mint-2: #f2f9f5;
  --ink: #12261e;
  --muted: #5e7268;
  --line: #dfeae3;
  --line-strong: #c6dbd0;
  --paper: #ffffff;
  --cream: #f6f9f6;
  --gold: #d99b26;
  --red: #cf443f;
  --blue: #3867bd;

  /* Radii & Elevation Tokens */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-xs: 0 2px 6px rgba(15, 56, 43, 0.04), 0 1px 2px rgba(15, 56, 43, 0.02);
  --shadow-sm: 0 10px 26px -6px rgba(15, 56, 43, 0.07), 0 3px 10px -3px rgba(15, 56, 43, 0.04);
  --shadow: 0 20px 52px -12px rgba(15, 56, 43, 0.11), 0 6px 20px -4px rgba(15, 56, 43, 0.05);
  --shadow-lg: 0 30px 72px -14px rgba(15, 56, 43, 0.18), 0 12px 28px -6px rgba(15, 56, 43, 0.08);
  --shadow-glow: 0 12px 32px -6px rgba(20, 122, 82, 0.34);

  /* Motion Curves */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(20, 122, 82, 0.065) 0%, transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(217, 155, 38, 0.05) 0%, transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(31, 150, 103, 0.055) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection {
  background: #c2ebd4;
  color: #09261d;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #eff5f1;
}
::-webkit-scrollbar-thumb {
  background: #bdd4c6;
  border-radius: 99px;
  border: 2px solid #eff5f1;
}
::-webkit-scrollbar-thumb:hover {
  background: #8eb59f;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes viewFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-11px) rotate(0.6deg);
  }
}

@keyframes floatingBadgeTop {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatingBadgeBottom {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(7px);
  }
}

@keyframes pulseRadar {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 150, 103, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(31, 150, 103, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 150, 103, 0);
  }
}

@keyframes notifPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 128, 71, 0.65);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(224, 128, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 128, 71, 0);
  }
}

@keyframes auroraShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes orbitBreath {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.06) rotate(6deg);
  }
}

@keyframes barGrow {
  from {
    transform: scaleY(0);
    opacity: 0.3;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes shimmerSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes toast-in {
  from {
    transform: translateY(16px) scale(0.94);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes modalBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSpring {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Base Interactive Controls & Accessibility
   ========================================================================== */

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-soft);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6fd19c;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--forest);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: var(--shadow);
  transition: top 0.22s var(--ease-out);
}
.skip-link:focus {
  top: 14px;
}

.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 26% 26%, rgba(16, 185, 129, 0.16) 0%, transparent 46%),
    radial-gradient(circle at 74% 74%, rgba(99, 102, 241, 0.18) 0%, transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.09) 0%, transparent 56%),
    linear-gradient(135deg, #f0fdf7 0%, #f8faff 45%, #f5f2fe 78%, #fcf9ee 100%);
  color: var(--forest);
  font-weight: 750;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  animation: viewFadeUp 0.4s var(--ease-out) both;
}

.boot-screen.boot-fade-out {
  opacity: 0;
  transform: scale(0.975);
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.workspace .boot-screen {
  min-height: 360px;
  background: transparent;
}

.workspace-boot {
  min-height: 360px !important;
  background: transparent !important;
  gap: 12px !important;
  font-size: 15px !important;
  color: var(--muted) !important;
}

.boot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
  text-align: center;
  animation: bootScaleIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.boot-logo-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.boot-logo {
  width: 52px;
  height: 52px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 18px rgba(16, 185, 129, 0.36)) drop-shadow(0 4px 14px rgba(99, 102, 241, 0.32));
  animation: logoBreathe 2.4s ease-in-out infinite;
}

.boot-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #10b981, #2dd4bf, #6366f1, #a855f7, #f59e0b, #10b981);
  filter: blur(12px);
  opacity: 0.60;
  animation: rotateConic 3.5s linear infinite;
  z-index: 1;
}

.boot-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1c24;
  display: flex;
  align-items: center;
  gap: 6px;
}

.boot-brand em {
  font-style: italic;
  background: linear-gradient(135deg, #059669 0%, #10b981 30%, #6366f1 70%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.spinner-dual-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 6px 0;
  display: grid;
  place-items: center;
}

.spinner-dual {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3.5px solid rgba(99, 102, 241, 0.14);
  border-top-color: #10b981;
  border-right-color: #6366f1;
  border-bottom-color: #f59e0b;
  border-left-color: #8b5cf6;
  animation: spinDual 0.88s cubic-bezier(0.52, 0.12, 0.48, 0.88) infinite;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.32), 0 0 16px rgba(99, 102, 241, 0.32);
}

.spinner-dual-core {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(16, 185, 129, 0.16);
  border-top-color: #6366f1;
  border-right-color: #10b981;
  border-bottom-color: #f59e0b;
  animation: spinReverse 0.72s linear infinite;
}

.boot-subtitle {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #059669 0%, #4f46e5 65%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: subtitlePulse 1.9s ease-in-out infinite;
}

.boot-message {
  font-size: 15px;
  font-weight: 650;
  color: #1e293b;
}

/* Universal Enhanced Dual-Theme Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(99, 102, 241, 0.16);
  border-top-color: #10b981;
  border-right-color: #6366f1;
  border-bottom-color: #f59e0b;
  border-left-color: #8b5cf6;
  border-radius: 50%;
  animation: spinDual 0.85s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.28), 0 0 12px rgba(99, 102, 241, 0.28);
}

@keyframes spinDual {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes rotateConic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoBreathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 8px 18px rgba(16, 185, 129, 0.36)) drop-shadow(0 4px 14px rgba(99, 102, 241, 0.32)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 12px 24px rgba(16, 185, 129, 0.52)) drop-shadow(0 6px 18px rgba(99, 102, 241, 0.46)); }
}

@keyframes bootScaleIn {
  0% { opacity: 0; transform: scale(0.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes subtitlePulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: brightness(1.15); }
}

.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.24s var(--ease-spring);
}

.icon-sm {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Buttons & Tactile Micro-Interactions
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 18px;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.24s var(--ease-spring),
    background 0.22s var(--ease-soft),
    border-color 0.22s var(--ease-soft),
    box-shadow 0.24s var(--ease-out),
    color 0.2s var(--ease-soft);
}

/* Subtle glossy sheen across buttons on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.26) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease-out);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  left: 150%;
}

.btn:hover .icon {
  transform: translateX(2.5px);
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #1b875b 0%, #126543 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px -3px rgba(20, 122, 82, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1f9666 0%, #0f583a 100%);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-dark {
  background: linear-gradient(135deg, var(--forest-3), var(--forest-2));
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(9, 38, 29, 0.3);
}

.btn-outline {
  border-color: #cde0d4;
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: #f2faf5;
  border-color: #8fc4a5;
  box-shadow: 0 8px 20px -6px rgba(15, 56, 43, 0.1);
}

.btn-ghost {
  background: transparent;
  color: #465d52;
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(20, 122, 82, 0.075);
  color: var(--forest);
}

.btn-danger {
  background: linear-gradient(135deg, #fff5f4, #ffebe8);
  border-color: #f3cbc6;
  color: #b0302b;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ffebe8, #ffdcd7);
  border-color: #e6a9a2;
  box-shadow: 0 6px 16px -4px rgba(184, 58, 53, 0.18);
}

.btn-sm {
  padding: 8px 13px;
  min-height: 36px;
  font-size: 12px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Badges, Pills, Eyebrows & Typography Helpers
   ========================================================================== */

.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--green);
  display: inline-block;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(231, 246, 236, 0.88);
  border: 1px solid #cce5d5;
  color: var(--forest);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(20, 122, 82, 0.06);
}

.dot {
  height: 7.5px;
  width: 7.5px;
  border-radius: 50%;
  background: #209d68;
  animation: pulseRadar 2.2s infinite;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: 0.01em;
  background: #edf4ef;
  color: #355c49;
  border: 1px solid rgba(15, 56, 43, 0.06);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-soft);
}

.pill-green {
  background: linear-gradient(135deg, #e3f7eb, #d5f2e1);
  color: #0f6e45;
  border-color: rgba(20, 122, 82, 0.16);
}

.pill-amber {
  background: linear-gradient(135deg, #fff6e3, #ffedd0);
  color: #8f630d;
  border-color: rgba(217, 155, 38, 0.22);
}

.pill-red {
  background: linear-gradient(135deg, #fff1ef, #ffe4e0);
  color: #b3322d;
  border-color: rgba(207, 68, 63, 0.2);
}

.pill-blue {
  background: linear-gradient(135deg, #edf3ff, #dfeaff);
  color: #2f579e;
  border-color: rgba(56, 103, 189, 0.18);
}

.pill-gray {
  background: #eff2f0;
  color: #5e6b63;
  border-color: rgba(0, 0, 0, 0.06);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-weight: 820;
  letter-spacing: -0.04em;
  font-size: 17.5px;
  color: var(--forest);
  transition: transform 0.24s var(--ease-spring);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(12, 73, 56, 0.18);
  transition: transform 0.32s var(--ease-spring), box-shadow 0.32s var(--ease-out);
}

.brand:hover img {
  transform: rotate(-5deg) scale(1.07);
  box-shadow: 0 10px 24px rgba(20, 122, 82, 0.28);
}

.brand span em {
  font-style: normal;
  background: linear-gradient(135deg, #168055, #29a371);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Public Navigation & Landing Page
   ========================================================================== */

.public-header {
  width: min(1220px, calc(100% - 48px));
  height: 78px;
  margin: 14px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 14px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  box-shadow: 0 10px 34px -10px rgba(15, 56, 43, 0.08), 0 0 0 1px rgba(20, 122, 82, 0.07);
  transition:
    background 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    transform 0.28s var(--ease-out);
  animation: viewFadeUp 0.55s var(--ease-out) both;
}

.public-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px -12px rgba(15, 56, 43, 0.14), 0 0 0 1px rgba(20, 122, 82, 0.11);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #465d52;
  font-weight: 650;
  font-size: 13.5px;
}

.public-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}

.public-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.26s var(--ease-spring);
}

.public-nav a:hover {
  color: var(--forest);
  background: rgba(20, 122, 82, 0.06);
}

.public-nav a:hover::after {
  transform: scaleX(1);
}

.learning-menu {
  position: relative;
}

.learning-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}

.learning-menu-trigger:hover,
.learning-menu.open .learning-menu-trigger,
.learning-menu:focus-within .learning-menu-trigger {
  color: var(--forest);
  background: rgba(20, 122, 82, 0.06);
}

.learning-menu-panel {
  position: absolute;
  top: calc(100% + 24px);
  left: 50%;
  z-index: 80;
  width: min(820px, calc(100vw - 48px));
  padding: 22px;
  border: 1px solid rgba(20, 122, 82, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 56, 43, 0.2);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.learning-menu-panel::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 25px;
  content: "";
}

.learning-menu:hover .learning-menu-panel,
.learning-menu:focus-within .learning-menu-panel,
.learning-menu.open .learning-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.learning-menu-intro {
  display: grid;
  gap: 3px;
  margin-bottom: 16px;
}

.learning-menu-intro > strong {
  font-size: 19px;
  letter-spacing: -0.035em;
}

.learning-menu-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.learning-menu-columns {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.learning-branches {
  display: grid;
  align-content: start;
  gap: 5px;
  max-height: 340px;
  overflow: auto;
  padding-right: 5px;
}

.learning-branch {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.learning-branch:hover,
.learning-branch.active,
.learning-branch:focus-visible {
  border-color: #d7ecdf;
  background: #f0f8f3;
  outline: none;
}

.learning-branch-stream {
  grid-column: 1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.learning-branch strong {
  grid-column: 1;
  font-size: 12px;
  font-weight: 700;
}

.learning-branch-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--green);
  font-size: 20px;
}

.learning-subjects {
  min-height: 220px;
  padding: 18px;
  border: 1px solid #e4efe8;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8fcf8, #eef7f1);
}

.learning-subjects h3 {
  margin: 3px 0 14px;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.learning-subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.learning-subject {
  padding: 6px 9px;
  border: 1px solid #dcebe1;
  border-radius: 999px;
  background: #fff;
  color: #355847;
  font-size: 11px;
  line-height: 1.4;
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero Banner */
.hero {
  width: min(1220px, calc(100% - 48px));
  margin: 18px auto 58px;
  min-height: 565px;
  border-radius: 32px;
  background: linear-gradient(125deg, #f5faf4 0%, #ebf7ee 42%, #def2e6 78%, #f3f7ea 100%);
  background-size: 200% 200%;
  animation: viewFadeUp 0.65s var(--ease-out) 0.05s both, auroraShift 16s ease infinite;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(20, 122, 82, 0.12);
  box-shadow: var(--shadow);
}

/* Architectural grid & glowing ambient orb inside Hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(20, 122, 82, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 65% 45%, rgba(0, 0, 0, 0.65), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 65% 45%, rgba(0, 0, 0, 0.65), transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, rgba(217, 155, 38, 0.08) 48%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-copy {
  padding: 64px 16px 58px 60px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(42px, 4.7vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  font-weight: 830;
  margin: 22px 0 20px;
  color: #102920;
  max-width: 580px;
}

.hero h1 span {
  background: linear-gradient(135deg, #116845 0%, #1b8f60 55%, #27ab75 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.hero-lede {
  max-width: 495px;
  color: #4f6459;
  font-size: 16px;
  line-height: 1.78;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 13px 22px;
  font-size: 14.5px;
  border-radius: 14px;
}

.hero-proof {
  display: flex;
  gap: 16px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(15, 56, 43, 0.04);
  transition: transform 0.25s var(--ease-spring), background 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-out);
}

.proof-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 56, 43, 0.08);
}

.proof-icon {
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #dff4e7, #c9ebd7);
  color: var(--green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.proof-item strong {
  font-size: 13px;
  display: block;
  color: var(--forest);
}

.proof-item small {
  color: var(--muted);
  font-size: 10.5px;
}

.hero-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px 22px 0;
  min-height: 520px;
}

.hero-art > img {
  width: 100%;
  max-width: 650px;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 24px 48px rgba(15, 56, 43, 0.14));
  animation: heroFloat 7s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 14px 17px;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 56, 43, 0.14), 0 0 0 1px rgba(20, 122, 82, 0.08);
  display: flex;
  align-items: center;
  gap: 11px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}

.floating-card.top {
  top: 78px;
  right: 26px;
  animation: floatingBadgeTop 5.5s ease-in-out infinite;
}

.floating-card.bottom {
  bottom: 70px;
  left: 15px;
  animation: floatingBadgeBottom 6s ease-in-out infinite;
}

.floating-card .mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e3f6ea, #ccebd8);
  color: var(--green);
  display: grid;
  place-items: center;
}

.floating-card strong {
  display: block;
  font-size: 12.5px;
  color: var(--forest);
}

.floating-card small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

/* Landing Sections & Interactive Feature Cards */
.section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto 82px;
  animation: viewFadeUp 0.7s var(--ease-out) both;
}

.section-heading {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 38px;
}

.section-heading h2 {
  margin: 10px 0 12px;
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: #102920;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 122, 82, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(31, 150, 103, 0.075), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  padding: 30px;
  min-height: 218px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.34s var(--ease-spring),
    box-shadow 0.34s var(--ease-out),
    border-color 0.28s var(--ease-soft);
  animation: cardReveal 0.65s var(--ease-out) both;
}

.feature-card:nth-child(1) { animation-delay: 0.06s; }
.feature-card:nth-child(2) { animation-delay: 0.14s; }
.feature-card:nth-child(3) { animation-delay: 0.22s; }

/* Luminous top accent line on hover */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--green), var(--green-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--ease-spring);
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(20, 122, 82, 0.28);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  height: 50px;
  width: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e5f6ec, #d2eee0);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 16px rgba(20, 122, 82, 0.08);
  transition:
    transform 0.32s var(--ease-spring),
    background 0.28s var(--ease-soft),
    color 0.28s var(--ease-soft),
    box-shadow 0.28s var(--ease-out);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, #1b875b, #116241);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(20, 122, 82, 0.26);
}

.feature-card h3 {
  margin: 0 0 9px;
  font-size: 17.5px;
  font-weight: 780;
  letter-spacing: -0.025em;
  color: #112a21;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
}

/* Call to Action Pathway Band */
.pathway-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #0b2d22 0%, #134b38 52%, #0e382a 100%);
  color: #ffffff;
  padding: 48px 52px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pathway-band::before,
.pathway-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.pathway-band::before {
  width: 380px;
  height: 380px;
  right: -110px;
  top: -150px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, transparent 70%);
}

.pathway-band::after {
  width: 300px;
  height: 300px;
  left: 35%;
  bottom: -160px;
  background: radial-gradient(circle, rgba(217, 155, 38, 0.14) 0%, transparent 70%);
}

.pathway-band > div {
  position: relative;
  z-index: 1;
}

.pathway-band h2 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.pathway-band p {
  color: #cbe0d4;
  margin: 0;
  max-width: 570px;
  font-size: 14.5px;
  line-height: 1.7;
}

.pathway-band .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ecfdf3;
}

.pathway-band .btn {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, #e6f7ed 100%);
  color: var(--forest);
  padding: 13px 24px;
  font-size: 14.5px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.pathway-band .btn:hover {
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(52, 211, 153, 0.3);
}

.public-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  width: min(1220px, calc(100% - 48px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

/* ==========================================================================
   Authentication Pages (Login, Register, Policy Acceptance)
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 12%, rgba(20, 122, 82, 0.08), transparent 40%),
    #f3f7f4;
  display: grid;
  grid-template-columns: minmax(340px, 0.94fr) minmax(450px, 1.06fr);
  padding: 20px;
  gap: 22px;
  animation: viewFadeUp 0.55s var(--ease-out) both;
}

.auth-aside {
  background: linear-gradient(155deg, #0f3d2e 0%, #09271e 65%, #061b14 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 40px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(113, 212, 157, 0.14);
  border-radius: 50%;
  width: 440px;
  height: 440px;
  right: -100px;
  bottom: -30px;
  animation: orbitBreath 11s ease-in-out infinite;
  pointer-events: none;
}

.auth-aside::after {
  width: 300px;
  height: 300px;
  right: -35px;
  bottom: 35px;
  border-color: rgba(217, 155, 38, 0.16);
  animation-direction: reverse;
}

.auth-aside .brand {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.auth-aside .brand span em {
  background: linear-gradient(135deg, #6ee7b7, #a7f3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-side-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
  padding: 40px 10px;
}

.auth-side-copy .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ecfdf5;
}

.auth-side-copy h1 {
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.07;
  letter-spacing: -0.05em;
  margin: 18px 0;
}

.auth-side-copy p {
  max-width: 400px;
  color: #cae0d4;
  line-height: 1.78;
  font-size: 14.5px;
}

.auth-signup-guide {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.auth-signup-guide h2,
.auth-signup-guide h3 {
  margin: 0 0 10px;
  color: #f2fbf6;
  font-size: 14px;
}

.auth-signup-guide h3 {
  margin-top: 16px;
  font-size: 12px;
}

.auth-signup-guide ol,
.auth-signup-guide ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: #cae0d4;
  font-size: 12px;
}

.auth-signup-guide li::marker {
  color: #6ee7b7;
  font-weight: 700;
}

.auth-signup-guide li strong,
.auth-signup-guide li span {
  display: block;
}

.auth-signup-guide li strong {
  color: #ffffff;
}

.auth-signup-guide li span {
  margin-top: 2px;
}

.auth-side-copy img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 24px auto 0;
  position: relative;
  z-index: 1;
  border-radius: 24px;
  mix-blend-mode: screen;
  opacity: 0.95;
  animation: heroFloat 7s ease-in-out infinite;
}

.auth-side-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.auth-side-features div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: #e4f2ea;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 12px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease-soft), transform 0.2s var(--ease-spring);
}

.auth-side-features div:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.auth-side-features .icon {
  color: #6ee7b7;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-session-notice {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #d5e8dc;
  border-radius: 12px;
  background: #f2f8f4;
}

.auth-session-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-page.auth-verification-page {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.auth-verification-page .auth-main {
  width: 100%;
}

.auth-verification-page #auth-code-form + .auth-resend-form {
  margin-top: 10px;
}

.auth-card {
  width: min(510px, 100%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border: 1px solid #dfebe3;
  border-radius: 28px;
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow);
  animation: cardReveal 0.6s var(--ease-out) 0.06s both;
}

.auth-card h2 {
  font-size: 31px;
  letter-spacing: -0.048em;
  margin: 6px 0 8px;
  color: #0f2920;
}

.policy-acceptance-page {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.policy-acceptance-page .auth-main {
  width: 100%;
}

.policy-acceptance-card {
  width: min(700px, 100%);
}

.policy-acceptance-card h1 {
  margin: 6px 0 18px;
  color: #0f2920;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.048em;
  line-height: 1.15;
}

.auth-card.policy-acceptance-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.policy-acceptance-card #policy-accept-form {
  margin-top: 24px;
}

.policy-acceptance-card #policy-reject {
  margin-top: 8px;
}

.policy-acceptance-card > p:last-child {
  margin: 8px 0 0;
}

.auth-card > p {
  color: var(--muted);
  margin: 0 0 26px;
}

.auth-switch {
  display: flex;
  background: #eaf2ed;
  border: 1px solid #dce8e0;
  border-radius: 14px;
  padding: 5px;
  margin: 0 0 25px;
  gap: 4px;
}

.auth-switch button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #5a7064;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 750;
  transition:
    background 0.24s var(--ease-spring),
    color 0.2s var(--ease-soft),
    box-shadow 0.24s var(--ease-out),
    transform 0.2s var(--ease-spring);
}

.auth-switch button:hover {
  color: var(--forest);
}

.auth-switch button.active {
  background: #ffffff;
  color: var(--forest);
  box-shadow: 0 4px 12px rgba(15, 56, 43, 0.09);
}

.signup-payment-preferences {
  border: 1px solid #dce8e0;
  border-radius: 12px;
  padding: 12px 14px;
}

.signup-payment-preferences legend {
  padding: 0 5px;
  color: #274033;
  font-size: 12px;
  font-weight: 750;
}

.signup-payment-preferences p {
  margin: 0 0 10px;
}

.signup-payment-dropdown {
  position: relative;
}

.signup-payment-dropdown > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d5e3da;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.signup-payment-dropdown > summary::-webkit-details-marker {
  display: none;
}

.signup-payment-dropdown > summary::after {
  content: "▾";
  color: var(--muted);
}

.signup-payment-dropdown[open] > summary {
  border-color: var(--green-2);
  border-radius: 9px 9px 0 0;
}

.signup-payment-dropdown-panel {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  padding: 10px;
  border: 1px solid #d5e3da;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 56, 43, 0.14);
}

.signup-payment-dropdown-panel > input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #d5e3da;
  border-radius: 9px;
  font: inherit;
}

.signup-payment-results {
  display: grid;
  gap: 5px;
  max-height: 180px;
  margin-top: 6px;
  overflow-y: auto;
}

.signup-payment-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #e3ebe5;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.signup-payment-result > span {
  min-width: 0;
}

.signup-payment-empty {
  margin: 5px 2px;
  color: var(--muted);
  font-size: 12px;
}

.signup-payment-selected {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  height: 68px;
  margin-top: 8px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #e3ebe5;
  border-radius: 9px;
  background: #fff;
}

.signup-payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px 5px 10px;
  border: 1px solid #d5e3da;
  border-radius: 999px;
  background: #f2f9f5;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.signup-payment-chip > span {
  overflow-wrap: anywhere;
}

.signup-payment-chip > button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64796d;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.signup-payment-chip > button:hover {
  background: #e2eee6;
  color: #a8322c;
}
.login-back {
  display: inline-flex;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  gap: 7px;
  align-items: center;
  margin-bottom: 18px;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 9px;
  transition: color 0.2s var(--ease-soft), background 0.2s var(--ease-soft), transform 0.2s var(--ease-spring);
}

.login-back:hover {
  color: var(--forest);
  background: #edf5f0;
  transform: translateX(-2px);
}

/* ==========================================================================
   Forms, Inputs, Selects & Subject Picker
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
  min-width: 0;
}

.field label,
.field-label {
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.005em;
  color: #274033;
}

.field input,
.field select,
.field textarea,
.control {
  border: 1px solid #d5e3da;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 14px;
  width: 100%;
  min-height: 45px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 56, 43, 0.02);
  transition:
    border-color 0.2s var(--ease-soft),
    box-shadow 0.22s var(--ease-out),
    background 0.2s var(--ease-soft),
    transform 0.18s var(--ease-out);
}

.field textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.6;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.control:hover {
  border-color: #acc8b7;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.control:focus {
  border-color: var(--green-2);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 150, 103, 0.13), 0 4px 12px rgba(15, 56, 43, 0.04);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #98a89f;
}

.field .hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 52px;
}

.password-visibility {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--green-2);
  padding: 0;
  cursor: pointer;
}

.password-visibility .icon {
  width: 18px;
  height: 18px;
}

.password-visibility:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 2px;
}

.password-strength {
  display: grid;
  gap: 8px;
}

.password-strength-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.password-strength-heading strong {
  color: #9a5b16;
}

.password-strength[data-strength="moderate"] .password-strength-heading strong {
  color: #9a6a08;
}

.password-strength[data-strength="strong"] .password-strength-heading strong {
  color: #168052;
}

.password-strength-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7eee9;
}

.password-strength-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #d47c45;
  transition: width 0.18s ease, background-color 0.18s ease;
}

.password-strength[data-strength="moderate"] .password-strength-track span {
  background: #d1a329;
}

.password-strength[data-strength="strong"] .password-strength-track span {
  background: #168052;
}

.password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
}

.password-rules li::before {
  content: "○";
  margin-right: 6px;
  color: #a0aaa4;
}

.password-rules li.met {
  color: #168052;
}

.password-rules li.met::before {
  content: "✓";
  color: #168052;
  font-weight: 800;
}

.phone-input-wrap {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

.phone-input-wrap > input {
  min-width: 0;
}

.country-picker {
  position: relative;
  min-width: 0;
}

.country-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 45px;
  padding: 9px 8px;
  border: 1px solid #d5e3da;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.country-picker-trigger:hover,
.country-picker-trigger:focus-visible {
  border-color: var(--green-2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 150, 103, 0.12);
}

.country-picker-trigger img,
.country-picker-option img {
  display: block;
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(18, 39, 29, 0.12);
  border-radius: 3px;
}

.country-picker-trigger span {
  display: none;
}

.country-picker-trigger svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.country-picker-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: min(340px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid #d5e3da;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 56, 43, 0.18);
}

.country-picker-search {
  width: 100%;
  min-height: 40px;
  margin-bottom: 7px;
  padding: 9px 11px;
  border: 1px solid #d5e3da;
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.country-picker-options {
  display: grid;
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.country-picker-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.country-picker-option:hover,
.country-picker-option:focus-visible,
.country-picker-option[aria-selected="true"] {
  outline: none;
  background: #edf8f1;
}

.country-option-name {
  flex: 1;
  min-width: 0;
}

.country-option-code {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.country-picker-empty {
  margin: 0;
  padding: 12px 8px;
  color: var(--muted);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.policy-review-link {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #b9d9c7;
  border-radius: 10px;
  background: #edf7f1;
  box-shadow: none;
  color: var(--forest);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.policy-review-link:hover {
  border-color: var(--green);
  background: #e2f2e9;
}

.policy-review-link:focus-visible {
  outline: 3px solid rgba(20, 122, 82, 0.35);
  outline-offset: 3px;
}

.policy-review-signature {
  margin: 16px 0 0;
}

.auth-code-section {
  margin: 12px 0;
}

.auth-code-section h4 {
  margin: 0 0 4px;
}

.auth-code-section > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 3px 0 20px;
  font-size: 12px;
}

.text-link {
  color: var(--green);
  font-weight: 750;
  transition: color 0.2s var(--ease-soft);
}

.text-link:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #889990;
  font-size: 11.5px;
  margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.center-note {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 16px;
}

.form-error {
  padding: 11px 14px;
  background: #fff2f0;
  border: 1px solid #f3ccc7;
  color: #a8322c;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 15px;
  animation: cardReveal 0.25s var(--ease-out) both;
}

/* Subject Search & Picker */
.language-dropdown {
  position: relative;
}

.language-dropdown > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 45px;
  padding: 11px 14px;
  border: 1px solid #d5e3da;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.language-dropdown > summary::-webkit-details-marker {
  display: none;
}

.language-dropdown > summary::after {
  content: "▾";
  color: var(--muted);
}

.language-dropdown[open] > summary {
  border-color: var(--green-2);
  border-radius: 12px 12px 0 0;
}

.language-dropdown-panel {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px;
  border: 1px solid #d5e3da;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 56, 43, 0.14);
}

.language-dropdown-panel > input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #d5e3da;
  border-radius: 9px;
  font: inherit;
}

.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  max-height: 240px;
  overflow: auto;
  margin: 10px 0;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
}

.language-option:hover {
  background: #f2f9f5;
}

.language-option input[type="checkbox"] {
  appearance: auto;
  accent-color: var(--green);
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.language-empty {
  grid-column: 1 / -1;
  margin: 6px 4px;
  color: var(--muted);
  font-size: 12px;
}

.selected-language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.selected-language-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #d5e3da;
  border-radius: 999px;
  background: #f2f9f5;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.selected-language-remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64796d;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.selected-language-remove:hover {
  background: #e2eee6;
  color: #a8322c;
}

.language-save-warning {
  color: #a8322c;
  font-weight: 600;
}

.language-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.language-add-row input {
  min-width: 0;
  flex: 1;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #d5e3da;
  border-radius: 9px;
  font: inherit;
}

.subject-search {
  margin: 0 0 14px;
}

.subject-search input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-out);
}

.subject-search input:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 4px rgba(20, 122, 82, 0.11);
  outline: none;
}

.subject-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#profile-form .subject-picker,
#subjects-form .subject-picker {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

#profile-form .subject-option,
#subjects-form .subject-option {
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
}

.auth-signup-page #signup-subject-picker .subject-search {
  margin: 10px 0 8px;
}

.auth-signup-page #signup-subject-picker .subject-picker {
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.auth-signup-page #signup-subject-picker .subject-option {
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
}

.signup-subject-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.subject-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: #fafcfb;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12px;
  color: #465d50;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-soft),
    background 0.2s var(--ease-soft),
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s var(--ease-out);
}

.subject-other-option {
  position: sticky;
  bottom: 0;
  z-index: 1;
  grid-column: 1 / -1;
  width: 100%;
  align-items: center;
  text-align: left;
  font: inherit;
  background: #eff8f2;
  border: 1px dashed #7eb89a;
  box-shadow: 0 -6px 12px rgba(255, 255, 255, 0.9);
}

.subject-other-option:focus-visible {
  outline: 3px solid rgba(20, 122, 82, 0.3);
  outline-offset: 2px;
}

.subject-other-plus {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 19px;
  line-height: 1;
}

.subject-other-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.subject-option:hover {
  border-color: #a9ceba;
  background: #f2f9f5;
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-xs);
}

.subject-option:has(input:checked) {
  border-color: #5eb386;
  background: linear-gradient(135deg, #ecfaf2, #e2f5ea);
  color: var(--forest);
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(20, 122, 82, 0.08);
}

.subject-option input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.subject-option span {
  font-size: 12.5px;
  line-height: 1.45;
}

.subject-empty {
  display: block;
  margin-top: 8px;
}

/* ==========================================================================
   Authenticated App Shell (Sidebar, Topbar, Workspace)
   ========================================================================== */

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 76% 0%, rgba(209, 239, 221, 0.42), transparent 42%),
    radial-gradient(ellipse at 20% 100%, rgba(217, 155, 38, 0.05), transparent 40%),
    #f4f8f5;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
}

.sidebar {
  background: linear-gradient(172deg, #10392c 0%, #0b2920 68%, #071e17 100%);
  color: #d4e3d9;
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  z-index: 30;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.05), 8px 0 32px rgba(9, 38, 29, 0.06);
}

.sidebar .brand {
  color: #ffffff;
  padding: 0 11px 24px;
  font-size: 15.5px;
}

.sidebar .brand img {
  width: 35px;
  height: 35px;
}

.sidebar .brand span em {
  background: linear-gradient(135deg, #6ee7b7, #a7f3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #84ab99;
  padding: 16px 13px 8px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  min-height: 43px;
  padding: 11px 14px;
  color: #bfd4c8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 650;
  transition:
    background 0.22s var(--ease-soft),
    color 0.2s var(--ease-soft),
    transform 0.22s var(--ease-spring),
    box-shadow 0.22s var(--ease-out);
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(3px);
}

.side-link:hover .icon {
  transform: scale(1.1);
}

.side-link.active {
  background: linear-gradient(105deg, #21855c 0%, #166646 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 10px 22px -4px rgba(4, 24, 16, 0.34);
}

.side-link.active::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 9px;
  bottom: 9px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: #7ef0b5;
  box-shadow: 0 0 12px rgba(126, 240, 181, 0.7);
}

.side-link .nav-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  padding: 0 6px;
  background: #d8f5e5;
  color: #0b4f35;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 16px 4px 0;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  min-width: 0;
  border-radius: 14px;
  transition: background 0.2s var(--ease-soft);
}

.account-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.account-chip .identity {
  min-width: 0;
  flex: 1;
}

.account-chip strong {
  font-size: 11.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f3f9f5;
}

.account-chip small {
  font-size: 10px;
  color: #9ab8a8;
}

/* Avatars */
.avatar {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #e1f4e8, #c7e8d4);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
  border: 1px solid rgba(20, 122, 82, 0.16);
  box-shadow: 0 4px 10px rgba(15, 56, 43, 0.07);
  transition: transform 0.24s var(--ease-spring), box-shadow 0.24s var(--ease-out);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-profile-button {
  display: grid;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
}

.avatar-profile-button:focus-visible {
  outline: 3px solid #5b9c78;
  outline-offset: 3px;
}

.avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 23px;
  box-shadow: 0 10px 24px rgba(20, 122, 82, 0.15);
}

.avatar-sm {
  height: 30px;
  width: 30px;
  border-radius: 10px;
  font-size: 11px;
}

/* Main Column & Sticky Frosted Topbar */
.main-column {
  min-width: 0;
  min-height: 100vh;
}

.topbar {
  height: 80px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid #e3ece6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(15, 56, 43, 0.03);
  transition: box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px -8px rgba(15, 56, 43, 0.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.mobile-brand,
.mobile-menu {
  display: none;
}

.page-heading h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.25;
  color: #102920;
}

.page-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.top-search {
  display: flex;
  gap: 9px;
  align-items: center;
  position: relative;
  max-width: 410px;
  flex: 1;
}

.top-search input {
  border: 1px solid #e1ebe4;
  background: #f2f7f4;
  padding: 11px 14px 11px 40px;
  border-radius: 13px;
  width: 100%;
  font-size: 12.5px;
  color: var(--ink);
  transition:
    background 0.2s var(--ease-soft),
    border-color 0.2s var(--ease-soft),
    box-shadow 0.22s var(--ease-out);
}

.top-search input:hover {
  background: #ecf4ef;
  border-color: #cfe0d5;
}

.top-search input:focus {
  background: #ffffff;
  border-color: var(--green-2);
  box-shadow: 0 0 0 4px rgba(31, 150, 103, 0.11), 0 6px 16px rgba(15, 56, 43, 0.05);
  outline: 0;
}

.top-search .icon {
  position: absolute;
  left: 13px;
  color: #789082;
  pointer-events: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.icon-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #5e7468;
  height: 39px;
  width: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition:
    background 0.2s var(--ease-soft),
    color 0.2s var(--ease-soft),
    border-color 0.2s var(--ease-soft),
    transform 0.22s var(--ease-spring),
    box-shadow 0.22s var(--ease-out);
}

.icon-btn:hover {
  background: var(--mint-2);
  color: var(--forest);
  border-color: #bdd6c7;
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-sm);
}

.notification-dot {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e07638;
  border: 1.5px solid #ffffff;
  animation: notifPulse 2s infinite;
}

/* ==========================================================================
   Workspace Content, Dashboard & Cards
   ========================================================================== */

.workspace {
  max-width: 1560px;
  margin: auto;
  padding: 32px 32px 56px;
  animation: viewFadeUp 0.5s var(--ease-out) both;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.welcome-row h2 {
  font-size: 27px;
  margin: 0;
  letter-spacing: -0.05em;
}

.welcome-row p {
  color: var(--muted);
  margin: 4px 0 0;
}

.welcome-row .tagline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  padding: 7px 12px;
  border: 1px solid #d4e8dc;
  border-radius: 999px;
  background: #eef8f2;
}

/* Dashboard Hero Banner */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-radius: 24px;
  background: linear-gradient(120deg, #e5f6ec 0%, #eff9f2 52%, #f8f9ee 100%);
  padding: 26px 28px;
  margin-bottom: 24px;
  border: 1px solid #d3e7db;
  box-shadow: var(--shadow-sm);
  animation: cardReveal 0.55s var(--ease-out) both;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 150, 103, 0.16), transparent 70%);
  pointer-events: none;
}

.dashboard-hero h2 {
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: -0.045em;
  margin: 7px 0;
  color: #0f2920;
}

.dashboard-hero p {
  font-size: 13px;
  color: #52685d;
  margin: 0;
  max-width: 580px;
  line-height: 1.65;
}

.dashboard-hero .hero-mark {
  position: relative;
  z-index: 1;
  height: 68px;
  width: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, #d1eedd, #b8e4ca);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(20, 122, 82, 0.12);
  animation: floatingBadgeTop 5.5s ease-in-out infinite;
}

/* Metric Grid & Cards */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(300px circle at var(--mx, 80%) var(--my, 0%), rgba(31, 150, 103, 0.065), transparent 65%),
    linear-gradient(155deg, #ffffff 55%, #fafdfb 100%);
  border-radius: 20px;
  padding: 20px 21px;
  min-width: 0;
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s var(--ease-out),
    border-color 0.24s var(--ease-soft);
  animation: cardReveal 0.55s var(--ease-out) both;
}

.metric-card:nth-child(1) { animation-delay: 0.04s; }
.metric-card:nth-child(2) { animation-delay: 0.10s; }
.metric-card:nth-child(3) { animation-delay: 0.16s; }
.metric-card:nth-child(4) { animation-delay: 0.22s; }

.metric-card:hover {
  transform: translateY(-4px);
  border-color: #c2dccd;
  box-shadow: var(--shadow-sm);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e3f6eb, #cfeede);
  color: #137850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.28s var(--ease-spring);
}

.metric-card:hover .metric-icon {
  transform: scale(1.1) rotate(-4deg);
}

.metric-icon.gold {
  background: linear-gradient(135deg, #fff4dc, #ffe7ba);
  color: #a87010;
}

.metric-icon.blue {
  background: linear-gradient(135deg, #edf3ff, #dbe7ff);
  color: #3f64ad;
}

.metric-icon.rose {
  background: linear-gradient(135deg, #fff1ef, #ffe0dc);
  color: #b54d43;
}

.metric-card strong {
  font-size: 28px;
  font-weight: 820;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  display: block;
  margin: 15px 0 3px;
  line-height: 1.05;
  color: #0f2920;
}

.metric-card small {
  color: var(--muted);
  font-size: 11.5px;
}

.metric-bottom {
  font-size: 10.5px;
  margin-top: 14px;
  color: #217852;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Content Grids & Panels */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-bottom: 20px;
}

.content-grid.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  min-width: 0;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.25s var(--ease-soft),
    box-shadow 0.25s var(--ease-out);
  animation: cardReveal 0.6s var(--ease-out) both;
}

.panel:hover {
  border-color: #d0e2d7;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 780;
  letter-spacing: -0.025em;
  color: #102920;
}

.panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.panel-link {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 750;
  padding: 6px 10px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft), transform 0.2s var(--ease-spring);
}

.panel-link:hover {
  background: #edf7f1;
  color: var(--forest);
  transform: translateX(2px);
}

/* Empty State & Error Page */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}

.empty-state .empty-icon {
  height: 54px;
  width: 54px;
  margin: 0 auto 13px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ebf7f0, #dcf0e4);
  color: var(--green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 5px;
}

.empty-state p {
  max-width: 310px;
  margin: 0 auto 16px;
  font-size: 12px;
  line-height: 1.6;
}

.error-page {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  animation: viewFadeUp 0.5s var(--ease-out) both;
}

.error-mark {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: linear-gradient(135deg, #e5f6ec, #d0ecdc);
  color: var(--green);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(20, 122, 82, 0.1), var(--shadow-sm);
}

.error-page .kicker {
  margin-top: 16px;
}

.error-page h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.045em;
}

.error-page p {
  max-width: 520px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Teacher Cards, Class Cards & Lists
   ========================================================================== */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.teacher-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(31, 150, 103, 0.065), transparent 65%),
    #ffffff;
  padding: 19px;
  min-width: 0;
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-out),
    border-color 0.24s var(--ease-soft);
  animation: cardReveal 0.55s var(--ease-out) both;
}

.teacher-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  opacity: 0;
  transition: opacity 0.25s var(--ease-soft);
}

.teacher-card:hover {
  transform: translateY(-4px);
  border-color: #bdd8c8;
  box-shadow: 0 16px 34px -8px rgba(15, 56, 43, 0.11);
}

.teacher-card:hover::before {
  opacity: 1;
}

.teacher-card-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.teacher-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: #102920;
}

.teacher-card .teacher-qual {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}

.reach-boost-badge {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 8px;
  border: 1px solid #f0d99f;
  border-radius: 999px;
  background: #fff8e6;
  color: #76520d;
  font-size: 10px;
  font-weight: 750;
}

.teacher-card .rate {
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -0.04em;
  margin: 12px 0 6px;
  color: var(--forest);
}

.teacher-card .rate small {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.subject-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.subject-tag {
  background: #ebf6ef;
  border: 1px solid rgba(20, 122, 82, 0.1);
  color: #2f5944;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 650;
  padding: 4px 8px;
  transition: background 0.2s var(--ease-soft), transform 0.2s var(--ease-spring);
}

.subject-tag:hover {
  background: #dcf0e4;
  transform: translateY(-1px);
}

.teacher-card .btn {
  margin-top: 14px;
  width: 100%;
  font-size: 11.5px;
}

/* Lists & Rows */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 6px;
  border-bottom: 1px solid #edf2ee;
  min-width: 0;
  border-radius: 10px;
  transition: background 0.18s var(--ease-soft);
}

.list-row:hover {
  background: #f8fbf9;
}

.list-row:first-child {
  padding-top: 4px;
}

.list-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.list-row-main {
  min-width: 0;
  flex: 1;
}

.list-row-main strong {
  font-size: 12.5px;
  display: block;
  overflow-wrap: anywhere;
  color: #132b22;
}

.list-row-main small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.list-row-side {
  text-align: right;
  flex-shrink: 0;
}

.list-row-side strong {
  font-size: 12px;
  display: block;
}

.list-row-side small {
  font-size: 10px;
  color: var(--muted);
}

.class-mark {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3f6eb, #cfeede);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.class-mark.gold {
  background: linear-gradient(135deg, #fff4dc, #ffe7ba);
  color: #a87010;
}

.class-mark.blue {
  background: linear-gradient(135deg, #edf3ff, #dbe7ff);
  color: #3f64ad;
}

/* Filter Bar & Class Cards */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-bar .field {
  margin: 0;
  min-width: 175px;
  flex: 1;
}

.filter-bar .field input,
.filter-bar .field select {
  min-height: 43px;
}

#users-search > button {
  align-self: flex-end;
}

.stack-page {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.class-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(31, 150, 103, 0.055), transparent 65%),
    linear-gradient(135deg, #ffffff 72%, #fbfdfb 100%);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s var(--ease-out),
    border-color 0.24s var(--ease-soft);
  animation: cardReveal 0.52s var(--ease-out) both;
}

.class-card:hover {
  border-color: #c2dccd;
  box-shadow: 0 14px 32px -8px rgba(15, 56, 43, 0.09);
  transform: translateY(-2.5px);
}

.class-body {
  min-width: 0;
  flex: 1;
}

.class-body h3 {
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: #102920;
}

.class-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #4e6559;
  font-size: 11px;
  font-weight: 600;
  margin: 12px 0;
}

.class-meta span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: #f3f8f5;
  border: 1px solid #e4eee8;
  padding: 4px 9px;
  border-radius: 8px;
}

.class-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.class-actions .btn {
  font-size: 11.5px;
}

.payment-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-controls-unavailable,
.test-payment-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.test-payment-controls {
  flex-basis: 100%;
}

.test-payment-controls .hint {
  flex-basis: 100%;
  margin: 0;
  color: #80621f;
  font-size: 11px;
}

.payment-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payment-option-select {
  min-height: 36px;
  max-width: 100%;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

/* ==========================================================================
   Profile, Availability & Tables
   ========================================================================== */

.profile-layout {
  display: grid;
  grid-template-columns: 295px minmax(0, 1fr);
  gap: 18px;
}

.profile-summary {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(165deg, #ffffff 62%, #f1f9f4 100%);
}

.profile-summary::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--green-bright), var(--gold));
}

.profile-summary .avatar {
  margin: 10px auto 14px;
}

.profile-summary h3 {
  margin: 0;
  font-size: 17.5px;
  letter-spacing: -0.025em;
}

.profile-summary .profile-role {
  color: var(--muted);
  font-size: 11.5px;
  margin: 4px 0 15px;
}

.photo-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.photo-upload input {
  display: none;
}

.completion-bar {
  height: 8px;
  background: #e5efe9;
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0 7px;
}

.completion-bar span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--green), var(--green-bright), var(--green));
  background-size: 200% 100%;
  border-radius: 99px;
  transition: width 0.6s var(--ease-out);
  animation: shimmerSweep 3.5s linear infinite;
}

.form-section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e8f0eb;
}

.form-section:last-child {
  border: 0;
  padding: 0;
  margin: 0;
}

.form-section h3 {
  font-size: 15.5px;
  letter-spacing: -0.025em;
  margin: 0 0 5px;
}

.form-section > p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
}

.availability-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.22s var(--ease-soft),
    box-shadow 0.22s var(--ease-out),
    transform 0.22s var(--ease-spring);
}

.availability-card:hover {
  border-color: #c2dccd;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1.5px);
}

.availability-card > div:nth-child(2) {
  flex: 1;
}

.availability-card strong {
  font-size: 12.5px;
  color: #112a21;
}

.availability-card small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.meeting-pending {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e1eadf;
  border-radius: 11px;
  background: #f6faf7;
  padding: 8px 12px;
  color: #5e7268;
  font-size: 11.5px;
}

.meeting-join-locked {
  display: inline-flex;
  cursor: not-allowed;
}

.meeting-join-locked .btn {
  pointer-events: none;
}

.availability-quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -2px 0 14px;
}

.availability-quick-action > span {
  font-size: 11px;
  color: var(--muted);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
  text-align: left;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2ee;
  font-size: 11.5px;
  vertical-align: middle;
}

th {
  background: #f4f8f5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9.5px;
  color: #5e7467;
  font-weight: 800;
}

td {
  color: #41594c;
  transition: background 0.16s var(--ease-soft);
}

tbody tr:hover td {
  background: #f8fcf9;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: var(--ink);
  font-size: 12.5px;
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Banners, Charts, Activity, Notifications & Catalogue */
.status-banner {
  border: 1px solid #eedcb6;
  background: linear-gradient(135deg, #fff9ec, #fff4de);
  border-radius: 16px;
  padding: 15px 18px;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 4px 14px rgba(180, 123, 24, 0.06);
}

.status-banner .icon {
  color: #b17a1c;
  margin-top: 1px;
}

.status-banner strong {
  display: block;
  font-size: 12.5px;
}

.status-banner p {
  font-size: 11.5px;
  color: #786542;
  margin: 3px 0 0;
  line-height: 1.55;
}

.alert-banner {
  border: 1px solid #f0d9d6;
  background: #fff2ef;
  border-radius: 15px;
  padding: 14px;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 130px;
  padding: 12px 5px 0;
  border-bottom: 1px solid var(--line);
}

.chart-bars .bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  justify-content: end;
}

.chart-bars .bar {
  width: min(31px, 70%);
  min-height: 5px;
  background: linear-gradient(180deg, #4fd19b 0%, #147a52 100%);
  border-radius: 8px 8px 0 0;
  transform-origin: bottom;
  animation: barGrow 0.7s var(--ease-out) both;
}

.chart-bars small {
  font-size: 9px;
  color: var(--muted);
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 6px;
  border-bottom: 1px solid #edf2ee;
  border-radius: 10px;
  transition: background 0.18s var(--ease-soft);
}

.activity-item:hover {
  background: #f8fbf9;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-bullet {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf6ef;
  color: var(--green);
  flex-shrink: 0;
}

.activity-item strong {
  display: block;
  font-size: 11.5px;
  color: #122b22;
}

.activity-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.notification-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 8px;
  border-bottom: 1px solid #edf2ee;
  border-radius: 12px;
  transition: background 0.2s var(--ease-soft);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.unread {
  background: linear-gradient(90deg, #f1faf4, #fafdfb);
  margin: 0 -12px;
  padding: 16px 14px;
  border-left: 3px solid var(--green-2);
}

.notification-item strong {
  font-size: 12.5px;
  color: #102920;
}

.notification-item p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 4px 0;
  line-height: 1.55;
}

.notification-item time {
  font-size: 10px;
  color: #8b9c92;
}

.notification-item .notification-text {
  flex: 1;
  min-width: 0;
}

.notification-item .icon-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.catalogue-tree {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalogue-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.22s var(--ease-soft), box-shadow 0.22s var(--ease-out), transform 0.22s var(--ease-spring);
}

.catalogue-card:hover {
  border-color: #c2dccd;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.catalogue-card h4 {
  margin: 0 0 9px;
  font-size: 13.5px;
  color: var(--forest);
}

.catalogue-card .branch-name {
  font-size: 10.5px;
  color: var(--green);
  font-weight: 800;
  margin-top: 10px;
}

.catalogue-card .subjects-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.65;
}

.catalogue-subject {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 3px 4px 3px 9px;
  border: 1px solid rgba(20, 122, 82, 0.1);
  border-radius: 999px;
  background: #ebf6ef;
  color: #2f5944;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.5;
}

.catalogue-subject.is-removed {
  background: #f5f6f5;
  border-color: #e2e7e4;
  color: var(--muted);
}

.catalogue-subject-remove {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d8276;
  cursor: pointer;
  transition: background 0.18s var(--ease-soft), color 0.18s var(--ease-soft);
}

.catalogue-subject-remove:hover,
.catalogue-subject-remove:focus-visible {
  background: #dceee3;
  color: #a52e28;
}

.catalogue-subject-remove:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.content-header h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0;
  color: #0f2920;
}

.content-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}

/* ==========================================================================
   Toasts, Modals, Maintenance, Footer, Policies & Cookie Consent
   ========================================================================== */

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(400px, calc(100vw - 40px));
}

.toast {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(15, 56, 43, 0.94);
  backdrop-filter: blur(14px);
  color: #ffffff;
  padding: 14px 17px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(6, 28, 20, 0.28);
  font-size: 13px;
  line-height: 1.5;
  animation: toast-in 0.3s var(--ease-spring) both;
}

.toast.error {
  background: rgba(128, 38, 33, 0.95);
}

.toast .icon {
  color: #7ef0b5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 34, 25, 0.62);
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 20px;
  animation: modalBackdropFade 0.22s var(--ease-out) both;
}

.modal {
  background: #ffffff;
  width: min(550px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 32px 100px rgba(4, 22, 15, 0.34);
  animation: modalSpring 0.34s var(--ease-spring) both;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: #0f2920;
}

.modal-close {
  border: 1px solid #e2ebe5;
  background: #f4f8f5;
  border-radius: 11px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #4f6458;
  transition: background 0.2s var(--ease-soft), transform 0.25s var(--ease-spring), color 0.2s var(--ease-soft);
}

.modal-close:hover {
  background: #e6f2ea;
  color: var(--forest);
  transform: rotate(90deg);
}

.modal.policy-review-modal {
  width: min(900px, 100%);
}

.modal.auth-verification-modal {
  width: min(460px, 100%);
}

.auth-verification-modal .modal > p {
  line-height: 1.6;
}

.auth-verification-modal .auth-resend-form {
  margin-top: 10px;
}

.auth-verification-modal #auth-flow-status:not(:empty) {
  margin-top: 14px;
  color: var(--forest);
  font-weight: 600;
}

.policy-review-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.policy-review-tabs button {
  border: 1px solid #dfe9e2;
  background: #f7faf8;
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 13px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.policy-review-tabs button.active {
  border-color: var(--green);
  background: #e9f6ef;
  color: var(--green);
}

.policy-review-document {
  max-height: min(52vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border: 1px solid #e3ebe5;
  border-radius: 14px;
  background: #fbfdfb;
  line-height: 1.65;
}

.policy-review-document h1,
.policy-review-document h2 {
  color: #0f2920;
  line-height: 1.25;
}

.policy-review-document h2 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.policy-review-document p {
  color: #43574c;
}

.policy-review-checks {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.policy-review-checks input:disabled {
  cursor: not-allowed;
}

.policy-review-actions {
  margin-top: 16px;
  justify-content: flex-end;
}

.required-mark {
  color: #bd3434;
  font-weight: 800;
}

.policy-signature-field[hidden] {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.hidden {
  display: none !important;
}

/* Maintenance Page & Controls */
.maintenance-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px clamp(18px, 5vw, 64px);
  background: radial-gradient(ellipse at 50% 40%, #eaf7ee 0%, #f5f9f6 55%, #ffffff 100%);
  animation: viewFadeUp 0.55s var(--ease-out) both;
}

.maintenance-page > .brand {
  align-self: flex-start;
}

.maintenance-card {
  width: min(620px, 100%);
  margin: auto;
  text-align: center;
  padding: clamp(28px, 6vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.maintenance-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #e3f6eb, #ccebd8);
  color: var(--green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
}

.maintenance-icon .icon {
  width: 34px;
  height: 34px;
}

.maintenance-card .kicker {
  letter-spacing: 0.14em;
}

.maintenance-card h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 12px 0;
}

.maintenance-card p {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.maintenance-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.maintenance-foot {
  margin-top: auto;
  padding-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.maintenance-control {
  margin: 0 0 18px;
}

.maintenance-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.maintenance-control-row p {
  margin: 0;
  max-width: 620px;
}

.maintenance-card .maintenance-apology {
  margin-top: 14px;
  font-size: 13px;
}

.maintenance-current-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mint-2);
}

.maintenance-current-note strong {
  font-size: 12px;
}

.maintenance-current-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.maintenance-side-link {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  padding-top: 16px !important;
}

.maintenance-side-status {
  margin-left: auto;
  color: #bed3c6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.maintenance-side-status.active {
  color: #f3d28a;
}

/* Site Footer & Legal Pages */
#app .public-footer {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 42px clamp(18px, 5vw, 72px) 22px;
  background: linear-gradient(180deg, #eff7f2 0%, #e7f2eb 100%);
  border-top: 1px solid #d7e6dd;
  color: var(--ink);
}

.site-footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(250px, 1fr) minmax(230px, 1fr);
  gap: 28px 48px;
  align-items: start;
}

.site-footer-brand .brand {
  display: inline-flex;
}

.site-footer-brand p {
  max-width: 290px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.site-footer-links,
.site-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-footer-links a,
.site-footer-links button,
.site-footer-contact a {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s var(--ease-soft), transform 0.2s var(--ease-spring);
}

.site-footer-links a:hover,
.site-footer-links button:hover,
.site-footer-contact a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: translateX(2px);
}

.site-footer-links button {
  cursor: pointer;
}

.site-footer-contact > span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #d5e4db;
  color: var(--muted);
  font-size: 12px;
}

.policy-body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #ebf7ee 0%, #f5f8f5 46%, var(--paper) 100%);
  color: var(--ink);
}

.policy-header {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.policy-header .brand {
  display: inline-flex;
}

.policy-back {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.policy-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-page {
  width: min(920px, calc(100% - 40px));
  margin: 18px auto 56px;
  padding: clamp(24px, 5vw, 58px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.policy-page > h1 {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.policy-page > p:first-of-type {
  color: var(--muted);
  font-size: 13px;
}

.policy-page h2 {
  margin: 32px 0 9px;
  color: var(--forest);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.policy-page p {
  max-width: 75ch;
  color: #4f6258;
  font-size: 15px;
  line-height: 1.8;
}

.policy-page a {
  color: var(--green);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #9cc9aa;
  text-underline-offset: 3px;
}

.policy-page strong {
  color: var(--forest);
}

.policy-page > section {
  margin-top: 34px;
  padding: 22px 24px;
  background: var(--mint-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.policy-page > section h2 {
  margin-top: 0;
}

/* Consent Checkboxes & Cookie Consent Modal */
.field.consent-field {
  margin: 16px 0 8px;
}

.consent-instructions {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #d8e9df;
  border-radius: 12px;
  background: #f3faf6;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.consent-instructions > strong {
  margin-bottom: 2px;
  color: var(--forest);
  font-size: 13px;
}

.consent-instructions span > strong {
  color: var(--forest);
}

.consent-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 600;
}

.consent-label input[type=checkbox] {
  position: absolute !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  display: block !important;
  flex: 0 0 1px !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  box-shadow: none !important;
}

.consent-label:focus-within .consent-signature-copy {
  outline: 2px solid var(--green-2);
  outline-offset: 3px;
}

.consent-label > .consent-signature-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 2px 6px 4px;
  border-bottom: 1px dashed var(--line);
}

.consent-signature-copy strong {
  font-size: 12.5px;
}

.consent-signature-name {
  min-height: 23px;
  color: var(--muted);
  font-size: 19px;
  font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;
  font-weight: 500;
  font-style: italic;
  overflow-wrap: anywhere;
}

.consent-label input:checked ~ .consent-signature-copy .consent-signature-name {
  color: var(--green);
  animation: signature-write 0.65s ease-out both;
}

@keyframes signature-write {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

.consent-label > span {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .consent-label input:checked ~ .consent-signature-copy .consent-signature-name {
    animation: none;
  }
}

.consent-label a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  place-items: center;
  padding: 20px;
  background: rgba(9, 34, 25, 0.62);
  backdrop-filter: blur(8px);
  animation: modalBackdropFade 0.25s var(--ease-out) both;
}

.cookie-consent-backdrop[style*="block"] {
  display: grid !important;
}

.cookie-consent-card {
  width: min(560px, 100%);
  margin: auto;
  padding: clamp(26px, 5vw, 42px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  box-shadow: 0 30px 95px rgba(4, 22, 15, 0.32);
  color: var(--ink);
  animation: modalSpring 0.38s var(--ease-spring) both;
}

.cookie-consent-card h2 {
  margin: 14px 0 10px;
  color: var(--forest);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.cookie-consent-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.cookie-consent-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.cookie-consent-actions .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.cookie-consent-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cookie-consent-links a {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .workspace {
    padding: 25px 24px 45px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-copy {
    padding-left: 43px;
  }
  .hero-proof {
    gap: 12px;
  }
  .hero-art {
    padding-right: 14px;
  }
  .floating-card.bottom {
    left: 4px;
  }
  .floating-card.top {
    right: 8px;
  }
  .profile-layout {
    grid-template-columns: 245px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .public-nav {
    gap: 6px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-copy {
    padding: 45px 42px 12px;
  }
  .hero-art {
    min-height: 370px;
    padding: 0 40px 24px;
  }
  .hero-art > img {
    max-height: 430px;
  }
  .hero h1 {
    max-width: 700px;
  }
  .hero-lede {
    max-width: 660px;
  }
  .hero-proof {
    margin-top: 28px;
  }
  .content-grid,
  .content-grid.equal {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-summary {
    text-align: left;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0 16px;
    align-items: center;
  }
  .profile-summary .avatar {
    grid-row: 1 / 4;
    margin: 0;
  }
  .profile-summary h3,
  .profile-summary .profile-role {
    grid-column: 2;
  }
  .profile-summary .photo-upload,
  .profile-summary .completion-wrap {
    grid-column: 1 / -1;
  }
  .auth-page {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: auto;
  }
  .auth-aside {
    min-height: unset;
    padding: 25px;
    border-radius: 22px;
  }
  .auth-side-copy {
    margin: 22px 0;
    padding: 0;
  }
  .auth-side-copy h1 {
    font-size: 31px;
    max-width: 480px;
  }
  .auth-side-copy p {
    margin: 0;
  }
  .auth-side-copy img {
    display: none;
  }
  .auth-side-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-main {
    padding: 0;
  }
  .auth-card {
    padding: 29px;
    border-radius: 22px;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    width: 264px;
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease-spring);
    box-shadow: 24px 0 80px rgba(8, 38, 25, 0.25);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: none !important;
  }
  .mobile-brand {
    display: inline-flex;
  }
  .page-heading {
    display: none;
  }
  .topbar-left {
    flex: 1;
  }
  .top-search {
    max-width: unset;
  }
  .workspace {
    padding-top: 26px;
  }
  .panel {
    padding: 20px;
  }
  .mobile-bottom-nav {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 254, 251, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    height: 66px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    z-index: 25;
    justify-content: space-around;
    gap: 4px;
    box-shadow: 0 -6px 22px rgba(20, 62, 50, 0.05);
  }
  .mobile-bottom-nav button {
    border: 0;
    background: transparent;
    color: #6d8276;
    font-size: 9.5px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-radius: 12px;
    transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
  }
  .mobile-bottom-nav button.active {
    background: #e5f5ec;
    color: var(--green);
  }
  .mobile-bottom-nav .icon {
    width: 18px;
    height: 18px;
  }
  .app-shell {
    padding-bottom: 66px;
  }
}

@media (max-width: 720px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .site-footer-brand {
    grid-column: 1 / -1;
  }
  .site-footer-bottom {
    flex-direction: column;
    gap: 4px;
  }
  .policy-header {
    width: calc(100% - 32px);
    padding: 18px 0;
  }
  .policy-page {
    width: calc(100% - 24px);
    margin: 8px auto 32px;
    padding: 24px 20px;
    border-radius: 18px;
  }
  .policy-page p {
    font-size: 14px;
  }
}

@media (max-width: 620px) {
  .public-header {
    width: calc(100% - 24px);
    height: 68px;
    padding: 0 16px;
    gap: 8px;
    border-radius: 18px;
  }
  .public-nav {
    display: flex;
    flex: 0 0 auto;
    gap: 0;
  }
  .public-nav > a {
    display: none;
  }
  .public-header > .brand span {
    display: none;
  }
  .learning-menu-trigger {
    padding: 8px 7px;
    font-size: 11px;
  }
  .learning-menu-panel {
    position: fixed;
    top: 82px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow: auto;
    transform: translateY(8px);
  }
  .learning-menu:hover .learning-menu-panel,
  .learning-menu:focus-within .learning-menu-panel,
  .learning-menu.open .learning-menu-panel {
    transform: translateY(0);
  }
  .learning-menu-panel::before {
    display: none;
  }
  .learning-menu-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .learning-branches {
    max-height: 190px;
  }
  .learning-subjects {
    min-height: 0;
  }
  .public-actions .btn-ghost {
    display: none;
  }
  .public-actions .btn {
    padding: 9px 12px;
    font-size: 11.5px;
  }
  .brand {
    font-size: 14px;
  }
  .brand img {
    height: 32px;
    width: 32px;
  }
  .hero {
    width: calc(100% - 24px);
    margin: 10px auto 38px;
    border-radius: 24px;
  }
  .hero-copy {
    padding: 33px 24px 10px;
  }
  .hero h1 {
    font-size: 40px;
    margin: 18px 0 14px;
  }
  .hero-lede {
    font-size: 13.5px;
    line-height: 1.65;
  }
  .hero-art {
    min-height: 280px;
    padding: 0 15px 16px;
  }
  .floating-card {
    padding: 9px 11px;
    border-radius: 13px;
    gap: 7px;
  }
  .floating-card.top {
    top: 17px;
    right: 13px;
  }
  .floating-card.bottom {
    left: 7px;
    bottom: 28px;
  }
  .floating-card .mini-icon {
    width: 29px;
    height: 29px;
  }
  .floating-card strong {
    font-size: 10.5px;
  }
  .floating-card small {
    font-size: 9px;
  }
  .hero-proof {
    gap: 10px;
    margin-top: 22px;
  }
  .proof-icon {
    width: 30px;
    height: 30px;
  }
  .proof-item strong {
    font-size: 11px;
  }
  .proof-item small {
    font-size: 9px;
  }
  .section {
    width: calc(100% - 30px);
    margin-bottom: 48px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-card {
    padding: 22px;
    min-height: unset;
  }
  .feature-icon {
    margin-bottom: 14px;
  }
  .pathway-band {
    padding: 26px;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 22px;
    gap: 20px;
  }
  .pathway-band h2 {
    font-size: 25px;
  }
  .pathway-band .btn {
    width: 100%;
  }
  .pathway-band .eyebrow {
    font-size: 10px;
  }
  .footer-inner {
    width: calc(100% - 30px);
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-page {
    padding: 10px;
    gap: 10px;
  }
  .auth-aside {
    padding: 18px;
    border-radius: 18px;
  }
  .auth-side-copy {
    margin: 15px 0;
  }
  .auth-side-copy h1 {
    font-size: 28px;
    margin: 11px 0;
  }
  .auth-side-copy p {
    font-size: 12.5px;
  }
  .auth-side-features {
    display: none;
  }
  .auth-card {
    padding: 22px;
    border-radius: 18px;
  }
  .auth-card h2 {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 14px;
    gap: 10px;
    background: rgba(255, 254, 251, 0.96);
  }
  .topbar-left {
    gap: 9px;
  }
  .top-search {
    max-width: none;
  }
  .top-search input {
    padding-left: 35px;
    font-size: 11.5px;
  }
  .top-search .icon {
    left: 10px;
  }
  .top-actions {
    gap: 7px;
  }
  .top-actions .icon-btn:first-child {
    display: none;
  }
  .top-actions .avatar {
    height: 32px;
    width: 32px;
    border-radius: 10px;
  }
  .mobile-brand {
    font-size: 0;
  }
  .mobile-brand img {
    width: 29px;
    height: 29px;
  }
  .workspace {
    padding: 19px 14px 25px;
  }
  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }
  .welcome-row h2 {
    font-size: 24px;
  }
  .metric-grid {
    gap: 10px;
    margin-bottom: 16px;
  }
  .metric-card {
    padding: 14px;
    border-radius: 15px;
  }
  .metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .metric-card strong {
    font-size: 22px;
    margin: 12px 0 3px;
  }
  .metric-card small {
    font-size: 10px;
  }
  .metric-bottom {
    font-size: 9px;
    margin-top: 10px;
  }
  .dashboard-hero {
    padding: 18px;
    border-radius: 17px;
    align-items: flex-start;
  }
  .dashboard-hero h2 {
    font-size: 19px;
  }
  .dashboard-hero p {
    font-size: 11.5px;
  }
  .dashboard-hero .hero-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .panel {
    padding: 16px;
    border-radius: 16px;
  }
  .panel-head {
    margin-bottom: 15px;
  }
  .panel-head .btn {
    white-space: normal;
  }
  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .teacher-card {
    padding: 15px;
  }
  .class-card {
    padding: 15px;
    border-radius: 16px;
    gap: 11px;
    flex-wrap: wrap;
  }
  .class-card .class-mark {
    height: 36px;
    width: 36px;
  }
  .class-actions {
    width: 100%;
    padding-left: 47px;
  }
  .class-meta {
    gap: 8px;
  }
  .filter-bar {
    align-items: stretch;
  }
  .filter-bar .field {
    min-width: calc(50% - 6px);
    flex-basis: calc(50% - 6px);
  }
  .filter-bar .field:first-child {
    min-width: 100%;
  }
  .content-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .content-header h2 {
    font-size: 20px;
  }
  .subject-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalogue-tree {
    grid-template-columns: 1fr;
  }
  .profile-summary {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0 12px;
  }
  .profile-summary .avatar {
    height: 58px;
    width: 58px;
    border-radius: 17px;
  }
  .profile-summary h3 {
    font-size: 15px;
  }
  .profile-summary .profile-role {
    margin: 2px 0 8px;
  }
  .btn {
    min-height: 40px;
  }
  .list-row {
    gap: 9px;
  }
  .list-row .avatar {
    width: 32px;
    height: 32px;
  }
  .list-row-side .btn {
    padding: 7px 8px;
  }
  .table-wrap {
    margin: 0 -2px;
  }
  .modal {
    padding: 20px;
    border-radius: 18px;
  }
  .modal-head h3 {
    font-size: 16px;
  }
  .field-inline {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-meta {
    align-items: flex-start;
  }
  .maintenance-page {
    padding: 18px;
  }
  .maintenance-card {
    padding: 30px 20px;
    border-radius: 20px;
  }
  .maintenance-card p {
    font-size: 13px;
  }
  .maintenance-actions {
    flex-direction: column;
  }
  .maintenance-actions .btn {
    width: 100%;
  }
  .maintenance-control-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .maintenance-control-row .btn {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 460px) {
  .phone-input-wrap {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 5px;
  }
  .country-picker-trigger {
    gap: 6px;
    padding: 8px;
    font-size: 11px;
  }
  .country-picker-trigger img {
    width: 21px;
    height: 16px;
  }
  .site-footer {
    padding: 28px 18px 18px;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .site-footer-brand,
  .site-footer-bottom {
    grid-column: auto;
  }
  .site-footer-links,
  .site-footer-contact {
    gap: 8px;
  }
  .policy-back {
    font-size: 12px;
  }
  .policy-header .brand span {
    font-size: 14px;
  }
}

@media (max-width: 620px) {
  .language-options {
    grid-template-columns: 1fr;
  }
  .language-add-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.mobile-menu {
  display: none !important;
}
.teacher-profile-status{display:flex;align-items:center;gap:14px;margin:0 0 18px;padding:18px 22px;border:1px solid #b7dfcc;border-left:5px solid #12845f;border-radius:14px;background:linear-gradient(110deg,#e8f7ef,#f5fbf7);color:#174a38;box-shadow:0 5px 16px rgba(15,56,43,.07)}
.teacher-profile-status-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#d0eedc;color:#08734f}
.teacher-profile-status-icon svg{width:22px;height:22px}
.teacher-profile-status>div{display:grid;gap:5px;flex:1;min-width:0}
.teacher-profile-status strong{font-size:16px;line-height:1.45;font-weight:750}
.teacher-profile-status>div>span{font-size:14px;line-height:1.5;color:#476659}
.teacher-profile-status .pill{flex:0 0 auto}
.teacher-profile-status-pending_review{border-color:#efd59b;border-left-color:#c58916;background:linear-gradient(110deg,#fff8e7,#fffdf7);color:#61450e}
.teacher-profile-status-pending_review .teacher-profile-status-icon{background:#ffedc3;color:#91620a}
.teacher-profile-status-approved{border-color:#b7dfcc}
 .sponsored-section:empty{display:none}
.sponsored-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.sponsored-card{overflow:hidden;border:1px solid #dce9e1;border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(20,66,47,.08)}
.sponsored-image-link{display:block;height:180px;background:#eef5f0}
.sponsored-image-link img{width:100%;height:100%;object-fit:cover;display:block}
.sponsored-copy{padding:18px}
.sponsored-label{display:inline-flex;padding:4px 9px;border-radius:999px;background:#edf5ef;color:#466252;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}
.sponsored-copy h3{margin:10px 0 6px;color:#15392b}
.sponsored-copy p{min-height:36px;margin:0 0 14px;color:#617369;font-size:13px;line-height:1.55}
.sponsored-dashboard{margin:0 0 18px}
.sponsored-dashboard .sponsored-image-link{height:130px}
.ad-carousel{position:relative;width:100%;overflow:hidden}
.ad-carousel-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-x:contain}
.ad-carousel-track::-webkit-scrollbar{display:none}
.ad-slide{flex:0 0 100%;min-width:0;display:grid;grid-template-columns:minmax(220px, 1.1fr) minmax(220px, .9fr);align-items:stretch;overflow:hidden;scroll-snap-align:start;border:1px solid #dce9e1;border-radius:16px;background:#fff}
.ad-media{display:block;min-height:190px;height:100%;background:#eef4f0}
.ad-media img,.ad-media video,.ad-review-media img,.ad-review-media video{display:block;width:100%;height:100%;min-height:190px;max-height:310px;object-fit:cover}
.featured-video-wrap{position:relative;width:100%;height:100%;min-height:190px;background:#06101b}
.featured-video-wrap video{display:block;width:100%;height:100%;min-height:190px;max-height:310px;object-fit:cover}
.featured-video-sound{position:absolute;right:14px;bottom:14px;z-index:2;display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(8,15,26,.76);color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer;backdrop-filter:blur(8px)}
.featured-video-sound:hover{background:rgba(8,15,26,.92)}
.featured-video-sound:focus-visible{outline:3px solid #fff;outline-offset:3px}
.ad-slide-copy{padding:22px;align-self:center}
.ad-slide-copy h3{margin:8px 0;font-size:1.2rem}
.ad-slide-copy p{margin:0 0 14px;color:#617269}
.ad-carousel-controls{position:absolute;z-index:4;top:45%;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;transform:translateY(-50%);pointer-events:none}
.ad-carousel-arrow{display:grid;place-items:center;width:44px;height:52px;padding:0;border:0;border-radius:0;background:transparent;color:#234335;font-family:inherit;font-size:42px;font-weight:700;line-height:1;text-shadow:0 1px 3px #fff,0 2px 7px rgba(0,0,0,.45);cursor:pointer;pointer-events:auto;transition:transform .18s ease,color .18s ease}
.ad-carousel-arrow:hover{transform:scale(1.1);color:#087f5b}
.ad-carousel-arrow:focus-visible{outline:3px solid #3c59ed;outline-offset:3px}
.ad-review-media{flex:0 0 220px;max-width:260px;align-self:stretch;overflow:hidden;border-radius:12px;background:#eef4f0}
.ad-review-media img,.ad-review-media video{min-height:150px;max-height:220px}
.auth-ad-slot{width:min(100%,520px);margin:20px auto 8px}
.auth-ad-slot:empty{display:none}
.auth-ad-slot .ad-slide{grid-template-columns:1fr}
.auth-ad-slot .ad-media{min-height:130px;max-height:175px}
.auth-ad-slot .ad-media img,.auth-ad-slot .ad-media video{min-height:130px;max-height:175px;object-fit:contain}
.auth-ad-slot .ad-slide-copy{padding:12px 16px}
.auth-ad-slot .ad-slide-copy p{font-size:.88rem}
.ad-price-form{padding:16px}
.ad-price-form .class-body{width:100%}
.ad-price-form .check-row{display:flex;align-items:center;gap:8px;margin:4px 0 14px;color:#40584b}
@media(max-width:720px){.ad-slide{grid-template-columns:1fr}.ad-media{min-height:170px;max-height:220px}.ad-media img,.ad-media video,.featured-video-wrap video{min-height:170px;max-height:220px}.featured-video-wrap{min-height:170px}.ad-slide-copy{padding:16px}.ad-review-media{flex-basis:100%;max-width:none;max-height:210px}.ad-review-media img,.ad-review-media video{max-height:210px}.ad-carousel-controls{left:8px;right:8px}.ad-carousel-arrow{width:38px;height:46px;font-size:38px}.auth-ad-slot{margin:14px auto}}
.ad-review-card>img{width:170px;min-height:125px;max-height:180px;object-fit:cover;border-radius:12px;background:#edf3ef}
.ad-review-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ad-review-heading h3{margin:0}
.footer-ad-link{border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
@media(max-width:650px){.ad-review-card{display:block}.ad-review-card>img{width:100%;height:170px;max-height:none;margin-bottom:12px}}
@media(max-width:600px){.teacher-profile-status{align-items:flex-start;gap:11px;padding:15px}.teacher-profile-status-icon{flex-basis:36px;width:36px;height:36px}.teacher-profile-status strong{font-size:15px}.teacher-profile-status .pill{margin-left:auto}}

.auth-page.auth-signup-page {
  align-items: start;
}

.auth-signup-page .auth-signup-sidebar {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.auth-signup-page .auth-aside {
  align-self: stretch;
  min-height: 0;
}

.auth-signup-page .auth-side-copy {
  margin: 24px 0 18px;
  padding: 8px 10px;
}

.auth-signup-page .auth-side-copy h1 {
  max-width: 520px;
  font-size: clamp(30px, 3vw, 42px);
}

.auth-signup-page .auth-ad-slot {
  position: static;
  align-self: stretch;
  width: 100%;
  margin: 1cm 0 0;
}

.auth-signup-page .auth-ad-slot .ad-slide {
  grid-template-columns: 1fr;
}

.auth-signup-page .auth-ad-slot .ad-media {
  min-height: 280px;
  height: 300px;
  max-height: 340px;
}

.auth-signup-page .auth-ad-slot .ad-media img,
.auth-signup-page .auth-ad-slot .ad-media video {
  min-height: 280px;
  height: 300px;
  max-height: 340px;
  object-fit: contain;
}

.auth-signup-page .auth-ad-slot .ad-slide-copy {
  padding: 20px 22px;
}

.auth-signup-page .auth-signup-guide {
  margin: 0 0 16px;
}

@media (max-width: 900px) {
  .auth-signup-page .auth-aside {
    align-self: start;
  }

  .auth-signup-page .auth-main {
    order: -1;
  }

  .auth-signup-page .auth-signup-guide,
  .auth-signup-page .auth-side-features {
    display: none;
  }

  .auth-signup-page .auth-side-copy {
    margin: 18px 0 14px;
  }
}

@media (min-width: 1051px) {
  .auth-signup-page {
    grid-template-columns: minmax(320px, 0.8fr) minmax(640px, 1.2fr);
  }
}

.auth-signup-page .auth-main {
  min-width: 0;
  width: 100%;
}

.auth-signup-page .auth-card {
  width: min(920px, 100%);
  margin: -8px auto 0;
  padding-bottom: 16px;
}

.auth-signup-page .auth-card > .center-note:last-child {
  margin-bottom: 0;
  margin-top: 8px !important;
  white-space: nowrap;
  font-size: 11.5px;
}

.auth-signup-page #auth-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  align-items: start;
}

.auth-signup-page #auth-form > .form-grid,
.auth-signup-page #auth-form > #signup-payment-preferences,
.auth-signup-page #auth-form > #signup-subject-picker,
.auth-signup-page #auth-form > .consent-field,
.auth-signup-page #auth-form > #auth-error,
.auth-signup-page #auth-form > button[type="submit"] {
  grid-column: 1 / -1;
}

.auth-signup-page #auth-form > .field {
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .auth-signup-page .auth-side-copy h1 {
    font-size: 28px;
  }

  .auth-signup-page .auth-ad-slot .ad-slide {
    grid-template-columns: 1fr;
  }

  .auth-signup-page .auth-ad-slot .ad-media,
  .auth-signup-page .auth-ad-slot .ad-media img,
  .auth-signup-page .auth-ad-slot .ad-media video {
    min-height: 220px;
    height: 240px;
    max-height: 260px;
  }
}

@media (max-width: 1050px) {
  .auth-signup-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-signup-page .auth-main,
  .auth-signup-page .auth-signup-sidebar {
    grid-column: 1 / -1;
  }

  .auth-signup-page .auth-main {
    order: -1;
  }
}

@media (max-width: 620px) {
  .auth-signup-page #auth-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-signup-page #auth-form > .form-grid,
  .auth-signup-page #auth-form > #signup-payment-preferences,
  .auth-signup-page #auth-form > #signup-subject-picker,
  .auth-signup-page #auth-form > .consent-field,
  .auth-signup-page #auth-form > #auth-error,
  .auth-signup-page #auth-form > button[type="submit"] {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .public-header {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    width: calc(100% - 16px);
    height: 62px;
    padding: 0 8px;
    gap: 5px;
  }

  .public-header > .brand {
    width: 32px;
    min-width: 32px;
  }

  .public-nav {
    min-width: 0;
    justify-content: center;
  }

  .learning-menu {
    min-width: 0;
  }

  .learning-menu-trigger {
    max-width: 100%;
    padding: 8px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(10px, 3vw, 12px);
  }

  .public-actions {
    display: flex;
    min-width: 0;
    gap: 4px;
  }

  .public-actions .btn {
    min-width: 0;
    padding: 8px clamp(6px, 2vw, 10px);
    font-size: clamp(9px, 2.8vw, 11px);
    white-space: nowrap;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .auth-signup-page {
    width: 100%;
    min-width: 0;
    padding: 8px;
    gap: 8px;
    overflow-x: clip;
  }

  .auth-signup-page .auth-signup-sidebar,
  .auth-signup-page .auth-main,
  .auth-signup-page .auth-card {
    width: 100%;
    min-width: 0;
  }

  .auth-signup-page .auth-card {
    padding: 20px 16px;
  }

  .auth-signup-page .auth-card > .center-note:last-child {
    white-space: normal;
  }

  .auth-signup-page #auth-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-signup-page .phone-input-wrap {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px;
  }

  .auth-signup-page .country-picker-trigger {
    min-width: 0;
    gap: 5px;
    padding: 8px 7px;
    font-size: 10px;
  }

  .auth-signup-page #signup-subject-picker .subject-picker {
    grid-template-columns: minmax(0, 1fr);
  }
}



/* ==========================================================================
   DUAL-THEME ARCHITECTURE: STUDENT vs TEACHER + ANIMATED SIGNUP SWITCH
   ========================================================================== */

:root {
  --switch-x: 50vw;
  --switch-y: 22vh;
  --theme-transition: 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   1. STUDENT THEME TOKENS (Default on Signup & Student Workspace)
   "Luminous Emerald, Horizon Teal & Cyber-Mint Discovery Studio"
   -------------------------------------------------------------------------- */
:root,
html[data-theme="student"],
body[data-theme="student"],
.theme-student,
.role-student {
  --forest: #062f23;
  --forest-2: #031c14;
  --forest-3: #0b4735;
  --green: #059669;
  --green-2: #0d9488;
  --green-bright: #2dd4bf;
  --mint: #dff9f0;
  --mint-2: #f0fdf8;
  --ink: #0a291f;
  --muted: #4b6a5e;
  --line: #d4ece1;
  --line-strong: #b2decb;
  --paper: #ffffff;
  --cream: #f1faf5;
  --gold: #d99b26;
  --red: #cf443f;
  --blue: #0284c7;

  --shadow-xs: 0 2px 8px rgba(6, 47, 35, 0.045), 0 1px 2px rgba(6, 47, 35, 0.025);
  --shadow-sm: 0 12px 28px -6px rgba(5, 150, 105, 0.085), 0 4px 12px -3px rgba(6, 47, 35, 0.045);
  --shadow: 0 22px 54px -12px rgba(6, 47, 35, 0.13), 0 8px 22px -4px rgba(5, 150, 105, 0.06);
  --shadow-lg: 0 32px 76px -14px rgba(6, 47, 35, 0.20), 0 14px 30px -6px rgba(5, 150, 105, 0.09);
  --shadow-glow: 0 14px 34px -6px rgba(13, 148, 136, 0.38);

  --theme-primary-grad: linear-gradient(135deg, #10b981 0%, #059669 52%, #0d9488 100%);
  --theme-primary-hover: linear-gradient(135deg, #14c88f 0%, #047857 52%, #0f766e 100%);
  --theme-accent-bar: linear-gradient(90deg, #10b981 0%, #2dd4bf 55%, #0ea5e9 100%);
  --theme-spotlight: rgba(16, 185, 129, 0.085);
  --theme-focus-ring: rgba(16, 185, 129, 0.20);
}

/* --------------------------------------------------------------------------
   2. TEACHER THEME TOKENS (On Teacher Signup Click & Teacher Workspace)
   "Executive Royal Indigo, Amethyst Velvet & Warm Academic Gold Studio"
   -------------------------------------------------------------------------- */
html[data-theme="teacher"],
body[data-theme="teacher"],
.theme-teacher,
.role-teacher {
  --forest: #1b1340;
  --forest-2: #100a28;
  --forest-3: #2b1f66;
  --green: #4f46e5;
  --green-2: #6366f1;
  --green-bright: #a78bfa;
  --mint: #ede9fe;
  --mint-2: #f5f3ff;
  --ink: #161130;
  --muted: #5b547a;
  --line: #e1dcf5;
  --line-strong: #c7beec;
  --paper: #ffffff;
  --cream: #f5f4fc;
  --gold: #f59e0b;
  --red: #dc2626;
  --blue: #4f46e5;

  --shadow-xs: 0 2px 8px rgba(27, 19, 64, 0.05), 0 1px 2px rgba(27, 19, 64, 0.03);
  --shadow-sm: 0 12px 30px -6px rgba(79, 70, 229, 0.10), 0 4px 12px -3px rgba(27, 19, 64, 0.05);
  --shadow: 0 22px 56px -12px rgba(27, 19, 64, 0.15), 0 8px 24px -4px rgba(79, 70, 229, 0.07);
  --shadow-lg: 0 34px 80px -14px rgba(27, 19, 64, 0.24), 0 14px 32px -6px rgba(79, 70, 229, 0.11);
  --shadow-glow: 0 14px 36px -6px rgba(99, 102, 241, 0.42);

  --theme-primary-grad: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
  --theme-primary-hover: linear-gradient(135deg, #7174f7 0%, #4338ca 50%, #6d28d9 100%);
  --theme-accent-bar: linear-gradient(90deg, #6366f1 0%, #a855f7 55%, #f59e0b 100%);
  --theme-spotlight: rgba(99, 102, 241, 0.09);
  --theme-focus-ring: rgba(99, 102, 241, 0.22);
}

/* --------------------------------------------------------------------------
   3. ADMIN THEME TOKENS (Command Center Slate & Cobalt-Emerald)
   -------------------------------------------------------------------------- */
html[data-theme="admin"],
body[data-theme="admin"],
.theme-admin,
.role-admin {
  --forest: #0f2537;
  --forest-2: #091824;
  --forest-3: #183a54;
  --green: #0284c7;
  --green-2: #0ea5e9;
  --green-bright: #38bdf8;
  --mint: #e0f2fe;
  --mint-2: #f0f9ff;
  --ink: #0f2130;
  --muted: #52667a;
  --line: #dbe6f0;
  --line-strong: #bfd2e3;
  --cream: #f3f7fb;
  --shadow-glow: 0 14px 34px -6px rgba(2, 132, 199, 0.34);
  --theme-primary-grad: linear-gradient(135deg, #0284c7 0%, #0369a1 55%, #1d4ed8 100%);
  --theme-primary-hover: linear-gradient(135deg, #0ea5e9 0%, #0284c7 55%, #1e40af 100%);
  --theme-accent-bar: linear-gradient(90deg, #0284c7 0%, #38bdf8 55%, #10b981 100%);
}

/* --------------------------------------------------------------------------
   3.5. DUAL LANDING THEME TOKENS (Student Emerald & Teacher Royal Indigo)
   -------------------------------------------------------------------------- */
html[data-theme="landing"],
body[data-theme="landing"],
.theme-landing {
  --forest: #0f1c24;
  --forest-2: #09131a;
  --forest-3: #162634;
  --green: #059669;
  --green-2: #4f46e5;
  --green-bright: #10b981;
  --mint: #e6f6f0;
  --mint-2: #f4f6fc;
  --ink: #0b1520;
  --muted: #536476;
  --line: #dfe7ef;
  --line-strong: #c2d2e2;
  --paper: #ffffff;
  --cream: #f7fafc;
  --gold: #f59e0b;
  --red: #dc2626;
  --blue: #4f46e5;

  --theme-primary-grad: linear-gradient(135deg, #059669 0%, #10b981 35%, #6366f1 72%, #4f46e5 100%);
  --theme-primary-hover: linear-gradient(135deg, #047857 0%, #059669 35%, #4f46e5 72%, #4338ca 100%);
  --theme-accent-bar: linear-gradient(90deg, #10b981 0%, #2dd4bf 35%, #6366f1 70%, #f59e0b 100%);
  --theme-spotlight: rgba(99, 102, 241, 0.08);
  --theme-focus-ring: rgba(99, 102, 241, 0.22);
}

/* --------------------------------------------------------------------------
   4. KEYFRAME ANIMATIONS FOR IMMEDIATE SIGNUP THEME MORPH
   -------------------------------------------------------------------------- */
@keyframes themeWaveRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.72;
  }
  65% {
    opacity: 0.32;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@keyframes authThemeCardMorph {
  0% {
    transform: translateY(0) scale(1);
  }
  38% {
    transform: translateY(-6px) scale(1.012);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes authThemeAsidePulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.008);
    filter: brightness(1.08);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes authThemeOrbitSpin {
  0% {
    transform: scale(0.92) rotate(-18deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1) rotate(12deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes authRoleContentMorph {
  0% {
    opacity: 0.35;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderShimmerFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Full-Page Radial Theme Wave when clicking Student / Teacher on Signup */
body.is-theme-switching::after {
  content: "";
  position: fixed;
  left: var(--switch-x, 50vw);
  top: var(--switch-y, 22vh);
  width: 260vmax;
  height: 260vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.28) 0%,
    rgba(45, 212, 191, 0.16) 35%,
    transparent 68%
  );
  animation: themeWaveRipple 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body[data-theme="teacher"].is-theme-switching::after {
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.32) 0%,
    rgba(168, 85, 247, 0.20) 35%,
    rgba(245, 158, 11, 0.10) 55%,
    transparent 70%
  );
}

/* Smooth transition across all surfaces during theme switch */
body,
.auth-page,
.auth-aside,
.auth-card,
.auth-signup-guide,
.auth-side-features div,
.auth-switch,
.auth-switch button,
.btn,
.field input,
.field select,
.field textarea,
.subject-option,
.eyebrow,
.pill,
.brand img,
.site-footer {
  transition:
    background 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-page.is-theme-switching .auth-card {
  animation: authThemeCardMorph 0.54s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-page.is-theme-switching .auth-aside {
  animation: authThemeAsidePulse 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-page.is-theme-switching .auth-aside::before,
.auth-page.is-theme-switching .auth-aside::after {
  animation: authThemeOrbitSpin 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-page.is-theme-switching .auth-signup-guide,
.auth-page.is-theme-switching #signup-subject-picker,
.auth-page.is-theme-switching .auth-side-copy {
  animation: authRoleContentMorph 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --------------------------------------------------------------------------
   5. BODY, SELECTION, SCROLLBAR & LOGO ADAPTATION BY THEME
   -------------------------------------------------------------------------- */
body[data-theme="student"] {
  background-color: #f1faf5;
  background-image:
    radial-gradient(circle at 10% 8%, rgba(16, 185, 129, 0.085) 0%, transparent 40%),
    radial-gradient(circle at 90% 14%, rgba(14, 165, 233, 0.065) 0%, transparent 36%),
    radial-gradient(circle at 50% 92%, rgba(45, 212, 191, 0.075) 0%, transparent 46%);
}

body[data-theme="teacher"] {
  background-color: #f5f4fc;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(99, 102, 241, 0.095) 0%, transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(245, 158, 11, 0.075) 0%, transparent 38%),
    radial-gradient(circle at 50% 92%, rgba(139, 92, 246, 0.085) 0%, transparent 46%);
}

body[data-theme="teacher"] ::selection {
  background: #ddd6fe;
  color: #1e1b4b;
}

html[data-theme="teacher"] ::-webkit-scrollbar-track,
body[data-theme="teacher"] ::-webkit-scrollbar-track {
  background: #f1effa;
}

html[data-theme="teacher"] ::-webkit-scrollbar-thumb,
body[data-theme="teacher"] ::-webkit-scrollbar-thumb {
  background: #c4b5fd;
  border: 2px solid #f1effa;
}

html[data-theme="teacher"] ::-webkit-scrollbar-thumb:hover,
body[data-theme="teacher"] ::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

/* Harmonious SVG Logo Emblem Tint for Teacher Theme */
body[data-theme="teacher"] .brand img,
body[data-theme="teacher"] .mobile-brand img,
body[data-theme="teacher"] .boot-screen img {
  filter: hue-rotate(92deg) saturate(1.18) brightness(1.04);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.24);
}

body[data-theme="teacher"] .brand:hover img {
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.36);
}

body[data-theme="teacher"] .brand span em {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   6. SIGNUP & AUTH PAGE: STUDENT vs TEACHER THEME + SLIDING ROLE SWITCH
   -------------------------------------------------------------------------- */
.auth-page {
  position: relative;
}

.auth-page.theme-student {
  background:
    radial-gradient(circle at 82% 12%, rgba(16, 185, 129, 0.10), transparent 42%),
    radial-gradient(circle at 18% 88%, rgba(14, 165, 233, 0.08), transparent 42%),
    linear-gradient(135deg, #eefaf4 0%, #f3faf7 50%, #eef7fb 100%);
}

.auth-page.theme-teacher,
body[data-theme="teacher"] .auth-page {
  background:
    radial-gradient(circle at 82% 12%, rgba(99, 102, 241, 0.12), transparent 42%),
    radial-gradient(circle at 18% 88%, rgba(245, 158, 11, 0.085), transparent 42%),
    linear-gradient(135deg, #f3f1fc 0%, #f7f5fe 50%, #fcf8f2 100%);
}

/* Auth Aside Panel — Student Theme (Luminous Botanical Emerald & Aqua) */
.auth-page.theme-student .auth-aside {
  background:
    radial-gradient(circle at 85% 18%, rgba(45, 212, 191, 0.20) 0%, transparent 48%),
    radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.24) 0%, transparent 52%),
    linear-gradient(155deg, #073b2c 0%, #04241b 62%, #02140e 100%);
  border: 1px solid rgba(94, 234, 212, 0.18);
  box-shadow: 0 32px 76px -14px rgba(4, 36, 27, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Auth Aside Panel — Teacher Theme (Executive Royal Indigo, Amethyst & Gold) */
.auth-page.theme-teacher .auth-aside,
body[data-theme="teacher"] .auth-aside {
  background:
    radial-gradient(circle at 85% 18%, rgba(167, 139, 250, 0.24) 0%, transparent 48%),
    radial-gradient(circle at 15% 85%, rgba(245, 158, 11, 0.18) 0%, transparent 52%),
    linear-gradient(155deg, #22174d 0%, #140d30 62%, #090618 100%);
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: 0 32px 76px -14px rgba(18, 11, 44, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.auth-page.theme-teacher .auth-aside::before,
body[data-theme="teacher"] .auth-aside::before {
  border-color: rgba(167, 139, 250, 0.22);
  box-shadow: inset 0 0 40px rgba(139, 92, 246, 0.10);
}

.auth-page.theme-teacher .auth-aside::after,
body[data-theme="teacher"] .auth-aside::after {
  border-color: rgba(251, 191, 36, 0.26);
  box-shadow: inset 0 0 30px rgba(245, 158, 11, 0.08);
}

.auth-page.theme-teacher .auth-aside .brand span em,
body[data-theme="teacher"] .auth-aside .brand span em {
  background: linear-gradient(135deg, #c4b5fd 0%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-page.theme-teacher .auth-side-copy .eyebrow,
body[data-theme="teacher"] .auth-side-copy .eyebrow {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(196, 181, 253, 0.30);
  color: #f5f3ff;
}

.auth-page.theme-teacher .auth-side-copy .dot,
body[data-theme="teacher"] .dot {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

.auth-page.theme-teacher .auth-side-copy p,
body[data-theme="teacher"] .auth-side-copy p {
  color: #d8d2f2;
}

.auth-page.theme-teacher .auth-signup-guide,
body[data-theme="teacher"] .auth-signup-guide {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.13), rgba(245, 158, 11, 0.06));
  border-color: rgba(196, 181, 253, 0.22);
  box-shadow: 0 12px 32px rgba(9, 6, 24, 0.22);
}

.auth-page.theme-teacher .auth-signup-guide h2,
.auth-page.theme-teacher .auth-signup-guide h3,
body[data-theme="teacher"] .auth-signup-guide h2,
body[data-theme="teacher"] .auth-signup-guide h3 {
  color: #fef3c7;
}

.auth-page.theme-teacher .auth-signup-guide ol,
.auth-page.theme-teacher .auth-signup-guide ul,
body[data-theme="teacher"] .auth-signup-guide ol,
body[data-theme="teacher"] .auth-signup-guide ul {
  color: #dcd7f5;
}

.auth-page.theme-teacher .auth-signup-guide li::marker,
body[data-theme="teacher"] .auth-signup-guide li::marker {
  color: #fbbf24;
}

.auth-page.theme-teacher .auth-side-features div,
body[data-theme="teacher"] .auth-side-features div {
  background: rgba(139, 92, 246, 0.10);
  border-color: rgba(196, 181, 253, 0.16);
  color: #ede9fe;
}

.auth-page.theme-teacher .auth-side-features div:hover,
body[data-theme="teacher"] .auth-side-features div:hover {
  background: rgba(139, 92, 246, 0.20);
  border-color: rgba(251, 191, 36, 0.32);
}

.auth-page.theme-teacher .auth-side-features .icon,
body[data-theme="teacher"] .auth-side-features .icon {
  color: #fbbf24;
}

/* Auth Card Top Shimmer Bar & Elevation */
.auth-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--theme-accent-bar);
  background-size: 200% 100%;
  animation: borderShimmerFlow 6s ease infinite;
}

.auth-page.theme-teacher .auth-card,
body[data-theme="teacher"] .auth-card {
  border-color: #dcd6f7;
  box-shadow:
    0 26px 64px -14px rgba(49, 46, 129, 0.18),
    0 8px 24px -6px rgba(124, 58, 237, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-page.theme-teacher .auth-card h2,
body[data-theme="teacher"] .auth-card h2 {
  color: #161130;
}

/* Animated Segmented Role Switch (.auth-switch) with Sliding Indicator Pill */
.auth-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e6f4ed;
  border: 1px solid #c9e6d7;
  border-radius: 16px;
  padding: 5px;
  margin: 0 0 26px;
  gap: 0;
  isolation: isolate;
  box-shadow: inset 0 2px 5px rgba(6, 47, 35, 0.06);
}

.auth-switch::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 55%, #0d9488 100%);
  box-shadow:
    0 8px 20px -4px rgba(5, 150, 105, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateX(0%);
  transition:
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.auth-switch[data-active-role="teacher"],
.auth-page.theme-teacher .auth-switch,
body[data-theme="teacher"] .auth-switch {
  background: #ece9fe;
  border-color: #d3cbf7;
  box-shadow: inset 0 2px 5px rgba(27, 19, 64, 0.07);
}

.auth-switch[data-active-role="teacher"]::before,
.auth-page.theme-teacher .auth-switch::before {
  transform: translateX(100%);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
  box-shadow:
    0 8px 22px -4px rgba(79, 70, 229, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.auth-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #3b5c4e;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 780;
  letter-spacing: -0.01em;
  transition: color 0.28s ease, transform 0.24s var(--ease-spring);
}

.auth-page.theme-teacher .auth-switch button,
body[data-theme="teacher"] .auth-switch button {
  color: #4c4470;
}

.auth-switch button:hover {
  transform: translateY(-1px);
}

.auth-switch button.active {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

/* --------------------------------------------------------------------------
   7. BUTTONS, INPUTS, SUBJECT PICKER & CONTROLS ACROSS STUDENT vs TEACHER
   -------------------------------------------------------------------------- */
.btn-primary {
  background: var(--theme-primary-grad);
  box-shadow: 0 8px 22px -4px rgba(5, 150, 105, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-primary:hover {
  background: var(--theme-primary-hover);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

body[data-theme="teacher"] .btn-primary,
.theme-teacher .btn-primary,
.role-teacher .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

body[data-theme="teacher"] .btn-primary:hover,
.theme-teacher .btn-primary:hover,
.role-teacher .btn-primary:hover {
  background: linear-gradient(135deg, #7174f7 0%, #4338ca 50%, #6d28d9 100%);
  box-shadow: 0 14px 34px -6px rgba(99, 102, 241, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body[data-theme="teacher"] .btn-outline,
.theme-teacher .btn-outline,
.role-teacher .btn-outline {
  border-color: #d4cdf4;
  color: #271d54;
  background: rgba(255, 255, 255, 0.94);
}

body[data-theme="teacher"] .btn-outline:hover,
.theme-teacher .btn-outline:hover,
.role-teacher .btn-outline:hover {
  background: #f4f1ff;
  border-color: #8b5cf6;
  color: #1b1340;
  box-shadow: 0 8px 22px -6px rgba(79, 70, 229, 0.14);
}

body[data-theme="teacher"] .btn-ghost:hover,
.theme-teacher .btn-ghost:hover,
.role-teacher .btn-ghost:hover {
  background: rgba(99, 102, 241, 0.09);
  color: #1b1340;
}

/* Landing Hero "Become a tutor" button subtle Teacher-theme preview */
.hero-actions button[data-role="teacher"] {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.92));
  color: #312e81;
}

.hero-actions button[data-role="teacher"]:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 28px -6px rgba(79, 70, 229, 0.38);
}

/* Form Fields, Selects & Focus States */
body[data-theme="teacher"] .field label,
body[data-theme="teacher"] .field-label,
.theme-teacher .field label {
  color: #261e4b;
}

body[data-theme="teacher"] .field input,
body[data-theme="teacher"] .field select,
body[data-theme="teacher"] .field textarea,
body[data-theme="teacher"] .control,
body[data-theme="teacher"] .country-picker-trigger,
body[data-theme="teacher"] .signup-payment-dropdown > summary,
body[data-theme="teacher"] .language-dropdown > summary,
.theme-teacher .field input,
.theme-teacher .field select,
.theme-teacher .field textarea {
  border-color: #d8d2f2;
}

body[data-theme="teacher"] .field input:hover,
body[data-theme="teacher"] .field select:hover,
body[data-theme="teacher"] .field textarea:hover,
.theme-teacher .field input:hover,
.theme-teacher .field select:hover,
.theme-teacher .field textarea:hover {
  border-color: #a599e8;
}

body[data-theme="teacher"] .field input:focus,
body[data-theme="teacher"] .field select:focus,
body[data-theme="teacher"] .field textarea:focus,
body[data-theme="teacher"] .control:focus,
body[data-theme="teacher"] .subject-search input:focus,
.theme-teacher .field input:focus,
.theme-teacher .field select:focus,
.theme-teacher .field textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(27, 19, 64, 0.05);
}

body[data-theme="teacher"] button:focus-visible,
body[data-theme="teacher"] a:focus-visible,
body[data-theme="teacher"] input:focus-visible,
body[data-theme="teacher"] select:focus-visible,
body[data-theme="teacher"] textarea:focus-visible {
  outline-color: #818cf8;
}

/* Subject Picker & Options in Teacher vs Student Theme */
body[data-theme="teacher"] .subject-option,
.theme-teacher .subject-option {
  border-color: #e2ddf5;
  background: #faf9fe;
  color: #3f3863;
}

body[data-theme="teacher"] .subject-option:hover,
.theme-teacher .subject-option:hover {
  border-color: #b4a8ee;
  background: #f3f0ff;
}

body[data-theme="teacher"] .subject-option:has(input:checked),
.theme-teacher .subject-option:has(input:checked) {
  border-color: #6366f1;
  background: linear-gradient(135deg, #eef2ff 0%, #f3e8ff 100%);
  color: #1e1b4b;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

body[data-theme="teacher"] .subject-option input,
body[data-theme="teacher"] .language-option input[type="checkbox"],
body[data-theme="teacher"] .consent-label input[type="checkbox"],
.theme-teacher .subject-option input {
  accent-color: #4f46e5;
}

body[data-theme="teacher"] .subject-other-option,
.theme-teacher .subject-other-option {
  background: #f3f0ff;
  border-color: #8b5cf6;
}

body[data-theme="teacher"] .subject-other-plus,
.theme-teacher .subject-other-plus {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
}

body[data-theme="teacher"] .signup-payment-preferences,
.theme-teacher .signup-payment-preferences {
  border-color: #dcd6f5;
  background: #faf9ff;
}

body[data-theme="teacher"] .signup-payment-preferences legend,
.theme-teacher .signup-payment-preferences legend {
  color: #271d54;
}

body[data-theme="teacher"] .signup-payment-chip,
body[data-theme="teacher"] .selected-language-tag,
.theme-teacher .signup-payment-chip {
  background: #efeaff;
  border-color: #d0c6f7;
  color: #271d54;
}

body[data-theme="teacher"] .country-picker-option:hover,
body[data-theme="teacher"] .country-picker-option[aria-selected="true"],
body[data-theme="teacher"] .language-option:hover,
.theme-teacher .country-picker-option:hover {
  background: #f0edff;
}

body[data-theme="teacher"] .login-back:hover,
.theme-teacher .login-back:hover {
  color: #1b1340;
  background: #f0edff;
}

/* --------------------------------------------------------------------------
   8. AUTHENTICATED WORKSPACE: STUDENT SECTION vs TEACHER SECTION
   -------------------------------------------------------------------------- */

/* --- 8A. STUDENT WORKSPACE (.app-shell.role-student) --- */
.app-shell.role-student {
  background:
    radial-gradient(ellipse at 78% 0%, rgba(167, 243, 208, 0.46), transparent 45%),
    radial-gradient(ellipse at 18% 100%, rgba(56, 189, 248, 0.12), transparent 44%),
    #f1faf5;
}

.app-shell.role-student .sidebar {
  background:
    radial-gradient(circle at 85% 12%, rgba(45, 212, 191, 0.16) 0%, transparent 42%),
    linear-gradient(172deg, #063528 0%, #042219 65%, #02130e 100%);
  box-shadow: inset -1px 0 rgba(94, 234, 212, 0.10), 10px 0 36px rgba(4, 34, 25, 0.08);
}

.app-shell.role-student .sidebar-label {
  color: #6ee7b7;
}

.app-shell.role-student .side-link.active {
  background: linear-gradient(105deg, #10b981 0%, #0d9488 100%);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 10px 24px -4px rgba(5, 150, 105, 0.42);
}

.app-shell.role-student .side-link.active::before {
  background: #5eead4;
  box-shadow: 0 0 14px rgba(94, 234, 212, 0.85);
}

.app-shell.role-student .topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #d5ece1;
}

.app-shell.role-student .dashboard-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(45, 212, 191, 0.22) 0%, transparent 45%),
    linear-gradient(125deg, #dcfce7 0%, #ecfdf5 48%, #e0f2fe 100%);
  border: 1px solid #b7e8d2;
  box-shadow: 0 18px 42px -12px rgba(5, 150, 105, 0.14);
}

.app-shell.role-student .dashboard-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #2dd4bf, #0ea5e9);
}

.app-shell.role-student .dashboard-hero .hero-mark {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px -6px rgba(5, 150, 105, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* --- 8B. TEACHER WORKSPACE (.app-shell.role-teacher) --- */
.app-shell.role-teacher {
  background:
    radial-gradient(ellipse at 78% 0%, rgba(196, 181, 253, 0.36), transparent 46%),
    radial-gradient(ellipse at 18% 100%, rgba(251, 191, 36, 0.10), transparent 42%),
    #f5f4fc;
}

.app-shell.role-teacher .sidebar {
  background:
    radial-gradient(circle at 88% 10%, rgba(139, 92, 246, 0.22) 0%, transparent 44%),
    radial-gradient(circle at 12% 90%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    linear-gradient(172deg, #1d1442 0%, #110b29 66%, #080514 100%);
  color: #dcd7f5;
  box-shadow: inset -1px 0 rgba(196, 181, 253, 0.10), 10px 0 38px rgba(17, 11, 41, 0.12);
}

.app-shell.role-teacher .sidebar .brand span em {
  background: linear-gradient(135deg, #c4b5fd 0%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-shell.role-teacher .sidebar-label {
  color: #c4b5fd;
}

.app-shell.role-teacher .side-link {
  color: #cbc4eb;
}

.app-shell.role-teacher .side-link:hover {
  background: rgba(167, 139, 250, 0.12);
  color: #ffffff;
}

.app-shell.role-teacher .side-link.active {
  background: linear-gradient(105deg, #6366f1 0%, #7c3aed 68%, #9333ea 100%);
  border-color: rgba(251, 191, 36, 0.28);
  color: #ffffff;
  box-shadow: 0 10px 26px -4px rgba(99, 102, 241, 0.45);
}

.app-shell.role-teacher .side-link.active::before {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.85);
}

.app-shell.role-teacher .side-link .nav-count {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
}

.app-shell.role-teacher .account-chip strong {
  color: #f5f3ff;
}

.app-shell.role-teacher .account-chip small {
  color: #b4a9dc;
}

/* Teacher Topbar */
.app-shell.role-teacher .topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #e2ddf5;
  box-shadow: 0 4px 22px rgba(27, 19, 64, 0.04);
}

.app-shell.role-teacher .topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 55%, #f59e0b 100%);
}

.app-shell.role-teacher .page-heading h1 {
  color: #161130;
}

.app-shell.role-teacher .top-search input {
  background: #f5f3ff;
  border-color: #dfd9f5;
}

.app-shell.role-teacher .top-search input:hover {
  background: #efeaff;
  border-color: #c7beec;
}

.app-shell.role-teacher .top-search input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), 0 6px 16px rgba(27, 19, 64, 0.06);
}

.app-shell.role-teacher .top-search .icon {
  color: #7c73a8;
}

.app-shell.role-teacher .icon-btn:hover {
  background: #f3f0ff;
  color: #4f46e5;
  border-color: #c4b5fd;
}

/* Teacher Executive Dark Studio Dashboard Hero */
.app-shell.role-teacher .dashboard-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(167, 139, 250, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 15% 88%, rgba(245, 158, 11, 0.18) 0%, transparent 45%),
    linear-gradient(130deg, #1b1340 0%, #2b1d66 52%, #171038 100%);
  border: 1px solid rgba(196, 181, 253, 0.28);
  box-shadow: 0 22px 52px -12px rgba(27, 19, 64, 0.34);
  color: #ffffff;
}

.app-shell.role-teacher .dashboard-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24 0%, #a855f7 52%, #6366f1 100%);
}

.app-shell.role-teacher .dashboard-hero::after {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22), transparent 70%);
}

.app-shell.role-teacher .dashboard-hero .kicker {
  color: #fbbf24;
}

.app-shell.role-teacher .dashboard-hero h2 {
  color: #ffffff;
}

.app-shell.role-teacher .dashboard-hero p {
  color: #dcd7f5;
}

.app-shell.role-teacher .dashboard-hero .btn-outline {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.app-shell.role-teacher .dashboard-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: #fbbf24;
  color: #ffffff;
}

.app-shell.role-teacher .dashboard-hero .hero-mark {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(139, 92, 246, 0.34));
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fde68a;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Teacher Metric Cards, Panels, Class Cards, Avatars & Badges */
.app-shell.role-teacher .metric-card {
  position: relative;
  border-color: #e1dcf5;
  background:
    radial-gradient(300px circle at var(--mx, 80%) var(--my, 0%), rgba(99, 102, 241, 0.08), transparent 65%),
    linear-gradient(155deg, #ffffff 55%, #faf9ff 100%);
}

.app-shell.role-teacher .metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #f59e0b);
  opacity: 0.85;
}

.app-shell.role-teacher .metric-card:hover {
  border-color: #b8aee8;
  box-shadow: 0 16px 36px -8px rgba(79, 70, 229, 0.14);
}

.app-shell.role-teacher .metric-card strong {
  color: #161130;
}

.app-shell.role-teacher .metric-icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #4f46e5;
}

.app-shell.role-teacher .panel {
  border-color: #e1dcf5;
}

.app-shell.role-teacher .panel:hover {
  border-color: #cbc2f0;
}

.app-shell.role-teacher .panel-head h3,
.app-shell.role-teacher .content-header h2,
.app-shell.role-teacher .class-body h3,
.app-shell.role-teacher .teacher-card h3,
.app-shell.role-teacher .availability-card strong,
.app-shell.role-teacher .notification-item strong,
.app-shell.role-teacher .list-row-main strong {
  color: #161130;
}

.app-shell.role-teacher .panel-link {
  color: #4f46e5;
}

.app-shell.role-teacher .panel-link:hover {
  background: #f0edff;
  color: #1b1340;
}

.app-shell.role-teacher .class-card,
.app-shell.role-teacher .teacher-card {
  border-color: #e1dcf5;
  background:
    radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.07), transparent 65%),
    linear-gradient(135deg, #ffffff 72%, #faf9ff 100%);
}

.app-shell.role-teacher .class-card:hover,
.app-shell.role-teacher .teacher-card:hover {
  border-color: #b8aee8;
  box-shadow: 0 16px 36px -8px rgba(79, 70, 229, 0.13);
}

.app-shell.role-teacher .class-mark {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #4f46e5;
}

.app-shell.role-teacher .class-meta span {
  background: #f5f3ff;
  border-color: #e4dff8;
  color: #4c4470;
}

.app-shell.role-teacher .subject-tag {
  background: #f0edff;
  border-color: rgba(99, 102, 241, 0.16);
  color: #4338ca;
}

.app-shell.role-teacher .subject-tag:hover {
  background: #e0e7ff;
}

.app-shell.role-teacher .avatar,
body[data-theme="teacher"] .avatar {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #312e81;
  border-color: rgba(99, 102, 241, 0.22);
}

.app-shell.role-teacher .profile-summary {
  background: linear-gradient(165deg, #ffffff 60%, #f3f0ff 100%);
}

.app-shell.role-teacher .profile-summary::before {
  background: linear-gradient(90deg, #6366f1, #a855f7, #f59e0b);
}

.app-shell.role-teacher .completion-bar {
  background: #eae6fa;
}

.app-shell.role-teacher .completion-bar span {
  background: linear-gradient(90deg, #4f46e5, #a855f7, #f59e0b, #4f46e5);
  background-size: 200% 100%;
}

.app-shell.role-teacher .teacher-profile-status {
  border-color: #c7beec;
  border-left-color: #4f46e5;
  background: linear-gradient(110deg, #eef2ff 0%, #f5f3ff 100%);
  color: #1e1b4b;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.08);
}

.app-shell.role-teacher .teacher-profile-status-icon {
  background: #ddd6fe;
  color: #4338ca;
}

.app-shell.role-teacher .notification-item.unread {
  background: linear-gradient(90deg, #f3f0ff, #faf9ff);
  border-left-color: #6366f1;
}

.app-shell.role-teacher .empty-state .empty-icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #4f46e5;
}

.app-shell.role-teacher th {
  background: #f5f3ff;
  color: #4c4470;
}

.app-shell.role-teacher tbody tr:hover td,
.app-shell.role-teacher .list-row:hover {
  background: #faf9ff;
}

.app-shell.role-teacher .mobile-bottom-nav button.active {
  background: #ede9fe;
  color: #4f46e5;
}

/* Toasts & Modals in Teacher Theme */
body[data-theme="teacher"] .toast:not(.error) {
  background: rgba(27, 19, 64, 0.95);
  border-color: rgba(196, 181, 253, 0.22);
  box-shadow: 0 18px 42px rgba(17, 11, 41, 0.34);
}

body[data-theme="teacher"] .toast:not(.error) .icon {
  color: #fbbf24;
}

body[data-theme="teacher"] .modal-backdrop {
  background: rgba(17, 11, 41, 0.64);
}

body[data-theme="teacher"] .modal-head h3 {
  color: #161130;
}

body[data-theme="teacher"] .modal-close {
  background: #f5f3ff;
  border-color: #e1dcf5;
  color: #4c4470;
}

body[data-theme="teacher"] .modal-close:hover {
  background: #ede9fe;
  color: #1b1340;
}

body[data-theme="teacher"] .site-footer {
  background: linear-gradient(180deg, #f3f0ff 0%, #eae5fc 100%);
  border-top-color: #d8d0f5;
}

/* --------------------------------------------------------------------------
   9. INDUSTRY-READY MICRO-REFINEMENTS FOR STUDENT & LANDING WORKSPACES
   -------------------------------------------------------------------------- */
.app-shell.role-student .metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #10b981, #2dd4bf, #0ea5e9);
  opacity: 0.85;
}

.panel,
.metric-card,
.teacher-card,
.class-card,
.auth-card {
  backdrop-filter: blur(14px);
}

/* --------------------------------------------------------------------------
   10. DUAL STUDENT-TEACHER LANDING PAGE HARMONIZATION
   -------------------------------------------------------------------------- */
body[data-theme="landing"] .hero {
  background: linear-gradient(135deg, #f0fdf7 0%, #f8faff 45%, #f5f2fe 78%, #fcf9ee 100%);
  border: 1px solid rgba(99, 102, 241, 0.14);
  box-shadow: 0 24px 60px -15px rgba(27, 19, 64, 0.08), 0 12px 30px -8px rgba(5, 150, 105, 0.08);
}

body[data-theme="landing"] .hero::before {
  background-image: radial-gradient(rgba(16, 185, 129, 0.09) 1px, transparent 1px);
}

body[data-theme="landing"] .hero::after {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(245, 158, 11, 0.11) 45%, rgba(16, 185, 129, 0.10) 70%, transparent 80%);
}

.dot-dual {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  animation: pulseDot 2.2s ease-in-out infinite;
}

.hero-dual-highlight {
  background: linear-gradient(135deg, #059669 0%, #10b981 32%, #6366f1 68%, #4f46e5 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

.hero-btn-student {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 8px 22px -4px rgba(5, 150, 105, 0.36) !important;
  font-weight: 650;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease !important;
}

.hero-btn-student:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #14c88f 0%, #047857 100%) !important;
  box-shadow: 0 14px 28px -4px rgba(5, 150, 105, 0.48) !important;
}

.hero-btn-teacher {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(167, 139, 250, 0.45) !important;
  box-shadow: 0 8px 22px -4px rgba(79, 70, 229, 0.38) !important;
  font-weight: 650;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease !important;
}

.hero-btn-teacher:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #7174f7 0%, #4338ca 50%, #6d28d9 100%) !important;
  box-shadow: 0 14px 30px -4px rgba(79, 70, 229, 0.50) !important;
}

.hero-btn-student-nav {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
}

.hero-btn-teacher-nav {
  border-color: #c7beec !important;
  color: #4f46e5 !important;
  background: #f5f3ff !important;
}

.hero-btn-teacher-nav:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}

.proof-item.proof-student {
  border-left: 3px solid #10b981;
}

.proof-item.proof-student .proof-icon {
  background: linear-gradient(135deg, #dff4e7, #c9ebd7);
  color: #059669;
}

.proof-item.proof-teacher {
  border-left: 3px solid #6366f1;
}

.proof-item.proof-teacher .proof-icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #4f46e5;
}

.floating-card-student {
  border-left: 3.5px solid #10b981;
}

.floating-card-student .mini-icon-student {
  background: linear-gradient(135deg, #dff4e7, #c9ebd7);
  color: #059669;
}

.floating-card-teacher {
  border-left: 3.5px solid #6366f1;
}

.floating-card-teacher .mini-icon-teacher {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #4f46e5;
}

.role-tag-pill {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 2px;
}

.role-tag-student {
  background: #dff9f0;
  color: #065f46;
}

.role-tag-teacher {
  background: #ede9fe;
  color: #4338ca;
}

.how-dual-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .how-dual-track {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.dual-track-card {
  background: var(--paper);
  border-radius: 28px;
  padding: 38px 34px 34px;
  box-shadow: 0 16px 42px -12px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.25s ease;
}

.dual-track-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px -14px rgba(15, 23, 42, 0.14);
}

.dual-track-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.dual-track-card.student-card::before {
  background: linear-gradient(90deg, #10b981 0%, #2dd4bf 100%);
}

.dual-track-card.teacher-card::before {
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #f59e0b 100%);
}

.dual-track-card.student-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.dual-track-card.teacher-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.track-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 13px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 18px;
}

.track-badge.student {
  background: #dff9f0;
  color: #065f46;
  border: 1px solid #b2decb;
}

.track-badge.teacher {
  background: #ede9fe;
  color: #4338ca;
  border: 1px solid #c7beec;
}

.dual-track-card h3 {
  font-size: 23px;
  font-weight: 780;
  margin: 0 0 10px;
  color: var(--forest);
  letter-spacing: -0.03em;
}

.dual-track-card p.track-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 26px;
}

.track-steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.track-step-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.track-step-number {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13.5px;
  flex-shrink: 0;
}

.track-step-number.student {
  background: #dff9f0;
  color: #059669;
}

.track-step-number.teacher {
  background: #ede9fe;
  color: #4f46e5;
}

.track-step-content strong {
  display: block;
  font-size: 15px;
  color: var(--forest);
  margin-bottom: 3px;
}

.track-step-content p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.dual-track-card .track-cta {
  margin-top: auto;
}

.feature-card-student-accent::before {
  background: linear-gradient(90deg, #10b981, #2dd4bf);
}

.feature-card-student-accent:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.feature-icon-student {
  background: linear-gradient(135deg, #e5f6ec, #d2eee0);
  color: #059669;
}

.feature-card-dual-accent::before {
  background: linear-gradient(90deg, #10b981, #6366f1);
}

.feature-card-dual-accent:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.feature-icon-dual {
  background: linear-gradient(135deg, #e0f2fe, #e0e7ff);
  color: #4f46e5;
}

.feature-card-teacher-accent::before {
  background: linear-gradient(90deg, #6366f1, #a855f7, #f59e0b);
}

.feature-card-teacher-accent:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

.feature-icon-teacher {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #7c3aed;
}

.pathway-band-dual {
  background: linear-gradient(130deg, #062f23 0%, #0d3b2e 38%, #1f1745 72%, #170f38 100%) !important;
}

.pathway-band-dual::before {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.28) 0%, transparent 70%) !important;
}

.pathway-band-dual::after {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, rgba(245, 158, 11, 0.14) 45%, transparent 70%) !important;
}

.eyebrow-dual {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.pathway-band .btn.btn-landing-advertise {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.70) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(10px);
  font-weight: 650;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.22s var(--ease-spring), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}

.pathway-band .btn.btn-landing-advertise:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-2px);
}

/* Landing Advertisements Polish */
.sponsored-section {
  animation: viewFadeUp 0.65s var(--ease-out) both;
}

.sponsored-section .ad-slide {
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 45px -10px rgba(15, 23, 42, 0.09);
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.sponsored-section .ad-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px -12px rgba(15, 23, 42, 0.15);
  border-color: rgba(99, 102, 241, 0.32);
}

.sponsored-section .ad-slide .sponsored-label {
  background: linear-gradient(135deg, #ede9fe, #dff9f0);
  color: #3730a3;
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sponsored-section .ad-slide-copy h3 {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sponsored-section .ad-slide-copy p {
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

.sponsored-section .ad-slide-copy .btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 45%, #4f46e5 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 18px -3px rgba(5, 150, 105, 0.35) !important;
  font-weight: 650;
  border-radius: 12px;
  padding: 10px 20px;
}

.sponsored-section .ad-slide-copy .btn:hover {
  box-shadow: 0 10px 24px -3px rgba(79, 70, 229, 0.42) !important;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   11. DUAL SIGN-IN & VERIFICATION PAGE HARMONIZATION (Landing Spectrum)
   -------------------------------------------------------------------------- */

.auth-page.auth-page-dual,
.auth-page.theme-landing,
body[data-theme="landing"] .auth-page {
  background:
    radial-gradient(circle at 84% 14%, rgba(99, 102, 241, 0.15), transparent 44%),
    radial-gradient(circle at 14% 86%, rgba(16, 185, 129, 0.15), transparent 44%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08), transparent 56%),
    linear-gradient(135deg, #f0fdf7 0%, #f8faff 45%, #f5f2fe 78%, #fcf9ee 100%);
}

/* Dual Aside Panel (Sign-in Page) */
.auth-page.auth-page-dual .auth-aside,
.auth-page.theme-landing .auth-aside,
body[data-theme="landing"] .auth-aside {
  background:
    radial-gradient(circle at 86% 16%, rgba(167, 139, 250, 0.28) 0%, transparent 48%),
    radial-gradient(circle at 14% 86%, rgba(16, 185, 129, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 58%),
    linear-gradient(155deg, #072b20 0%, #17123d 54%, #0c0822 100%);
  border: 1px solid rgba(167, 139, 250, 0.24);
  box-shadow:
    0 32px 76px -14px rgba(12, 8, 32, 0.46),
    0 12px 36px -10px rgba(5, 150, 105, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-page.auth-page-dual .auth-aside::before,
.auth-page.theme-landing .auth-aside::before,
body[data-theme="landing"] .auth-aside::before {
  border-color: rgba(94, 234, 212, 0.22);
  box-shadow: inset 0 0 45px rgba(16, 185, 129, 0.12);
}

.auth-page.auth-page-dual .auth-aside::after,
.auth-page.theme-landing .auth-aside::after,
body[data-theme="landing"] .auth-aside::after {
  border-color: rgba(196, 181, 253, 0.24);
  box-shadow: inset 0 0 35px rgba(99, 102, 241, 0.14);
}

.auth-page.auth-page-dual .auth-aside .brand span em,
.auth-page.theme-landing .auth-aside .brand span em,
body[data-theme="landing"] .auth-aside .brand span em {
  background: linear-gradient(135deg, #6ee7b7 0%, #c4b5fd 55%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-page.auth-page-dual .auth-side-copy .eyebrow,
.auth-page.theme-landing .auth-side-copy .eyebrow,
body[data-theme="landing"] .auth-side-copy .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f1f5f9;
}

.auth-page.auth-page-dual .auth-side-copy p,
.auth-page.theme-landing .auth-side-copy p,
body[data-theme="landing"] .auth-side-copy p {
  color: #dbe7e0;
}

.auth-page.auth-page-dual .auth-side-features div,
.auth-page.theme-landing .auth-side-features div,
body[data-theme="landing"] .auth-side-features div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  backdrop-filter: blur(10px);
}

.auth-page.auth-page-dual .auth-side-features div:hover,
.auth-page.theme-landing .auth-side-features div:hover,
body[data-theme="landing"] .auth-side-features div:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(167, 139, 250, 0.40);
  transform: translateY(-2px);
}

.auth-page.auth-page-dual .auth-side-features .icon,
.auth-page.theme-landing .auth-side-features .icon,
body[data-theme="landing"] .auth-side-features .icon {
  color: #fbbf24;
}

/* Dual Auth Card (Sign-in & Verification) */
.auth-page.auth-page-dual .auth-card,
.auth-page.theme-landing .auth-card,
body[data-theme="landing"] .auth-card {
  border: 1px solid rgba(99, 102, 241, 0.20);
  box-shadow:
    0 28px 70px -16px rgba(18, 11, 44, 0.14),
    0 10px 28px -8px rgba(5, 150, 105, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auth-page.auth-page-dual .auth-card::before,
.auth-page.theme-landing .auth-card::before,
body[data-theme="landing"] .auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #10b981 0%, #2dd4bf 28%, #6366f1 65%, #7c3aed 82%, #f59e0b 100%);
  background-size: 200% 100%;
  animation: borderShimmerFlow 6s ease infinite;
}

.auth-page.auth-page-dual .auth-card h1,
.auth-page.auth-page-dual .auth-card h2,
.auth-page.theme-landing .auth-card h1,
.auth-page.theme-landing .auth-card h2,
body[data-theme="landing"] .auth-card h1,
body[data-theme="landing"] .auth-card h2 {
  color: #111827;
}

/* Verification Role Pill */
.auth-verification-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  animation: viewFadeUp 0.4s var(--ease-out) both;
}

.auth-verification-role-pill.teacher {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  color: #4338ca;
  border: 1px solid rgba(167, 139, 250, 0.50);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.auth-verification-role-pill.teacher .dot-teacher {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.auth-verification-role-pill.student {
  background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
  color: #065f46;
  border: 1px solid rgba(110, 231, 183, 0.60);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.auth-verification-role-pill.student .dot-student {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.auth-page.auth-verification-page .auth-card .brand {
  margin-bottom: 20px;
}

/* Dual Primary & Outline Action Buttons */
.auth-page.auth-page-dual .btn-primary,
.auth-page.theme-landing .btn-primary,
body[data-theme="landing"] .auth-page .btn-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 32%, #4f46e5 72%, #7c3aed 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  box-shadow:
    0 10px 24px -4px rgba(5, 150, 105, 0.34),
    0 6px 16px -3px rgba(79, 70, 229, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease, filter 0.22s ease !important;
}

.auth-page.auth-page-dual .btn-primary:hover,
.auth-page.theme-landing .btn-primary:hover,
body[data-theme="landing"] .auth-page .btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 32%, #4338ca 72%, #6d28d9 100%) !important;
  box-shadow:
    0 14px 32px -4px rgba(5, 150, 105, 0.46),
    0 8px 22px -3px rgba(79, 70, 229, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-2px);
}

.auth-page.auth-page-dual .btn-outline,
.auth-page.theme-landing .btn-outline,
body[data-theme="landing"] .auth-page .btn-outline {
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
  background: #ffffff;
  font-weight: 600;
}

.auth-page.auth-page-dual .btn-outline:hover,
.auth-page.theme-landing .btn-outline:hover,
body[data-theme="landing"] .auth-page .btn-outline:hover {
  border-color: #6366f1;
  background: #f5f3ff;
  color: #312e81;
  transform: translateY(-1px);
}

.auth-page.auth-page-dual .text-link,
.auth-page.theme-landing .text-link,
body[data-theme="landing"] .auth-page .text-link {
  color: #4f46e5;
  font-weight: 650;
}

.auth-page.auth-page-dual .text-link:hover,
.auth-page.theme-landing .text-link:hover,
body[data-theme="landing"] .auth-page .text-link:hover {
  color: #4338ca;
  text-decoration: underline;
}

.auth-page.auth-page-dual input:focus,
.auth-page.theme-landing input:focus,
body[data-theme="landing"] .auth-page input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
  outline: none;
}
.verified-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border:1px solid #a7d9be;border-radius:999px;background:#e8f7ef;color:#116944;font-size:11px;font-weight:800;vertical-align:middle;white-space:nowrap}
.verified-badge .icon{width:13px;height:13px}
.teacher-verification-summary{display:flex;align-items:center;gap:10px;margin:12px 0;color:var(--text-muted,#687780);font-size:13px}
.teacher-verification-summary .pill{flex:0 0 auto}
.teacher-verification-summary+ .small{margin-top:0}
