:root {
  --navy: #08154A;
  --navy-soft: #111E5A;
  --red: #D51635;
  --white: #FFFFFF;
  --offwhite: #F7F8FB;
  --line: #E6E9F2;
  --text: #101828;
  --muted: #667085;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }
pre, code, textarea { white-space: pre-wrap; word-break: break-word; }

.nav-link { color: rgba(255,255,255,.92); transition: color .2s ease; }
.nav-link:hover { color: #fecdd3; }
.mobile-nav-link { display: block; border-radius: .9rem; padding: .85rem 1rem; color: white; transition: background .2s ease; }
.mobile-nav-link:hover { background: rgba(255,255,255,.12); }

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgba(8,21,74,.06);
}
.btn-primary,
.btn-navy,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .85rem;
  padding: .75rem 1rem;
  font-weight: 800;
  line-height: 1.15;
  min-height: 2.75rem;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--red); color: white; box-shadow: 0 10px 18px rgba(213,22,53,.16); }
.btn-primary:hover { background: #b8122d; transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: white; box-shadow: 0 10px 18px rgba(8,21,74,.14); }
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-1px); }
.btn-light { background: white; color: var(--navy); border: 1px solid var(--line); }

.input,
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"],
select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: .75rem 1rem;
  background: white;
  color: var(--text);
  outline: none;
}
textarea { min-height: 9rem; resize: vertical; }
label { font-weight: 700; color: var(--navy); }
form p { margin: .75rem 0; }
form p label { display: block; margin-bottom: .35rem; }
.helptext { display: block; margin-top: .25rem; color: var(--muted); font-size: .85rem; }
ul.errorlist { margin: .5rem 0; color: var(--red); font-size: .9rem; }

.prose { max-width: 75ch; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 1rem; color: var(--navy); }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 850; margin-top: 1.6rem; color: var(--navy); }
.prose p { margin: .75rem 0; color: #344054; line-height: 1.75; }

.responsive-grid-3 { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 1.25rem; }
.responsive-grid-2 { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 1.25rem; }
.responsive-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.responsive-actions > * { width: 100%; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.code-editor { min-height: 14rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9rem; }

@media (min-width: 640px) {
  .responsive-actions > * { width: auto; }
}
@media (min-width: 768px) {
  .responsive-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
  .responsive-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .responsive-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .card { border-radius: 1rem; }
  .btn-primary, .btn-navy, .btn-light { width: 100%; }
  .mobile-compact { padding: 1rem !important; }
}







.chat-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  height: calc(100vh - 120px);
  min-height: 640px;
}

.chat-sidebar {
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(8, 21, 74, 0.08);
  overflow: hidden;
}

.chat-new-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #d51635;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(213, 22, 53, 0.22);
}

.chat-history-title {
  margin-top: 22px;
  margin-bottom: 12px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-history-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

.chat-history-item {
  display: block;
  padding: 12px;
  border-radius: 14px;
  color: #08154a;
  text-decoration: none;
  font-weight: 700;
  background: #f7f8fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-history-item.active,
.chat-history-item:hover {
  background: #08154a;
  color: #ffffff;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e6e9f2;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(8, 21, 74, 0.08);
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #e6e9f2;
  background: linear-gradient(135deg, #ffffff 0%, #f7f8fb 100%);
}

.chat-header h1 {
  margin: 0;
  color: #08154a;
  font-size: clamp(24px, 3vw, 36px);
}

.chat-header p {
  margin: 6px 0 0;
  color: #667085;
}

.chat-model-badge {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: #08154a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(213, 22, 53, 0.05), transparent 30%),
    #f7f8fb;
}

.chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: #08154a;
}

.chat-message.user .chat-avatar {
  background: #d51635;
}

.chat-bubble {
  max-width: min(760px, 85%);
  padding: 16px 18px;
  border-radius: 20px;
  background: #ffffff;
  color: #101828;
  box-shadow: 0 10px 30px rgba(8, 21, 74, 0.08);
  border: 1px solid #e6e9f2;
}

.chat-message.user .chat-bubble {
  background: #08154a;
  color: #ffffff;
  border-color: #08154a;
}

.chat-role {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  opacity: 0.75;
}

.markdown-content {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.markdown-content p {
  margin: 0 0 12px;
}

.markdown-content p:last-child {
  margin-bottom: 0;
}

.markdown-content pre {
  background: #0b1028;
  color: #ffffff;
  padding: 14px;
  border-radius: 14px;
  overflow-x: auto;
  max-width: 100%;
}

.markdown-content code {
  background: rgba(8, 21, 74, 0.08);
  padding: 2px 6px;
  border-radius: 8px;
}

.chat-message.user .markdown-content code {
  background: rgba(255, 255, 255, 0.16);
}

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid #e6e9f2;
  background: #ffffff;
}

.chat-input-area textarea {
  flex: 1;
  resize: none;
  min-height: 48px;
  max-height: 160px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d8dce8;
  font: inherit;
  outline: none;
}

.chat-input-area textarea:focus {
  border-color: #08154a;
  box-shadow: 0 0 0 4px rgba(8, 21, 74, 0.08);
}

.chat-input-area button {
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  background: #d51635;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.chat-input-area button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-welcome {
  max-width: 760px;
  margin: 40px auto;
  text-align: center;
  color: #08154a;
}

.chat-welcome h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.chat-welcome p {
  color: #667085;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.chat-suggestions button {
  border: 1px solid #e6e9f2;
  background: #ffffff;
  color: #08154a;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.chat-suggestions button:hover {
  border-color: #d51635;
  color: #d51635;
}

.chat-loader {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #d8dce8;
  border-top-color: #d51635;
  border-radius: 50%;
  animation: chat-spin 0.8s linear infinite;
}

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

@media (max-width: 900px) {
  .chat-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
  }

  .chat-sidebar {
    order: 2;
  }

  .chat-panel {
    min-height: 75vh;
  }

  .chat-history-list {
    max-height: 220px;
  }
}

@media (max-width: 640px) {
  .chat-shell {
    gap: 14px;
  }

  .chat-header {
    padding: 18px;
    flex-direction: column;
  }

  .chat-messages {
    padding: 16px;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .chat-avatar {
    display: none;
  }

  .chat-input-area {
    padding: 14px;
    flex-direction: column;
  }

  .chat-input-area textarea,
  .chat-input-area button {
    width: 100%;
  }
}
/* ===== Studio auteur / marketplace LMS v2 ===== */
.form-input,
.studio-form input,
.studio-form textarea,
.studio-form select,
.editor-pane input,
.editor-pane textarea,
.editor-pane select,
.inline-create input,
.inline-create select,
.inline-create textarea {
  width: 100%;
  border: 1px solid #d8dce8;
  border-radius: 14px;
  padding: 11px 13px;
  background: #fff;
  outline: none;
}
.form-input:focus,
.editor-pane textarea:focus,
.editor-pane input:focus,
.editor-pane select:focus {
  border-color: #08154a;
  box-shadow: 0 0 0 4px rgba(8, 21, 74, .08);
}
.studio-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid #e6e9f2;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #f7f8fb 100%);
  box-shadow: 0 24px 70px rgba(8, 21, 74, .08);
}
.studio-hero.compact { padding: 22px 26px; }
.studio-hero h1 { margin: 0; color: #08154a; font-size: clamp(28px, 4vw, 44px); font-weight: 950; letter-spacing: -.04em; }
.studio-hero p { color: #667085; margin-top: 8px; max-width: 760px; }
.eyebrow { margin: 0 0 6px !important; color: #d51635 !important; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.studio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.studio-stats article { border: 1px solid #e6e9f2; border-radius: 24px; background: #fff; padding: 20px; box-shadow: 0 16px 40px rgba(8,21,74,.06); }
.studio-stats strong { display: block; color: #08154a; font-size: 34px; font-weight: 950; }
.studio-stats span { color: #667085; font-weight: 800; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-head h2, .card h2 { color: #08154a; font-size: 24px; font-weight: 950; margin: 0; }
.section-head p { color: #667085; margin-top: 4px; }
.studio-course-list { display: grid; gap: 14px; margin-top: 16px; }
.studio-course-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid #edf0f7; border-radius: 22px; background: #fff; }
.studio-course-row h3 { margin: 8px 0 4px; color: #08154a; font-size: 21px; font-weight: 950; }
.studio-course-row p { color: #667085; margin: 0; }
.status-line { display: flex; gap: 8px; flex-wrap: wrap; color: #667085; font-size: 13px; font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; }
.status-draft, .status-manual_draft { background: #fff7e6; color: #9a5b00; }
.status-submitted, .status-ready { background: #eaf1ff; color: #194185; }
.status-published, .status-approved { background: #e8f8ef; color: #027a48; }
.status-rejected, .status-archived { background: #fff0f3; color: #c0102f; }
.studio-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.studio-sidebar { position: sticky; top: 88px; display: grid; gap: 8px; }
.studio-sidebar h3 { color: #08154a; font-weight: 950; }
.studio-sidebar a { padding: 10px 12px; border-radius: 12px; color: #08154a; text-decoration: none; font-weight: 800; background: #f7f8fb; }
.studio-sidebar a:hover { background: #08154a; color: #fff; }
.studio-main { min-width: 0; }
.inline-create { display: grid; grid-template-columns: 1fr 120px auto; gap: 12px; align-items: end; }
.inline-create p { margin: 0; }
.module-builder { display: grid; gap: 16px; }
.module-card { border: 1px solid #edf0f7; border-radius: 24px; padding: 18px; background: #fbfcff; }
.module-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.module-head h3 { color: #08154a; font-size: 20px; font-weight: 950; margin: 0; }
.lesson-list { display: grid; gap: 10px; }
.lesson-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border-radius: 16px; background: #fff; border: 1px solid #edf0f7; }
.lesson-row strong { display: block; color: #08154a; }
.lesson-row span { display: block; color: #667085; font-size: 13px; }
.lesson-row a, .mini-row a { color: #d51635; font-weight: 900; text-decoration: none; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 24px; align-items: start; }
.editor-pane p, .studio-form p, .form-grid p { margin-bottom: 14px; }
.editor-pane label, .studio-form label, .form-grid label { display: block; margin-bottom: 6px; color: #08154a; font-weight: 900; }
.preview-pane { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
.markdown-preview { line-height: 1.75; color: #101828; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { color: #08154a; font-weight: 950; margin: 1em 0 .4em; }
.markdown-preview pre, .exercise-preview pre, .runner-result pre { padding: 14px; border-radius: 16px; background: #081026; color: #fff; overflow-x: auto; }
.code-textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.runner-result { border-radius: 18px; padding: 16px; border: 1px solid #e6e9f2; background: #f7f8fb; }
.runner-result.status-success { border-color: #9ee6bd; background: #e8f8ef; }
.runner-result.status-failed, .runner-result.status-error { border-color: #ffc2cc; background: #fff0f3; }
.quiz-preview ul { display: grid; gap: 10px; margin-top: 16px; padding: 0; list-style: none; }
.quiz-preview li { border: 1px solid #e6e9f2; border-radius: 14px; padding: 12px; background: #fff; font-weight: 800; }
.quiz-preview li.correct { border-color: #0b9f5a; color: #027a48; background: #e8f8ef; }
.stack-list { display: grid; gap: 10px; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: #f7f8fb; }
.profile-menu { position: relative; }
.profile-trigger { display:flex; align-items:center; gap:10px; border:0; border-radius:999px; padding:6px 10px 6px 6px; background:rgba(255,255,255,.10); color:#fff; cursor:pointer; }
.profile-avatar { width:38px; height:38px; border-radius:999px; background:#d51635; display:grid; place-items:center; font-weight:950; overflow:hidden; }
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-meta { display:flex; flex-direction:column; line-height:1.1; text-align:left; max-width:150px; }
.profile-meta strong { font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-meta small { font-size:11px; opacity:.75; }
.profile-dropdown { position:absolute; right:0; top:calc(100% + 12px); width:270px; padding:10px; border-radius:20px; background:#fff; color:#08154a; border:1px solid #e6e9f2; box-shadow:0 24px 70px rgba(8,21,74,.22); }
.profile-dropdown a, .profile-dropdown button { display:block; width:100%; text-align:left; padding:10px 12px; border-radius:12px; color:#08154a; text-decoration:none; font-weight:850; background:transparent; border:0; cursor:pointer; }
.profile-dropdown a:hover, .profile-dropdown button:hover { background:#f7f8fb; }
.profile-dropdown hr { border:0; border-top:1px solid #edf0f7; margin:8px 0; }
.profile-dropdown-head { padding:12px; border-bottom:1px solid #edf0f7; margin-bottom:8px; }
.profile-dropdown-head strong { display:block; }
.profile-dropdown-head span { display:block; color:#667085; font-size:13px; word-break:break-all; }
@media (max-width: 1024px) { .studio-layout, .editor-layout { grid-template-columns: 1fr; } .studio-sidebar, .preview-pane { position: static; max-height: none; } }
@media (max-width: 720px) { .studio-hero, .studio-course-row, .lesson-row, .module-head { flex-direction: column; align-items: stretch; } .studio-stats { grid-template-columns: 1fr; } .inline-create { grid-template-columns: 1fr; } }

/* ===== CampusCode navigation v3 ===== */
.cc-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #08154a;
  color: #fff;
  box-shadow: 0 14px 34px rgba(8, 21, 74, .18);
}
.cc-header__inner {
  max-width: 1280px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.cc-brand {
  color: #fff;
  text-decoration: none;
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 950;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.cc-brand span { color: #d51635; }
.cc-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1;
}
.cc-main-nav a {
  color: rgba(255,255,255,.94);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}
.cc-main-nav a:hover {
  color: #fff;
  border-color: #d51635;
}
.cc-actions { display: flex; align-items: center; gap: 12px; }
.cc-login { color: #fff; font-weight: 850; text-decoration: none; }
.cc-register { color: #fff; background: #d51635; border-radius: 999px; padding: 10px 14px; font-weight: 900; text-decoration: none; }
.cc-profile { position: relative; }
.cc-profile__trigger {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.cc-profile__trigger:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); transform: translateY(-1px); }
.cc-profile__avatar,
.cc-dropdown__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #d51635, #ff4965);
  font-weight: 950;
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
}
.cc-profile__avatar img,
.cc-dropdown__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cc-profile__identity {
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}
.cc-profile__identity strong { max-width: 100%; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-profile__identity small { font-size: 11px; opacity: .74; }
.cc-profile__chevron { opacity: .78; font-size: 12px; }
.cc-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 320px;
  padding: 12px;
  color: #08154a;
  background: #fff;
  border: 1px solid #e6e9f2;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(8,21,74,.24);
}
.cc-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 32px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid #e6e9f2;
  border-top: 1px solid #e6e9f2;
  transform: rotate(45deg);
}
.cc-dropdown__user {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f8fb, #fff);
  border: 1px solid #edf0f7;
  margin-bottom: 10px;
}
.cc-dropdown__user strong,
.cc-dropdown__user span,
.cc-dropdown__user em { display: block; }
.cc-dropdown__user strong { font-size: 15px; font-weight: 950; }
.cc-dropdown__user span { color: #667085; font-size: 13px; word-break: break-all; }
.cc-dropdown__user em { color: #d51635; font-style: normal; font-size: 12px; font-weight: 900; margin-top: 3px; }
.cc-dropdown__section { border-top: 1px solid #edf0f7; padding: 8px 0; }
.cc-dropdown__section:first-of-type { border-top: 0; }
.cc-dropdown__label {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 7px 12px 4px;
}
.cc-dropdown a,
.cc-dropdown__logout button {
  display: flex;
  width: 100%;
  align-items: center;
  border: 0;
  background: transparent;
  color: #08154a;
  text-decoration: none;
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.cc-dropdown a:hover,
.cc-dropdown__logout button:hover { background: #f7f8fb; }
.cc-dropdown__logout { border-top: 1px solid #edf0f7; padding-top: 8px; }
.cc-dropdown__logout button { color: #d51635; }
.cc-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 950;
}
.cc-mobile {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.cc-mobile a,
.cc-mobile button {
  display: block;
  width: 100%;
  text-align: left;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 14px;
  font-weight: 850;
  background: transparent;
  border: 0;
}
.cc-mobile a:hover,
.cc-mobile button:hover { background: rgba(255,255,255,.10); }
.cc-mobile__cta { background: #d51635 !important; }

/* ===== W3Schools-like private code playground ===== */
.tryit-shell { display: grid; gap: 18px; }
.tryit-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e6e9f2;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff, #f7f8fb);
  box-shadow: 0 20px 60px rgba(8,21,74,.08);
}
.tryit-header h1 { margin: 0; color: #08154a; font-size: clamp(30px, 4vw, 48px); font-weight: 950; letter-spacing: -.05em; }
.tryit-header p { color: #667085; margin-top: 6px; max-width: 760px; }
.tryit-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tryit-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.tryit-tabs button {
  border: 1px solid #e6e9f2;
  background: #fff;
  color: #08154a;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.tryit-tabs button.active { background: #08154a; color: #fff; border-color: #08154a; }
.tryit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 18px; min-height: 62vh; }
.tryit-editor,
.tryit-output { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.tryit-pane-title {
  min-height: 54px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f7;
}
.tryit-pane-title strong { color: #08154a; font-weight: 950; }
.tryit-pane-title span { color: #667085; font-size: 13px; font-weight: 900; }
#codeEditor {
  flex: 1;
  min-height: 460px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  padding: 18px;
  background: #081026;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  white-space: pre;
  overflow: auto;
}
.tryit-helper { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; color: #667085; font-size: 12px; font-weight: 800; border-top: 1px solid #edf0f7; }
#runOutput {
  flex: 1;
  min-height: 460px;
  margin: 0;
  border-radius: 0;
  padding: 18px;
  background: #fff;
  color: #101828;
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
#webPreview { flex: 1; width: 100%; min-height: 460px; border: 0; background: #fff; }
.tryit-error { margin: 12px; padding: 12px; border-radius: 14px; background: #fff0f3; color: #b8122d; font-weight: 800; }
.tryit-context { color: #344054; }
.lesson-reader { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.lesson-reader__sidebar { position: sticky; top: 88px; }
.lesson-reader__sidebar h3 { color: #08154a; font-weight: 950; }
.lesson-reader__sidebar p { color: #667085; margin-top: 4px; }
.lesson-reader__main { min-width: 0; }
.exercise-student-card__head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.exercise-student-card__head h2 { color: #08154a; font-size: 24px; font-weight: 950; }
.exercise-student-card__head p { color: #667085; margin-top: 6px; max-width: 820px; }

@media (max-width: 1060px) {
  .cc-main-nav { display: none; }
  .cc-burger { display: grid; place-items: center; }
  .cc-mobile { display: grid; gap: 4px; }
  .cc-header__inner { padding: 0 16px; }
  .cc-brand { flex: 1; }
}
@media (max-width: 760px) {
  .cc-profile__identity,
  .cc-profile__chevron { display: none; }
  .cc-dropdown { right: -54px; width: min(320px, calc(100vw - 28px)); }
  .tryit-header { align-items: stretch; flex-direction: column; }
  .tryit-actions > * { width: 100%; }
  .tryit-layout, .lesson-reader { grid-template-columns: 1fr; }
  .lesson-reader__sidebar { position: static; }
  .exercise-student-card__head { flex-direction: column; }
  #codeEditor, #runOutput, #webPreview { min-height: 340px; }
}

/* ===== Enhanced landing page ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0 1rem;
  min-height: min(84vh, 860px);
}
.home-hero__bg {
  position: absolute;
  inset: -1rem -3rem auto -3rem;
  height: calc(100% + 4rem);
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: .75;
  transition: transform .35s ease-out;
}
.hero-orb--red {
  width: 340px;
  height: 340px;
  top: 8%;
  left: -80px;
  background: radial-gradient(circle, rgba(213,22,53,.34), rgba(213,22,53,0) 70%);
}
.hero-orb--blue {
  width: 420px;
  height: 420px;
  right: -100px;
  top: 10%;
  background: radial-gradient(circle, rgba(8,21,74,.25), rgba(8,21,74,0) 70%);
}
.hero-grid {
  position: absolute;
  inset: 4% 10% auto auto;
  width: 480px;
  height: 480px;
  background-image:
    linear-gradient(rgba(8,21,74,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 80%);
}
.home-hero__content,
.home-hero__visual {
  position: relative;
  z-index: 2;
}
.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
}
.home-hero h1 {
  margin: 1rem 0 1rem;
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: .95;
  letter-spacing: -0.05em;
  font-weight: 950;
  color: var(--navy);
}
.home-hero h1 span {
  display: inline-block;
  color: var(--red);
}
.home-hero p {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.75rem;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.hero-metric {
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(8,21,74,.08);
  border-radius: 1.15rem;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 28px rgba(8,21,74,.06);
}
.hero-metric strong {
  display: block;
  font-size: .95rem;
  color: var(--navy);
}
.hero-metric span {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.hero-stack {
  position: relative;
  min-height: 560px;
  transition: transform .35s ease-out;
}
.hero-glass,
.hero-card {
  transition: transform .35s ease-out, box-shadow .3s ease;
}
.hero-glass {
  position: absolute;
  top: 0;
  left: 2rem;
  right: 0;
  padding: 1rem;
  border-radius: 1.9rem;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 30px 80px rgba(8,21,74,.14);
  backdrop-filter: blur(24px);
}
.hero-window__topbar {
  display: flex;
  gap: .4rem;
  padding: .35rem .2rem .85rem;
}
.hero-window__topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dbe0ef;
}
.hero-window__topbar span:first-child { background: #ff7b86; }
.hero-window__topbar span:nth-child(2) { background: #ffd46b; }
.hero-window__topbar span:nth-child(3) { background: #61df92; }
.hero-window__body {
  padding: 1rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, #0d1a54 0%, #08154A 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.code-line {
  height: 12px;
  border-radius: 999px;
  margin-bottom: .85rem;
  background: rgba(255,255,255,.13);
}
.code-line.accent { background: rgba(255,255,255,.23); }
.code-line.w-90 { width: 90%; }
.code-line.w-80 { width: 80%; }
.code-line.w-75 { width: 75%; }
.code-line.w-70 { width: 70%; }
.code-line.w-55 { width: 55%; }
.hero-window__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1rem .35rem .2rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .8rem;
  font-weight: 800;
  color: var(--navy);
  background: rgba(8,21,74,.06);
}
.pill.success {
  color: #0c7a41;
  background: rgba(97,223,146,.18);
}
.hero-card {
  position: absolute;
  border: 1px solid rgba(8,21,74,.08);
  border-radius: 1.6rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(8,21,74,.14);
}
.hero-card--progress {
  bottom: 0;
  left: 0;
  width: 260px;
  padding: 1.2rem;
}
.hero-card__label {
  color: var(--navy);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.progress-ring {
  width: 112px;
  height: 112px;
  margin: 1rem auto;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 280deg, rgba(8,21,74,.08) 280deg 360deg);
  display: grid;
  place-items: center;
}
.progress-ring::before {
  content: '';
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: white;
  position: absolute;
}
.progress-ring__center {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
}
.hero-card--progress ul {
  display: grid;
  gap: .8rem;
}
.hero-card--progress li {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: var(--muted);
  font-size: .9rem;
}
.hero-card--progress li strong {
  color: var(--navy);
  font-weight: 900;
}
.hero-card--floating {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.05rem;
  min-width: 240px;
}
.hero-card--certificate {
  top: 3rem;
  right: 1rem;
}
.hero-card--market {
  bottom: 2.5rem;
  right: -1rem;
}
.badge-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8,21,74,.08);
  color: var(--navy);
  font-weight: 900;
}
.badge-icon--red {
  background: rgba(213,22,53,.14);
  color: var(--red);
}
.hero-card--floating strong,
.hero-card--floating span {
  display: block;
}
.hero-card--floating strong { color: var(--navy); }
.hero-card--floating span {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .12rem;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(8,21,74,.08);
  background: rgba(255,255,255,.8);
  box-shadow: 0 18px 40px rgba(8,21,74,.05);
}
.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(8,21,74,.04);
  color: var(--navy);
  font-weight: 800;
  font-size: .88rem;
}

.landing-section {
  padding: 5rem 0 0;
}
.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}
.section-heading h2 {
  margin: .75rem 0 .8rem;
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}
.section-heading p {
  color: var(--muted);
  line-height: 1.8;
}
.feature-grid,
.audience-grid,
.how-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature-card,
.audience-card,
.how-card,
.testimonial-card {
  position: relative;
  padding: 1.4rem;
  border-radius: 1.5rem;
  background: white;
  border: 1px solid rgba(8,21,74,.08);
  box-shadow: 0 18px 42px rgba(8,21,74,.06);
}
.feature-card {
  overflow: hidden;
  transform-style: preserve-3d;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -45% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,22,53,.10), rgba(213,22,53,0) 70%);
}
.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(8,21,74,.08), rgba(213,22,53,.10));
  font-size: 1.6rem;
}
.feature-card h3,
.audience-card h3,
.how-card h3 {
  margin-top: 1rem;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
}
.feature-card p,
.audience-card li,
.how-card p,
.testimonial-card p {
  margin-top: .8rem;
  color: var(--muted);
  line-height: 1.75;
}
.audience-card__head {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.audience-badge {
  display: inline-flex;
  width: fit-content;
  padding: .38rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  color: var(--red);
  background: rgba(213,22,53,.08);
}
.audience-card ul {
  margin-top: 1rem;
  display: grid;
  gap: .8rem;
}
.audience-card li {
  position: relative;
  padding-left: 1.3rem;
  margin-top: 0;
}
.audience-card li::before {
  content: '';
  position: absolute;
  top: .55rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 2rem;
}
.showcase-copy p {
  color: var(--muted);
  line-height: 1.85;
}
.showcase-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.showcase-points div {
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: white;
  border: 1px solid rgba(8,21,74,.08);
  box-shadow: 0 12px 30px rgba(8,21,74,.05);
}
.showcase-points strong {
  display: block;
  color: var(--navy);
  font-weight: 900;
}
.showcase-points span {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
}
.showcase-visual { min-width: 0; }
.studio-mockup {
  padding: 1rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 28px 72px rgba(8,21,74,.12);
  backdrop-filter: blur(22px);
}
.studio-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}
.studio-chip {
  display: inline-flex;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: rgba(8,21,74,.05);
  color: var(--navy);
  font-weight: 800;
  font-size: .88rem;
}
.studio-chip.active {
  color: white;
  background: var(--navy);
}
.studio-editor {
  padding: 1rem;
  border-radius: 1.5rem;
  background: #0b174d;
}
.studio-toolbar {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.studio-toolbar__title {
  margin-left: .6rem;
}
.studio-panels {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  margin-top: 1rem;
}
.studio-panel {
  border-radius: 1.3rem;
  padding: 1rem;
  background: white;
}
.studio-panel.soft {
  background: linear-gradient(180deg, #f8f9fd, #eef2f9);
}
.mini-title,
.mini-line,
.mini-code,
.mini-answer {
  border-radius: .9rem;
  background: #e9edf6;
}
.mini-title { width: 58%; height: 20px; margin-bottom: .8rem; }
.mini-line { height: 12px; margin-bottom: .75rem; }
.w-95 { width: 95%; }
.w-85 { width: 85%; }
.w-70 { width: 70%; }
.mini-code { height: 90px; margin: .95rem 0; background: #111e5a; }
.quiz-pill {
  display: inline-flex;
  padding: .38rem .7rem;
  border-radius: 999px;
  background: rgba(97,223,146,.18);
  color: #0f7a49;
  font-size: .8rem;
  font-weight: 900;
  margin-bottom: .9rem;
}
.mini-answer {
  height: 44px;
  margin-top: .7rem;
}
.mini-answer.active {
  background: linear-gradient(135deg, rgba(8,21,74,.9), rgba(213,22,53,.78));
}

.how-card {
  padding-top: 4rem;
  overflow: hidden;
}
.step-no {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 950;
  letter-spacing: -0.08em;
  color: rgba(8,21,74,.08);
}
.courses-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.testimonial-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-meta {
  margin-top: 1.4rem;
}
.testimonial-meta strong,
.testimonial-meta span {
  display: block;
}
.testimonial-meta strong {
  color: var(--navy);
  font-weight: 900;
}
.testimonial-meta span { color: var(--muted); }

.landing-cta {
  margin: 5rem 0 2rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #08154A 0%, #132269 65%, #D51635 180%);
  color: white;
  box-shadow: 0 30px 70px rgba(8,21,74,.18);
}
.landing-cta h2 {
  margin: .65rem 0 .8rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}
.landing-cta p { color: rgba(255,255,255,.78); }
.landing-cta .section-kicker { color: rgba(255,255,255,.78); }
.landing-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.landing-cta .btn-navy {
  background: white;
  color: var(--navy);
}
.landing-cta .btn-light {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  color: white;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-card--certificate,
.hero-card--market {
  animation: floatY 6s ease-in-out infinite;
}
.hero-card--market { animation-delay: 1.2s; }

@media (max-width: 1279px) {
  .hero-metrics,
  .feature-grid,
  .audience-grid,
  .how-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .split-showcase,
  .home-hero {
    grid-template-columns: 1fr;
  }
  .home-hero__visual { order: -1; }
  .home-hero h1 { max-width: 12ch; }
  .hero-stack { min-height: 520px; max-width: 720px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .landing-section { padding-top: 4rem; }
  .home-hero {
    gap: 1.75rem;
    min-height: auto;
    padding-top: 1.5rem;
  }
  .home-hero h1 { max-width: none; }
  .hero-metrics,
  .feature-grid,
  .audience-grid,
  .how-grid,
  .testimonial-grid,
  .studio-panels {
    grid-template-columns: 1fr;
  }
  .hero-stack {
    min-height: 480px;
    width: 100%;
  }
  .hero-glass { left: 0; }
  .hero-card--progress {
    position: relative;
    width: 100%;
    left: auto;
    bottom: auto;
    margin-top: 1rem;
  }
  .hero-card--certificate {
    top: auto;
    right: .5rem;
    bottom: 7.5rem;
  }
  .hero-card--market {
    right: .25rem;
    bottom: 1rem;
  }
  .courses-section__head,
  .landing-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .home-hero__bg { inset-inline: -1rem; }
  .hero-cta-row,
  .landing-cta__actions {
    width: 100%;
  }
  .hero-cta-row > a,
  .landing-cta__actions > a { width: 100%; }
  .hero-stack {
    min-height: 460px;
  }
  .hero-card--floating {
    min-width: 0;
    width: calc(100% - 1rem);
  }
  .hero-card--certificate {
    right: .5rem;
    top: auto;
    bottom: 8.2rem;
  }
  .hero-card--market {
    right: .5rem;
    bottom: 1rem;
  }
  .trust-bar { justify-content: flex-start; }
  .landing-cta {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
}


/* ===== Full width Tommy-inspired landing correction ===== */

/* The base layout limits pages to max-w-7xl. The homepage needs a full-screen
   commercial landing layout while keeping readable inner content widths. */
.home-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -2rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 42%, #ffffff 100%);
}

.home-page .home-hero,
.home-page .trust-bar,
.home-page .landing-section,
.home-page .landing-cta {
  width: min(100% - 48px, 1540px);
  margin-left: auto;
  margin-right: auto;
}

.home-page .home-hero {
  padding-top: clamp(3rem, 5vw, 5.5rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

/* Tommy Hilfiger-inspired, not copied: navy / white / red ribbon accent */
.hilfiger-stripe {
  position: absolute;
  top: clamp(1.4rem, 2vw, 2rem);
  left: 50%;
  z-index: 3;
  width: min(520px, 60vw);
  height: 10px;
  display: grid;
  grid-template-columns: 1fr .8fr 1fr;
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(8, 21, 74, .10);
  opacity: .9;
}
.hilfiger-stripe span:nth-child(1) { background: #08154A; }
.hilfiger-stripe span:nth-child(2) { background: #FFFFFF; }
.hilfiger-stripe span:nth-child(3) { background: #D51635; }

/* Correct the red gradient that was eating into the left content margin. */
.home-hero__bg {
  inset: 0 calc(50% - 50vw) auto calc(50% - 50vw);
  height: 100%;
}
.hero-orb--red {
  width: 480px;
  height: 480px;
  top: 3%;
  left: max(-260px, calc((100vw - 1540px) / 2 - 240px));
  opacity: .38;
  filter: blur(44px);
}
.hero-orb--blue {
  width: 620px;
  height: 620px;
  right: max(-300px, calc((100vw - 1540px) / 2 - 280px));
  top: 0%;
  opacity: .32;
  filter: blur(50px);
}

/* Stronger full-screen composition on desktop */
@media (min-width: 1280px) {
  .home-page .home-hero {
    grid-template-columns: minmax(520px, .92fr) minmax(620px, 1.08fr);
    gap: clamp(4rem, 6vw, 8rem);
  }

  .home-hero h1 {
    font-size: clamp(4.6rem, 5.4vw, 7rem);
    max-width: 11.2ch;
  }

  .home-hero p {
    max-width: 46rem;
    font-size: 1.1rem;
  }

  .hero-stack {
    min-height: 650px;
  }

  .hero-glass {
    left: clamp(2rem, 4vw, 5rem);
    right: clamp(0rem, 2vw, 2rem);
    transform: scale(1.04);
  }

  .hero-card--progress {
    width: 300px;
    left: 0;
    bottom: 1rem;
  }

  .hero-card--certificate {
    top: 3.5rem;
    right: 0;
  }

  .hero-card--market {
    right: 0;
    bottom: 4rem;
  }
}

/* Make the next blocks feel like sections, not small floating islands. */
.home-page .landing-section {
  padding-top: clamp(5rem, 7vw, 8rem);
}
.feature-grid,
.audience-grid,
.how-grid,
.testimonial-grid {
  gap: clamp(1.1rem, 2vw, 1.75rem);
}
.feature-card,
.audience-card,
.how-card,
.testimonial-card,
.hero-metric,
.card {
  border-color: rgba(8, 21, 74, .09);
}

/* Better button style in the navy/red/white theme */
.btn-primary {
  background: linear-gradient(135deg, #D51635 0%, #B8122D 100%);
}
.btn-navy {
  background: linear-gradient(135deg, #08154A 0%, #111E5A 100%);
}
.btn-primary:hover,
.btn-navy:hover {
  box-shadow: 0 18px 34px rgba(8, 21, 74, .16);
}

/* Full-width CTA should look like a real conversion band */
.home-page .landing-cta {
  width: min(100% - 48px, 1540px);
  margin-top: clamp(5rem, 7vw, 8rem);
  margin-bottom: 3rem;
  padding: clamp(2rem, 4vw, 4rem);
  background:
    linear-gradient(90deg, #08154A 0 42%, #FFFFFF 42% 58%, #D51635 58% 100%);
  color: #08154A;
  border: 1px solid rgba(8, 21, 74, .08);
}
.home-page .landing-cta .section-kicker,
.home-page .landing-cta p {
  color: rgba(8, 21, 74, .70);
}
.home-page .landing-cta h2 {
  color: #08154A;
  max-width: 850px;
}
.home-page .landing-cta .btn-navy {
  background: #08154A;
  color: white;
}

/* Course cards gain a more premium hover without being noisy */
.home-page .responsive-grid-3 .card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-page .responsive-grid-3 .card:hover {
  transform: translateY(-6px);
  border-color: rgba(213, 22, 53, .24);
  box-shadow: 0 26px 60px rgba(8, 21, 74, .12);
}

@media (max-width: 900px) {
  .home-page {
    margin-top: -1.5rem;
  }
  .home-page .home-hero,
  .home-page .trust-bar,
  .home-page .landing-section,
  .home-page .landing-cta {
    width: min(100% - 28px, 1540px);
  }
  .hilfiger-stripe {
    width: min(420px, calc(100vw - 48px));
    height: 8px;
  }
  .hero-orb--red {
    left: -260px;
    opacity: .24;
  }
  .hero-orb--blue {
    right: -320px;
    opacity: .22;
  }
  .home-page .landing-cta {
    background: linear-gradient(135deg, #08154A 0%, #132269 55%, #D51635 160%);
    color: white;
  }
  .home-page .landing-cta h2,
  .home-page .landing-cta .section-kicker,
  .home-page .landing-cta p {
    color: white;
  }
  .home-page .landing-cta p {
    opacity: .82;
  }
}

@media (max-width: 640px) {
  .home-page .home-hero,
  .home-page .trust-bar,
  .home-page .landing-section,
  .home-page .landing-cta {
    width: min(100% - 24px, 1540px);
  }
  .home-hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }
}


/* ===== Global typography + navbar/footer polish ===== */
:root {
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Consistent hierarchy across the whole app */
h1,
h2,
h3,
h4,
.brand,
.cc-brand,
.cc-footer__logo {
  font-family: var(--font-display);
  letter-spacing: -0.045em;
}

main h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.02;
  font-weight: 950;
  color: var(--navy);
}

main h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  line-height: 1.08;
  font-weight: 930;
  color: var(--navy);
}

main h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  line-height: 1.2;
  font-weight: 880;
  color: var(--navy);
}

p,
li {
  font-size: 1rem;
  line-height: 1.72;
}

small,
.text-sm {
  line-height: 1.55;
}

.btn-primary,
.btn-navy,
.btn-light,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

/* Navbar: larger, stronger, more consistent with the landing scale */
.cc-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  background: #08154A;
  box-shadow: 0 14px 34px rgba(8, 21, 74, .18);
}

.cc-header__inner {
  width: min(100% - 48px, 1540px);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
}

.cc-brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.65rem, 1.7vw, 2.05rem);
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.cc-brand span {
  color: #D51635;
}

.cc-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.3rem, 2vw, 2.25rem);
  margin-left: auto;
  margin-right: auto;
}

.cc-main-nav a {
  position: relative;
  color: rgba(255,255,255,.94);
  text-decoration: none;
  font-size: clamp(.98rem, .75vw, 1.08rem);
  line-height: 1;
  font-weight: 860;
  letter-spacing: -0.015em;
  padding: 1.85rem 0;
  transition: color .18s ease, transform .18s ease;
}

.cc-main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.2rem;
  height: 3px;
  border-radius: 999px;
  background: #D51635;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.cc-main-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

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

.cc-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.cc-login {
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
}

.cc-register {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .7rem 1.05rem;
  border-radius: 999px;
  background: #D51635;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(213, 22, 53, .22);
}

.cc-profile__trigger {
  min-height: 54px;
  padding: .45rem .75rem .45rem .45rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
}

.cc-profile__avatar,
.cc-dropdown__avatar {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  font-weight: 950;
}

.cc-profile__identity strong {
  font-size: .98rem;
  line-height: 1.05;
  font-weight: 900;
}

.cc-profile__identity small {
  font-size: .78rem;
  font-weight: 750;
  opacity: .82;
}

.cc-dropdown {
  width: 310px;
  border-radius: 24px;
  padding: .8rem;
  box-shadow: 0 30px 80px rgba(8,21,74,.24);
}

.cc-dropdown__user {
  padding: .85rem;
}

.cc-dropdown__user strong {
  font-size: 1.05rem;
}

.cc-dropdown__user span,
.cc-dropdown__user em {
  font-size: .88rem;
}

.cc-dropdown__label {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 950;
  color: var(--muted);
}

.cc-dropdown a,
.cc-dropdown__logout button {
  min-height: 42px;
  font-size: .98rem;
  font-weight: 850;
  border-radius: 14px;
}

/* Make base main spacing consistent below taller nav */
main.mx-auto {
  padding-top: clamp(2rem, 3vw, 3rem);
}

/* Homepage offset correction after taller nav */
.home-page {
  margin-top: calc(-1 * clamp(2rem, 3vw, 3rem));
}

/* Footer */
.cc-footer {
  margin-top: clamp(4rem, 7vw, 7rem);
  background:
    linear-gradient(135deg, #08154A 0%, #0d1b59 58%, #111E5A 100%);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.10);
}

.cc-footer__inner {
  width: min(100% - 48px, 1540px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.cc-footer__logo {
  display: inline-flex;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  font-weight: 950;
  line-height: 1;
}

.cc-footer__logo span {
  color: #D51635;
}

.cc-footer__brand p {
  max-width: 460px;
  margin-top: 1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.8;
}

.cc-footer__stripe {
  width: min(280px, 100%);
  height: 12px;
  display: grid;
  grid-template-columns: 1fr .8fr 1fr;
  margin-top: 1.5rem;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0,0,0,.20);
}

.cc-footer__stripe span:nth-child(1) { background: #061142; }
.cc-footer__stripe span:nth-child(2) { background: #fff; }
.cc-footer__stripe span:nth-child(3) { background: #D51635; }

.cc-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.cc-footer__col h3 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 950;
  margin-bottom: 1rem;
}

.cc-footer__col a {
  display: block;
  width: fit-content;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .98rem;
  font-weight: 700;
  margin-top: .7rem;
  transition: color .18s ease, transform .18s ease;
}

.cc-footer__col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.cc-footer__bottom {
  width: min(100% - 48px, 1540px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.62);
  font-size: .92rem;
  font-weight: 650;
}

/* Responsive navbar/footer */
@media (max-width: 1100px) {
  .cc-header__inner {
    width: min(100% - 32px, 1540px);
  }

  .cc-main-nav {
    gap: 1rem;
  }

  .cc-profile__identity {
    display: none;
  }
}

@media (max-width: 760px) {
  .cc-header {
    min-height: 68px;
  }

  .cc-header__inner {
    min-height: 68px;
  }

  .cc-brand {
    font-size: 1.5rem;
  }

  .cc-main-nav {
    display: none;
  }

  .cc-login {
    display: none;
  }

  .cc-register {
    min-height: 38px;
    font-size: .9rem;
    padding: .6rem .85rem;
  }

  .cc-burger {
    display: inline-flex;
  }

  .cc-mobile {
    width: min(100% - 32px, 1540px);
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    padding: .75rem;
  }

  .cc-mobile a,
  .cc-mobile button {
    display: block;
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 12px;
    color: #fff;
    text-align: left;
    font-weight: 800;
  }

  .cc-footer__inner,
  .cc-footer__bottom {
    width: min(100% - 32px, 1540px);
  }

  .cc-footer__inner {
    grid-template-columns: 1fr;
  }

  .cc-footer__cols {
    grid-template-columns: 1fr;
  }

  .cc-footer__bottom {
    flex-direction: column;
  }
}

@media (min-width: 761px) {
  .cc-burger,
  .cc-mobile {
    display: none !important;
  }
}

/* ===== Global grid / gradient background system ===== */
body {
  position: relative;
  background:
    radial-gradient(circle at 12% 14%, rgba(213,22,53,.06), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(8,21,74,.05), transparent 30%),
    linear-gradient(180deg, #fbfcfe 0%, #f4f6fb 48%, #fbfcfe 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .75;
  background:
    radial-gradient(circle at 20% 12%, rgba(213,22,53,.05), transparent 24%),
    radial-gradient(circle at 80% 22%, rgba(8,21,74,.05), transparent 26%),
    linear-gradient(rgba(8,21,74,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.045) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
  background-position: center, center, center, center;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.95) 0%, rgba(0,0,0,.82) 45%, rgba(0,0,0,.35) 75%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 8% 65%, rgba(213,22,53,.04), transparent 24%),
    radial-gradient(circle at 92% 72%, rgba(8,21,74,.04), transparent 22%);
}

body > * {
  position: relative;
  z-index: 1;
}

/* Section-level subtle grid cards / backgrounds */
main,
.home-page,
.cc-footer {
  position: relative;
}

.landing-section,
.trust-bar,
.landing-cta,
.card,
.feature-card,
.audience-card,
.how-card,
.testimonial-card,
.cc-footer__brand,
.cc-footer__col {
  position: relative;
  overflow: hidden;
}

.landing-section::before,
.trust-bar::before,
.landing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(8,21,74,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.55) 0%, transparent 85%);
}

.landing-section > *,
.trust-bar > *,
.landing-cta > * {
  position: relative;
  z-index: 1;
}

/* Slightly more visible grid on the footer for premium feel */
.cc-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.85) 0%, transparent 85%);
}

.cc-footer > * {
  position: relative;
  z-index: 1;
}

/* Keep the effect elegant on mobile */
@media (max-width: 900px) {
  body::before {
    opacity: .45;
    background-size: auto, auto, 24px 24px, 24px 24px;
  }

  .landing-section::before,
  .trust-bar::before,
  .landing-cta::before,
  .cc-footer::before {
    background-size: 22px 22px;
  }
}

/* ===== Stronger grid visibility + dynamic CTA fix ===== */
/* Make the global grid more visible on light backgrounds without becoming noisy */
body::before {
  opacity: .96;
  background:
    radial-gradient(circle at 20% 12%, rgba(213,22,53,.07), transparent 26%),
    radial-gradient(circle at 80% 22%, rgba(8,21,74,.07), transparent 28%),
    linear-gradient(rgba(8,21,74,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.07) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}

.landing-section::before,
.trust-bar::before,
.landing-cta::before {
  background-image:
    linear-gradient(rgba(8,21,74,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.04) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .9;
}

/* Give some key light surfaces a faint micro-grid */
.feature-card::before,
.audience-card::before,
.how-card::before,
.testimonial-card::before,
.responsive-grid-3 .card::before,
.hero-metric::before,
.trust-bar span::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(8,21,74,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.028) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.55) 0%, transparent 82%);
}
.feature-card > *,
.audience-card > *,
.how-card > *,
.testimonial-card > *,
.responsive-grid-3 .card > *,
.hero-metric > *,
.trust-bar span > * {
  position: relative;
  z-index: 1;
}

/* Rebuild the final CTA so text never blends with the background */
.home-page .landing-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2.2rem, 4vw, 3.6rem);
  border-radius: 2.2rem;
  border: 1px solid rgba(8,21,74,.10);
  background: linear-gradient(90deg, rgba(8,21,74,1) 0 34%, rgba(255,255,255,1) 34% 66%, rgba(213,22,53,1) 66% 100%);
  box-shadow: 0 34px 80px rgba(8,21,74,.14);
}

.home-page .landing-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 50%, rgba(255,255,255,.08), transparent 28%),
    radial-gradient(circle at 82% 50%, rgba(255,255,255,.10), transparent 28%);
}

.home-page .landing-cta > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(1.4rem, 2vw, 2rem) clamp(1.2rem, 2.5vw, 2rem);
  border-radius: 1.6rem;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(8,21,74,.10);
}

.home-page .landing-cta .section-kicker {
  color: #D51635;
}

.home-page .landing-cta h2 {
  color: #08154A;
  max-width: 13ch;
  text-wrap: balance;
}

.home-page .landing-cta p {
  color: #475467;
  max-width: 58ch;
}

.home-page .landing-cta__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  padding: 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(8,21,74,.10);
}

.home-page .landing-cta__actions .btn-primary {
  box-shadow: 0 14px 28px rgba(213,22,53,.18);
}

.home-page .landing-cta__actions .btn-navy {
  background: #08154A;
  color: #fff;
  box-shadow: 0 14px 28px rgba(8,21,74,.16);
}

@media (max-width: 980px) {
  .home-page .landing-cta {
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, #08154A 0%, #132269 52%, #D51635 120%);
  }

  .home-page .landing-cta > div:first-child {
    max-width: none;
  }

  .home-page .landing-cta h2,
  .home-page .landing-cta p {
    max-width: none;
  }

  .home-page .landing-cta__actions {
    justify-content: stretch;
    width: 100%;
    border-radius: 1.4rem;
  }

  .home-page .landing-cta__actions a {
    flex: 1 1 220px;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  body::before {
    opacity: .62;
    background-size: auto, auto, 24px 24px, 24px 24px;
  }

  .landing-section::before,
  .trust-bar::before,
  .landing-cta::before,
  .cc-footer::before {
    background-size: 22px 22px;
  }
}


/* ===== Final CTA premium redesign ===== */
/* This overrides the previous tricolor block which felt too flat and split the text awkwardly. */
.home-page .landing-cta--premium {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, .8fr) auto;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3rem);
  min-height: 360px;
  padding: clamp(2rem, 4vw, 4.25rem);
  overflow: hidden;
  border-radius: 2.4rem;
  border: 1px solid rgba(8,21,74,.10);
  background:
    radial-gradient(circle at 22% 40%, rgba(255,255,255,.92), rgba(255,255,255,.60) 26%, transparent 42%),
    linear-gradient(90deg, #08154A 0 32%, #ffffff 32% 61%, #D51635 61% 100%);
  box-shadow: 0 34px 90px rgba(8,21,74,.16);
}

.home-page .landing-cta--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8,21,74,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

.home-page .landing-cta--premium::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px;
  border-radius: 2rem;
  border: 1px solid rgba(255,255,255,.38);
  pointer-events: none;
}

.home-page .landing-cta--premium .cta-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  border-radius: 1.9rem;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 26px 70px rgba(8,21,74,.16);
  backdrop-filter: blur(18px);
}

.home-page .landing-cta--premium .cta-copy::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 0;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #08154A 0 36%, #fff 36% 54%, #D51635 54% 100%);
  box-shadow: 0 10px 24px rgba(8,21,74,.14);
}

.home-page .landing-cta--premium .section-kicker {
  color: #D51635;
}

.home-page .landing-cta--premium h2 {
  max-width: 12.5ch;
  margin: .75rem 0 .9rem;
  color: #08154A;
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.home-page .landing-cta--premium p {
  max-width: 54ch;
  color: #52627a;
  line-height: 1.75;
}

.cta-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.3rem;
}

.cta-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(8,21,74,.06);
  color: #08154A;
  font-size: .85rem;
  font-weight: 900;
}

.cta-benefits span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: .45rem;
  border-radius: 50%;
  background: #D51635;
}

.cta-visual {
  position: relative;
  z-index: 1;
  min-height: 280px;
}

.cta-code-card {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(390px, 100%);
  transform: translate(-50%, -50%) rotate(-2deg);
  padding: 1rem;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, #101d59 0%, #071247 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 65px rgba(8,21,74,.24);
}

.cta-code-top {
  display: flex;
  gap: .35rem;
  margin-bottom: .9rem;
}

.cta-code-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}

.cta-code-top span:first-child { background: #ff7b86; }
.cta-code-top span:nth-child(2) { background: #ffd46b; }
.cta-code-top span:nth-child(3) { background: #61df92; }

.cta-code-card pre {
  margin: 0;
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  font-size: .95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.cta-mini-card {
  position: absolute;
  z-index: 2;
  width: 250px;
  padding: 1rem;
  border-radius: 1.3rem;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(8,21,74,.08);
  box-shadow: 0 22px 52px rgba(8,21,74,.16);
  backdrop-filter: blur(12px);
}

.cta-mini-card strong,
.cta-mini-card span {
  display: block;
}

.cta-mini-card strong {
  color: #08154A;
  font-size: 1rem;
  font-weight: 950;
}

.cta-mini-card span {
  margin-top: .25rem;
  color: #667085;
  font-size: .88rem;
  font-weight: 750;
}

.cta-mini-card--top {
  top: 0;
  left: 0;
  transform: rotate(2deg);
}

.cta-mini-card--bottom {
  right: 0;
  bottom: .2rem;
  width: 220px;
  transform: rotate(-2deg);
}

.cta-progress {
  height: 9px;
  margin-top: .8rem;
  border-radius: 999px;
  background: rgba(8,21,74,.08);
  overflow: hidden;
}

.cta-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #08154A, #D51635);
}

.home-page .landing-cta--premium .cta-actions {
  position: relative;
  z-index: 3;
  display: grid;
  gap: .8rem;
  min-width: 210px;
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 20px 45px rgba(8,21,74,.14);
  backdrop-filter: blur(14px);
}

.home-page .landing-cta--premium .cta-actions a {
  width: 100%;
  white-space: nowrap;
}

.home-page .landing-cta--premium .btn-primary {
  background: #D51635;
}

.home-page .landing-cta--premium .btn-navy {
  background: #08154A;
  color: #fff;
}

/* subtle motion */
@keyframes ctaFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.cta-mini-card--top,
.cta-mini-card--bottom {
  animation: ctaFloat 6s ease-in-out infinite;
}

.cta-mini-card--bottom {
  animation-delay: 1.2s;
}

@media (max-width: 1180px) {
  .home-page .landing-cta--premium {
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, #08154A 0%, #ffffff 48%, #D51635 130%);
  }

  .cta-visual {
    min-height: 330px;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .home-page .landing-cta--premium .cta-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .home-page .landing-cta--premium .cta-actions a {
    flex: 1 1 220px;
  }
}

@media (max-width: 640px) {
  .home-page .landing-cta--premium {
    padding: 1.2rem;
    border-radius: 1.6rem;
  }

  .home-page .landing-cta--premium .cta-copy {
    padding: 1.2rem;
    border-radius: 1.3rem;
  }

  .home-page .landing-cta--premium h2 {
    max-width: none;
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .cta-visual {
    min-height: 360px;
  }

  .cta-code-card {
    width: 100%;
  }

  .cta-mini-card {
    width: min(260px, 86%);
  }

  .cta-mini-card--top {
    left: .2rem;
  }

  .cta-mini-card--bottom {
    right: .2rem;
  }

  .home-page .landing-cta--premium .cta-actions {
    padding: .85rem;
    border-radius: 1.2rem;
  }

  .home-page .landing-cta--premium .cta-actions a {
    flex-basis: 100%;
  }
}


/* ===== CTA designer refinement ===== */
.home-page .landing-cta--premium {
  grid-template-columns: minmax(440px, 1.02fr) minmax(420px, .98fr);
  gap: clamp(1.6rem, 3vw, 3.5rem);
  min-height: 380px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background:
    linear-gradient(90deg, #0a1a5c 0 28%, #fbfbfd 28% 64%, #d91539 64% 100%);
}
.home-page .landing-cta--premium::before {
  background-size: 26px 26px;
  opacity: .9;
}
.home-page .landing-cta--premium::after {
  inset: 20px;
  border-radius: 2.1rem;
  border-color: rgba(255,255,255,.32);
}
.home-page .landing-cta--premium .cta-copy {
  max-width: 720px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 2.6vw, 2.35rem);
  border-radius: 1.8rem;
}
.home-page .landing-cta--premium .cta-copy::before {
  left: 1.5rem;
  right: 1.5rem;
}
.home-page .landing-cta--premium h2 {
  max-width: 10.5ch;
  font-size: clamp(2.7rem, 4.2vw, 4.35rem);
  line-height: .93;
}
.home-page .landing-cta--premium p {
  max-width: 52ch;
}
.home-page .landing-cta--premium .cta-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.home-page .landing-cta--premium .cta-actions a {
  width: auto;
  min-width: 215px;
  justify-content: center;
}
.cta-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.1rem;
  margin-top: 1rem;
  color: #667085;
  font-size: .9rem;
  font-weight: 800;
}
.cta-trustline span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.cta-trustline span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D51635;
}
.cta-showcase {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-code-card {
  width: min(420px, 100%);
  transform: rotate(-2.2deg);
  margin: 0 auto;
}
.cta-code-card pre {
  font-size: 1rem;
  line-height: 1.62;
}
.cta-showcase__card {
  position: absolute;
  z-index: 2;
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(8,21,74,.08);
  box-shadow: 0 22px 52px rgba(8,21,74,.14);
  backdrop-filter: blur(10px);
}
.cta-showcase__card strong,
.cta-showcase__card span {
  display: block;
}
.cta-showcase__card strong {
  color: #08154A;
  font-size: 1.02rem;
  font-weight: 950;
}
.cta-showcase__card span {
  margin-top: .22rem;
  color: #667085;
  font-size: .88rem;
  font-weight: 760;
}
.cta-showcase__card--progress {
  top: 1.1rem;
  left: 0;
  width: 245px;
  transform: rotate(2.2deg);
}
.cta-showcase__card--reward {
  right: .2rem;
  bottom: 3.3rem;
  width: 220px;
  transform: rotate(-3deg);
}
.cta-showcase__rail {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(8,21,74,.10);
}
.cta-showcase__rail span {
  color: #fff;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .01em;
}
.cta-showcase__rail i {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}
/* Retire older CTA animation bindings and only keep subtle floating on showcase cards */
.cta-showcase__card--progress,
.cta-showcase__card--reward {
  animation: ctaFloat 6s ease-in-out infinite;
}
.cta-showcase__card--reward { animation-delay: 1.25s; }

@media (max-width: 1180px) {
  .home-page .landing-cta--premium {
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, #08154A 0%, #ffffff 48%, #D51635 130%);
  }
  .cta-showcase {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }
}
@media (max-width: 760px) {
  .home-page .landing-cta--premium {
    padding: 1.1rem;
    border-radius: 1.6rem;
  }
  .home-page .landing-cta--premium .cta-copy {
    padding: 1.15rem;
    border-radius: 1.3rem;
  }
  .home-page .landing-cta--premium h2 {
    max-width: none;
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }
  .home-page .landing-cta--premium .cta-actions a {
    min-width: 0;
    flex: 1 1 100%;
  }
  .cta-showcase {
    min-height: 360px;
  }
  .cta-showcase__card--progress {
    left: .3rem;
    width: min(240px, 78%);
  }
  .cta-showcase__card--reward {
    right: .3rem;
    bottom: 3.8rem;
    width: min(220px, 72%);
  }
  .cta-showcase__rail {
    left: .2rem;
    right: .2rem;
    gap: .35rem;
    flex-wrap: wrap;
    border-radius: 1rem;
  }
}


/* ===== Hero balance fix + remove top incoherent ribbon ===== */

/* The small blue/white/red stripe under the navbar was visually disconnected from the rest.
   Keep the brand colors in the layout, but remove this decorative band. */
.hilfiger-stripe {
  display: none !important;
}

/* Better hero scale: the previous H1 was too tall and dominated the page.
   This keeps impact while restoring balance with the paragraph, buttons and right visual. */
@media (min-width: 1280px) {
  .home-page .home-hero {
    grid-template-columns: minmax(500px, .92fr) minmax(640px, 1.08fr);
    min-height: min(76vh, 760px);
    padding-top: clamp(3rem, 4vw, 4.6rem);
    padding-bottom: clamp(2.2rem, 3vw, 3.4rem);
    align-items: center;
  }

  .home-hero h1 {
    max-width: 12.4ch;
    font-size: clamp(4.1rem, 4.45vw, 5.85rem) !important;
    line-height: .94;
    letter-spacing: -.052em;
    margin-top: .85rem;
    margin-bottom: 1.1rem;
  }

  .home-hero p {
    max-width: 48rem;
    font-size: clamp(1.08rem, 1.1vw, 1.24rem);
    line-height: 1.72;
  }

  .hero-kicker {
    font-size: .92rem;
    letter-spacing: .09em;
  }

  .hero-cta-row {
    margin-top: 1.35rem;
  }

  .hero-metrics {
    margin-top: 1.65rem;
  }

  .hero-metric {
    padding: .95rem 1rem;
  }

  .hero-stack {
    min-height: 560px;
  }

  .hero-glass {
    top: 2.1rem;
    left: clamp(3rem, 5vw, 6rem);
    right: clamp(1rem, 3vw, 3rem);
    transform: scale(.96);
  }

  .hero-card--progress {
    width: 260px;
    left: 2rem;
    bottom: 1.2rem;
    transform: scale(.96);
  }

  .hero-card--certificate {
    top: 3rem;
    right: 2.5rem;
    transform: scale(.96);
  }

  .hero-card--market {
    right: 2.3rem;
    bottom: 3.4rem;
    transform: scale(.96);
  }
}

/* On very wide screens, avoid the title becoming gigantic again. */
@media (min-width: 1600px) {
  .home-hero h1 {
    font-size: 5.6rem !important;
  }

  .home-page .home-hero {
    width: min(100% - 72px, 1480px);
  }
}

/* Tablet: keep readable hierarchy and avoid text tower effect. */
@media (min-width: 900px) and (max-width: 1279px) {
  .home-page .home-hero {
    min-height: auto;
    gap: 2rem;
  }

  .home-hero h1 {
    max-width: 13ch;
    font-size: clamp(3.5rem, 6vw, 4.8rem) !important;
  }

  .home-hero p {
    font-size: 1.05rem;
  }

  .hero-stack {
    min-height: 500px;
  }
}

/* Mobile keeps impact but avoids excessive vertical title blocks. */
@media (max-width: 899px) {
  .home-hero h1 {
    max-width: 12.5ch;
    font-size: clamp(3rem, 13vw, 4.4rem) !important;
    line-height: .96;
  }

  .home-hero p {
    font-size: 1rem;
    line-height: 1.7;
  }
}


/* ============================================================
   CampusCode Global Design Polish
   Same DA logic across the whole site:
   - balanced typography
   - visible but subtle technical grid
   - navy / white / red brand system
   - coherent cards, forms, empty states, dashboards and builders
   ============================================================ */

:root {
  --cc-navy: #08154A;
  --cc-navy-2: #111E5A;
  --cc-red: #D51635;
  --cc-red-2: #B8122D;
  --cc-bg: #F7F8FB;
  --cc-surface: rgba(255,255,255,.92);
  --cc-line: rgba(8,21,74,.10);
  --cc-text: #101828;
  --cc-muted: #667085;
  --cc-shadow-sm: 0 12px 30px rgba(8,21,74,.06);
  --cc-shadow-md: 0 22px 55px rgba(8,21,74,.10);
  --cc-shadow-lg: 0 34px 90px rgba(8,21,74,.15);
  --cc-radius: 1.35rem;
  --cc-radius-lg: 1.9rem;
}

/* Global readable type scale */
html { font-size: 16px; }
body {
  background:
    radial-gradient(circle at 12% 10%, rgba(213,22,53,.055), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(8,21,74,.055), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 45%, #ffffff 100%);
  color: var(--cc-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .74;
  background-image:
    linear-gradient(rgba(8,21,74,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.85) 0%, rgba(0,0,0,.58) 55%, transparent 100%);
}

body > * { position: relative; z-index: 1; }

main.mx-auto {
  width: min(100% - 48px, 1480px) !important;
  max-width: 1480px !important;
  padding-top: clamp(2.2rem, 3vw, 3.2rem) !important;
  padding-bottom: clamp(3rem, 5vw, 5.5rem) !important;
}

/* Never let normal pages use hero-sized H1. Home keeps its own hero overrides. */
main:not(.home-page) h1,
main > h1,
.card h1,
.tryit-header h1,
.studio-hero h1 {
  font-size: clamp(2.35rem, 3.6vw, 4rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  font-weight: 950 !important;
  color: var(--cc-navy) !important;
}

main h2,
.card h2,
.section-head h2 {
  font-size: clamp(1.45rem, 2vw, 2.15rem) !important;
  line-height: 1.1 !important;
  font-weight: 920 !important;
  letter-spacing: -.035em !important;
  color: var(--cc-navy) !important;
}

main h3,
.card h3 {
  font-size: clamp(1.08rem, 1.25vw, 1.28rem);
  line-height: 1.2;
  font-weight: 880;
  color: var(--cc-navy);
}

main p,
main li {
  font-size: 1rem;
  line-height: 1.72;
}

/* Consistent panels/cards */
.card,
.tryit-editor,
.tryit-output,
.studio-course-row,
.mini-row,
.rounded-xl.border,
.rounded-2xl.border {
  border: 1px solid var(--cc-line) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)) !important;
  border-radius: var(--cc-radius) !important;
  box-shadow: var(--cc-shadow-sm) !important;
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before,
.studio-course-row::before,
.tryit-editor::before,
.tryit-output::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8,21,74,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.028) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.50) 0%, transparent 84%);
}

.card > *,
.studio-course-row > *,
.tryit-editor > *,
.tryit-output > * {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn-primary,
.btn-navy,
.btn-light {
  min-height: 46px;
  padding: .82rem 1.08rem;
  border-radius: .95rem;
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: -.015em;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cc-red), var(--cc-red-2)) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(213,22,53,.20) !important;
}

.btn-navy {
  background: linear-gradient(135deg, var(--cc-navy), var(--cc-navy-2)) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(8,21,74,.18) !important;
}

.btn-light {
  background: rgba(255,255,255,.92) !important;
  color: var(--cc-navy) !important;
  border: 1px solid var(--cc-line) !important;
}

.btn-primary:hover,
.btn-navy:hover,
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-md) !important;
}

/* Forms */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
  min-height: 48px;
  border: 1px solid rgba(8,21,74,.13) !important;
  border-radius: 1rem !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(213,22,53,.42) !important;
  box-shadow: 0 0 0 4px rgba(213,22,53,.09) !important;
}

label {
  font-size: .95rem;
  font-weight: 880;
  color: var(--cc-navy);
}

/* Header/nav polish */
.cc-header {
  box-shadow: 0 14px 38px rgba(8,21,74,.20);
}

.cc-main-nav a {
  font-size: 1rem !important;
  font-weight: 860 !important;
}

.cc-login,
.cc-register {
  font-size: 1rem !important;
}

/* Page intro pattern for existing pages without template rewrite */
main > h1:first-child,
main > div:first-child h1:first-child,
main > section:first-child h1:first-child {
  margin-bottom: .35rem;
}

main > h1:first-child + p,
main > div:first-child p,
main > section:first-child p {
  color: var(--cc-muted);
}

/* Catalog */
form.card[method="get"] {
  align-items: end;
  padding: 1.1rem !important;
  border-radius: 1.4rem !important;
}

.responsive-grid-3 {
  gap: clamp(1.1rem, 2vw, 1.7rem) !important;
}

/* Course cards */
.course-card {
  min-height: 290px;
  padding: 1.4rem !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.course-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.35rem;
  right: 1.35rem;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--cc-navy) 0 42%, #fff 42% 58%, var(--cc-red) 58% 100%);
  opacity: .95;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(213,22,53,.24) !important;
  box-shadow: var(--cc-shadow-md) !important;
}

.course-card h3 {
  margin-top: .75rem !important;
  font-size: clamp(1.28rem, 1.6vw, 1.55rem) !important;
  line-height: 1.12;
}

.course-card p {
  color: var(--cc-muted);
}

/* Course detail page */
main > .card:first-child {
  padding: clamp(1.5rem, 3vw, 3rem) !important;
}

main > .card:first-child h1 {
  max-width: 14ch;
}

main > .card:first-child p {
  max-width: 72ch;
  font-size: 1.05rem;
}

/* Modules/lesson rows */
.mt-8.space-y-5 section.card {
  padding: 1.35rem !important;
}

.mt-8.space-y-5 section.card a.block,
.mt-8.space-y-5 section.card div.block {
  border-radius: 1rem !important;
  border-color: rgba(8,21,74,.10) !important;
  background: rgba(255,255,255,.66);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.mt-8.space-y-5 section.card a.block:hover {
  transform: translateX(4px);
  background: rgba(8,21,74,.04) !important;
  border-color: rgba(213,22,53,.22) !important;
}

/* Dashboard */
.responsive-grid-2 {
  gap: clamp(1.1rem, 2vw, 1.7rem) !important;
}

.dashboard-metric,
main .card .rounded-3xl {
  background:
    radial-gradient(circle at top right, rgba(213,22,53,.18), transparent 32%),
    linear-gradient(135deg, var(--cc-navy), var(--cc-navy-2)) !important;
  color: #fff !important;
  box-shadow: var(--cc-shadow-md);
}

main .card .rounded-3xl span,
main .card .rounded-3xl div {
  color: #fff !important;
}

/* Auth pages */
.auth-page {
  min-height: min(70vh, 720px);
  display: grid;
  place-items: center;
}

.auth-page > .card {
  width: min(100%, 480px);
  padding: clamp(1.5rem, 4vw, 2.5rem) !important;
}

.auth-page > .card h1 {
  text-align: center;
  margin-bottom: 1.4rem !important;
}

/* Studio */
.studio-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 3rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(213,22,53,.18), transparent 32%),
    linear-gradient(135deg, #fff, #f5f7fc);
  border: 1px solid var(--cc-line);
  box-shadow: var(--cc-shadow-sm);
}

.studio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8,21,74,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.58), transparent 85%);
}

.studio-hero > * { position: relative; z-index: 1; }

.eyebrow {
  color: var(--cc-red) !important;
  font-weight: 950 !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .86rem;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.studio-stats article {
  padding: 1.2rem;
  border-radius: 1.3rem;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--cc-line);
  box-shadow: var(--cc-shadow-sm);
}

.studio-stats strong {
  display: block;
  color: var(--cc-navy);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  font-weight: 950;
}

.studio-stats span {
  display: block;
  margin-top: .35rem;
  color: var(--cc-muted);
  font-weight: 800;
}

.studio-course-list,
.stack-list {
  display: grid;
  gap: .9rem;
}

.studio-course-row,
.mini-row {
  padding: 1.15rem !important;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--cc-muted);
  font-weight: 750;
  font-size: .9rem;
}

.status-pill,
.rounded-full {
  font-weight: 900 !important;
}

/* Runner/playground */
.tryit-shell {
  display: grid;
  gap: 1.1rem;
}

.tryit-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(213,22,53,.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
  border: 1px solid var(--cc-line);
  box-shadow: var(--cc-shadow-sm);
}

.tryit-layout {
  gap: 1.1rem !important;
}

.tryit-tabs {
  padding: .6rem;
  border-radius: 1.3rem;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--cc-line);
  box-shadow: var(--cc-shadow-sm);
}

.tryit-tabs button {
  min-height: 42px;
}

.tryit-tabs button.active {
  background: var(--cc-navy) !important;
}

#codeEditor {
  background:
    radial-gradient(circle at top right, rgba(213,22,53,.10), transparent 28%),
    #071022 !important;
  color: #f8fafc !important;
  min-height: 520px;
}

#runOutput,
#webPreview {
  min-height: 520px;
}

/* Tables/list pages */
.divide-y > div,
.border-b {
  border-color: rgba(8,21,74,.10) !important;
}

.table-scroll table,
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

table th {
  color: var(--cc-navy);
  font-weight: 900;
}

table td,
table th {
  padding: .9rem;
  border-bottom: 1px solid rgba(8,21,74,.08);
}

/* Empty states */
p:only-child,
.card p:last-child:first-child {
  color: var(--cc-muted);
}

/* Footer refinement */
.cc-footer {
  margin-top: clamp(4rem, 7vw, 7rem);
}

/* Home final CTA glass cleanup from latest feedback */
.hilfiger-stripe { display: none !important; }

.cta-showcase__rail {
  background: rgba(255,255,255,.93) !important;
  border: 1px solid rgba(8,21,74,.10) !important;
  box-shadow: 0 14px 30px rgba(8,21,74,.12) !important;
  backdrop-filter: blur(8px) !important;
}

.cta-showcase__rail span {
  background: rgba(8,21,74,.055) !important;
  color: var(--cc-navy) !important;
}

.cta-showcase__rail span:first-child {
  background: rgba(213,22,53,.12) !important;
  color: var(--cc-red) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  main.mx-auto {
    width: min(100% - 32px, 1480px) !important;
  }

  .studio-hero,
  .tryit-header,
  .studio-course-row {
    flex-direction: column;
    align-items: stretch;
  }

  .studio-stats {
    grid-template-columns: 1fr;
  }

  .tryit-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  main.mx-auto {
    width: min(100% - 24px, 1480px) !important;
  }

  main:not(.home-page) h1,
  main > h1,
  .card h1,
  .tryit-header h1,
  .studio-hero h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem) !important;
  }

  .card,
  .studio-hero,
  .tryit-header {
    border-radius: 1.25rem !important;
  }

  .btn-primary,
  .btn-navy,
  .btn-light {
    width: 100%;
  }

  #codeEditor,
  #runOutput,
  #webPreview {
    min-height: 360px;
  }
}


/* ============================================================
   Home alignment consistency fix
   Problem: the hero and the following sections used different max-width rules.
   Result: H1 looked shifted compared with the rest of the page.
   Fix: one shared landing container width + explicit left alignment.
   ============================================================ */

.home-page {
  --home-container: min(100% - 64px, 1480px);
}

/* Every major home block now uses exactly the same horizontal container. */
.home-page .home-hero,
.home-page .trust-bar,
.home-page .landing-section,
.home-page .landing-cta {
  width: var(--home-container) !important;
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Remove the previous wide-screen exception that made only the hero narrower. */
@media (min-width: 1600px) {
  .home-page .home-hero,
  .home-page .trust-bar,
  .home-page .landing-section,
  .home-page .landing-cta {
    width: var(--home-container) !important;
    max-width: 1480px !important;
  }
}

/* The hero text column must start on the same left grid as the sections below. */
.home-hero__content {
  justify-self: start !important;
  width: 100%;
  max-width: 640px;
}

/* The title keeps impact but no longer creates an artificial left/right imbalance. */
@media (min-width: 1280px) {
  .home-page .home-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
    column-gap: clamp(3rem, 5vw, 6rem) !important;
  }

  .home-hero h1 {
    max-width: 11.7ch !important;
  }
}

/* Section headings also explicitly align to the shared left grid. */
.section-heading,
.courses-section__head,
.showcase-copy {
  margin-left: 0 !important;
}

/* Avoid the trust bar visually creating a fake offset before the next section. */
.home-page .trust-bar {
  margin-top: clamp(1.6rem, 3vw, 2.6rem) !important;
}

/* Responsive container uses the same rule everywhere. */
@media (max-width: 900px) {
  .home-page {
    --home-container: min(100% - 32px, 1480px);
  }
}

@media (max-width: 640px) {
  .home-page {
    --home-container: min(100% - 24px, 1480px);
  }

  .home-hero__content {
    max-width: none;
  }
}


/* ===== Exercise sandbox integration ===== */
.exercise-lab-card {
  border-color: rgba(213, 22, 53, .16) !important;
}

.exercise-lab-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(213,22,53,.10), transparent 34%),
    linear-gradient(135deg, rgba(8,21,74,.055), rgba(255,255,255,.84));
  border: 1px solid rgba(8,21,74,.10);
}

.exercise-lab-preview strong,
.exercise-lab-preview span {
  display: block;
}

.exercise-lab-preview strong {
  color: var(--cc-navy, #08154A);
  font-weight: 950;
}

.exercise-lab-preview span {
  margin-top: .25rem;
  color: var(--cc-muted, #667085);
}

.exercise-fallback {
  border-top: 1px solid rgba(8,21,74,.10);
  padding-top: 1rem;
}

.exercise-fallback summary {
  cursor: pointer;
  color: var(--cc-navy, #08154A);
  font-weight: 900;
}

.exercise-mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background:
    radial-gradient(circle at 92% 16%, rgba(213,22,53,.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.84)) !important;
}

.exercise-mode-card strong {
  color: var(--cc-navy, #08154A);
  font-weight: 950;
}

.exercise-mode-card p {
  color: var(--cc-muted, #667085);
}

.exercise-mode-card > span {
  max-width: 420px;
  padding: .8rem 1rem;
  border-radius: 1rem;
  background: rgba(8,21,74,.06);
  color: var(--cc-navy, #08154A);
  font-weight: 800;
}

.tryit-success {
  background: rgba(16, 185, 129, .12) !important;
  color: #047857 !important;
}

@media (max-width: 900px) {
  .exercise-lab-preview,
  .exercise-mode-card {
    flex-direction: column;
    align-items: stretch;
  }

  .exercise-lab-preview__actions .btn-navy {
    width: 100%;
  }
}


/* ===== Course organization dashboard + bubble UX ===== */
.author-dashboard {
  display: grid;
  gap: 1.3rem;
}
.author-dashboard__head,
.course-command-center {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.author-dashboard__head h2,
.command-card h2 {
  color: var(--cc-navy, #08154A);
}
.author-filter-bubbles,
.bubble-cloud,
.step-bubbles,
.tag-cheatsheet,
.bubble-list,
.lesson-bubble__chips,
.select-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.author-filter-bubbles span,
.bubble-cloud span,
.step-bubbles a,
.tag-cheatsheet span,
.bubble-link,
.bubble-muted,
.select-chip-cloud button,
.lesson-bubble__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(8,21,74,.10);
  background: rgba(255,255,255,.86);
  color: var(--cc-navy, #08154A);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(8,21,74,.05);
}
.author-filter-bubbles .active,
.select-chip-cloud button.active,
.step-bubbles a:hover,
.bubble-link:hover,
.lesson-bubble__chips a:hover {
  background: var(--cc-navy, #08154A);
  color: #fff;
}
.course-org-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.course-org-card,
.command-card,
.module-board-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(8,21,74,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(8,21,74,.07);
}
.course-org-card::before,
.command-card::before,
.module-board-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(8,21,74,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(8,21,74,.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.6), transparent 84%);
}
.course-org-card > *,
.command-card > *,
.module-board-card > * {
  position: relative;
  z-index: 1;
}
.course-org-card__top,
.module-board-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}
.course-org-card__top h3 {
  margin-top: .75rem;
}
.course-org-card__top > strong {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--cc-red, #D51635) 0 260deg, rgba(8,21,74,.08) 260deg);
  color: var(--cc-navy, #08154A);
  font-weight: 950;
}
.course-org-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8,21,74,.08);
  margin: 1rem 0;
}
.course-org-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cc-navy, #08154A), var(--cc-red, #D51635));
}
.course-org-modules {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}
.course-org-module-pill,
.course-org-empty {
  padding: .85rem;
  border-radius: 1rem;
  background: rgba(8,21,74,.04);
  border: 1px solid rgba(8,21,74,.08);
}
.course-org-module-pill strong,
.course-org-module-pill span {
  display: block;
}
.course-org-module-pill span,
.course-org-empty {
  color: var(--cc-muted, #667085);
  font-weight: 750;
}
.course-org-actions {
  display: flex;
  gap: .65rem;
  margin-top: 1.2rem;
}
.command-card--dark {
  min-width: 260px;
  background: linear-gradient(135deg, #08154A, #111E5A);
  color: #fff;
}
.command-card--dark .eyebrow,
.command-card--dark span,
.command-card--dark strong {
  color: #fff !important;
}
.command-card--dark strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}
.module-board {
  display: grid;
  gap: 1rem;
}
.module-board-card header span {
  color: var(--cc-red, #D51635);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.lesson-bubble-grid {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}
.lesson-bubble {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(8,21,74,.10);
}
.lesson-bubble strong,
.lesson-bubble span,
.lesson-bubble small {
  display: block;
}
.lesson-bubble span,
.lesson-bubble small {
  color: var(--cc-muted, #667085);
  font-weight: 760;
}
.lesson-bubble__chips {
  margin: .8rem 0;
}
.inline-create--bubble p {
  margin: 0;
}
.inline-create--bubble {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: end;
}
.inline-create--bubble input {
  min-width: 240px;
}
.visually-hidden-select {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}

/* ===== Authoring editor, forum tags, LaTeX and slide rendering ===== */
.author-toolbar,
.author-examples,
.preview-mode-tabs,
.lesson-display-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0;
}
.author-toolbar button,
.preview-mode-tabs button,
.lesson-display-tabs button {
  min-height: 38px;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(8,21,74,.10);
  background: rgba(255,255,255,.88);
  color: var(--cc-navy, #08154A);
  font-weight: 900;
}
.author-toolbar button:hover,
.preview-mode-tabs button.active,
.lesson-display-tabs button.active {
  background: var(--cc-navy, #08154A);
  color: #fff;
}
.author-examples span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(213,22,53,.08);
  color: var(--cc-red, #D51635);
  font-size: .82rem;
  font-weight: 850;
}
.lesson-render {
  font-size: 1.02rem;
  line-height: 1.78;
}
.course-callout {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(8,21,74,.10);
}
.course-callout strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--cc-navy, #08154A);
}
.course-callout--info {
  background: rgba(8,21,74,.055);
}
.course-callout--warning {
  background: rgba(213,22,53,.08);
  border-color: rgba(213,22,53,.18);
}
.course-latex {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.86);
  border: 1px dashed rgba(8,21,74,.18);
  overflow-x: auto;
}
.course-code {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: #071022;
  color: #fff;
  overflow-x: auto;
}
.inline-slide {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(8,21,74,.06), rgba(213,22,53,.05));
  border: 1px solid rgba(8,21,74,.10);
}
.slide-preview {
  display: grid;
  gap: 1rem;
}
.slide-card-render {
  aspect-ratio: 16 / 9;
  min-height: 320px;
  padding: 1.4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(8,21,74,.12);
  background:
    radial-gradient(circle at 90% 15%, rgba(213,22,53,.12), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
  box-shadow: 0 20px 46px rgba(8,21,74,.09);
  overflow: auto;
}
.slide-card-render__top {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}
.slide-card-render__top span {
  color: var(--cc-red, #D51635);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}
.slide-card-render__top i {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cc-navy, #08154A), #fff, var(--cc-red, #D51635));
}
.slide-card-render__body h1,
.slide-card-render__body h2 {
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
}
.slide-card-render__body {
  color: var(--cc-navy, #08154A);
}
.bubble-list {
  align-items: flex-start;
}
.bubble-link {
  max-width: 100%;
}
.bubble-muted {
  color: var(--cc-muted, #667085);
}

@media (max-width: 1200px) {
  .course-org-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-command-center,
  .author-dashboard__head {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 760px) {
  .course-org-grid {
    grid-template-columns: 1fr;
  }
  .course-org-actions,
  .module-board-card header {
    flex-direction: column;
  }
  .slide-card-render {
    aspect-ratio: auto;
    min-height: 360px;
  }
}


/* ===== Unified role dashboard for student / teacher / parent / admin ===== */
.role-dashboard {
  display: grid;
  gap: 1.4rem;
}

.role-hero,
.creator-hero,
.dashboard-panel {
  padding: clamp(1.4rem, 2.6vw, 2.4rem) !important;
}

.role-hero,
.creator-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    radial-gradient(circle at 88% 16%, rgba(213,22,53,.14), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(255,255,255,.84)) !important;
}

.role-hero h1 {
  max-width: 14ch;
}

.role-quick-actions,
.role-bubbles,
.panel-head,
.dashboard-course-bubbles,
.attempt-bubbles,
.payment-bubbles,
.child-bubble-grid,
.teacher-course-bubbles,
.platform-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.role-quick-actions {
  justify-content: flex-end;
  max-width: 520px;
}

.role-quick-actions a,
.role-bubbles span,
.role-bubbles a,
.bubble-action,
.platform-bubbles span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .65rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(8,21,74,.10);
  background: rgba(255,255,255,.88);
  color: var(--cc-navy, #08154A);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(8,21,74,.06);
}

.role-quick-actions a:first-child,
.bubble-action {
  background: var(--cc-red, #D51635);
  color: #fff;
  border-color: rgba(213,22,53,.20);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-metrics article {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(8,21,74,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 36px rgba(8,21,74,.07);
}

.dashboard-metrics article::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8,21,74,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.62), transparent 86%);
}

.dashboard-metrics article > * {
  position: relative;
  z-index: 1;
}

.dashboard-metrics strong {
  display: block;
  color: var(--cc-navy, #08154A);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 950;
}

.dashboard-metrics span {
  display: block;
  margin-top: .4rem;
  color: var(--cc-muted, #667085);
  font-weight: 850;
}

.dashboard-zone-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 1.2rem;
}

.panel-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.dashboard-course-bubbles,
.attempt-bubbles,
.payment-bubbles,
.teacher-course-bubbles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-course-bubble,
.attempt-bubble,
.payment-bubbles article,
.child-card,
.teacher-course-bubbles article,
.empty-state-soft {
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(8,21,74,.10);
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 28px rgba(8,21,74,.05);
}

.dashboard-course-bubble {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-course-bubble strong,
.dashboard-course-bubble span,
.attempt-bubble strong,
.attempt-bubble span,
.payment-bubbles strong,
.payment-bubbles span,
.teacher-course-bubbles strong,
.teacher-course-bubbles span {
  display: block;
}

.dashboard-course-bubble strong,
.attempt-bubble strong,
.payment-bubbles strong,
.teacher-course-bubbles strong {
  color: var(--cc-navy, #08154A);
  font-weight: 950;
}

.dashboard-course-bubble span,
.attempt-bubble span,
.payment-bubbles span,
.teacher-course-bubbles span,
.empty-state-soft span {
  margin-top: .25rem;
  color: var(--cc-muted, #667085);
  font-weight: 750;
}

.dashboard-course-bubble a,
.teacher-course-bubbles a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: var(--cc-navy, #08154A);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.attempt-bubble.status-success,
.attempt-bubble.status-passed {
  border-color: rgba(16,185,129,.20);
  background: rgba(16,185,129,.08);
}

.attempt-bubble.status-failed,
.attempt-bubble.status-error {
  border-color: rgba(213,22,53,.18);
  background: rgba(213,22,53,.07);
}

.parent-panel {
  background:
    radial-gradient(circle at 95% 5%, rgba(213,22,53,.11), transparent 28%),
    rgba(255,255,255,.92) !important;
}

.child-card {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.child-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cc-red, #D51635);
  color: #fff;
  font-weight: 950;
}

.creator-dashboard {
  display: grid;
  gap: 1.2rem;
}

.creator-hero {
  margin-top: .2rem;
}

.creator-metrics article {
  background:
    radial-gradient(circle at 92% 12%, rgba(213,22,53,.16), transparent 30%),
    linear-gradient(135deg, #08154A, #111E5A) !important;
}

.creator-metrics strong,
.creator-metrics span {
  color: #fff !important;
}

.mini-meter {
  height: 8px;
  overflow: hidden;
  margin: .8rem 0;
  border-radius: 999px;
  background: rgba(8,21,74,.08);
}

.mini-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cc-navy, #08154A), var(--cc-red, #D51635));
}

@media (max-width: 1150px) {
  .role-hero,
  .creator-hero,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .role-quick-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .dashboard-zone-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .dashboard-metrics,
  .dashboard-course-bubbles,
  .attempt-bubbles,
  .payment-bubbles,
  .teacher-course-bubbles {
    grid-template-columns: 1fr;
  }

  .dashboard-course-bubble {
    flex-direction: column;
    align-items: stretch;
  }

  .role-quick-actions a,
  .role-bubbles a,
  .bubble-action {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   Modern Learning UX polish
   Objective: make the platform motivating, easy to scan and pleasant to use.
   ============================================================ */

:root {
  --ux-navy: #08154A;
  --ux-navy-2: #13246D;
  --ux-red: #D51635;
  --ux-green: #10B981;
  --ux-surface: rgba(255,255,255,.92);
  --ux-line: rgba(8,21,74,.10);
  --ux-muted: #667085;
  --ux-shadow: 0 24px 70px rgba(8,21,74,.10);
}

/* Better page rhythm */
main.mx-auto {
  width: min(100% - 48px, 1480px) !important;
  max-width: 1480px !important;
}

/* Premium empty state */
.empty-state,
.empty-state-soft {
  position: relative;
  overflow: hidden;
}
.empty-state h3,
.empty-state-soft strong {
  color: var(--ux-navy);
  font-weight: 950;
}
.empty-state p,
.empty-state-soft span {
  color: var(--ux-muted);
}

/* Catalog */
.catalog-page {
  display: grid;
  gap: 1.35rem;
}
.catalog-hero,
.course-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem) !important;
  background:
    radial-gradient(circle at 90% 14%, rgba(213,22,53,.14), transparent 30%),
    radial-gradient(circle at 0% 80%, rgba(8,21,74,.06), transparent 28%),
    rgba(255,255,255,.92) !important;
}
.catalog-hero h1,
.course-detail-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 5vw, 5.8rem) !important;
  line-height: .94 !important;
  letter-spacing: -.055em !important;
}
.catalog-hero p,
.course-detail-hero p {
  max-width: 60ch;
  margin-top: 1rem;
  color: var(--ux-muted);
  font-size: 1.06rem;
  line-height: 1.75;
}
.catalog-hero__chips,
.course-benefit-bubbles,
.course-detail-meta,
.course-card__meta,
.course-card__progress-hint {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.catalog-hero__chips span,
.course-benefit-bubbles span,
.course-detail-meta span,
.course-card__meta span,
.course-card__progress-hint span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(8,21,74,.06);
  color: var(--ux-navy);
  font-weight: 900;
  font-size: .88rem;
}
.catalog-hero__visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  border-radius: 2rem;
  background:
    linear-gradient(135deg, var(--ux-navy), var(--ux-navy-2));
  color: #fff;
  box-shadow: var(--ux-shadow);
  overflow: hidden;
}
.catalog-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.catalog-hero__visual strong {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 950;
}
.catalog-hero__visual small {
  position: absolute;
  z-index: 2;
  bottom: 1.4rem;
  color: rgba(255,255,255,.76);
  font-weight: 850;
}
.learning-orbit span {
  position: absolute;
  z-index: 2;
  padding: .55rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 900;
}
.learning-orbit span:nth-child(1){ top: 1.4rem; left: 1.4rem; }
.learning-orbit span:nth-child(2){ top: 1.7rem; right: 1.5rem; }
.learning-orbit span:nth-child(3){ bottom: 4rem; left: 1.8rem; }
.learning-orbit span:nth-child(4){ bottom: 4.2rem; right: 1.8rem; background: rgba(213,22,53,.75); }

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(180px, .7fr)) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.1rem !important;
}
.visual-select select {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}
.visual-select label,
.search-field label {
  display: block;
  margin-bottom: .55rem;
}
.chip-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.chip-choice-list button {
  min-height: 38px;
  padding: .5rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--ux-line);
  background: rgba(255,255,255,.82);
  color: var(--ux-navy);
  font-weight: 900;
}
.chip-choice-list button.active {
  background: var(--ux-navy);
  color: #fff;
}
.catalog-results-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}
.catalog-results-head h2 {
  color: var(--ux-navy);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 950;
}
.catalog-results-head > span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(213,22,53,.10);
  color: var(--ux-red);
  font-weight: 950;
}

/* Course cards */
.course-card--premium {
  padding: 0 !important;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.course-card--premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(8,21,74,.14) !important;
  border-color: rgba(213,22,53,.22) !important;
}
.course-card__visual {
  position: relative;
  height: 140px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(213,22,53,.35), transparent 30%),
    linear-gradient(135deg, var(--ux-navy), var(--ux-navy-2));
  color: #fff;
}
.course-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.course-card__visual span {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 1.6rem;
  font-weight: 950;
}
.course-card__visual i {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1rem;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ux-red), #fff, var(--ux-navy));
}
.course-card__body {
  flex: 1;
  padding: 1.25rem;
}
.course-card__meta .is-free {
  background: rgba(16,185,129,.12);
  color: #047857;
}
.course-card__meta .is-paid {
  background: var(--ux-navy);
  color: #fff;
}
.course-card__body h3 {
  margin-top: .9rem;
  color: var(--ux-navy);
  font-size: clamp(1.35rem, 1.6vw, 1.65rem);
  line-height: 1.12;
  font-weight: 950;
}
.course-card__body p {
  margin-top: .75rem;
  color: var(--ux-muted);
  line-height: 1.68;
}
.course-card__progress-hint {
  margin-top: 1rem;
}
.course-card__progress-hint span {
  font-size: .78rem;
}
.course-card__cta {
  margin: 0 1.25rem 1.25rem;
}

/* Course detail */
.course-detail-card {
  padding: 1.5rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 85% 16%, rgba(213,22,53,.18), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  border: 1px solid var(--ux-line);
  box-shadow: 0 18px 44px rgba(8,21,74,.08);
}
.course-detail-card h2 {
  color: var(--ux-navy);
  font-weight: 950;
}
.course-detail-meta .free {
  background: rgba(16,185,129,.12);
  color: #047857;
}
.course-detail-meta .paid {
  background: var(--ux-navy);
  color: #fff;
}
.course-progress-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
  max-width: 560px;
}
.course-progress-block strong {
  color: var(--ux-red);
  font-size: 2rem;
  font-weight: 950;
}
.course-progress-block span {
  display: block;
  color: var(--ux-muted);
  font-weight: 850;
}
.course-progress-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(8,21,74,.08);
}
.course-progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ux-navy), var(--ux-red));
}
.course-path-section {
  margin-top: 1.5rem;
}
.course-path {
  display: grid;
  gap: 1.1rem;
}
.course-path-module {
  padding: 1.25rem !important;
}
.course-path-module__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}
.course-path-module__head span {
  color: var(--ux-red);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.course-path-module__head h3 {
  color: var(--ux-navy);
  font-size: 1.4rem;
  font-weight: 950;
}
.course-path-lessons {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}
.course-path-lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid var(--ux-line);
  background: rgba(255,255,255,.82);
  color: var(--ux-navy);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.course-path-lesson:hover {
  transform: translateX(5px);
  border-color: rgba(213,22,53,.24);
  background: rgba(213,22,53,.04);
}
.course-path-lesson strong,
.course-path-lesson span {
  display: block;
}
.course-path-lesson span {
  color: var(--ux-muted);
  font-weight: 750;
}
.course-path-lesson.locked {
  opacity: .68;
}

/* Dashboard motivation */
.next-action-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.3rem, 2.4vw, 2rem) !important;
  background:
    radial-gradient(circle at 90% 10%, rgba(213,22,53,.16), transparent 30%),
    linear-gradient(135deg, var(--ux-navy), var(--ux-navy-2)) !important;
  color: #fff;
}
.next-action-strip h2,
.next-action-strip p,
.next-action-strip .eyebrow {
  color: #fff !important;
}
.next-action-strip p {
  opacity: .78;
}
.next-action-strip__actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.next-action-strip .btn-navy {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
}

/* Lesson reader */
.lesson-topbar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 1.35rem !important;
  margin-bottom: 1rem;
}
.lesson-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .6rem .85rem;
  border-radius: 999px;
  background: rgba(213,22,53,.10);
  color: var(--ux-red);
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}
.lesson-topbar h1 {
  color: var(--ux-navy);
  font-size: clamp(1.8rem, 3vw, 3rem) !important;
  font-weight: 950;
  line-height: 1.04;
}
.lesson-topbar span {
  color: var(--ux-muted);
  font-weight: 800;
}

/* Generic cards/forms consistency */
.card {
  backdrop-filter: blur(8px);
}
.btn-primary,
.btn-navy,
.btn-light {
  border-radius: 999px !important;
}
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
  border-radius: 1.1rem !important;
}

/* Responsive */
@media (max-width: 1150px) {
  .catalog-hero,
  .course-detail-hero,
  .catalog-filters {
    grid-template-columns: 1fr;
  }
  .catalog-hero__visual {
    min-height: 220px;
  }
  .catalog-hero h1,
  .course-detail-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.45rem, 9vw, 4.6rem) !important;
  }
  .next-action-strip,
  .lesson-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 760px) {
  main.mx-auto {
    width: min(100% - 24px, 1480px) !important;
  }
  .catalog-hero,
  .course-detail-hero {
    padding: 1.2rem !important;
    border-radius: 1.4rem !important;
  }
  .course-path-lesson,
  .course-progress-block {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-results-head {
    flex-direction: column;
    align-items: stretch;
  }
  .course-card--premium {
    min-height: auto;
  }
}


/* ===== Login demo account UX ===== */
.modern-login-page {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 1.25rem;
  align-items: stretch;
}

.login-promo,
.login-card {
  padding: clamp(1.5rem, 3vw, 2.4rem) !important;
}

.login-promo {
  background:
    radial-gradient(circle at 85% 16%, rgba(213,22,53,.18), transparent 32%),
    linear-gradient(135deg, #08154A, #13246D) !important;
  color: #fff;
}

.login-promo h1 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 950;
}

.login-promo p,
.login-promo .eyebrow {
  color: rgba(255,255,255,.78) !important;
}

.demo-account-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}

.demo-account-bubbles button {
  min-height: 42px;
  padding: .65rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 900;
}

.demo-account-bubbles button:hover {
  background: rgba(213,22,53,.82);
}

.login-card h2 {
  color: var(--ux-navy, #08154A);
  font-weight: 950;
  font-size: clamp(2rem, 3vw, 3rem);
}

.form-error-box {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(213,22,53,.09);
  border: 1px solid rgba(213,22,53,.18);
  color: #B8122D;
  font-weight: 850;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
}

/* ===== Visual system cleanup: chips, filters, badges ===== */
:root {
  --ui-chip-radius: 10px;
  --ui-chip-border: rgba(8,21,74,.12);
  --ui-chip-bg: #fff;
  --ui-chip-bg-soft: #f1f4f9;
  --ui-chip-text: #08154A;
}

.catalog-page--dashboard {
  gap: 1rem;
}

.catalog-page--dashboard .catalog-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem !important;
  background: #fff !important;
}

.catalog-page--dashboard .catalog-hero h1 {
  max-width: 780px;
  font-size: clamp(2rem, 3.2vw, 3.1rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.catalog-page--dashboard .catalog-hero p {
  max-width: 760px;
  font-size: 1rem;
}

.catalog-page--dashboard .catalog-hero__visual {
  display: none;
}

.catalog-page--dashboard .catalog-hero__chips {
  max-width: 900px;
}

.catalog-page--dashboard .catalog-filters {
  position: sticky;
  top: 92px;
  z-index: 25;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(16px);
}

.catalog-filters {
  grid-template-columns: minmax(220px, 1.05fr) repeat(3, minmax(170px, .85fr)) minmax(132px, auto);
  gap: .85rem !important;
  align-items: end;
}

.visual-select label,
.search-field label {
  margin-bottom: .45rem !important;
  color: #344054;
  font-size: .82rem;
  font-weight: 850;
}

.chip-choice-list,
.select-chip-cloud,
.preview-mode-tabs,
.lesson-display-tabs,
.author-toolbar {
  gap: .35rem !important;
}

.chip-choice-list button,
.select-chip-cloud button,
.preview-mode-tabs button,
.lesson-display-tabs button,
.author-toolbar button {
  min-height: 36px !important;
  padding: .45rem .7rem !important;
  border-radius: var(--ui-chip-radius) !important;
  border: 1px solid var(--ui-chip-border) !important;
  background: var(--ui-chip-bg) !important;
  color: var(--ui-chip-text) !important;
  box-shadow: none !important;
  font-size: .86rem;
  font-weight: 850 !important;
  cursor: pointer;
}

.chip-choice-list button:hover,
.select-chip-cloud button:hover,
.preview-mode-tabs button:hover,
.lesson-display-tabs button:hover,
.author-toolbar button:hover {
  border-color: rgba(8,21,74,.28) !important;
  background: #f8fafc !important;
}

.chip-choice-list button.active,
.chip-choice-list button[aria-pressed="true"],
.select-chip-cloud button.active,
.preview-mode-tabs button.active,
.lesson-display-tabs button.active {
  background: #08154A !important;
  border-color: #08154A !important;
  color: #fff !important;
}

.catalog-hero__chips span,
.course-benefit-bubbles span,
.course-detail-meta span,
.course-card__meta span,
.course-card__progress-hint span,
.role-bubbles span,
.platform-bubbles span,
.bubble-cloud span,
.author-filter-bubbles span,
.tag-cheatsheet span,
.status-pill {
  min-height: 30px !important;
  padding: .38rem .62rem !important;
  border-radius: var(--ui-chip-radius) !important;
  border: 1px solid rgba(8,21,74,.08) !important;
  background: var(--ui-chip-bg-soft) !important;
  color: #344054 !important;
  box-shadow: none !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  line-height: 1.1;
}

.course-card__meta .is-free,
.course-detail-meta .free {
  background: #e9f8f1 !important;
  color: #047857 !important;
  border-color: rgba(16,185,129,.16) !important;
}

.course-card__meta .is-paid,
.course-detail-meta .paid {
  background: #edf1ff !important;
  color: #08154A !important;
  border-color: rgba(8,21,74,.12) !important;
}

.author-filter-bubbles .active,
.platform-bubbles span {
  background: #edf1ff !important;
  color: #08154A !important;
}

.role-quick-actions a,
.bubble-action,
.dashboard-course-bubble a,
.teacher-course-bubbles a,
.course-card__cta,
.catalog-filter-submit,
.cc-app-main .btn-primary,
.cc-app-main .btn-navy,
.cc-app-main .btn-light {
  border-radius: 12px !important;
}

.role-bubbles,
.catalog-hero__chips,
.course-card__meta,
.course-card__progress-hint,
.bubble-cloud,
.author-filter-bubbles,
.platform-bubbles {
  gap: .4rem !important;
}

.bubble-list {
  display: grid !important;
  gap: .55rem !important;
}

.bubble-link,
.bubble-muted {
  width: 100%;
  min-height: 42px !important;
  justify-content: flex-start;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid rgba(8,21,74,.10) !important;
  box-shadow: none !important;
}

.bubble-link:hover {
  border-color: rgba(213,22,53,.24) !important;
  background: #fff7f8 !important;
  color: #08154A !important;
}

.catalog-results-head > span {
  min-height: 34px !important;
  border-radius: 10px !important;
  background: #fff0f3 !important;
}

.course-card--premium {
  min-height: 390px;
}

.course-card__visual {
  height: 116px;
}

.course-card__body {
  padding: 1rem !important;
}

.course-card__body h3 {
  margin-top: .75rem !important;
}

.course-card__cta {
  margin: 0 1rem 1rem !important;
}

.cc-app-main .card,
.cc-app-main .dashboard-panel,
.cc-app-main .module-board-card,
.cc-app-main .command-card,
.cc-app-main .course-org-card,
.cc-app-main .course-card--premium {
  border-radius: 14px !important;
}

.cc-app-main .role-hero,
.cc-app-main .creator-hero,
.cc-app-main .studio-hero,
.cc-app-main .catalog-hero,
.cc-app-main .tryit-header,
.cc-app-main .lesson-topbar {
  border-radius: 14px !important;
}

@media (max-width: 1180px) {
  .catalog-filters {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-filter-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .catalog-page--dashboard .catalog-filters {
    position: static;
  }

  .catalog-filters {
    grid-template-columns: 1fr;
  }

  .chip-choice-list button,
  .select-chip-cloud button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ===== Connected app shell: dashboard layout for private pages ===== */
.cc-app-body {
  min-height: 100vh;
  background: #f3f5fa !important;
}

.cc-app-body::before,
.cc-app-body::after {
  display: none !important;
}

.cc-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0) 280px),
    #f3f5fa;
}

.cc-app-sidebar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(8,21,74,.10);
  background: #08154a;
  color: #fff;
  box-shadow: 18px 0 45px rgba(8,21,74,.10);
}

.cc-app-sidebar__brand {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.cc-app-logo {
  color: #fff;
  font-weight: 950;
  font-size: 1.2rem;
  text-decoration: none;
}

.cc-app-logo span {
  color: #ff5a70;
}

.cc-app-sidebar__close,
.cc-app-menu {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(8,21,74,.12);
  background: #fff;
  color: #08154a;
  font-weight: 950;
}

.cc-app-sidebar__close {
  display: none;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: #fff;
}

.cc-app-nav {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: 1rem;
  overflow-y: auto;
}

.cc-app-nav__label {
  display: block;
  margin: 1rem .75rem .35rem;
  color: rgba(255,255,255,.48);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cc-app-nav__label:first-child {
  margin-top: .25rem;
}

.cc-app-nav__link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .72rem .85rem;
  border-radius: 12px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 850;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.cc-app-nav__link:hover,
.cc-app-nav__link.is-active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.cc-app-nav__link.is-active {
  box-shadow: inset 3px 0 0 #d51635;
}

.cc-app-sidebar__foot {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.10);
}

.cc-app-sidebar__foot span {
  display: block;
  margin-bottom: .65rem;
  color: rgba(255,255,255,.66);
  font-size: .82rem;
  font-weight: 850;
}

.cc-app-sidebar__foot button {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  background: #d51635;
  color: #fff;
  font-weight: 900;
}

.cc-app-workspace {
  min-width: 0;
}

.cc-app-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(8,21,74,.10);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
}

.cc-app-topbar__left,
.cc-app-topbar__right {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
}

.cc-app-topbar__left > div {
  min-width: 0;
}

.cc-app-topbar__left span,
.cc-app-profile__text small {
  display: block;
  color: #667085;
  font-size: .78rem;
  font-weight: 850;
}

.cc-app-topbar__left strong {
  display: block;
  color: #08154a;
  font-size: 1.02rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-app-menu {
  display: none;
}

.cc-app-ghost-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .95rem;
  border-radius: 12px;
  border: 1px solid rgba(8,21,74,.10);
  background: #fff;
  color: #08154a;
  font-weight: 900;
  text-decoration: none;
}

.cc-app-profile {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .25rem .7rem .25rem .3rem;
  border-radius: 999px;
  border: 1px solid rgba(8,21,74,.10);
  background: #fff;
  color: #08154a;
  box-shadow: 0 10px 24px rgba(8,21,74,.05);
}

.cc-app-profile__text {
  display: grid;
  min-width: 0;
  text-align: left;
}

.cc-app-profile__text strong {
  max-width: 190px;
  color: #08154a;
  font-size: .86rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-app-dropdown {
  top: calc(100% + 10px);
}

.cc-app-messages {
  width: auto;
  margin: 1rem clamp(.75rem, 1.25vw, 1.5rem) 0;
  display: grid;
  gap: .5rem;
}

.cc-app-messages > div {
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(8,21,74,.10);
  background: #fff;
  box-shadow: 0 10px 24px rgba(8,21,74,.06);
  color: #344054;
  font-weight: 800;
}

.cc-app-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(.75rem, 1.25vw, 1.5rem);
  min-width: 0;
}

.cc-app-main .role-hero,
.cc-app-main .creator-hero,
.cc-app-main .studio-hero,
.cc-app-main .tryit-header,
.cc-app-main .lesson-topbar,
.cc-app-main .catalog-hero,
.cc-app-main .course-detail-hero {
  padding: 1.25rem !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(8,21,74,.06) !important;
}

.cc-app-main .role-hero h1,
.cc-app-main .creator-hero h1,
.cc-app-main .studio-hero h1,
.cc-app-main .tryit-header h1,
.cc-app-main .lesson-topbar h1,
.cc-app-main > h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

.cc-app-main .card,
.cc-app-main .dashboard-panel,
.cc-app-main .module-board-card,
.cc-app-main .command-card,
.cc-app-main .course-org-card,
.cc-app-main .tryit-editor,
.cc-app-main .tryit-output {
  border-radius: 16px !important;
}

.cc-app-main .tryit-layout {
  min-height: calc(100vh - 220px);
}

.cc-app-overlay {
  display: none;
}

@media (max-width: 1080px) {
  .cc-app-shell {
    grid-template-columns: 1fr;
  }

  .cc-app-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: min(320px, calc(100vw - 40px));
    transition: transform .22s ease;
  }

  .cc-app-sidebar.is-open {
    transform: translateX(0);
  }

  .cc-app-sidebar__close,
  .cc-app-menu,
  .cc-app-overlay {
    display: grid;
  }

  .cc-app-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(8,21,74,.34);
  }
}

@media (max-width: 720px) {
  .cc-app-topbar {
    padding: 0 .85rem;
  }

  .cc-app-ghost-link,
  .cc-app-profile__text {
    display: none;
  }

  .cc-app-main,
  .cc-app-messages {
    width: 100%;
  }

  .cc-app-main {
    padding: .75rem;
  }

  .cc-app-messages {
    width: auto;
    margin: .75rem .75rem 0;
  }
}

/* Final dashboard polish overrides */
.cc-app-main .card,
.cc-app-main .dashboard-panel,
.cc-app-main .module-board-card,
.cc-app-main .command-card,
.cc-app-main .course-org-card,
.cc-app-main .course-card--premium,
.cc-app-main .tryit-editor,
.cc-app-main .tryit-output,
.cc-app-main .role-hero,
.cc-app-main .creator-hero,
.cc-app-main .studio-hero,
.cc-app-main .catalog-hero,
.cc-app-main .tryit-header,
.cc-app-main .lesson-topbar {
  border-radius: 14px !important;
}

.cc-app-main .catalog-page--dashboard .catalog-hero h1 {
  font-size: clamp(1.85rem, 2.5vw, 2.35rem) !important;
}

.cc-app-main > h1,
.cc-app-main > .card:first-child h1,
.cc-app-main > section:first-child h1,
.cc-app-main .responsive-grid-2:first-child h1 {
  max-width: 100% !important;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.cc-app-main h1 {
  letter-spacing: 0 !important;
}

.cc-app-main .catalog-page--dashboard .catalog-hero__chips {
  display: none !important;
}

.workspace-page {
  display: grid;
  gap: 1rem;
}

.workspace-page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8,21,74,.05);
}

.workspace-page__head h1 {
  margin-top: .25rem;
  color: #08154A;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem) !important;
  line-height: 1.08 !important;
  font-weight: 950;
}

.workspace-page__head p:last-child {
  max-width: 720px;
  margin-top: .45rem;
  color: #667085;
  line-height: 1.6;
}

.workspace-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 100%;
  padding: 1.1rem !important;
}

.workspace-card h2 {
  color: #08154A;
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 950;
}

.workspace-card p {
  margin-top: .45rem;
  color: #667085;
  line-height: 1.6;
}

.workspace-card__kicker {
  margin: 0 0 .35rem !important;
  color: #D51635 !important;
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.workspace-code {
  overflow-wrap: anywhere;
  font-size: .9rem;
}

.wallet-balance {
  margin-top: .4rem;
  color: #08154A;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 950;
}

.workspace-form {
  display: grid;
  gap: .75rem;
}

.workspace-form input,
.workspace-form select,
.workspace-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(8,21,74,.14);
  border-radius: 12px;
  padding: .75rem .9rem;
  background: #fff;
  color: #08154A;
}

.workspace-list {
  display: grid;
  gap: .65rem;
}

.workspace-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid rgba(8,21,74,.08);
  border-radius: 12px;
  background: #F7F8FB;
}

.workspace-list__row strong,
.workspace-list__row b {
  color: #08154A;
  font-weight: 950;
}

.workspace-list__row span {
  display: block;
  margin-top: .15rem;
  color: #667085;
  font-size: .92rem;
}

.workspace-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.workspace-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: .92rem;
}

.workspace-table th {
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(8,21,74,.10);
  color: #667085;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.workspace-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(8,21,74,.08);
  color: #344054;
}

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

.workspace-table a {
  color: #08154A;
  font-weight: 950;
  text-decoration: none;
}

.workspace-table a:hover {
  color: #D51635;
}

.cc-app-main .empty-state-soft.card,
.workspace-page .empty-state-soft {
  border-radius: 14px !important;
}

.workspace-page .responsive-grid-2 > .empty-state-soft,
.workspace-page .responsive-grid-3 > .empty-state-soft {
  grid-column: 1 / -1;
}

.workspace-page .empty-state-soft strong,
.workspace-page .empty-state-soft span {
  display: block;
}

.catalog-page--dashboard .catalog-filters {
  align-items: start !important;
}

.catalog-page--dashboard .catalog-filter-submit {
  align-self: end;
}

.catalog-page--dashboard .course-card__visual {
  height: 128px;
}

.catalog-page--dashboard .course-card__visual i {
  bottom: .75rem;
}

.cc-app-main .role-bubbles a,
.cc-app-main .bubble-action,
.cc-app-main .dashboard-course-bubble a,
.cc-app-main .teacher-course-bubbles a {
  border-radius: 10px !important;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  .workspace-page__head {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .workspace-card {
    padding: 1rem !important;
  }

  .workspace-list__row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Course authoring: forum tags, Markdown and block-by-block slides */
.course-image {
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 14px;
  background: #fff;
}

.course-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f7f8fb;
}

.course-quote {
  margin: 1rem 0;
  padding: .95rem 1rem;
  border-left: 4px solid #D51635;
  border-radius: 12px;
  background: #fff7f8;
  color: #344054;
  font-weight: 750;
}

.course-code {
  position: relative;
}

.course-code__lang {
  display: inline-flex;
  margin-bottom: .75rem;
  padding: .25rem .5rem;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.slide-deck {
  display: grid;
  gap: .85rem;
}

.slide-deck__stage {
  min-width: 0;
}

.slide-card-render[hidden] {
  display: none !important;
}

.slide-deck__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.slide-deck__controls button {
  min-height: 38px;
  padding: .5rem .8rem;
  border: 1px solid rgba(8,21,74,.12);
  border-radius: 10px;
  background: #fff;
  color: #08154A;
  font-weight: 900;
}

.slide-deck__controls button:not(:disabled):hover {
  border-color: rgba(213,22,53,.24);
  background: #fff7f8;
}

.slide-deck__controls button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.slide-deck__controls span {
  color: #667085;
  font-size: .9rem;
  font-weight: 900;
}

.lesson-render img,
.slide-card-render img {
  max-width: 100%;
}

.lesson-render a {
  color: #D51635;
  font-weight: 850;
}

.preview-pane .slide-card-render {
  min-height: 300px;
}

@media (max-width: 720px) {
  .slide-deck__controls {
    align-items: stretch;
    flex-direction: column;
  }

  .slide-deck__controls button,
  .slide-deck__controls span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Login readability fix */
.login-promo h1 {
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .28);
}

.login-promo > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .88) !important;
}

/* Public shell final alignment + login contrast */
.cc-header__inner {
  box-sizing: border-box !important;
  width: min(100% - 48px, 1480px) !important;
  max-width: 1480px !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.cc-home-body .cc-header__inner {
  width: min(100vw - 64px, 1480px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.auth-page .login-shell .login-promo.card .login-promo__title,
.auth-page .login-shell .login-promo.card h1.login-promo__title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .34) !important;
}

.auth-page .login-shell .login-promo.card {
  background:
    linear-gradient(0deg, rgba(8, 21, 74, .12), rgba(8, 21, 74, .12)),
    radial-gradient(circle at 85% 16%, rgba(213,22,53,.24), transparent 32%),
    linear-gradient(135deg, #08154A, #182a78) !important;
}

@media (max-width: 900px) {
  .cc-header__inner {
    width: min(100% - 32px, 1480px) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .cc-home-body .cc-header__inner {
    width: min(100vw - 32px, 1480px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 640px) {
  .cc-header__inner {
    width: min(100% - 24px, 1480px) !important;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }

  .cc-home-body .cc-header__inner {
    width: min(100vw - 24px, 1480px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Final overlap guard: decorative badges/bars and large titles must never touch. */
.home-page .courses-section .course-card--premium {
  min-height: 420px !important;
}

.home-page .courses-section .course-card__visual {
  height: 148px !important;
}

.home-page .courses-section .course-card__visual i {
  bottom: 1rem !important;
}

.home-page .courses-section .course-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .75rem;
}

.home-page .courses-section .course-card__body h3,
.home-page .courses-section .course-card__body p,
.home-page .testimonial-card p,
.home-page .how-card p,
.home-page .audience-card li {
  overflow-wrap: anywhere;
}

.home-page .courses-section .course-card__body h3,
.home-page .testimonial-card p {
  line-height: 1.22 !important;
}

.home-page .courses-section .course-card__meta,
.home-page .courses-section .course-card__progress-hint {
  align-items: flex-start;
  gap: .5rem .45rem !important;
}

.auth-page .login-shell .login-promo.card .login-promo__title,
.auth-page .login-shell .login-promo.card h1.login-promo__title {
  margin: .3rem 0 1.15rem !important;
  max-width: 13ch !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.auth-page .login-shell .login-promo.card > p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 0 !important;
  line-height: 1.72 !important;
}

.home-page .studio-mockup {
  display: grid;
  gap: 1.15rem;
}

.home-page .studio-mockup .studio-sidebar {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  margin-bottom: 0 !important;
  align-items: flex-start;
}

.home-page .studio-mockup .studio-chip {
  min-height: 36px;
  align-items: center;
  white-space: nowrap;
  line-height: 1.1;
}

.home-page .studio-mockup .studio-editor {
  margin-top: 0 !important;
}

/* ===== Homepage student-focused redesign ===== */
.home-redesign {
  --home-navy: #08154A;
  --home-navy-2: #111E5A;
  --home-red: #D51635;
  --home-muted: #667085;
  --home-line: rgba(8, 21, 74, .10);
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 44%, #ffffff 100%) !important;
}

.home-redesign .home-sales-hero {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, .92fr) minmax(440px, .82fr) !important;
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem) !important;
  min-height: min(78vh, 820px) !important;
  padding-top: clamp(4rem, 7vw, 7rem) !important;
  padding-bottom: clamp(3rem, 5vw, 5rem) !important;
}

.home-sales-hero__copy {
  max-width: 780px;
}

.home-redesign .hero-kicker,
.home-redesign .section-kicker {
  display: inline-flex;
  margin-bottom: .9rem;
  color: var(--home-red) !important;
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-redesign .home-sales-hero h1 {
  max-width: 11.5ch !important;
  margin: 0;
  color: var(--home-navy);
  font-size: clamp(3.8rem, 6vw, 6.8rem) !important;
  line-height: .94 !important;
  letter-spacing: 0 !important;
  font-weight: 950;
}

.home-sales-hero__copy > p {
  max-width: 680px;
  margin-top: 1.35rem;
  color: var(--home-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.8;
}

.home-redesign .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.6rem;
}

.home-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.5rem;
}

.home-proof-row span,
.cta-benefits span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  padding: .45rem .65rem;
  background: #fff;
  color: var(--home-navy);
  font-size: .85rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(8,21,74,.05);
}

.home-product-visual {
  min-width: 0;
}

.product-window {
  overflow: hidden;
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(8,21,74,.14);
}

.product-window__top {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(8,21,74,.08);
}

.product-window__top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffb4c0;
}

.product-window__top span:nth-child(2) {
  background: #ffd280;
}

.product-window__top span:nth-child(3) {
  background: #6ee7a8;
}

.product-window__top strong {
  margin-left: .45rem;
  color: var(--home-navy);
  font-size: .95rem;
  font-weight: 950;
}

.product-window__body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background:
    linear-gradient(rgba(8,21,74,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.035) 1px, transparent 1px),
    #fbfcff;
  background-size: 24px 24px;
}

.product-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.path-step {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: .45rem;
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 14px;
  padding: .85rem;
  background: #fff;
}

.path-step span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f4f9;
  color: var(--home-navy);
  font-weight: 950;
}

.path-step strong {
  color: var(--home-navy);
  font-size: .9rem;
  line-height: 1.2;
}

.path-step.is-active {
  border-color: rgba(213,22,53,.25);
  background: #fff7f8;
}

.path-step.is-active span,
.path-step.is-done span {
  background: var(--home-red);
  color: #fff;
}

.lesson-preview,
.progress-preview {
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
}

.lesson-preview__head {
  display: grid;
  gap: .25rem;
}

.lesson-preview__head span,
.progress-preview span {
  color: var(--home-muted);
  font-size: .82rem;
  font-weight: 850;
}

.lesson-preview__head strong,
.progress-preview strong {
  color: var(--home-navy);
  font-weight: 950;
}

.lesson-lines {
  display: grid;
  gap: .55rem;
  margin: 1rem 0;
}

.lesson-lines i,
.panel-visual i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #e8edf6;
}

.code-preview,
.panel-code {
  border-radius: 14px;
  padding: 1rem;
  background: #081026;
  color: #fff;
  font-size: .92rem;
  line-height: 1.7;
}

.progress-preview div,
.cta-progress {
  height: 10px;
  overflow: hidden;
  margin-top: .85rem;
  border-radius: 999px;
  background: #edf1f7;
}

.progress-preview i,
.cta-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-red), var(--home-navy));
}

.student-strip {
  width: min(100% - 64px, 1480px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto;
}

.student-strip article,
.student-benefit-card,
.journey-card,
.testimonial-card {
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8,21,74,.06);
}

.student-strip article {
  padding: 1rem 1.1rem;
}

.student-strip strong {
  display: block;
  color: var(--home-navy);
  font-weight: 950;
}

.student-strip span {
  display: block;
  margin-top: .35rem;
  color: var(--home-muted);
  line-height: 1.55;
}

.home-redesign .landing-section {
  padding-top: clamp(5rem, 7vw, 8rem) !important;
}

.home-redesign .section-heading {
  max-width: 880px;
}

.home-redesign .section-heading h2,
.learning-demo-copy h2,
.student-final-cta h2 {
  color: var(--home-navy);
  font-size: clamp(2.25rem, 3.8vw, 4.25rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  font-weight: 950;
}

.home-redesign .section-heading p,
.learning-demo-copy p {
  max-width: 760px;
  color: var(--home-muted);
  line-height: 1.8;
}

.student-benefit-grid,
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.student-benefit-card,
.journey-card {
  min-height: 240px;
  padding: 1.25rem;
}

.student-benefit-card > span,
.journey-card > span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--home-red);
  font-size: .85rem;
  font-weight: 950;
}

.student-benefit-card h3,
.journey-card h3 {
  color: var(--home-navy);
  font-size: 1.25rem;
  line-height: 1.18;
  font-weight: 950;
}

.student-benefit-card p,
.journey-card p,
.testimonial-card p {
  margin-top: .8rem;
  color: var(--home-muted);
  line-height: 1.7;
}

.learning-demo-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(480px, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.learning-demo-copy {
  min-width: 0;
}

.demo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.35rem;
}

.student-demo {
  min-width: 0;
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 22px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 28px 78px rgba(8,21,74,.12);
}

.student-demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.student-demo__tabs button {
  min-height: 40px;
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 12px;
  padding: .55rem .8rem;
  background: #f3f6fb;
  color: var(--home-navy);
  font-weight: 950;
  line-height: 1.1;
  cursor: pointer;
}

.student-demo__tabs button:hover,
.student-demo__tabs button.is-active {
  border-color: var(--home-navy);
  background: var(--home-navy);
  color: #fff;
}

.student-demo__screen {
  min-height: 380px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--home-navy);
}

.student-demo__panel {
  display: none;
  min-height: 380px;
  grid-template-columns: minmax(0, .85fr) minmax(260px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
}

.student-demo__panel.is-active {
  display: grid;
}

.student-demo__panel > div:first-child {
  min-width: 0;
  color: #fff;
}

.panel-kicker {
  display: inline-flex;
  margin-bottom: .65rem;
  color: rgba(255,255,255,.70);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.student-demo__panel h3 {
  color: #fff;
  font-size: clamp(1.75rem, 2.4vw, 2.65rem);
  line-height: 1.04;
  font-weight: 950;
}

.student-demo__panel p {
  margin-top: .75rem;
  color: rgba(255,255,255,.76);
  line-height: 1.72;
}

.panel-visual,
.quiz-preview-card,
.certificate-preview {
  min-height: 250px;
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
}

.panel-visual {
  display: grid;
  align-content: center;
  gap: .8rem;
}

.panel-visual strong {
  display: inline-flex;
  width: fit-content;
  border-radius: 10px;
  padding: .45rem .65rem;
  background: #fff0f3;
  color: var(--home-red);
  font-weight: 950;
}

.quiz-preview-card {
  display: grid;
  align-content: center;
  gap: .75rem;
}

.quiz-preview-card strong {
  color: var(--home-navy);
  font-weight: 950;
}

.quiz-preview-card span {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: .7rem .85rem;
  background: #edf1f7;
  color: var(--home-navy);
  font-weight: 850;
}

.quiz-preview-card .is-correct {
  background: #e8f8ef;
  color: #047857;
}

.certificate-preview {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(8,21,74,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.05) 1px, transparent 1px),
    #fff;
  background-size: 22px 22px;
}

.certificate-preview span {
  color: var(--home-red);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.certificate-preview strong {
  color: var(--home-navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  font-weight: 950;
}

.certificate-preview small {
  color: var(--home-muted);
  font-weight: 850;
}

.home-redesign .student-courses-section .courses-section__head {
  align-items: flex-end;
}

.home-redesign .student-courses-section h2 {
  max-width: 760px;
  color: var(--home-navy);
  font-size: clamp(2.25rem, 3.6vw, 4rem);
  line-height: 1.02;
  font-weight: 950;
}

.student-journey .journey-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-social-proof .testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-redesign .student-final-cta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr) !important;
  align-items: center;
  gap: 1.5rem !important;
  margin-top: clamp(5rem, 7vw, 8rem) !important;
  padding: clamp(1.5rem, 3vw, 2.4rem) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #08154A 0%, #132269 68%, #D51635 150%) !important;
  color: #fff;
}

.home-redesign .student-final-cta .cta-copy {
  max-width: 760px !important;
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home-redesign .student-final-cta h2,
.home-redesign .student-final-cta p {
  max-width: 760px !important;
  color: #fff !important;
}

.home-redesign .student-final-cta p {
  opacity: .82;
}

.home-redesign .student-final-cta .cta-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.15rem;
}

.home-redesign .student-final-cta .cta-benefits span {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
}

.home-redesign .student-final-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.35rem;
}

.cta-mini-dashboard {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,.10);
}

.cta-mini-dashboard strong,
.cta-mini-dashboard span {
  display: block;
}

.cta-mini-dashboard strong {
  color: #fff;
  font-weight: 950;
}

.cta-mini-dashboard span {
  margin-top: .25rem;
  color: rgba(255,255,255,.74);
}

.cta-mini-dashboard ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}

.cta-mini-dashboard li {
  border-radius: 12px;
  padding: .75rem;
  background: rgba(255,255,255,.12);
}

.cta-mini-dashboard li span {
  margin: 0;
  font-size: .78rem;
}

.cta-mini-dashboard li strong {
  margin-top: .25rem;
  font-size: 1.35rem;
}

.home-redesign h1,
.home-redesign h2,
.home-redesign h3,
.home-redesign p,
.home-redesign a,
.home-redesign button,
.home-redesign span,
.home-redesign strong,
.home-redesign li {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .home-redesign .home-sales-hero,
  .learning-demo-section,
  .home-redesign .student-final-cta {
    grid-template-columns: 1fr !important;
  }

  .home-sales-hero__copy {
    max-width: 900px;
  }

  .home-redesign .home-sales-hero h1 {
    max-width: 13ch !important;
  }

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

@media (max-width: 900px) {
  .student-strip,
  .student-journey .journey-grid,
  .student-social-proof .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .student-demo__panel {
    grid-template-columns: 1fr;
  }

  .student-demo__screen,
  .student-demo__panel {
    min-height: 0;
  }

  .panel-visual,
  .quiz-preview-card,
  .certificate-preview {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .home-redesign .home-sales-hero h1 {
    max-width: none !important;
    font-size: clamp(2.7rem, 13vw, 4.2rem) !important;
  }

  .home-redesign .section-heading h2,
  .learning-demo-copy h2,
  .student-final-cta h2,
  .home-redesign .student-courses-section h2 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .student-benefit-grid {
    grid-template-columns: 1fr;
  }

  .student-strip {
    width: min(100vw - 24px, 1480px);
  }

  .product-path,
  .cta-mini-dashboard ul {
    grid-template-columns: 1fr;
  }

  .student-demo {
    padding: .75rem;
  }

  .student-demo__tabs button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .student-demo__panel {
    padding: .9rem;
  }

  .home-redesign .hero-cta-row a,
  .demo-cta-row a,
  .home-redesign .student-final-cta .cta-actions a {
    width: 100%;
  }
}

/* ===== Modern teacher lesson editor ===== */
.lesson-author-hero {
  align-items: flex-start !important;
}

.lesson-author-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .82fr);
  gap: 1.25rem;
  align-items: start;
}

.lesson-author-main,
.lesson-author-preview {
  padding: 1.15rem !important;
  border-radius: 14px !important;
}

.lesson-author-head,
.lesson-author-preview > header,
.forum-editor-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lesson-author-head h2,
.lesson-author-preview h2 {
  color: #08154A;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.08;
  font-weight: 950;
}

.lesson-author-head p:last-child,
.forum-editor-topbar span {
  max-width: 760px;
  color: #667085;
  line-height: 1.65;
}

.lesson-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .7fr) repeat(3, minmax(110px, .45fr));
  gap: .8rem;
  margin-top: 1rem;
}

.field-block {
  min-width: 0;
}

.field-block label {
  display: block;
  margin-bottom: .38rem;
  color: #08154A;
  font-size: .86rem;
  font-weight: 950;
}

.field-block input,
.field-block select,
.field-block textarea {
  width: 100%;
}

.field-block small {
  display: block;
  margin-top: .55rem;
  color: #667085;
  font-size: .82rem;
  line-height: 1.5;
}

.author-editor-card {
  margin-top: 1rem;
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  overflow: hidden;
}

.forum-editor-topbar {
  padding: 1rem;
  border-bottom: 1px solid rgba(8,21,74,.08);
  background: #fff;
}

.forum-editor-topbar strong {
  display: block;
  color: #08154A;
  font-size: 1rem;
  font-weight: 950;
}

.editor-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.editor-history-actions button,
.forum-toolbar button,
.author-snippet-grid button {
  min-height: 36px;
  border: 1px solid rgba(8,21,74,.12);
  border-radius: 10px;
  padding: .45rem .7rem;
  background: #fff;
  color: #08154A;
  font-size: .84rem;
  font-weight: 950;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: none;
}

.editor-history-actions button:hover,
.forum-toolbar button:hover,
.author-snippet-grid button:hover {
  border-color: rgba(213,22,53,.28);
  background: #fff7f8;
}

.editor-history-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(8,21,74,.08);
  background: #f7f9fd;
}

.forum-toolbar button:first-child,
.forum-toolbar button:nth-child(12) {
  background: #08154A;
  color: #fff;
}

.author-snippet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(8,21,74,.08);
  background: #fff;
}

.author-snippet-grid button {
  justify-content: flex-start;
  text-align: left;
  background: #f7f9fd;
}

.content-field {
  padding: 1rem;
}

.content-field textarea.markdown-editor {
  min-height: 520px;
  border: 1px solid rgba(8,21,74,.14);
  border-radius: 14px;
  padding: 1rem;
  background:
    linear-gradient(rgba(8,21,74,.025) 1px, transparent 1px),
    #fff;
  background-size: 100% 30px;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .95rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.content-field textarea.markdown-editor:focus {
  border-color: rgba(213,22,53,.45);
  box-shadow: 0 0 0 4px rgba(213,22,53,.10);
}

.author-cheatsheet {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0 1rem 1rem;
}

.author-cheatsheet span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(8,21,74,.08);
  border-radius: 9px;
  padding: .35rem .55rem;
  background: #f1f4f9;
  color: #344054;
  font-size: .78rem;
  font-weight: 850;
}

.mail-composer {
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.mail-composer .composer-titlebar {
  align-items: center;
  padding: .8rem 1rem .65rem;
  background: #fff;
}

.mail-composer .composer-titlebar strong {
  font-size: .95rem;
}

.mail-composer .composer-titlebar span {
  display: block;
  margin-top: .16rem;
  font-size: .84rem;
  line-height: 1.45;
}

.mail-composer .content-field {
  padding: .8rem 1rem .55rem;
}

.mail-composer .content-field label {
  margin-bottom: .25rem;
  color: #475467;
  font-size: .78rem;
}

.mail-composer .content-field small {
  margin-top: .4rem;
  font-size: .78rem;
}

.mail-composer .content-field textarea.markdown-editor {
  min-height: 520px;
  border: 0;
  border-radius: 0;
  padding: .65rem 0;
  background:
    linear-gradient(rgba(8,21,74,.028) 1px, transparent 1px),
    #fff;
  background-size: 100% 31px;
  box-shadow: none;
  resize: vertical;
}

.mail-composer .content-field textarea.markdown-editor:focus {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.composer-toolbar-row {
  display: flex;
  align-items: center;
  gap: .38rem;
  flex-wrap: wrap;
  padding: .55rem .75rem;
  border-top: 1px solid rgba(8,21,74,.08);
  background: #fbfcff;
}

.composer-history {
  display: flex;
  gap: .3rem;
  padding-right: .45rem;
  border-right: 1px solid rgba(8,21,74,.10);
}

.composer-toolbar {
  flex: 1 1 auto;
  gap: .3rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.composer-toolbar button,
.composer-history button,
.quick-inserts summary {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: .36rem .55rem;
  font-size: .8rem;
  line-height: 1;
  white-space: nowrap;
}

.composer-history button {
  width: 34px;
  padding: 0;
}

.composer-toolbar button:first-child,
.composer-toolbar button[title="Slide"] {
  background: #08154A;
  color: #fff;
}

.quick-inserts {
  position: relative;
  margin-left: auto;
}

.quick-inserts summary {
  border: 1px solid rgba(8,21,74,.12);
  background: #fff;
  color: #08154A;
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.quick-inserts summary::-webkit-details-marker {
  display: none;
}

.quick-inserts summary:hover {
  border-color: rgba(213,22,53,.28);
  background: #fff7f8;
}

.quick-inserts .author-snippet-grid {
  display: none;
}

.quick-inserts[open] .author-snippet-grid {
  position: absolute;
  right: 0;
  bottom: calc(100% + 1.1rem);
  z-index: 30;
  width: min(520px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: .7rem;
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(8,21,74,.16);
}

.quick-inserts[open] .author-snippet-grid button {
  min-height: 38px;
  border-radius: 9px;
  background: #f7f9fd;
}

.compact-cheatsheet {
  gap: .35rem;
  padding: .45rem .95rem .9rem;
  border-top: 1px solid rgba(8,21,74,.05);
  background: #fbfcff;
}

.compact-cheatsheet span {
  min-height: 24px;
  border-radius: 7px;
  padding: .25rem .45rem;
  font-size: .72rem;
  color: #667085;
}

.lesson-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}

.lesson-preview-actions .preview-mode-tabs {
  margin: 0;
}

.full-preview-button {
  min-height: 38px;
  white-space: nowrap;
}

.lesson-preview-open {
  overflow: hidden;
}

.lesson-full-preview[hidden] {
  display: none !important;
}

.lesson-full-preview {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(8,21,74,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.025) 1px, transparent 1px),
    #f5f7fb;
  background-size: 32px 32px;
  color: #101828;
}

.lesson-full-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(8,21,74,.10);
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 40px rgba(8,21,74,.08);
}

.lesson-full-preview__bar h2 {
  color: #08154A;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
}

.lesson-full-preview__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
}

.lesson-full-preview__actions .preview-mode-tabs {
  margin: 0;
}

.lesson-full-preview__close {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: .55rem .9rem;
  background: #D51635;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(213,22,53,.22);
}

.lesson-full-preview__page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.lesson-full-preview__chrome {
  display: grid;
  gap: 1rem;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.lesson-full-preview__hero,
.lesson-full-preview__content {
  border: 1px solid rgba(8,21,74,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(8,21,74,.10);
}

.lesson-full-preview__hero {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at 92% 18%, rgba(213,22,53,.16), transparent 30%),
    #fff;
}

.lesson-full-preview__hero h1 {
  margin-top: .25rem;
  color: #08154A;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 950;
  line-height: .98;
  letter-spacing: 0;
}

.lesson-full-preview__hero span {
  display: block;
  margin-top: .75rem;
  color: #667085;
  font-weight: 800;
}

.lesson-full-preview__content {
  padding: clamp(1.1rem, 3vw, 2rem) !important;
}

.lesson-full-preview .lesson-render {
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.85;
}

.lesson-full-preview .slide-deck {
  gap: 1rem;
}

.lesson-full-preview .slide-card-render {
  min-height: min(640px, calc(100vh - 280px));
}

.lesson-full-preview .slide-card-render__body h1,
.lesson-full-preview .slide-card-render__body h2 {
  font-size: clamp(2.25rem, 5.5vw, 5rem) !important;
}

.lesson-author-preview {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.lesson-author-preview > header {
  margin-bottom: 1rem;
}

.lesson-author-preview .preview-mode-tabs {
  margin: 0;
}

.lesson-author-preview .preview-mode-tabs button {
  border-radius: 10px !important;
}

.lesson-author-preview .markdown-preview,
.lesson-author-preview .slide-preview {
  min-width: 0;
}

.lesson-author-preview .lesson-render {
  border: 1px solid rgba(8,21,74,.08);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.lesson-author-preview .slide-deck {
  gap: 1rem;
}

.lesson-author-preview .slide-deck__controls {
  position: sticky;
  bottom: 0;
  border: 1px solid rgba(8,21,74,.08);
  border-radius: 12px;
  padding: .65rem;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

.lesson-author-preview .slide-deck__controls button {
  border-radius: 10px;
}

.lesson-author-preview .slide-card-render {
  min-height: 360px;
}

.lesson-author-preview .slide-card-render__body {
  font-size: 1rem;
}

.lesson-author-preview .slide-card-render__body h1,
.lesson-author-preview .slide-card-render__body h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem) !important;
  letter-spacing: 0 !important;
}

@media (max-width: 1280px) {
  .lesson-author-shell {
    grid-template-columns: 1fr;
  }

  .lesson-author-preview {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .lesson-author-head,
  .lesson-author-preview > header,
  .forum-editor-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lesson-preview-actions,
  .lesson-full-preview__bar,
  .lesson-full-preview__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-meta-grid,
  .author-snippet-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-field textarea.markdown-editor {
    min-height: 420px;
  }

  .composer-toolbar-row {
    align-items: stretch;
  }

  .composer-history {
    flex: 0 0 auto;
  }

  .quick-inserts {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .quick-inserts summary {
    width: 100%;
  }

  .quick-inserts[open] .author-snippet-grid {
    position: static;
    width: 100%;
    margin-top: .45rem;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .lesson-meta-grid,
  .author-snippet-grid {
    grid-template-columns: 1fr;
  }

  .forum-toolbar button,
  .editor-history-actions button {
    flex: 1 1 auto;
  }

  .composer-toolbar button,
  .composer-history button {
    flex: 0 0 34px;
  }

  .composer-toolbar button[title="Slide"],
  .composer-toolbar button[title="Separateur de slide"] {
    flex-basis: auto;
  }

  .quick-inserts[open] .author-snippet-grid {
    grid-template-columns: 1fr;
  }

  .lesson-author-main,
  .lesson-author-preview {
    padding: .9rem !important;
  }

  .lesson-full-preview__bar {
    padding: .85rem;
  }

  .lesson-full-preview__page {
    padding: .8rem;
  }

  .lesson-full-preview .preview-mode-tabs button,
  .lesson-full-preview__close,
  .full-preview-button {
    width: 100%;
  }
}

/* ===== SciencesClaires-inspired skin for CampusCode ===== */
:root {
  --sc-blue-900: #08154A;
  --sc-blue-800: #12306F;
  --sc-blue-700: #1D4ED8;
  --sc-red: #D51635;
  --sc-red-dark: #B8122D;
  --sc-bg: #F3F7FF;
  --sc-bg-soft: #EFF5FF;
  --sc-text: #101828;
  --sc-muted: #667085;
  --sc-line: rgba(8,21,74,.11);
  --sc-shadow: 0 22px 60px rgba(8,21,74,.10);
  --sc-shadow-soft: 0 14px 36px rgba(8,21,74,.07);
}

body {
  background:
    radial-gradient(circle at 8% 18%, rgba(213,22,53,.055), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(29,78,216,.08), transparent 32%),
    linear-gradient(180deg, #fff 0%, var(--sc-bg) 42%, #fff 100%) !important;
}

.card,
.dashboard-panel,
.role-hero,
.catalog-hero,
.catalog-filters,
.course-detail-hero,
.course-path-module,
.lesson-topbar,
.lesson-reader__sidebar,
.lesson-reader__main > .card {
  border: 1px solid var(--sc-line) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: var(--sc-shadow-soft) !important;
}

.btn-primary,
.cc-register,
.cc-mobile__cta,
.catalog-filter-submit {
  border-radius: 999px !important;
  background: var(--sc-red) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(213,22,53,.20) !important;
}

.btn-primary:hover,
.cc-register:hover,
.cc-mobile__cta:hover {
  background: var(--sc-red-dark) !important;
}

.btn-navy,
.btn-light,
.cc-login,
.cc-app-ghost-link {
  border-radius: 999px !important;
}

.btn-navy {
  background: var(--sc-blue-900) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(8,21,74,.16) !important;
}

.btn-light,
.cc-login,
.cc-app-ghost-link {
  border: 1px solid var(--sc-line) !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--sc-blue-900) !important;
  box-shadow: none !important;
}

.eyebrow,
.section-kicker,
.hero-kicker {
  color: var(--sc-red) !important;
  letter-spacing: .08em !important;
}

.cc-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--sc-blue-900) !important;
  background: rgba(255,255,255,.96) !important;
  color: var(--sc-blue-900) !important;
  box-shadow: 0 10px 30px rgba(8,21,74,.08) !important;
  backdrop-filter: blur(18px);
}

.cc-header__inner {
  min-height: 72px !important;
}

.cc-brand,
.cc-main-nav a,
.cc-login {
  color: var(--sc-blue-900) !important;
}

.cc-brand::before,
.cc-footer__logo::before,
.cc-app-logo::before {
  content: "*";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: .45rem;
  border-radius: 10px;
  background: #FFF0F3;
  color: var(--sc-red);
  font-size: 1rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(213,22,53,.16);
}

.cc-main-nav a::after {
  background: var(--sc-red) !important;
}

.cc-main-nav a:hover,
.cc-brand span,
.cc-profile__chevron {
  color: var(--sc-red) !important;
}

.cc-profile__trigger {
  border-color: rgba(8,21,74,.14) !important;
  background: #fff !important;
  color: var(--sc-blue-900) !important;
}

.cc-mobile {
  border-color: var(--sc-line) !important;
  background: rgba(255,255,255,.98) !important;
}

.cc-mobile a,
.cc-mobile button {
  color: var(--sc-blue-900) !important;
}

.cc-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--sc-line) !important;
  background: #fff !important;
  color: var(--sc-blue-900) !important;
}

.cc-footer a,
.cc-footer h3,
.cc-footer__logo,
.cc-footer__bottom {
  color: var(--sc-blue-900) !important;
}

.cc-footer p,
.cc-footer__bottom {
  color: var(--sc-muted) !important;
}

.cc-app-body {
  background: var(--sc-bg) !important;
}

.cc-app-shell {
  background:
    radial-gradient(circle at 90% 12%, rgba(213,22,53,.07), transparent 30%),
    linear-gradient(180deg, #f8fbff, var(--sc-bg)) !important;
}

.cc-app-sidebar {
  border-right: 1px solid rgba(8,21,74,.10) !important;
  background: #fff !important;
  color: var(--sc-blue-900) !important;
  box-shadow: 12px 0 36px rgba(8,21,74,.06);
}

.cc-app-logo,
.cc-app-nav__link,
.cc-app-sidebar__foot span {
  color: var(--sc-blue-900) !important;
}

.cc-app-logo span {
  color: var(--sc-red) !important;
}

.cc-app-nav__label {
  color: #8A94A8 !important;
}

.cc-app-nav__link {
  border-radius: 14px !important;
}

.cc-app-nav__link:hover,
.cc-app-nav__link.is-active {
  background: #EDF4FF !important;
  color: var(--sc-blue-900) !important;
}

.cc-app-nav__link.is-active {
  box-shadow: inset 4px 0 0 var(--sc-red);
}

.cc-app-sidebar__foot {
  border-top: 1px solid var(--sc-line) !important;
}

.cc-app-sidebar__foot button {
  border-radius: 14px !important;
  background: var(--sc-red) !important;
}

.cc-app-topbar {
  border-bottom: 1px solid var(--sc-line) !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(18px);
}

.cc-app-topbar__left span {
  color: #8A94A8 !important;
}

.cc-app-topbar__left strong,
.cc-app-profile__text strong {
  color: var(--sc-blue-900) !important;
}

.cc-app-main {
  background:
    linear-gradient(rgba(8,21,74,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.025) 1px, transparent 1px),
    transparent;
  background-size: 32px 32px;
}

.home-redesign {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background:
    radial-gradient(circle at 4% 12%, rgba(213,22,53,.08), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(29,78,216,.10), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f4f8ff 55%, #fff 100%) !important;
}

.home-redesign .home-sales-hero {
  min-height: min(74vh, 760px) !important;
  padding-top: clamp(4rem, 7vw, 6.5rem) !important;
}

.home-redesign .home-sales-hero h1 {
  max-width: 13ch !important;
}

.home-redesign .home-sales-hero h1::after,
.catalog-hero h1::after,
.course-detail-hero h1::after {
  content: "";
  display: block;
  width: 86px;
  height: 6px;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sc-blue-900), var(--sc-red), var(--sc-blue-900));
}

.product-window,
.student-demo,
.cta-mini-dashboard,
.home-redesign .student-final-cta {
  box-shadow: var(--sc-shadow) !important;
}

.student-strip article,
.student-benefit-card,
.journey-card,
.testimonial-card,
.product-window,
.student-demo {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.student-strip article:hover,
.student-benefit-card:hover,
.journey-card:hover,
.testimonial-card:hover,
.course-card--premium:hover,
.dashboard-panel:hover {
  transform: translateY(-6px);
  border-color: rgba(213,22,53,.35) !important;
  box-shadow: var(--sc-shadow) !important;
}

.student-strip {
  margin-top: 1rem !important;
}

.student-benefit-card > span,
.journey-card > span {
  display: grid !important;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  background: #FFF0F3;
  color: var(--sc-red) !important;
  font-size: 1rem !important;
  box-shadow: inset 0 0 0 1px rgba(213,22,53,.14);
}

.catalog-page,
.course-detail-page,
.role-dashboard {
  display: grid;
  gap: 1.5rem;
}

.catalog-hero,
.course-detail-hero,
.role-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 18%, rgba(213,22,53,.14), transparent 30%),
    rgba(255,255,255,.96) !important;
}

.catalog-hero::before,
.course-detail-hero::before,
.role-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sc-blue-900), #fff, var(--sc-red));
}

.catalog-hero__visual,
.course-detail-card {
  background:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(135deg, var(--sc-blue-900), var(--sc-blue-800)) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  color: #fff !important;
  border-radius: 24px !important;
  box-shadow: 0 22px 54px rgba(8,21,74,.22) !important;
}

.catalog-hero__visual strong,
.catalog-hero__visual small,
.course-detail-card h2,
.course-detail-card .eyebrow {
  color: #fff !important;
}

.catalog-hero__chips span,
.course-detail-meta span,
.course-card__meta span,
.course-card__progress-hint span,
.role-bubbles span,
.role-bubbles a,
.platform-bubbles span {
  border-radius: 999px !important;
}

.catalog-filters {
  background: rgba(255,255,255,.96) !important;
  box-shadow: var(--sc-shadow-soft) !important;
}

.chip-choice-list button.active,
.chip-choice-list button[aria-pressed="true"],
.preview-mode-tabs button.active,
.lesson-display-tabs button.active {
  background: var(--sc-blue-900) !important;
  border-color: var(--sc-blue-900) !important;
}

.course-card--premium {
  overflow: hidden;
  border-radius: 24px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: var(--sc-shadow-soft) !important;
}

.course-card__visual {
  background:
    radial-gradient(circle at 78% 24%, rgba(213,22,53,.30), transparent 34%),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    var(--sc-blue-900) !important;
  background-size: auto, 28px 28px, 28px 28px, auto !important;
}

.course-card__visual span {
  border-radius: 18px !important;
  background: rgba(255,255,255,.14) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.course-card__visual i,
.course-progress-bar i,
.mini-meter i,
.progress-preview i,
.cta-progress i {
  background: linear-gradient(90deg, var(--sc-red), #fff, var(--sc-blue-900)) !important;
}

.course-card__body h3,
.catalog-results-head h2,
.course-detail-hero h1,
.course-path-module__head h3,
.dashboard-panel h2,
.role-hero h1,
.next-action-strip h2 {
  color: var(--sc-blue-900) !important;
}

.course-card__body p,
.catalog-hero p,
.course-detail-hero p,
.role-hero p,
.dashboard-panel p,
.next-action-strip p {
  color: var(--sc-muted) !important;
}

.course-card__cta {
  width: calc(100% - 2rem) !important;
  margin: 0 1rem 1rem !important;
  border-radius: 14px !important;
}

.role-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .35fr);
  align-items: center;
  gap: 1.2rem;
}

.role-quick-actions {
  display: grid !important;
  gap: .75rem !important;
}

.role-quick-actions a,
.bubble-action,
.dashboard-course-bubble a,
.teacher-course-bubbles a {
  border: 1px solid rgba(8,21,74,.12) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--sc-blue-900) !important;
}

.role-quick-actions a:first-child,
.bubble-action,
.dashboard-course-bubble a:hover,
.teacher-course-bubbles a:hover {
  background: var(--sc-red) !important;
  border-color: var(--sc-red) !important;
  color: #fff !important;
}

.dashboard-metrics article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sc-line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: var(--sc-shadow-soft) !important;
}

.dashboard-metrics article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sc-blue-900), var(--sc-red));
}

.dashboard-metrics strong {
  color: var(--sc-blue-900) !important;
}

.dashboard-course-bubble,
.attempt-bubble,
.payment-bubbles article,
.teacher-course-bubbles article,
.child-card,
.course-path-lesson {
  border: 1px solid rgba(8,21,74,.08) !important;
  border-radius: 16px !important;
  background: #F8FBFF !important;
}

.dashboard-course-bubble:hover,
.course-path-lesson:hover {
  background: #EEF5FF !important;
}

.lesson-topbar,
.lesson-reader__main > .card {
  background: #fff !important;
}

.lesson-topbar h1,
.lesson-reader__main h2 {
  color: var(--sc-blue-900) !important;
}

.lesson-render,
.slide-card-render {
  color: var(--sc-text) !important;
}

.slide-card-render {
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 90% 15%, rgba(213,22,53,.14), transparent 30%),
    #fff !important;
}

@media (max-width: 1100px) {
  .role-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cc-header__inner {
    min-height: 64px !important;
  }

  .home-redesign .home-sales-hero h1 {
    max-width: none !important;
  }

  .catalog-hero,
  .course-detail-hero,
  .role-hero {
    border-radius: 20px !important;
  }

  .student-strip {
    width: min(100% - 24px, 1480px) !important;
  }
}

.home-sc-stats {
  width: min(100% - 64px, 1480px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(1.1rem, 2.2vw, 1.8rem);
  background:
    linear-gradient(90deg, var(--sc-blue-900), var(--sc-blue-800), var(--sc-blue-900));
  box-shadow: 0 28px 70px rgba(8,21,74,.18);
}

.home-sc-stats article {
  text-align: center;
}

.home-sc-stats strong {
  display: block;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  font-weight: 950;
}

.home-sc-stats span {
  display: block;
  margin-top: .4rem;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  line-height: 1.45;
  font-weight: 750;
}

.cc-app-main .role-hero {
  background:
    radial-gradient(circle at 92% 18%, rgba(213,22,53,.38), transparent 34%),
    linear-gradient(135deg, var(--sc-blue-900), var(--sc-blue-800)) !important;
  color: #fff !important;
  box-shadow: 0 30px 78px rgba(8,21,74,.20) !important;
}

.cc-app-main .role-hero h1,
.cc-app-main .role-hero p,
.cc-app-main .role-hero .eyebrow {
  color: #fff !important;
}

.cc-app-main .role-hero p {
  opacity: .82;
}

.cc-app-main .role-hero .role-bubbles span {
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}

.cc-app-main .role-hero .role-quick-actions a {
  border-color: rgba(255,255,255,.20) !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}

.cc-app-main .role-hero .role-quick-actions a:first-child {
  background: #fff !important;
  color: var(--sc-blue-900) !important;
}

.cc-app-main .next-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(circle at 96% 20%, rgba(213,22,53,.10), transparent 26%),
    #fff !important;
}

.cc-app-main .dashboard-zone-grid {
  align-items: start;
}

.cc-app-main .dashboard-panel .panel-head {
  border-bottom: 1px solid rgba(8,21,74,.08);
  padding-bottom: 1rem;
}

.cc-app-main .dashboard-course-bubble,
.cc-app-main .attempt-bubble,
.cc-app-main .teacher-course-bubbles article {
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.cc-app-main .dashboard-course-bubble:hover,
.cc-app-main .attempt-bubble:hover,
.cc-app-main .teacher-course-bubbles article:hover {
  transform: translateX(4px);
  border-color: rgba(213,22,53,.24) !important;
}

@media (max-width: 900px) {
  .home-sc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-app-main .next-action-strip {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .home-sc-stats {
    width: min(100% - 24px, 1480px);
    grid-template-columns: 1fr;
  }
}

/* Final course-card spacing: badge and progress bar must stay visually separate. */
.course-card__visual {
  height: 156px !important;
}

.course-card__visual span {
  transform: translateY(-.55rem);
}

.course-card__visual i {
  bottom: .95rem !important;
}

/* Mobile/home mockup guard: internal grid items must not visually spill out. */
.product-window,
.product-window__body,
.product-window__body > *,
.product-path,
.path-step,
.lesson-preview,
.progress-preview {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-window__body > *,
.product-path,
.path-step {
  width: 100%;
}

.lesson-lines .w-90,
.panel-visual .w-90 {
  width: 90% !important;
}

.lesson-lines .w-80,
.panel-visual .w-80 {
  width: 80% !important;
}

.lesson-lines .w-75,
.panel-visual .w-75 {
  width: 75% !important;
}

.lesson-lines .w-60,
.panel-visual .w-60 {
  width: 60% !important;
}

/* ===== ScienceClair Django replacement ===== */
:root {
  --science-blue-950: #061347;
  --science-blue-900: #08154A;
  --science-blue-800: #10216A;
  --science-blue-100: #EAF1FF;
  --science-red: #D51635;
  --science-red-dark: #B8122D;
  --science-bg: #F5F7FB;
  --science-soft: #F9FBFF;
  --science-line: rgba(8, 21, 74, .12);
  --science-muted: #667085;
  --science-text: #172033;
  --science-shadow: 0 28px 70px rgba(8, 21, 74, .13);
  --science-shadow-soft: 0 16px 40px rgba(8, 21, 74, .08);
}

.sc-body {
  background:
    linear-gradient(rgba(8,21,74,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.025) 1px, transparent 1px),
    var(--science-bg);
  background-size: 32px 32px;
  color: var(--science-text);
}

.sc-container {
  width: min(calc(100% - 2rem), 1200px);
  margin-inline: auto;
}

.sc-eyebrow {
  margin: 0 0 .7rem;
  color: var(--science-red);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sc-btn,
.sc-login,
.sc-register,
.sc-card-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .75rem 1.15rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.sc-btn:hover,
.sc-login:hover,
.sc-register:hover,
.sc-card-link:hover {
  transform: translateY(-2px);
}

.sc-btn--primary,
.sc-register {
  border: 1px solid var(--science-red);
  background: var(--science-red);
  color: #fff;
  box-shadow: 0 16px 34px rgba(213, 22, 53, .22);
}

.sc-btn--primary:hover,
.sc-register:hover {
  background: var(--science-red-dark);
}

.sc-btn--ghost,
.sc-login {
  border: 1px solid var(--science-line);
  background: #fff;
  color: var(--science-blue-900);
}

.sc-btn--light {
  border: 1px solid rgba(255,255,255,.35);
  background: #fff;
  color: var(--science-blue-900);
}

.sc-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(8,21,74,.18);
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 26px rgba(8,21,74,.08);
  backdrop-filter: blur(18px);
}

.sc-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sc-brand,
.sc-footer__logo,
.sc-app-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--science-blue-900) !important;
  font-weight: 950;
  text-decoration: none;
}

.sc-brand span:last-child,
.sc-footer__logo span:last-child,
.sc-app-logo span:last-child {
  color: var(--science-red) !important;
}

.sc-brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--science-blue-900), var(--science-red));
  color: #fff !important;
  font-size: .72rem;
  box-shadow: 0 12px 26px rgba(8,21,74,.16);
}

.sc-level-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--science-blue-900);
  font-size: .92rem;
  font-weight: 900;
}

.sc-level-nav a,
.sc-nav-group > button {
  color: var(--science-blue-900);
  text-decoration: none;
}

.sc-nav-group {
  position: relative;
}

.sc-nav-group > button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.sc-nav-group > div {
  position: absolute;
  left: 0;
  top: calc(100% + 16px);
  min-width: 150px;
  display: none;
  border: 1px solid var(--science-line);
  border-radius: 16px;
  padding: .45rem;
  background: #fff;
  box-shadow: var(--science-shadow-soft);
}

.sc-nav-group:hover > div,
.sc-nav-group:focus-within > div {
  display: grid;
}

.sc-nav-group > div a {
  border-radius: 10px;
  padding: .6rem .75rem;
}

.sc-nav-group > div a:hover,
.sc-level-nav > a:hover {
  background: var(--science-blue-100);
  color: var(--science-red);
}

.sc-header__actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.sc-burger {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--science-line);
  border-radius: 14px;
  background: #fff;
  color: var(--science-blue-900);
  font-weight: 950;
}

.sc-profile-trigger {
  border-color: var(--science-line) !important;
  background: #fff !important;
  color: var(--science-blue-900) !important;
}

.sc-mobile {
  width: min(calc(100% - 2rem), 420px);
  display: grid;
  gap: .5rem;
  margin: 0 auto 1rem;
  border: 1px solid var(--science-line);
  border-radius: 18px;
  padding: .75rem;
  background: #fff;
  box-shadow: var(--science-shadow-soft);
}

.sc-mobile a,
.sc-mobile button {
  border: 0;
  border-radius: 12px;
  padding: .75rem;
  background: var(--science-soft);
  color: var(--science-blue-900);
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.sc-mobile__cta {
  background: var(--science-red) !important;
  color: #fff !important;
}

.sc-public-main {
  padding-top: 72px;
}

.sc-public-main:not(.sc-public-main--home),
.sc-catalog,
.sc-course-detail,
.sc-auth {
  width: min(calc(100% - 2rem), 1200px);
  margin-inline: auto;
}

.sc-public-main:not(.sc-public-main--home) {
  padding-bottom: 4rem;
}

.sc-messages {
  padding-top: 92px;
}

.sc-messages > div {
  margin-bottom: .75rem;
  border: 1px solid var(--science-line);
  border-radius: 16px;
  padding: .8rem 1rem;
  background: #fff;
  color: var(--science-blue-900);
  box-shadow: var(--science-shadow-soft);
}

.sc-footer {
  border-top: 1px solid rgba(8,21,74,.18);
  background: #fff;
}

.sc-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 2fr);
  gap: 2rem;
  padding: 3rem 0;
}

.sc-footer__brand p {
  max-width: 420px;
  margin-top: 1rem;
  color: var(--science-muted);
  line-height: 1.7;
}

.sc-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.sc-footer__cols h3 {
  margin: 0 0 .8rem;
  color: var(--science-blue-900);
  font-weight: 950;
}

.sc-footer__cols a {
  display: block;
  margin: .45rem 0;
  color: var(--science-muted);
  font-weight: 750;
  text-decoration: none;
}

.sc-footer__cols a:hover {
  color: var(--science-red);
}

.sc-footer__bottom {
  border-top: 1px solid var(--science-line);
  padding: 1rem;
  color: var(--science-muted);
  text-align: center;
}

/* Home */
.sc-home {
  overflow: hidden;
  background:
    linear-gradient(rgba(8,21,74,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,21,74,.025) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #f7faff 48%, #fff 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.sc-hero {
  background: rgba(255,255,255,.82);
}

.sc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .85fr);
  align-items: center;
  gap: 4rem;
  min-height: 690px;
  padding: 5rem 0 4rem;
}

.sc-hero__copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--science-blue-900);
  font-size: 4.6rem;
  line-height: 1.02;
  font-weight: 950;
}

.sc-hero__copy p {
  max-width: 640px;
  margin-top: 1.25rem;
  color: var(--science-muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.sc-hero__actions,
.sc-course-actions,
.sc-next-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.sc-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.3rem;
}

.sc-hero__proof span,
.sc-catalog-hero__chips span,
.sc-course-tags span {
  border: 1px solid var(--science-line);
  border-radius: 999px;
  padding: .48rem .72rem;
  background: #fff;
  color: var(--science-blue-900);
  font-size: .84rem;
  font-weight: 900;
}

.sc-hero__visual {
  position: relative;
  min-width: 0;
}

.sc-hero__visual img,
.sc-showcase__media img,
.sc-course-hero__visual img {
  display: block;
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--science-shadow);
}

.sc-hero__visual img {
  aspect-ratio: 4 / 3;
}

.sc-floating-card {
  position: absolute;
  border: 1px solid var(--science-line);
  border-radius: 18px;
  padding: .9rem 1rem;
  background: #fff;
  box-shadow: var(--science-shadow-soft);
}

.sc-floating-card strong {
  display: block;
  color: var(--science-blue-900);
  font-size: 1.35rem;
  font-weight: 950;
}

.sc-floating-card span {
  color: var(--science-muted);
  font-size: .82rem;
  font-weight: 800;
}

.sc-floating-card--left {
  left: -1rem;
  bottom: 1rem;
}

.sc-floating-card--right {
  right: -1rem;
  top: 1rem;
}

.sc-stats-band,
.sc-success-band {
  background: linear-gradient(90deg, var(--science-blue-900), var(--science-blue-800), var(--science-blue-900));
  color: #fff;
}

.sc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.sc-stats-grid article {
  text-align: center;
}

.sc-stats-grid strong {
  display: block;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 950;
}

.sc-stats-grid span {
  color: rgba(255,255,255,.78);
  font-weight: 800;
}

.sc-section {
  padding: 5rem 0;
}

.sc-section--soft {
  background: rgba(234,241,255,.55);
}

.sc-section-title {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.sc-section-title h2,
.sc-demo-copy h2,
.sc-showcase h2,
.sc-success-band h2 {
  margin: 0;
  color: var(--science-blue-900);
  font-size: 2.65rem;
  line-height: 1.12;
  font-weight: 950;
}

.sc-section-title p:not(.sc-eyebrow),
.sc-demo-copy p,
.sc-showcase p,
.sc-success-band p {
  color: var(--science-muted);
  line-height: 1.75;
}

.sc-feature-grid,
.sc-course-grid,
.sc-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sc-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sc-feature-card,
.sc-course-card,
.sc-price-card,
.sc-panel,
.sc-next-card,
.sc-empty-card,
.sc-auth__card,
.sc-auth__promo {
  border: 1px solid var(--science-line);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--science-shadow-soft);
}

.sc-feature-card {
  overflow: hidden;
}

.sc-feature-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.sc-feature-card div {
  padding: 1rem;
}

.sc-feature-card span {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 999px;
  background: var(--science-red);
}

.sc-feature-card h3,
.sc-course-card h3,
.sc-price-card h3 {
  margin: .55rem 0;
  color: var(--science-blue-900);
  font-weight: 950;
}

.sc-feature-card p,
.sc-course-card p,
.sc-price-card p {
  color: var(--science-muted);
  line-height: 1.65;
}

.sc-demo-grid,
.sc-showcase {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1fr);
  align-items: center;
  gap: 3rem;
}

.sc-live-demo {
  border: 1px solid var(--science-line);
  border-radius: 28px;
  padding: 1rem;
  background: #fff;
  box-shadow: var(--science-shadow);
}

.sc-live-demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.sc-live-demo__tabs button,
.sc-choice-list button,
.sc-reader-tabs button {
  border: 1px solid var(--science-line);
  border-radius: 999px;
  padding: .62rem .86rem;
  background: #fff;
  color: var(--science-blue-900);
  font-weight: 900;
}

.sc-live-demo__tabs button.is-active,
.sc-choice-list button.active,
.sc-reader-tabs button.active {
  border-color: var(--science-blue-900);
  background: var(--science-blue-900);
  color: #fff;
}

.sc-live-demo__screen {
  min-height: 300px;
  border-radius: 22px;
  padding: 1.25rem;
  background: var(--science-blue-900);
  color: #fff;
}

.sc-live-panel {
  display: none;
}

.sc-live-panel.is-active {
  display: block;
}

.sc-live-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
}

.sc-live-panel p {
  color: rgba(255,255,255,.78);
}

.sc-live-panel pre,
.sc-attempt-history pre {
  overflow-x: auto;
  border-radius: 16px;
  padding: 1rem;
  background: #071027;
  color: #fff;
}

.sc-fake-lines {
  display: grid;
  gap: .65rem;
  margin-top: 1.2rem;
}

.sc-fake-lines i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.sc-fake-lines i:nth-child(1) { width: 92%; }
.sc-fake-lines i:nth-child(2) { width: 74%; }
.sc-fake-lines i:nth-child(3) { width: 58%; }

.sc-answer-list {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.sc-answer-list span,
.sc-certificate-mini {
  border-radius: 16px;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.12);
  color: #fff;
}

.sc-answer-list .is-correct {
  background: #fff;
  color: var(--science-blue-900);
}

.sc-showcase__media img {
  aspect-ratio: 4 / 3;
}

.sc-check-list {
  display: grid;
  gap: .75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.sc-check-list li {
  border: 1px solid var(--science-line);
  border-radius: 14px;
  padding: .85rem 1rem;
  background: #fff;
  color: var(--science-blue-900);
  font-weight: 850;
}

.sc-price-card {
  padding: 1.35rem;
}

.sc-price-card > span {
  color: var(--science-red);
  font-weight: 950;
  text-transform: uppercase;
}

.sc-price-card.is-popular {
  border-color: rgba(213,22,53,.45);
  box-shadow: 0 22px 54px rgba(213,22,53,.13);
}

.sc-success-band {
  padding: 4rem 0;
  text-align: center;
}

.sc-success-band h2,
.sc-success-band p {
  color: #fff;
}

.sc-success-band p {
  margin-bottom: 1.5rem;
  opacity: .82;
}

/* Course cards */
.sc-course-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.sc-course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(213,22,53,.32);
  box-shadow: var(--science-shadow);
}

.sc-course-card__top,
.sc-course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.sc-subject-badge,
.sc-access {
  border-radius: 999px;
  padding: .42rem .7rem;
  color: #fff;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sc-subject-badge {
  background: linear-gradient(90deg, var(--science-blue-900), #1D4ED8);
}

.sc-course-card__top small {
  color: var(--science-muted);
  font-weight: 900;
}

.sc-course-card__body {
  flex: 1;
}

.sc-course-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--science-blue-900), var(--science-red));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
}

.sc-course-card__next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 18px;
  padding: 1rem;
  background: var(--science-blue-900);
  color: #fff;
}

.sc-course-card__next span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .76rem;
  font-weight: 800;
}

.sc-course-card__next strong {
  color: #fff;
}

.sc-access--free {
  background: #047857;
}

.sc-access--paid {
  background: var(--science-blue-900);
}

.sc-card-link {
  min-height: 38px;
  border: 1px solid var(--science-red);
  background: var(--science-red);
  color: #fff;
  padding: .62rem .9rem;
}

/* Catalog */
.sc-catalog,
.sc-course-detail,
.sc-auth {
  padding-top: 2rem;
}

.sc-catalog-hero,
.sc-course-hero,
.sc-dash-hero,
.sc-creator-hero,
.sc-lesson-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--science-line);
  border-radius: 28px;
  padding: 2rem;
  background: #fff;
  box-shadow: var(--science-shadow-soft);
}

.sc-catalog-hero h1,
.sc-course-hero h1,
.sc-dash-hero h1,
.sc-lesson-hero h1,
.sc-auth h1 {
  margin: 0;
  color: var(--science-blue-900);
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 950;
}

.sc-catalog-hero p,
.sc-course-hero p,
.sc-dash-hero p,
.sc-lesson-hero span,
.sc-auth p {
  color: var(--science-muted);
  line-height: 1.75;
}

.sc-catalog-hero__chips,
.sc-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.sc-catalog-hero__panel {
  border-radius: 24px;
  padding: 1.2rem;
  background: var(--science-blue-900);
  color: #fff;
}

.sc-mini-browser {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sc-mini-browser span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  opacity: .75;
}

.sc-mini-browser strong {
  margin-left: .5rem;
}

.sc-mini-lesson {
  display: grid;
  gap: .7rem;
  margin: 1.2rem 0;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,.12);
}

.sc-mini-lesson i {
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
}

.sc-mini-lesson i:nth-child(1) { width: 92%; }
.sc-mini-lesson i:nth-child(2) { width: 72%; }
.sc-mini-lesson i:nth-child(3) { width: 54%; }

.sc-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(170px, 1fr)) auto;
  align-items: end;
  gap: 1rem;
  margin: 1.25rem 0;
  border: 1px solid var(--science-line);
  border-radius: 24px;
  padding: 1rem;
  background: #fff;
  box-shadow: var(--science-shadow-soft);
}

.sc-field label {
  display: block;
  margin-bottom: .45rem;
  color: var(--science-blue-900);
  font-weight: 950;
}

.sc-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
}

.sc-filter-submit {
  white-space: nowrap;
}

.sc-catalog--dashboard .sc-filter-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sc-catalog--dashboard .sc-filter-submit {
  width: 100%;
}

.sc-results-head,
.sc-panel__head,
.sc-reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sc-results-head {
  margin: 2rem 0 1rem;
}

.sc-results-head h2,
.sc-panel h2,
.sc-next-card h2,
.sc-creator-hero h2,
.sc-course-about h2,
.sc-course-plan h2,
.sc-reader-head h2,
.sc-quiz-card h2,
.sc-exercise-card h2 {
  margin: 0;
  color: var(--science-blue-900);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 950;
}

.sc-results-head > span {
  border-radius: 999px;
  padding: .65rem .9rem;
  background: #FFEAF0;
  color: var(--science-red);
  font-weight: 950;
}

.sc-empty-card,
.sc-empty-inline {
  display: grid;
  gap: .25rem;
  padding: 1.2rem;
  color: var(--science-blue-900);
}

.sc-empty-inline {
  border: 1px dashed var(--science-line);
  border-radius: 16px;
  background: var(--science-soft);
}

.sc-empty-card span,
.sc-empty-inline span {
  color: var(--science-muted);
}

/* Dashboard */
.sc-app-shell {
  background: var(--science-bg) !important;
}

.sc-app-sidebar {
  background: rgba(255,255,255,.95) !important;
  color: var(--science-blue-900) !important;
}

.sc-app-sidebar__brand {
  border-bottom: 1px solid var(--science-line);
}

.sc-app-nav .cc-app-nav__link {
  color: var(--science-blue-900) !important;
}

.sc-app-nav .cc-app-nav__link.is-active {
  background: linear-gradient(90deg, var(--science-blue-900), var(--science-blue-800)) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(8,21,74,.16);
}

.sc-app-nav .cc-app-nav__link.is-active span {
  color: #fff !important;
}

.sc-app-sidebar__foot button {
  background: var(--science-red) !important;
}

.sc-app-topbar {
  background: rgba(255,255,255,.92) !important;
  border-bottom: 1px solid var(--science-line) !important;
  backdrop-filter: blur(18px);
}

.sc-app-main {
  padding: 1.5rem !important;
}

.sc-dashboard {
  display: grid;
  gap: 1.25rem;
}

.sc-dash-hero,
.sc-creator-hero {
  background: linear-gradient(135deg, #3655D9, #7C3AED, var(--science-red));
  color: #fff;
}

.sc-dash-hero h1,
.sc-dash-hero p,
.sc-dash-hero .sc-eyebrow,
.sc-creator-hero h2,
.sc-creator-hero p,
.sc-creator-hero .sc-eyebrow {
  color: #fff;
}

.sc-dash-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.sc-dash-hero__stats article {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,.14);
}

.sc-dash-hero__stats strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
}

.sc-dash-hero__stats span {
  color: rgba(255,255,255,.78);
  font-weight: 800;
}

.sc-dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sc-dash-metrics article {
  border: 1px solid var(--science-line);
  border-radius: 22px;
  padding: 1.15rem;
  background: #fff;
  box-shadow: var(--science-shadow-soft);
}

.sc-dash-metrics span {
  color: var(--science-muted);
  font-weight: 850;
}

.sc-dash-metrics strong {
  display: block;
  margin-top: .35rem;
  color: var(--science-blue-900);
  font-size: 2.3rem;
  font-weight: 950;
}

.sc-next-card,
.sc-panel,
.sc-creator-hero {
  padding: 1.4rem;
}

.sc-next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sc-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.sc-panel__head a {
  border-radius: 999px;
  padding: .55rem .8rem;
  background: var(--science-blue-100);
  color: var(--science-blue-900);
  font-weight: 900;
  text-decoration: none;
}

.sc-progress-list,
.sc-goal-list,
.sc-activity-list,
.sc-payment-list,
.sc-module-list,
.sc-lesson-list,
.sc-answer-form,
.sc-attempt-history {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.sc-progress-list article,
.sc-activity-list article,
.sc-payment-list article,
.sc-goal-list article,
.sc-child-grid article,
.sc-module-card,
.sc-lesson-list a,
.sc-lesson-list div {
  border: 1px solid var(--science-line);
  border-radius: 16px;
  padding: .9rem;
  background: var(--science-soft);
}

.sc-progress-list article,
.sc-activity-list article,
.sc-goal-list article,
.sc-child-grid article,
.sc-lesson-list a,
.sc-lesson-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sc-progress-list strong,
.sc-activity-list strong,
.sc-payment-list strong,
.sc-goal-list strong,
.sc-child-grid strong,
.sc-lesson-list strong {
  color: var(--science-blue-900);
  font-weight: 950;
}

.sc-progress-list span,
.sc-activity-list small,
.sc-payment-list span,
.sc-goal-list small,
.sc-child-grid small,
.sc-lesson-list span {
  color: var(--science-muted);
  font-weight: 750;
}

.sc-progress-list a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: .55rem .8rem;
  background: var(--science-red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.sc-goal-list article > span,
.sc-activity-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--science-line);
}

.sc-goal-list article.is-done > span,
.sc-activity-dot {
  border-color: #059669;
  background: #059669;
}

.sc-child-grid,
.sc-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.sc-child-grid article > span {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--science-blue-900);
  color: #fff;
  font-weight: 950;
}

.sc-creator-zone {
  display: grid;
  gap: 1.25rem;
}

.sc-creator-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sc-creator-hero > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.sc-platform-grid span {
  border-radius: 999px;
  padding: .75rem .9rem;
  background: var(--science-blue-100);
  color: var(--science-blue-900);
  font-weight: 900;
}

/* Course detail and lesson reader */
.sc-course-hero__visual {
  position: relative;
}

.sc-course-hero__visual img {
  aspect-ratio: 4 / 3;
}

.sc-course-hero__card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,.94);
  box-shadow: var(--science-shadow-soft);
}

.sc-course-hero__card span {
  color: var(--science-red);
  font-weight: 950;
  text-transform: uppercase;
}

.sc-course-hero__card strong {
  display: block;
  color: var(--science-blue-900);
}

.sc-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.sc-course-meta span {
  border-radius: 999px;
  padding: .45rem .72rem;
  background: var(--science-blue-100);
  color: var(--science-blue-900);
  font-weight: 900;
}

.sc-course-meta .is-free {
  background: #DCFCE7;
  color: #047857;
}

.sc-course-meta .is-paid {
  background: var(--science-blue-900);
  color: #fff;
}

.sc-course-progress {
  max-width: 520px;
  display: grid;
  gap: .6rem;
  margin-top: 1.2rem;
}

.sc-course-progress > div:first-child {
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.sc-course-progress strong {
  color: var(--science-blue-900);
  font-size: 2rem;
  font-weight: 950;
}

.sc-course-progress span {
  color: var(--science-muted);
  font-weight: 850;
}

.sc-course-progress > div:last-child {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #E8EDF6;
}

.sc-course-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--science-red), var(--science-blue-900));
}

.sc-course-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.sc-course-overview article {
  border: 1px solid var(--science-line);
  border-radius: 20px;
  padding: 1rem;
  background: #fff;
  box-shadow: var(--science-shadow-soft);
}

.sc-course-overview strong {
  display: block;
  color: var(--science-blue-900);
  font-size: 2rem;
  font-weight: 950;
}

.sc-course-overview span {
  color: var(--science-muted);
  font-weight: 850;
}

.sc-course-layout,
.sc-lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, .35fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}

.sc-course-about p {
  color: var(--science-muted);
  line-height: 1.75;
}

.sc-module-card header span {
  color: var(--science-red);
  font-weight: 950;
  text-transform: uppercase;
}

.sc-module-card h3 {
  margin: .3rem 0 0;
  color: var(--science-blue-900);
  font-size: 1.35rem;
  font-weight: 950;
}

.sc-lesson-list a {
  color: inherit;
  text-decoration: none;
}

.sc-lesson-list a:hover {
  border-color: rgba(213,22,53,.3);
  background: #fff;
}

.sc-lesson-list .is-locked {
  opacity: .72;
}

.sc-lesson-hero {
  display: block;
}

.sc-back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--science-red);
  font-weight: 950;
  text-decoration: none;
}

.sc-lesson-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

.sc-lesson-sidebar .sc-btn {
  margin-top: 1rem;
  width: 100%;
}

.sc-lesson-tips {
  display: grid;
  gap: .35rem;
}

.sc-lesson-tips strong {
  color: var(--science-blue-900);
}

.sc-lesson-tips span {
  color: var(--science-muted);
  line-height: 1.6;
}

.sc-reader-head {
  align-items: flex-start;
}

.sc-reader-tabs {
  margin-top: 0 !important;
}

.sc-rendered-course,
.sc-rendered-slides {
  margin-top: 1.25rem;
}

.sc-reader-actions {
  margin-top: 1.5rem;
}

.sc-answer-form label {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--science-line);
  border-radius: 16px;
  padding: .85rem 1rem;
  background: var(--science-soft);
  cursor: pointer;
}

.sc-answer-form label span {
  color: var(--science-blue-900);
  font-weight: 850;
}

.sc-fallback-submit {
  margin-top: 1rem;
}

.sc-fallback-submit summary {
  cursor: pointer;
  color: var(--science-blue-900);
  font-weight: 950;
}

.sc-fallback-submit form {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

.sc-attempt-history article {
  border: 1px solid var(--science-line);
  border-radius: 16px;
  padding: 1rem;
  background: var(--science-soft);
}

/* Auth */
.sc-auth {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding-bottom: 3rem;
}

.sc-auth__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 1.25rem;
  align-items: stretch;
}

.sc-auth__shell--single {
  width: min(100%, 520px);
  grid-template-columns: 1fr;
  margin-inline: auto;
}

.sc-auth__promo,
.sc-auth__card {
  padding: 2rem;
}

.sc-auth__promo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(8,21,74,.92), rgba(8,21,74,.82)),
    url("https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?w=900&q=80") center/cover;
  color: #fff;
}

.sc-auth__promo h1 {
  color: #fff;
}

.sc-auth__promo p,
.sc-auth__promo .sc-eyebrow {
  color: rgba(255,255,255,.82);
}

.sc-demo-accounts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.5rem;
}

.sc-demo-accounts button {
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  padding: .62rem .8rem;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 900;
}

.sc-auth__card h1,
.sc-auth__card h2 {
  margin: 0 0 1rem;
  color: var(--science-blue-900);
  font-size: 2rem;
  font-weight: 950;
}

.sc-auth__intro {
  margin-bottom: 1.4rem;
}

.sc-auth form p {
  display: grid;
  gap: .45rem;
  margin: 0 0 1rem;
  color: var(--science-blue-900);
  font-weight: 900;
}

.sc-auth input,
.sc-auth select,
.sc-auth textarea {
  width: 100%;
  border: 1px solid var(--science-line);
  border-radius: 14px;
  padding: .85rem 1rem;
  background: #fff;
}

/* Keep the authoring editor logic; only align it visually with ScienceClair. */
.lesson-author-hero,
.lesson-author-main,
.lesson-author-preview,
.lesson-full-preview__content {
  border-color: var(--science-line) !important;
  background: #fff !important;
  box-shadow: var(--science-shadow-soft) !important;
}

.lesson-author-head h2,
.lesson-author-preview h2,
.lesson-author-hero h1 {
  color: var(--science-blue-900) !important;
}

.composer-toolbar button,
.preview-mode-tabs button {
  border-radius: 999px !important;
}

.composer-toolbar button:hover,
.preview-mode-tabs button.active {
  background: var(--science-blue-900) !important;
  color: #fff !important;
}

/* Responsive */
@media (max-width: 1180px) {
  .sc-hero__grid,
  .sc-demo-grid,
  .sc-showcase,
  .sc-catalog-hero,
  .sc-course-hero,
  .sc-dash-hero,
  .sc-course-layout,
  .sc-lesson-layout {
    grid-template-columns: 1fr;
  }

  .sc-lesson-sidebar {
    position: static;
  }

  .sc-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sc-level-nav {
    display: none;
  }

  .sc-burger {
    display: grid;
  }

  .sc-hero__copy h1,
  .sc-catalog-hero h1,
  .sc-course-hero h1,
  .sc-dash-hero h1,
  .sc-lesson-hero h1 {
    font-size: 3.2rem;
  }

  .sc-feature-grid,
  .sc-course-grid,
  .sc-pricing-grid,
  .sc-dash-grid,
  .sc-dash-metrics,
  .sc-stats-grid,
  .sc-course-overview,
  .sc-child-grid,
  .sc-platform-grid,
  .sc-footer__inner,
  .sc-footer__cols,
  .sc-auth__shell {
    grid-template-columns: 1fr;
  }

  .sc-next-card,
  .sc-creator-hero,
  .sc-results-head,
  .sc-panel__head,
  .sc-reader-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .sc-container,
  .sc-public-main:not(.sc-public-main--home),
  .sc-catalog,
  .sc-course-detail,
  .sc-auth {
    width: min(calc(100% - 1rem), 1200px);
  }

  .sc-header__inner {
    min-height: 64px;
  }

  .sc-public-main {
    padding-top: 64px;
  }

  .sc-brand {
    font-size: .95rem;
  }

  .sc-brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: .66rem;
  }

  .sc-login,
  .sc-profile-trigger .cc-profile__identity {
    display: none !important;
  }

  .sc-hero__grid {
    min-height: 0;
    padding: 3rem 0;
  }

  .sc-hero__copy h1,
  .sc-catalog-hero h1,
  .sc-course-hero h1,
  .sc-dash-hero h1,
  .sc-lesson-hero h1 {
    font-size: 2.45rem;
  }

  .sc-section-title h2,
  .sc-demo-copy h2,
  .sc-showcase h2,
  .sc-success-band h2 {
    font-size: 2rem;
  }

  .sc-catalog-hero,
  .sc-course-hero,
  .sc-dash-hero,
  .sc-creator-hero,
  .sc-lesson-hero,
  .sc-panel,
  .sc-next-card,
  .sc-auth__card,
  .sc-auth__promo {
    border-radius: 20px;
    padding: 1rem;
  }

  .sc-filter-panel {
    grid-template-columns: 1fr;
  }

  .sc-floating-card {
    position: static;
    margin-top: .75rem;
  }

  .sc-hero__visual {
    display: grid;
  }

  .sc-progress-list article,
  .sc-activity-list article,
  .sc-goal-list article,
  .sc-child-grid article,
  .sc-lesson-list a,
  .sc-lesson-list div {
    align-items: stretch;
    flex-direction: column;
  }

  .sc-app-main {
    padding: 1rem !important;
  }
}
