/* CL Academy — Pure Vanilla CSS Stylesheet */

:root {
  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --bg-canvas: #f6f8fc;
  --bg-surface: #ffffff;
  --bg-subtle: #edf2f7;
  --bg-dark: #0b132b;
  --bg-dark-elev: #162244;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-soft: #eef2ff;
  --accent-border: #c7d2fe;

  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-soft: #f0fdfa;
  --teal-border: #99f6e4;

  --amber: #b45309;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  --red: #b91c1c;
  --red-soft: #fef2f2;
  --red-border: #fecaca;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-card: 0 1px 2px rgba(11, 19, 43, 0.04), 0 10px 24px -14px rgba(11, 19, 43, 0.1);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.font-mono {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

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

/* App Shell */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

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

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container { padding-inline: 24px; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 32px; }
}

.section-pad {
  padding-block: 24px;
}

@media (min-width: 768px) {
  .section-pad { padding-block: 40px; }
}

/* Header & Navigation */
[id] {
  scroll-margin-top: 72px;
}

@media (min-width: 1024px) {
  [id] {
    scroll-margin-top: 118px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
  transition: box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 10px 26px -18px rgba(11, 19, 43, 0.28);
}

@media (max-width: 639px) {
  .site-header > .container {
    padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  }
}

.nav-row {
  min-height: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

@media (min-width: 640px) {
  .nav-row {
    min-height: 60px;
    height: 60px;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .nav-row {
    min-height: 64px;
    height: 64px;
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .nav-row {
    gap: 32px;
  }
}

.brand-btn {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms var(--ease);
}

@media (min-width: 640px) {
  .brand-btn { font-size: 1.15rem; }
}

@media (min-width: 1024px) {
  .brand-btn {
    font-size: 1.25rem;
    flex-shrink: 0;
  }
}

.brand-btn:hover {
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

@media (min-width: 1200px) {
  .nav-links { gap: 28px; }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-strong);
}

.nav-link.is-active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-actions { gap: 8px; }
}

.nav-user-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

@media (max-width: 639px) {
  .site-header .nav-actions .btn-sm {
    min-height: 44px;
    padding: 6px 10px;
    font-size: 0.78rem;
    gap: 5px;
  }
}

@media (max-width: 479px) {
  .site-header .header-cta-icon {
    display: none;
  }
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1.125rem;
  flex-shrink: 0;
  cursor: pointer;
}

.mobile-menu-btn:hover {
  background: var(--bg-subtle);
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(11, 19, 43, 0.36);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (min-width: 1024px) {
  .mobile-drawer-backdrop { display: none; }
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 12px max(16px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
  max-height: calc(100dvh - 56px - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 22px 44px -18px rgba(11, 19, 43, 0.26);
}

@media (min-width: 640px) {
  .mobile-drawer {
    padding-inline: 24px;
    max-height: calc(100dvh - 60px - env(safe-area-inset-top, 0px));
  }
}

@media (min-width: 1024px) {
  .mobile-drawer { display: none; }
}

.mobile-drawer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-drawer-search .input {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 1rem;
}

.mobile-drawer-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: inherit;
  cursor: pointer;
}

.mobile-drawer-user-card:hover {
  background: var(--bg-subtle);
}

.mobile-drawer-contacts {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-drawer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.mobile-drawer-contact-link:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-btn {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}

.mobile-portal-grid {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-subtle);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-portal-btn {
  text-align: left;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-portal-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* Announcement & Alerts */
.announcement-strip {
  background: var(--amber-soft);
  border-bottom: 1px solid var(--amber-border);
  color: #451a03;
  font-size: 0.8125rem;
  padding: 10px 0;
}

.alert-banner {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alert-banner > span {
  flex: 1 1 200px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.alert-error {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: #7f1d1d;
}

.alert-success {
  background: var(--teal-soft);
  border-color: var(--teal-border);
  color: #134e4a;
}

.alert-info {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #1e3a8a;
}

.alert-warn {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: #78350f;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), opacity 150ms var(--ease);
}

.btn-lg {
  min-height: 46px;
  padding: 10px 20px;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .btn-sm {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3730a3 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--bg-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--accent);
}

.btn-teal {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
}

.btn-teal:hover {
  background: var(--teal-hover);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-canvas);
  border-color: var(--border-strong);
}

.btn-danger-outline {
  background: var(--bg-surface);
  border-color: var(--red-border);
  color: var(--red);
}

.btn-danger-outline:hover {
  background: var(--red-soft);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

/* Form Controls */
.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: border-color 150ms var(--ease);
}

.input-sm, .select-sm {
  min-height: 40px;
  padding: 7px 12px;
  font-size: 0.8125rem;
}

/* Prevent iOS Safari zoom on input focus while preserving touch height */
@media (max-width: 767px) {
  .input, .select, .textarea, .input-sm, .select-sm {
    font-size: 1rem;
    min-height: 44px;
  }
}

.select-responsive {
  width: 100%;
}

@media (min-width: 640px) {
  .select-responsive {
    width: auto;
    min-width: 240px;
  }
}

.textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Surfaces & Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.card-pad {
  padding: 16px;
}

@media (min-width: 640px) {
  .card-pad { padding: 24px; }
}

.divider-top {
  border-top: 1px solid var(--border);
}

.divider-bottom {
  border-bottom: 1px solid var(--border);
}

/* Hero Section */
.hero-section {
  background:
    radial-gradient(64% 80% at 88% 12%, rgba(67, 56, 202, 0.08) 0%, rgba(13, 148, 136, 0.04) 45%, transparent 78%),
    linear-gradient(180deg, #ffffff 0%, #f1f5ff 100%);
  border-bottom: 1px solid var(--border);
  padding-block: 28px;
}

@media (min-width: 1024px) {
  .hero-section { padding-block: 56px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-copy { grid-column: span 6 / span 6; }
  .hero-media { grid-column: span 6 / span 6; }
}

.kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 34rem;
}

.hero-desc {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36rem;
}

@media (min-width: 640px) {
  .hero-desc { font-size: 1rem; }
}

.hero-cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 639px) {
  .hero-cta-row .btn {
    flex: 1 1 100%;
  }
}

.hero-image-box {
  position: relative;
  height: 100%;
  min-height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-dark);
  box-shadow: 0 18px 40px -18px rgba(11, 19, 43, 0.25);
}

@media (min-width: 640px) {
  .hero-image-box { min-height: 340px; }
}

.hero-media-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 44px 20px 18px;
  background: linear-gradient(to top, rgba(11, 19, 43, 0.88) 0%, rgba(11, 19, 43, 0.48) 55%, transparent 100%);
  color: #ffffff;
}

.resilient-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-fallback {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
}

/* KPI Grids */
.kpi-strip {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 1024px) {
  .kpi-strip {
    margin-top: 40px;
    padding-top: 32px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
}

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

@media (min-width: 640px) {
  .kpi-cards { gap: 16px; }
}

@media (min-width: 1024px) {
  .kpi-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.kpi-cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .kpi-cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-value {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .kpi-value { font-size: 1.625rem; }
}

.kpi-value.is-teal { color: var(--teal); }
.kpi-value.is-amber { color: var(--amber); }

/* Catalog & Filter Bar */
.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .section-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 24px;
  }
}

.search-wrap {
  position: relative;
  width: 100%;
}

@media (min-width: 1024px) {
  .search-wrap { width: 320px; flex-shrink: 0; }
}

.filter-tabs {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}

.filter-tab:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.filter-tab.is-active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #ffffff;
}

.segmented {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}

.segmented::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .segmented {
    display: inline-flex;
    flex-wrap: wrap;
  }
}

.seg-btn {
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

@media (max-width: 767px) {
  .seg-btn {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

.seg-btn.is-active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* Course Grid */
.courses-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (min-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bundles-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .bundles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

.courses-grid > *, .bundles-grid > * {
  min-width: 0;
}

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.course-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px rgba(67, 56, 202, 0.24);
}

.course-cover {
  aspect-ratio: 4 / 3;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--bg-subtle);
  overflow: hidden;
}

.course-cover .resilient-img {
  transition: transform 220ms var(--ease);
}

.course-card:hover .course-cover .resilient-img {
  transform: scale(1.03);
}

.course-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .course-body { padding: 22px; }
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.meta-strong {
  font-weight: 600;
  color: var(--text-primary);
}

.course-title {
  margin-top: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.course-desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta-footer {
  margin-top: auto;
  padding-top: 14px;
  margin-bottom: 14px;
  border-top: 1px solid var(--bg-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-track {
  height: 6px;
  width: 100%;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--teal);
  transition: width 250ms var(--ease);
}

.progress-fill.is-blue {
  background: var(--accent);
}

/* Workflow Bento & Role Portal Bands */
.workflow-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-block: 44px;
}

@media (min-width: 768px) {
  .workflow-band { padding-block: 60px; }
}

.bento-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bento-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.bento-card:hover {
  border-color: var(--accent-border);
  background: #ffffff;
}

.bento-card--wide {
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdfa 100%);
  border-color: var(--accent-border);
}

@media (min-width: 1024px) {
  .bento-card--wide {
    grid-column: span 2 / span 2;
  }
}

.bento-card--dark {
  background: linear-gradient(155deg, #0b132b 0%, #162244 100%);
  border-color: #1e293b;
  color: #f8fafc;
}

.bento-card--dark:hover {
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 100%);
  border-color: #334155;
}

.portal-showcase-band {
  background: linear-gradient(160deg, #0b132b 0%, #141e3c 60%, #1e1b4b 100%);
  color: #f8fafc;
  padding-block: 44px;
  border-top: 1px solid #1e293b;
}

@media (min-width: 768px) {
  .portal-showcase-band { padding-block: 60px; }
}

.portal-showcase-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .portal-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.portal-showcase-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.portal-showcase-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(165, 180, 252, 0.5);
}

.editorial-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

/* Classroom Split Layout */
.classroom-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .classroom-grid {
    margin-top: 24px;
    grid-template-columns: 4fr 8fr;
    gap: 24px;
  }
}

.classroom-grid > *, .studio-grid > *, .two-col-form > *, .three-col-form > * {
  min-width: 0;
}

.classroom-progress-card {
  width: 100%;
  padding: 12px 16px;
}

@media (min-width: 640px) {
  .classroom-progress-card {
    width: auto;
    min-width: 240px;
  }
}

.syllabus-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.syllabus-panel.is-hidden-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .syllabus-panel.is-hidden-mobile { display: block; }
  .mobile-syllabus-toggle { display: none; }
}

.syllabus-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid var(--bg-subtle);
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.syllabus-item:hover {
  background: var(--bg-canvas);
}

.syllabus-item.is-selected {
  background: var(--accent-soft);
}

/* Video Player */
.video-frame {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #020617;
}

.video-toolbar {
  padding: 10px 14px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.video-toolbar a {
  color: #cbd5e1;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.video-toolbar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.aspect-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000000;
}

.aspect-video iframe, .aspect-video video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Custom Clean YouTube LMS Player (hides native Watch on YouTube, Share, Watch Later, Channel, Title) */
.video-frame--clean {
  background: #060d20;
  border-color: #1e293b;
}

.video-frame--clean:fullscreen {
  border-radius: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.video-frame--clean:fullscreen .yt-lms-stage {
  width: 100%;
  max-height: 100vh;
}

.yt-lms-stage {
  position: relative;
  overflow: hidden;
  background: #060d20;
  user-select: none;
}

.yt-lms-iframe-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.yt-lms-iframe-wrap iframe,
.yt-lms-mount {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.yt-lms-stage.is-fallback .yt-lms-iframe-wrap {
  pointer-events: auto;
}

.yt-lms-stage.is-fallback .yt-lms-cover,
.yt-lms-stage.is-fallback .yt-lms-click-layer,
.yt-lms-stage.is-fallback .yt-lms-top-curtain,
.yt-lms-stage.is-fallback .yt-lms-controls {
  display: none;
}

.yt-lms-top-curtain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: linear-gradient(to bottom, #060d20 0%, rgba(6, 13, 32, 0.94) 62%, transparent 100%);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease);
}

.yt-lms-stage.is-playing.is-curtain-active .yt-lms-top-curtain {
  opacity: 1;
}

.yt-lms-click-layer {
  position: absolute;
  inset: 0;
  bottom: 48px;
  z-index: 3;
  cursor: pointer;
}

.yt-lms-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(circle at center, rgba(15, 29, 68, 0.88) 0%, #060d20 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms var(--ease);
}

.yt-lms-stage.is-playing .yt-lms-cover {
  opacity: 0;
  pointer-events: none;
}

.yt-lms-big-play {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: #1d63dc;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 36px -10px rgba(29, 99, 220, 0.65);
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}

.yt-lms-big-play:hover {
  transform: scale(1.06);
  background: #1651b8;
}

.yt-lms-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 48px;
  padding: 0 10px;
  background: linear-gradient(to top, rgba(6, 13, 32, 0.96) 0%, rgba(6, 13, 32, 0.84) 75%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.yt-lms-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.yt-lms-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.yt-lms-seek {
  flex: 1 1 auto;
  min-width: 60px;
  accent-color: #3b82f6;
  cursor: pointer;
  height: 6px;
}

.yt-lms-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Screenshot & Video Capture Shield + Rotating Watermark */
.classroom-protected,
.video-frame {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.video-frame img,
.video-frame video,
.classroom-protected img {
  -webkit-user-drag: none;
  user-drag: none;
}

.cl-video-watermark {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(6, 13, 32, 0.34);
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: top 400ms var(--ease), bottom 400ms var(--ease), left 400ms var(--ease), right 400ms var(--ease);
}

.cl-video-watermark.is-pos-tl { top: 12px; left: 12px; }
.cl-video-watermark.is-pos-tr { top: 12px; right: 12px; }
.cl-video-watermark.is-pos-bl { bottom: 58px; left: 12px; }
.cl-video-watermark.is-pos-br { bottom: 58px; right: 12px; }

.cl-video-shield-mask {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: #020617;
  color: #f8fafc;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

body.cl-screen-shield-active .cl-video-shield-mask {
  display: flex;
}

body.cl-screen-shield-active .classroom-protected::after {
  content: "Protected Lesson Content — Screenshots & Screen Capture Disabled";
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(6, 13, 32, 0.97);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  border-radius: inherit;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

/* Prose */
.prose {
  margin-top: 24px;
  max-width: 72ch;
  color: #334155;
  line-height: 1.7;
  font-size: 0.9375rem;
  overflow-wrap: break-word;
}

.prose h3 { font-size: 1.25rem; color: var(--text-primary); margin-top: 16px; }
.prose h4 { font-size: 1.0625rem; color: var(--text-primary); margin-top: 14px; }
.prose h5 { font-size: 1rem; color: var(--text-primary); margin-top: 10px; }
.prose p { margin-top: 8px; }
.prose ul { margin: 8px 0 8px 18px; padding: 0; }
.prose li { margin-top: 4px; }

/* Slide Deck */
.slide-stage {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.slide-canvas {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 24px 18px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: pre-line;
}

@media (min-width: 640px) {
  .slide-canvas {
    padding: 36px 28px;
    min-height: 220px;
  }
}

.slide-controls {
  padding: 12px 14px;
  background: var(--bg-canvas);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Tables & Mobile Card Stacking */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-subtle);
  font-size: 0.875rem;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.data-table tr.is-highlight td {
  background: var(--accent-soft);
}

.text-right { text-align: right; }

@media (max-width: 767px) {
  .data-table--responsive thead {
    display: none;
  }

  .data-table--responsive,
  .data-table--responsive tbody,
  .data-table--responsive tr,
  .data-table--responsive td {
    display: block;
    width: 100%;
  }

  .data-table--responsive tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .data-table--responsive tr:last-child {
    border-bottom: 0;
  }

  .data-table--responsive tr.is-highlight {
    background: var(--accent-soft);
  }

  .data-table--responsive td {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 7px 0;
    border-bottom: 0;
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .data-table--responsive td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
    padding-top: 2px;
  }

  .data-table--responsive td[data-label=""]::before,
  .data-table--responsive td:not([data-label])::before {
    display: none;
  }

  .data-table--responsive td > div,
  .data-table--responsive td > span,
  .data-table--responsive td > code {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .data-table--responsive td.td-edit-cell,
  .data-table--responsive td.td-progress,
  .data-table--responsive td:has(.input, .select, .textarea) {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 6px;
  }

  .data-table--responsive td.td-edit-cell .flex-wrap,
  .data-table--responsive td.td-progress .flex-between {
    width: 100%;
  }

  .data-table--responsive td.td-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--bg-subtle);
  }

  .data-table--responsive td.td-actions::before {
    margin-bottom: 2px;
  }

  .data-table--responsive td.td-actions .flex-wrap {
    justify-content: flex-start !important;
  }
}

/* Unified Left Sidebar Shell (Admin, Teacher, Tracker, Student, Catalog) */
.admin-shell,
.workspace-shell {
  --cl-header-offset: 56px;
  --cl-adm-drawer-top: 114px;
  --cl-footer-offset: 0px;
  max-width: 1440px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--cl-header-offset, 56px));
}

@media (min-width: 640px) {
  .admin-shell,
  .workspace-shell {
    --cl-header-offset: 60px;
  }
}

.workspace-shell--contained {
  max-width: 1280px;
  min-height: 0;
}

@media (min-width: 1024px) {
  .admin-shell,
  .workspace-shell {
    --cl-header-offset: 64px;
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100dvh - var(--cl-header-offset, 64px));
  }
}

.admin-sidebar,
.workspace-sidebar {
  background: linear-gradient(180deg, #0b132b 0%, #111c3a 100%);
  color: #e2e8f0;
  width: 100%;
  flex-shrink: 0;
  display: none;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--bg-dark-elev);
}

.workspace-sidebar.is-light {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.admin-sidebar.is-open,
.workspace-sidebar.is-open {
  display: flex;
}

.admin-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 37;
  background: rgba(11, 19, 43, 0.45);
  backdrop-filter: blur(2px);
}

@media (max-width: 1023px) {
  .admin-sidebar.is-open {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--cl-adm-drawer-top, 114px);
    bottom: auto;
    max-height: calc(100dvh - var(--cl-adm-drawer-top, 114px) - var(--cl-footer-offset, 0px));
    z-index: 38;
    box-shadow: 0 22px 44px -14px rgba(11, 19, 43, 0.48);
    border-bottom: 1px solid #334155;
  }

  .workspace-sidebar.is-open {
    max-height: 68dvh;
  }

  body.adm-drawer-lock {
    overflow: hidden;
  }
}

@media (min-width: 1024px) {
  .admin-mobile-backdrop {
    display: none;
  }

  .admin-sidebar,
  .workspace-sidebar {
    display: flex;
    width: 268px;
    position: sticky;
    top: var(--cl-header-offset, 64px);
    height: calc(100dvh - var(--cl-header-offset, 64px) - var(--cl-footer-offset, 0px));
    max-height: calc(100dvh - var(--cl-header-offset, 64px) - var(--cl-footer-offset, 0px));
    min-height: 0;
    overflow: hidden;
    border-bottom: 0;
    border-right: 1px solid var(--bg-dark-elev);
    z-index: 20;
  }

  .workspace-sidebar.is-light {
    border-right: 1px solid var(--border);
    height: calc(100dvh - var(--cl-header-offset, 64px) - var(--cl-footer-offset, 0px));
    min-height: 0;
    max-height: calc(100dvh - var(--cl-header-offset, 64px) - var(--cl-footer-offset, 0px));
  }
}

.admin-sidebar-head {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--bg-dark-elev);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .admin-sidebar-head {
    padding: 18px 16px 12px;
  }
}

.admin-mobile-bar,
.workspace-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-dark);
  color: #ffffff;
  border-bottom: 1px solid var(--bg-dark-elev);
}

.admin-mobile-bar {
  position: sticky;
  top: var(--cl-header-offset, 56px);
  z-index: 35;
}

.workspace-mobile-bar.is-light {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .admin-mobile-bar,
  .workspace-mobile-bar {
    display: none;
  }
}

.admin-nav-scroll,
.workspace-nav-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.58) rgba(15, 23, 42, 0.35);
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-scroll::-webkit-scrollbar,
.workspace-nav-scroll::-webkit-scrollbar {
  width: 6px;
}

.admin-nav-scroll::-webkit-scrollbar-track,
.workspace-nav-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.32);
}

.admin-nav-scroll::-webkit-scrollbar-thumb,
.workspace-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 999px;
}

.admin-nav-scroll::-webkit-scrollbar-thumb:hover,
.workspace-nav-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.85);
}

.workspace-sidebar.is-light .workspace-nav-scroll {
  scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
}

.workspace-sidebar.is-light .workspace-nav-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.workspace-sidebar.is-light .workspace-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.38);
}

.workspace-nav-group {
  flex-shrink: 0;
  padding: 10px 10px 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.workspace-nav-group:not(:first-child) {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.workspace-sidebar.is-light .workspace-nav-group {
  color: var(--text-muted);
}

.workspace-sidebar.is-light .workspace-nav-group:not(:first-child) {
  border-top-color: var(--border);
}

.admin-nav-btn,
.workspace-nav-btn {
  width: 100%;
  flex-shrink: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.admin-nav-btn > span:first-child,
.workspace-nav-btn > span:first-child {
  min-width: 0;
  white-space: normal;
  line-height: 1.3;
}

.admin-nav-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #93c5fd;
  opacity: 0.92;
  transition: color 150ms var(--ease), opacity 150ms var(--ease), transform 150ms var(--ease);
}

.admin-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.admin-nav-text {
  min-width: 0;
  overflow-wrap: break-word;
}

.admin-nav-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  opacity: 0.95;
}

.admin-nav-btn:hover,
.workspace-nav-btn:hover {
  background: var(--bg-dark-elev);
  color: #ffffff;
}

.admin-nav-btn:hover .admin-nav-icon {
  color: #ffffff;
  opacity: 1;
}

.admin-nav-btn.is-active,
.workspace-nav-btn.is-active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.admin-nav-btn.is-active .admin-nav-icon {
  color: #ffffff;
  opacity: 1;
}

.admin-nav-btn.is-active .admin-nav-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.admin-mobile-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.adm-page-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.adm-title-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-title-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.workspace-sidebar.is-light .workspace-nav-btn {
  color: var(--text-secondary);
}

.workspace-sidebar.is-light .workspace-nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.workspace-sidebar.is-light .workspace-nav-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}

.workspace-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--bg-dark-elev);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.workspace-sidebar.is-light .workspace-sidebar-footer {
  border-top: 1px solid var(--border);
}

.admin-content,
.workspace-content {
  flex: 1;
  min-width: 0;
  padding: 16px 14px 40px;
}

@media (min-width: 640px) {
  .admin-content,
  .workspace-content {
    padding: 28px 28px 48px;
  }
}

/* Teacher Two-Column Layout */
.studio-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .studio-grid {
    margin-top: 24px;
    grid-template-columns: 7fr 5fr;
    gap: 24px;
  }
}

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

@media (min-width: 640px) {
  .two-col-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-col-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile Action Helpers */
.mobile-stack-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 639px) {
  .mobile-stack-actions {
    width: 100%;
  }
  .mobile-stack-actions > .btn,
  .mobile-stack-actions > button,
  .mobile-stack-actions > a {
    flex: 1 1 auto;
  }
}

/* Auth Portal Card (Mobile-First & Responsive) */
.auth-section {
  padding-block: 14px 44px;
}

@media (min-width: 768px) {
  .auth-section {
    padding-block: 28px 56px;
  }
}

.auth-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .auth-card {
    margin: 32px auto;
    border-radius: var(--radius-xl);
    grid-template-columns: 5fr 7fr;
  }
}

.auth-aside {
  background: linear-gradient(155deg, #0b132b 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-aside-title {
  margin-top: 6px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
  text-wrap: balance;
}

.auth-aside-desc {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.auth-aside-features,
.auth-aside-links {
  display: none;
}

@media (min-width: 768px) {
  .auth-aside {
    padding: 32px;
  }
  .auth-aside-title {
    margin-top: 12px;
    font-size: 1.75rem;
  }
  .auth-aside-desc {
    margin-top: 12px;
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .auth-aside-features {
    list-style: none;
    padding: 18px 0 0;
    margin: 18px 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.8125rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .auth-aside-links {
    display: block;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
  }
}

.auth-body {
  padding: 18px 16px 22px;
  min-width: 0;
}

@media (min-width: 640px) {
  .auth-body {
    padding: 28px 28px;
  }
}

@media (min-width: 768px) {
  .auth-body {
    padding: 32px;
  }
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.auth-mode-tab {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.auth-mode-tab.is-active {
  background: var(--bg-dark);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(11, 19, 43, 0.16);
}

.auth-submit-btn {
  min-height: 48px;
  padding: 12px 18px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.auth-google-block {
  margin-bottom: 16px;
}

.gsi-material-button {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: #1f1f1f;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.gsi-material-button:hover:not(:disabled) {
  background-color: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.gsi-material-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gsi-material-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gsi-material-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-divider {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-mobile-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-mobile-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-mobile-links-row .btn {
  min-height: 44px;
  flex: 1 1 130px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .auth-mobile-links {
    display: none;
  }
}

/* Modal Backdrop & Mobile Bottom Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
}

.modal-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 16px;
  }
  .modal-panel {
    border-radius: var(--radius-xl);
    max-height: 90dvh;
    overflow-y: auto;
  }
}

.qr-frame {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Sticky Footer Navigation Bar (Icon Dock) */
.sticky-footer-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 42;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 28px rgba(11, 19, 43, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-footer-nav[hidden] {
  display: none;
}

.sticky-footer-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 8px;
  height: 56px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

@media (min-width: 768px) {
  .sticky-footer-inner {
    padding: 0 24px;
    height: 64px;
  }
}

.sticky-footer-scroll {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sticky-footer-scroll::-webkit-scrollbar {
  display: none;
}

.sticky-footer-scroll--compact {
  justify-content: space-evenly;
}

.sticky-footer-scroll--compact .sticky-footer-btn {
  flex: 1 1 0;
  max-width: 148px;
}

@media (min-width: 960px) {
  .sticky-footer-scroll {
    justify-content: center;
    gap: 8px;
  }
  .sticky-footer-scroll--compact {
    gap: 20px;
  }
}

.sticky-footer-btn {
  position: relative;
  min-width: 68px;
  min-height: 48px;
  padding: 5px 8px 4px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}

@media (min-width: 768px) {
  .sticky-footer-btn {
    min-width: 84px;
    padding: 6px 12px;
    gap: 3px;
  }
}

.sticky-footer-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 2.5px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.sticky-footer-icon {
  width: 34px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}

.sticky-footer-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

@media (min-width: 768px) {
  .sticky-footer-icon {
    width: 38px;
    height: 28px;
  }
  .sticky-footer-icon svg {
    width: 20px;
    height: 20px;
  }
}

.sticky-footer-text {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .sticky-footer-text {
    font-size: 0.75rem;
  }
}

.sticky-footer-btn:hover {
  color: var(--text-primary);
}

.sticky-footer-btn:hover .sticky-footer-icon {
  background: var(--bg-subtle);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.sticky-footer-btn.is-active {
  color: var(--accent-hover);
}

.sticky-footer-btn.is-active::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.sticky-footer-btn.is-active .sticky-footer-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.sticky-footer-btn.is-active .sticky-footer-text {
  font-weight: 600;
}

.app-shell.has-sticky-footer.no-site-footer .app-main {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

.app-shell.has-sticky-footer .admin-shell,
.app-shell.has-sticky-footer .workspace-shell {
  --cl-footer-offset: 64px;
}

@media (min-width: 1024px) {
  .app-shell.has-sticky-footer .workspace-sidebar,
  .app-shell.has-sticky-footer .admin-sidebar {
    height: calc(100dvh - var(--cl-header-offset, 64px) - var(--cl-footer-offset, 64px));
    min-height: 0;
    max-height: calc(100dvh - var(--cl-header-offset, 64px) - var(--cl-footer-offset, 64px));
  }
}

/* Sticky Footer All-Menu Drawer */
.sf-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 19, 43, 0.48);
  backdrop-filter: blur(2px);
  z-index: 41;
}

.sf-drawer-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 43;
  max-width: 680px;
  margin-inline: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -18px 40px rgba(11, 19, 43, 0.16);
  padding: 18px 16px 16px;
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .sf-drawer-backdrop {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .sf-drawer-panel {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 20px 24px;
  }
}

.sf-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sf-drawer-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 420px) {
  .sf-drawer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.sf-drawer-item {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.sf-drawer-item:hover {
  background: var(--bg-surface);
  border-color: var(--accent-border);
}

.sf-drawer-item.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-hover);
  font-weight: 600;
}

.sf-drawer-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sf-drawer-item.is-active .sf-drawer-item-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.sf-drawer-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-drawer-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Profile Avatar & Photo Uploader */
.profile-photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  padding: 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.profile-avatar-frame {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--accent-border);
  background: var(--accent-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-frame--sm {
  width: 44px;
  height: 44px;
  border-width: 1.5px;
}

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

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--accent);
}

.profile-avatar-frame--sm .profile-avatar-fallback {
  font-size: 0.9375rem;
}

.profile-photo-controls {
  flex: 1 1 240px;
  min-width: 0;
}

/* Global Multi-Column Site Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-block: 36px 28px;
}

.site-footer[hidden] {
  display: none;
}

.app-shell.has-sticky-footer .site-footer {
  padding-block: 36px calc(32px + 70px + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
  }
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-menu-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 40px;
  width: 100%;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 150ms var(--ease);
}

@media (min-width: 1024px) {
  .footer-menu-btn {
    min-height: 32px;
    padding: 5px 0;
  }
}

.footer-menu-btn:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  min-height: 40px;
  padding: 6px 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Utility Helpers */
.stack-xs > * + * { margin-top: 6px; }
.stack-sm > * + * { margin-top: 10px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

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

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

.status-text-teal { color: var(--teal); font-weight: 600; }
.status-text-amber { color: var(--amber); font-weight: 600; }
.status-text-red { color: var(--red); font-weight: 600; }
.status-text-blue { color: var(--accent); font-weight: 600; }

.quiz-option {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.quiz-option:hover {
  background: var(--bg-subtle);
}

.quiz-option.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  font-weight: 600;
}

@media (max-width: 639px) {
  .hide-on-mobile-xs { display: none; }
}

.referral-box {
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdfa 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.live-class-banner {
  background: linear-gradient(135deg, #f0fdfa 0%, #eef2ff 100%);
  border: 1px solid var(--teal-border);
}

/* Certificate Design Studio & Printable Certificate Canvas */
.cert-designer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .cert-designer-grid {
    grid-template-columns: 5fr 7fr;
    gap: 24px;
  }
}

.cert-designer-grid > * {
  min-width: 0;
}

.cert-tpl-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .cert-tpl-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cert-tpl-option {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.cert-tpl-option:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface);
}

.cert-tpl-option.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.cert-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border-strong);
  cursor: pointer;
  transition: transform 120ms var(--ease);
}

.cert-swatch-btn:hover {
  transform: scale(1.08);
}

.cert-swatch-btn.is-active {
  box-shadow: 0 0 0 2px var(--text-primary);
}

.cert-canvas {
  --cert-accent: #4338ca;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: #fffdf7;
  color: #1e293b;
  border: 2px solid var(--cert-accent);
  box-shadow: 0 14px 32px -16px rgba(11, 19, 43, 0.22);
  overflow: hidden;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media (min-width: 640px) {
  .cert-canvas {
    padding: 20px;
  }
}

.cert-inner {
  position: relative;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .cert-inner {
    padding: 32px 36px;
    min-height: 390px;
    gap: 24px;
  }
}

/* Template Themes */
.cert-tpl-classic_ivory {
  background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 55%), #fffdf5;
  color: #1f2937;
}

.cert-tpl-royal_indigo {
  background: linear-gradient(155deg, #ffffff 0%, #eef2ff 100%);
  color: #0f172a;
}

.cert-tpl-emerald_modern {
  background: linear-gradient(155deg, #ffffff 0%, #ecfdf5 100%);
  color: #064e3b;
}

.cert-tpl-obsidian_gold {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 55%), linear-gradient(150deg, #0b132b 0%, #172554 100%);
  color: #f8fafc;
}

/* Border Styles */
.cert-border-double_ornate .cert-inner {
  border: 2px double var(--cert-accent);
  border-radius: 6px;
}

.cert-border-minimal_frame .cert-inner {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-top: 4px solid var(--cert-accent);
  border-radius: 4px;
}

.cert-border-corner_crest .cert-inner {
  border: 1.5px dashed var(--cert-accent);
  border-radius: 10px;
}

.cert-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cert-issuer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cert-accent);
}

.cert-tpl-obsidian_gold .cert-issuer-brand {
  color: #fcd34d;
}

.cert-seal-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--cert-accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cert-accent);
}

.cert-tpl-obsidian_gold .cert-seal-badge {
  border-color: #fbbf24;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
}

.cert-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cert-heading {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cert-subtitle {
  font-size: 0.875rem;
  opacity: 0.82;
  max-width: 48ch;
}

.cert-recipient {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 700;
  color: var(--cert-accent);
  border-bottom: 1.5px solid rgba(148, 163, 184, 0.45);
  padding: 2px 18px 6px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.cert-tpl-obsidian_gold .cert-recipient {
  color: #fde68a;
  border-bottom-color: rgba(251, 191, 36, 0.4);
}

.cert-course-lead {
  margin-top: 4px;
  font-size: 0.8125rem;
  opacity: 0.78;
}

.cert-course-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  max-width: 46ch;
}

.cert-mastery {
  margin-top: 4px;
  font-size: 0.8125rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.14);
}

.cert-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.cert-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.cert-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.68;
}

.cert-meta-val {
  font-size: 0.875rem;
  font-weight: 600;
}

.cert-code {
  margin-top: 2px;
  font-size: 0.75rem;
  opacity: 0.82;
}

.cert-sign-col {
  text-align: right;
  min-width: 160px;
  margin-left: auto;
}

@media (max-width: 479px) {
  .cert-sign-col {
    min-width: 0;
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}

.cert-sign-line {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  padding-top: 6px;
  border-top: 1.5px solid currentColor;
}

.cert-sign-title {
  font-size: 0.75rem;
  opacity: 0.75;
}

.cert-footer-note {
  text-align: center;
  font-size: 0.72rem;
  opacity: 0.68;
}

@media print {
  .site-header,
  .announcement-strip,
  .sticky-footer-nav,
  .site-footer,
  .admin-sidebar,
  .admin-mobile-bar,
  .workspace-sidebar,
  .workspace-mobile-bar,
  .video-frame,
  .yt-lms-stage,
  .classroom-protected,
  .slide-stage,
  .prose,
  .quiz-option,
  .mock-sticky-hud,
  .no-print {
    display: none !important;
  }
  body, .app-shell, .admin-content, .workspace-content {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .card {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
  }
  .cert-canvas {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ==========================================================================
   Career Lander (CL Academy) Landing Page & Multi-Column Dark Footer
   ========================================================================== */

.top-utility-bar {
  display: none;
  background: #1d63dc;
  color: #ffffff;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 1024px) {
  .top-utility-bar {
    display: block;
  }
}

.top-utility-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-utility-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.top-utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.top-utility-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.top-utility-search {
  position: relative;
  width: 240px;
  max-width: 100%;
}

.top-utility-search input {
  width: 100%;
  height: 30px;
  padding: 4px 30px 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
}

.top-utility-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-utility-search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.top-utility-search-icon {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.top-utility-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.top-utility-btn {
  background: none;
  border: 0;
  padding: 4px 6px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.top-utility-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.brand-lockup svg {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-lockup {
    gap: 9px;
  }
}

.brand-logo-img {
  width: auto;
  max-width: 112px;
  max-height: 30px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .brand-logo-img {
    max-width: 180px;
    max-height: none;
  }
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0b1d45;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.mock-reasoning-img-wrap {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}

.mock-reasoning-img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.mock-reasoning-thumb {
  display: block;
  max-width: 240px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
}

.mock-option-editor-card {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-option-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mock-option-upload-row .input {
  flex: 1 1 160px;
  min-width: 0;
  font-size: 0.8125rem;
}

.mock-option-thumb {
  display: block;
  max-width: 170px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 2px;
}

.mock-option-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.mock-option-img {
  display: block;
  max-width: min(260px, 100%);
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 4px;
}

.quiz-option:has(.mock-option-img) {
  align-items: flex-start;
}

.mock-marks-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.mock-marks-badge.has-negative {
  border-color: var(--amber-border);
  background: var(--amber-soft);
  color: var(--amber);
}

.brand-wordmark {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0b1d45;
}

@media (min-width: 480px) {
  .brand-wordmark {
    font-size: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .brand-wordmark {
    font-size: 1.25rem;
  }
}

.brand-wordmark-cl {
  color: #1d63dc;
  margin-right: 4px;
}

.btn-cobalt {
  background: #1d63dc;
  color: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(29, 99, 220, 0.55);
}

.btn-cobalt:hover {
  background: #1651b8;
  transform: translateY(-1px);
}

/* Landing Hero */
.landing-hero {
  position: relative;
  background:
    radial-gradient(56% 72% at 86% 18%, rgba(29, 99, 220, 0.1) 0%, rgba(13, 148, 136, 0.04) 48%, transparent 78%),
    linear-gradient(180deg, #ffffff 0%, #f1f6ff 82%, #e9f1ff 100%);
  padding-top: 28px;
  padding-bottom: 72px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .landing-hero {
    padding-top: 52px;
    padding-bottom: 108px;
  }
}

.landing-hero-curve {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 44px;
  background: var(--bg-canvas);
  border-top-left-radius: 50% 44px;
  border-top-right-radius: 50% 44px;
  pointer-events: none;
}

.landing-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .landing-hero-grid {
    grid-template-columns: 6.1fr 5.9fr;
    gap: 44px;
  }
}

.landing-notice-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dbe6fb;
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  max-width: 100%;
  transition: border-color 150ms var(--ease), transform 150ms var(--ease);
}

.landing-notice-btn:hover {
  border-color: #1d63dc;
  transform: translateY(-1px);
}

.landing-notice-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #1d63dc;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.landing-hero-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: #0b1d45;
  max-width: 36rem;
}

.landing-typing-word {
  color: #1d63dc;
  display: inline;
}

.landing-typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-left: 2px;
  vertical-align: -0.08em;
  background: #1d63dc;
  animation: clCursorBlink 0.9s steps(2, start) infinite;
}

@keyframes clCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.landing-hero-desc {
  margin-top: 16px;
  font-size: 0.975rem;
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 34rem;
}

.landing-hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 639px) {
  .landing-hero-actions .btn {
    flex: 1 1 100%;
  }
}

.landing-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 6px 26px;
}

.landing-hero-svg-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.landing-stamp-badge {
  transform-box: fill-box;
  transform-origin: center;
  animation: clGentleSpin 12s linear infinite;
  will-change: transform;
}

@keyframes clGentleSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.landing-progress-card {
  position: absolute;
  right: 0;
  bottom: -6px;
  width: min(295px, 84%);
  background: #ffffff;
  border: 1px solid #dbe6fb;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 42px -14px rgba(11, 29, 69, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: clCardFloat 4.2s ease-in-out infinite;
}

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

/* Overlapping Dark Navy KPI Counter Band */
.landing-kpi-section {
  position: relative;
  z-index: 4;
  margin-top: -42px;
  padding-bottom: 16px;
}

@media (min-width: 1024px) {
  .landing-kpi-section {
    margin-top: -60px;
  }
}

.landing-kpi-bar {
  background: linear-gradient(135deg, #0b1d45 0%, #102a63 60%, #09183a 100%);
  border-radius: 18px;
  padding: 24px 20px;
  color: #ffffff;
  box-shadow: 0 22px 48px -20px rgba(11, 29, 69, 0.52);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

@media (min-width: 1024px) {
  .landing-kpi-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 28px 34px;
    gap: 24px;
  }
}

.landing-kpi-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.landing-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.landing-kpi-icon.is-blue { background: #1d63dc; }
.landing-kpi-icon.is-green { background: #16a34a; }
.landing-kpi-icon.is-red { background: #dc2626; }
.landing-kpi-icon.is-amber { background: #eab308; color: #0f172a; }

.landing-kpi-num {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.landing-kpi-label {
  margin-top: 3px;
  font-size: 0.8125rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Centered Section Header & Subtle Accent Chip */
.landing-section {
  padding-block: 52px;
}

@media (min-width: 1024px) {
  .landing-section {
    padding-block: 68px;
  }
}

.landing-section-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.landing-kicker-box {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d63dc;
  font-size: 0.78rem;
  font-weight: 700;
}

.landing-kicker-box.is-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(147, 197, 253, 0.35);
  color: #ffffff;
}

.landing-section-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #0b1d45;
}

.landing-section-sub {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Trending Categories Grid */
.landing-cat-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .landing-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .landing-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.landing-cat-card {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.landing-cat-card:hover {
  transform: translateY(-3px);
  border-color: #1d63dc;
  box-shadow: 0 18px 34px -18px rgba(29, 99, 220, 0.28);
}

.landing-cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d63dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Free Courses & Budget Callout Dark Navy Band */
.landing-free-band {
  position: relative;
  background: linear-gradient(160deg, #0b1d45 0%, #09183b 65%, #0e2356 100%);
  color: #ffffff;
  padding-block: 60px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .landing-free-band {
    padding-block: 76px;
  }
}

.landing-free-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .landing-free-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .landing-free-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-free-card {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 46px -22px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.landing-free-card:hover {
  transform: translateY(-3px);
}

.landing-free-cover {
  aspect-ratio: 16 / 10;
  background: #edf2f7;
  overflow: hidden;
}

.landing-free-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.landing-budget-banner {
  margin-top: 44px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(147, 197, 253, 0.22);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 768px) {
  .landing-budget-banner {
    flex-direction: row;
    align-items: center;
    padding: 28px 34px;
  }
}

.landing-inline-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.landing-inline-cta:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Instructors Band */
.landing-instructors-band {
  position: relative;
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
  padding-block: 60px;
  overflow: hidden;
}

.landing-instructor-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .landing-instructor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .landing-instructor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

.landing-instructor-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.landing-instructor-card:hover {
  transform: translateY(-2px);
  border-color: #1d63dc;
}

.landing-instructor-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d63dc 0%, #0d9488 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Blog & Articles Grid */
.landing-blog-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 768px) {
  .landing-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-blog-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.landing-blog-card:hover {
  transform: translateY(-3px);
  border-color: #1d63dc;
}

.landing-blog-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1d45;
}

.landing-blog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 29, 69, 0.65) 0%, transparent 55%);
  pointer-events: none;
}

.landing-blog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

/* Overlapping Newsletter + Deep Navy Footer */
.site-footer.site-footer--academy {
  position: relative;
  background: linear-gradient(180deg, #0b1d45 0%, #071330 100%);
  color: #cbd5e1;
  border-top: 0;
  margin-top: 48px;
  padding-top: 0;
  padding-bottom: 32px;
}

.app-shell.has-sticky-footer .site-footer.site-footer--academy {
  padding-bottom: calc(32px + 72px + env(safe-area-inset-bottom, 0px));
}

.newsletter-float-wrap {
  transform: translateY(-38px);
  margin-bottom: -8px;
}

.newsletter-float-card {
  background: #ffffff;
  border: 1px solid #dbe6fb;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 24px 48px -22px rgba(7, 19, 48, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .newsletter-float-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
  }
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
    align-items: center;
    width: auto;
    min-width: 390px;
  }
}

.academy-footer-grid {
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .academy-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .academy-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
  }
}

.academy-footer-heading {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.academy-footer-link {
  display: block;
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 36px;
  width: 100%;
  text-align: left;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms var(--ease);
}

.academy-footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.academy-footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #cbd5e1;
  padding-block: 5px;
}

.academy-footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

@media (min-width: 768px) {
  .academy-footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* Admin Header & Footer Menu Configurator */
.menu-editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-editor-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: border-color 150ms var(--ease), background 150ms var(--ease);
}

.menu-editor-row.is-hidden-item {
  background: var(--bg-canvas);
  border-style: dashed;
  opacity: 0.78;
}

@media (min-width: 900px) {
  .menu-editor-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

.menu-editor-order {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu-editor-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 0;
}

@media (min-width: 700px) {
  .menu-editor-fields {
    grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.1fr) minmax(170px, 1.1fr);
  }
}

.menu-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.menu-preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.menu-preview-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.menu-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
}

.menu-preview-footer {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #071330 0%, #0d204d 58%, #102a63 100%);
  color: #e2e8f0;
}

.menu-preview-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.menu-preview-footer-head {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.menu-preview-footer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.76rem;
  color: #cbd5e1;
}

.menu-preview-footer-bottom {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Notification Bell, Center Drawer & Offline Push Alert Toasts */
.notif-bell-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

@media (min-width: 768px) {
  .notif-bell-btn {
    width: 38px;
    height: 38px;
  }
}

.notif-bell-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.notif-bell-btn.has-unread {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--bg-surface);
}

@media (min-width: 768px) {
  .notif-badge {
    top: -5px;
    right: -5px;
  }
}

.push-toast-stack {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 80;
  width: min(380px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (max-width: 639px) {
  .push-toast-stack {
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    width: auto;
  }
}

.push-toast {
  pointer-events: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: 0 18px 36px -12px rgba(11, 19, 43, 0.24);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.push-toast.is-urgent {
  border-left-color: var(--red);
}

.push-toast.is-important {
  border-left-color: var(--amber);
}

.notif-drawer-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notif-drawer-item.is-unread {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  border-left-color: var(--accent);
}

.notif-drawer-item.is-urgent {
  border-left-color: var(--red);
}

.notif-drawer-item.is-important {
  border-left-color: var(--amber);
}

.notif-priority-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-canvas);
  color: var(--text-secondary);
}

.notif-priority-tag.is-urgent {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--red);
}

.notif-priority-tag.is-important {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

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

.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.password-toggle-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  color: var(--accent);
}

.password-toggle-btn[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.password-match-hint {
  margin-top: 5px;
  min-height: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.password-match-hint.is-match {
  color: var(--teal);
}

.password-match-hint.is-mismatch {
  color: var(--red);
}

.two-col-form > *,
.three-col-form > *,
.studio-grid > *,
.cert-designer-grid > *,
.kpi-cards > *,
.kpi-cards-3 > * {
  min-width: 0;
}

.adm-page-title {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 700;
}

.adm-pay-tabs {
  max-width: 680px;
}

@media (min-width: 640px) {
  .adm-pay-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.adm-filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

@media (min-width: 768px) {
  .adm-filter-controls {
    width: auto;
  }
}

.adm-filter-select {
  width: 100%;
}

.adm-search-inline,
.adm-search-wrap-sm {
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .adm-filter-select {
    width: auto;
    min-width: 150px;
  }

  .adm-search-inline,
  .adm-search-wrap-sm {
    width: 220px;
  }
}

.adm-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.adm-upload-row > .input,
.adm-flex-input {
  flex: 1 1 180px;
  min-width: 0;
}

.adm-inline-select {
  width: 100%;
  min-width: 0;
}

.adm-inline-price {
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .adm-inline-select {
    width: auto;
    min-width: 145px;
  }

  .adm-inline-price {
    width: 96px;
    margin-left: auto;
  }

  .adm-td-wide {
    max-width: 340px;
  }
}

.adm-file-input {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .adm-file-input {
    max-width: 340px;
  }
}

.adm-submit-end {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.adm-meta-right {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
}

@media (min-width: 640px) {
  .adm-meta-right {
    text-align: right;
  }
}

@media (max-width: 639px) {
  .adm-submit-end {
    justify-content: stretch;
  }

  .adm-submit-end > .btn {
    width: 100%;
  }

  .menu-preview-header,
  .menu-preview-footer {
    padding: 12px;
  }

  .menu-editor-row {
    padding: 10px 12px;
  }
}

/* Mock Test Sticky HUD ("Time Left" & "Exit Test") & Mobile Test Layout */
:root {
  --cl-site-header-h: 57px;
}

@media (min-width: 640px) {
  :root {
    --cl-site-header-h: 61px;
  }
}

@media (min-width: 1024px) {
  :root {
    --cl-site-header-h: 65px;
  }
}

.mock-info-card {
  background: var(--bg-surface);
}

.mock-sticky-hud {
  position: sticky;
  top: var(--cl-site-header-h, 57px);
  z-index: 36;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px -16px rgba(11, 19, 43, 0.24);
  overflow: hidden;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.mock-sticky-hud.is-low-time {
  border-color: #fca5a5;
  background: rgba(254, 242, 242, 0.97);
}

.mock-sticky-hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  min-height: 54px;
}

@media (min-width: 640px) {
  .mock-sticky-hud-row {
    padding: 10px 18px;
    gap: 16px;
    min-height: 60px;
  }
}

.mock-hud-timer-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.mock-hud-clock-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-sticky-hud.is-low-time .mock-hud-clock-icon {
  background: #ffffff;
  border-color: #fecaca;
  color: var(--red);
}

.mock-hud-timer-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mock-hud-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-muted);
}

.mock-hud-low-cue {
  color: var(--red);
  font-weight: 700;
}

.mock-hud-low-cue[hidden] {
  display: none;
}

.mock-hud-clock {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.mock-sticky-hud.is-low-time .mock-hud-clock {
  color: var(--red);
}

@media (min-width: 640px) {
  .mock-hud-clock {
    font-size: 1.25rem;
  }
  .mock-hud-label {
    font-size: 0.75rem;
  }
}

.mock-hud-exit-btn {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (min-width: 640px) {
  .mock-hud-exit-btn {
    padding: 0 16px;
    font-size: 0.875rem;
  }
}

.mock-hud-progress-track {
  width: 100%;
  height: 3px;
  background: var(--bg-subtle);
}

.mock-hud-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 180ms var(--ease);
}

.mock-sticky-hud.is-low-time .mock-hud-progress-fill {
  background: var(--red);
}

.mock-submit-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 639px) {
  .mock-info-card {
    padding: 14px;
  }
  .mock-question-card {
    padding: 14px;
  }
  .mock-hud-clock-icon {
    width: 30px;
    height: 30px;
  }
  .mock-hud-exit-btn {
    padding: 0 12px;
  }
  .mock-submit-card {
    flex-direction: column;
    align-items: stretch;
  }
  .mock-submit-card .btn {
    width: 100%;
    min-height: 48px;
  }
}

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