/* ================================================
   course-dashboard.css
   ================================================ */

.cd-ambient {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 10% 10%, rgba(255,0,127,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

.cd-wrap {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: calc(72px + 2rem) 1.5rem 5rem;
  min-height: 100vh;
}

/* Loading */
.cd-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.cd-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,0,127,0.8);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ── Auth layout: 3-column ── */
.cd-layout {
  display: grid;
  grid-template-columns: 220px 1fr 272px;
  gap: 0 1.75rem;
  align-items: start;
}

/* Left sidebar */
.cd-sidebar {
  position: sticky; top: calc(72px + 1.5rem);
  display: flex; flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  min-height: 520px;
  overflow: hidden;
}
.cd-sidebar-top { padding: 1.5rem 0.75rem 1rem; flex: 1; }
.cd-sidebar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #ff007f; margin: 0 0 1.5rem 0.5rem;
}
.cd-sidebar-nav {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.cd-nav-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.6rem 0.75rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  background: none; border: none; cursor: pointer;
  width: 100%; text-align: left;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.cd-nav-item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.85); }
.cd-nav-item .material-symbols-outlined { font-size: 1.05rem; }
.cd-nav-active {
  background: rgba(255,0,127,0.12) !important;
  color: #ff007f !important;
}
.cd-nav-signout { color: rgba(255,255,255,0.3); }
.cd-nav-signout:hover { color: rgba(255,255,255,0.6); }

.cd-sidebar-user {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cd-sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #ff007f 0%, #cc0066 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 700; color: #fff;
}
.cd-sidebar-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; font-weight: 600; color: #fff;
  margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cd-sidebar-greeting {
  font-size: 0.72rem; color: rgba(255,255,255,0.35); margin: 0;
}

/* Main column */
.cd-main { min-width: 0; }

/* Hero card */
.cd-hero-card {
  border-radius: 16px; overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  min-height: 180px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}
.cd-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0.12;
}
.cd-hero-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%);
  z-index: 0;
}
.cd-hero-inner {
  position: relative; z-index: 1;
  padding: 1.5rem 1.75rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.25rem; flex-wrap: wrap;
  min-height: 180px;
}
.cd-hero-badge {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #ff007f;
  background: rgba(255,0,127,0.15); border: 1px solid rgba(255,0,127,0.3);
  border-radius: 4px; padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
}
.cd-hero-body { flex: 1; min-width: 0; }
.cd-hero-unit-label {
  font-size: 0.72rem; color: rgba(255,255,255,0.35);
  margin: 0 0 0.25rem; text-transform: uppercase; letter-spacing: 0.07em;
}
.cd-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700; color: #fff; margin: 0 0 0.5rem;
  line-height: 1.25;
}
.cd-hero-desc {
  font-size: 0.8125rem; color: rgba(255,255,255,0.5);
  margin: 0; line-height: 1.5;
}
.cd-hero-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #fff; color: #0d0d0d;
  border-radius: 8px; border: none; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.cd-hero-btn:hover { background: #e8e8e8; transform: translateY(-1px); }
.cd-hero-btn .material-symbols-outlined { font-size: 1.05rem; }

/* Motivate text */
.cd-motivate {
  font-size: 0.8125rem; color: rgba(255,0,127,0.75);
  font-style: italic; margin: 0;
  min-height: 1.2em; text-align: right; align-self: center;
}

/* Modules header */
.cd-modules-header { margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cd-modules-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem; font-weight: 700; color: #fff; margin: 0 0 0.2rem;
}
.cd-modules-sub {
  font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0;
}

/* Right sidebar */
.cd-right {
  position: sticky; top: calc(72px + 1.5rem);
  display: flex; flex-direction: column; gap: 0.875rem;
}
.cd-right-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #ff007f; margin: 0 0 0.25rem;
  align-self: flex-start;
}

/* Progress ring card */
.cd-right-ring-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.625rem;
}
.cd-progress-ring-wrap {
  position: relative; width: 100px; height: 100px; flex-shrink: 0;
}
.cd-ring {
  width: 100px; height: 100px; transform: rotate(-90deg);
}
.cd-ring-bg {
  fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 6;
}
.cd-ring-fill {
  fill: none; stroke: #ff007f; stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 213.6;
  stroke-dashoffset: 213.6;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.cd-ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.cd-ring-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem; font-weight: 700; color: #fff;
  line-height: 1;
}
.cd-ring-sub {
  font-size: 0.6rem; color: rgba(255,255,255,0.4); margin-top: 1px;
}
.cd-right-ring-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem; font-weight: 600; color: #fff; margin: 0;
}
.cd-right-ring-sub {
  font-size: 0.75rem; color: rgba(255,255,255,0.4); margin: 0;
}

/* Mini stats */
.cd-right-mini-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.cd-right-mini-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 0.875rem 0.75rem;
  text-align: center;
}
.cd-right-mini-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem; font-weight: 700; color: #fff;
  margin-bottom: 0.2rem;
}
.cd-right-mini-stat span {
  font-size: 0.7rem; color: rgba(255,255,255,0.35);
}

/* CTA row (in right sidebar) */
.cd-cta-row {
  display: flex; flex-direction: column; gap: 0.625rem;
}
.cd-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 8px; border: none; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; width: 100%; justify-content: center;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.cd-btn:hover { transform: translateY(-1px); }
.cd-btn-primary {
  background: #ff007f; color: #fff;
}
.cd-btn-primary:hover { background: #e6006f; box-shadow: 0 4px 20px rgba(255,0,127,0.3); }
.cd-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}
.cd-btn-secondary:hover { background: rgba(255,255,255,0.1); }
.cd-btn-success {
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}
.cd-btn-success:hover { background: rgba(74,222,128,0.2); }
.cd-btn .material-symbols-outlined { font-size: 1.05rem; }
.cd-btn-continue { justify-content: flex-start; }
.cd-btn-continue-inner { display: flex; flex-direction: column; text-align: left; }
.cd-btn-continue-label { line-height: 1.1; }
.cd-btn-continue-sub {
  font-size: 0.72rem; font-weight: 400;
  opacity: 0.75; line-height: 1.2; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}

/* Units */
.cd-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 1rem;
}
.cd-units { display: flex; flex-direction: column; gap: 0.625rem; }

.cd-unit {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid rgba(255,255,255,0.07);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s;
}
.cd-unit.complete {
  border-color: rgba(74,222,128,0.25);
  border-left-color: rgba(74,222,128,0.6);
  background: rgba(74,222,128,0.03);
}

.cd-unit-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer;
  user-select: none;
}
.cd-unit-header:hover { background: rgba(255,255,255,0.02); }

.cd-unit-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.cd-unit.complete .cd-unit-num {
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.3);
  color: #4ade80;
}

.cd-unit-info { flex: 1; min-width: 0; }
.cd-unit-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem; font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cd-unit-meta {
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  margin-top: 0.15rem;
}

.cd-unit-bar-wrap {
  width: 80px; flex-shrink: 0;
}
.cd-unit-bar-bg {
  height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden;
}
.cd-unit-bar-fill {
  height: 100%; background: #ff007f; border-radius: 2px;
  transition: width 0.8s ease;
}
.cd-unit.complete .cd-unit-bar-fill { background: #4ade80; }

.cd-unit-chevron {
  font-size: 1.1rem; color: rgba(255,255,255,0.25);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.cd-unit.open .cd-unit-chevron { transform: rotate(180deg); }

.cd-unit-lessons {
  display: none; border-top: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem;
}
.cd-unit.open .cd-unit-lessons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}

.cd-lesson-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}
.cd-lesson-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.cd-lesson-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.cd-lesson-check.done {
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.5);
}
.cd-lesson-check .material-symbols-outlined {
  font-size: 0.8rem; color: #4ade80; display: none;
}
.cd-lesson-check.done .material-symbols-outlined { display: block; }

.cd-lesson-title {
  font-size: 0.875rem; color: rgba(255,255,255,0.65);
  flex: 1;
}
.cd-lesson-row:hover .cd-lesson-title { color: rgba(255,255,255,0.9); }
.cd-lesson-duration {
  font-size: 0.75rem; color: rgba(255,255,255,0.25);
}

/* ── Guest view ── */

/* Hero 2-col layout */
.cd-guest-hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
  min-height: 420px;
}
.cd-guest-hero-left { display: flex; flex-direction: column; align-items: flex-start; }

.cd-guest-level {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,0,127,0.8);
  margin: 0 0 1rem;
}
.cd-guest-level .material-symbols-outlined { font-size: 0.9rem; }

.cd-guest-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800; color: #fff; line-height: 1.1;
  margin: 0 0 1rem;
}
.cd-title-em {
  font-style: italic; color: #ff007f;
  font-weight: 800;
}

.cd-guest-tagline {
  font-size: 1.0625rem; color: rgba(255,255,255,0.5);
  line-height: 1.6; margin: 0 0 2rem;
  max-width: 480px;
}

/* CTA buttons — guest hero style */
.cd-guest-cta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cd-guest-btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #ff007f; color: #fff;
  border-radius: 8px; border: none; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem; font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.cd-guest-btn-primary:hover {
  background: #e6006f; transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,0,127,0.35);
}
.cd-guest-btn-primary .material-symbols-outlined { font-size: 1.05rem; }

.cd-guest-btn-ghost {
  display: inline-flex; align-items: center;
  padding: 0.8rem 1.25rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8); border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.cd-guest-btn-ghost:hover {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3);
}

.cd-guest-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.cd-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 500;
  color: rgba(255,255,255,0.55);
}
.cd-pill .material-symbols-outlined { font-size: 0.85rem; color: #ff007f; }

/* Right side preview card */
.cd-guest-hero-right { }
.cd-guest-preview-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px; overflow: hidden;
}
.cd-guest-preview-img {
  width: 100%; height: 180px; object-fit: cover; object-position: center;
  display: block; opacity: 0.85;
}
.cd-guest-preview-body { padding: 1.5rem; }
.cd-guest-preview-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.35);
  margin: 0 0 1rem;
}
.cd-guest-preview-list {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.cd-guest-preview-list li {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
}
.cd-guest-preview-list .material-symbols-outlined {
  font-size: 1rem; color: #4ade80; flex-shrink: 0;
}
.cd-guest-preview-cta {
  display: block; text-align: center;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.8); text-decoration: none;
  transition: background 0.15s;
}
.cd-guest-preview-cta:hover { background: rgba(255,255,255,0.12); }

.cd-guest { max-width: 1100px; margin: 0 auto; }
.cd-guest-outcomes { margin-bottom: 1.75rem; }
.cd-outcomes-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.625rem 1.5rem;
}
.cd-outcomes-list li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.9375rem; color: rgba(255,255,255,0.7);
}
.cd-outcomes-list .material-symbols-outlined {
  font-size: 1.05rem; color: #4ade80; margin-top: 2px; flex-shrink: 0;
}

/* Instructor section */
.cd-instructor {
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.cd-instructor-inner {
  display: flex; align-items: flex-start; gap: 1.25rem;
}
.cd-instructor-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255,0,127,0.3);
  border: 2px solid rgba(255,0,127,0.4);
}
.cd-instructor-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,0,127,0.7);
  margin: 0 0 0.2rem;
}
.cd-instructor-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; color: #fff;
  margin: 0 0 0.4rem;
}
.cd-instructor-bio {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  line-height: 1.5; margin: 0;
}

.cd-guest-curriculum {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-bottom: 0;
}
.cd-guest-curriculum .cd-section-title { margin-bottom: 0; }

/* Mobile sticky sign-up banner */
.cd-guest-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #ff007f; z-index: 200;
}
.cd-guest-sticky-link {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 1rem;
  color: #fff; text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem; font-weight: 600;
}
.cd-guest-sticky-link .material-symbols-outlined { font-size: 1.1rem; }

/* Motivate / cert stat (in right sidebar) */
.cd-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 1rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.cd-stat .material-symbols-outlined {
  font-size: 1.2rem; color: rgba(255,0,127,0.7); margin-top: 1px;
}
.cd-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; font-weight: 600; color: #fff;
  margin-bottom: 0.1rem;
}
.cd-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.cd-stat--motivate strong {
  font-size: 0.78rem; font-weight: 500;
  color: rgba(255,255,255,0.6);
  white-space: normal; line-height: 1.35;
}
.cd-stat--motivate.cert-available strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; font-weight: 600; color: #fff;
}
.cd-stat--motivate .material-symbols-outlined { color: rgba(255,0,127,0.7); }
.cd-stat--motivate.cert-available .material-symbols-outlined { color: rgba(74,222,128,0.8); }

/* Responsive — auth layout */
@media (max-width: 1024px) {
  .cd-layout {
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
  }
  .cd-right {
    position: static;
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.875rem;
    align-items: start;
  }
  .cd-right-ring-card { flex-direction: row; text-align: left; }
}
@media (max-width: 768px) {
  .cd-layout { grid-template-columns: 1fr; }
  .cd-sidebar {
    position: static; min-height: unset;
    flex-direction: row; align-items: center;
    padding: 0;
  }
  .cd-sidebar-top { padding: 0.75rem; flex: 1; }
  .cd-sidebar-brand { display: none; }
  .cd-sidebar-nav { flex-direction: row; gap: 0.25rem; flex-wrap: wrap; }
  .cd-nav-item { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
  .cd-sidebar-user { border-top: none; border-left: 1px solid rgba(255,255,255,0.06); }
  .cd-unit-bar-wrap { display: none; }
  .cd-right { grid-column: 1; }
  .cd-unit.open .cd-unit-lessons { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cd-sidebar-nav { gap: 0; }
  .cd-nav-item span:last-child { display: none; }
}

/* Responsive — guest layout */
@media (max-width: 900px) {
  .cd-guest-hero {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }
  .cd-guest-hero-right { display: none; }
  .cd-guest-title { font-size: clamp(1.875rem, 7vw, 2.75rem); }
  .cd-outcomes-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cd-guest-title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .cd-guest-tagline { font-size: 0.9375rem; }
  .cd-guest-btn-primary, .cd-guest-btn-ghost { font-size: 0.875rem; padding: 0.7rem 1.1rem; }
}
@media (min-width: 641px) {
  .cd-guest-sticky { display: none !important; }
}
