/* ============================================================
   LEARN PAGE — DASHBOARD LAYOUT OVERRIDE
   Applies the 3-column shell: left sidebar + main + right panel
   Sits on top of learn.css — does NOT replace it
   ============================================================ */

/* ── Hide old top nav on learn page ── */
.learn-page nav {
  display: none !important;
}

/* ── Page shell ── */
.learn-page {
  background: #ffffff;
  min-height: 100vh;
  display: block;
}

/* ── Dashboard shell: sidebar + content wrapper ── */
.dashboard-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   LEFT SIDEBAR
   ============================================================ */

/* ── Collapsed state ── */

/* Smooth width transition */

/* Bottom auth-aware section */

/* Profile area */


/* ============================================================
   MAIN CONTENT AREA (center + right)
   ============================================================ */
.learn-main, .sidebar-page-offset {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 220px;
  transition: margin-left 0.25s cubic-bezier(0.4,0,0.2,1);
  height: 100vh;
  overflow: hidden;
}
@media (max-width: 600px) {
  .learn-page { height: auto; overflow: visible; }
  .dashboard-shell { height: auto; overflow: visible; flex-direction: column; }
  .learn-main, .sidebar-page-offset { height: auto; overflow: visible; margin-left: 0 !important; }
  .learn-body { height: auto !important; overflow: visible !important; }
  .learn-center, .learn-right { height: auto !important; overflow-y: visible !important; }
}

/* Top bar */
.learn-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 16px;
  gap: 20px;
  flex-shrink: 0;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 10px 16px;
  flex: 1;
  max-width: 360px;
  transition: border-color 0.18s;
}
.topbar-search:focus-within {
  border-color: rgba(0,0,0,0.18);
}
.topbar-search svg {
  color: #bbb;
  flex-shrink: 0;
}
.topbar-search input {
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #111;
  background: transparent;
  width: 100%;
}
.topbar-search input::placeholder {
  color: #bbb;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a6bff, #0a3ecc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topbar-user-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}
.topbar-chevron {
  color: #bbb;
}

/* ── Two-column body: center panel + right panel ── */
.learn-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 32px 32px 0;
  align-items: start;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ============================================================
   CENTER PANEL
   ============================================================ */
.learn-center {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 48px;
  /* Hide scrollbar visually but keep it functional */
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}
.learn-center::-webkit-scrollbar {
  width: 5px;
}
.learn-center::-webkit-scrollbar-track {
  background: transparent;
}
.learn-center::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 10px;
}

.center-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

/* Filter tabs */
.dash-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

.dash-tab {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #999;
  padding: 7px 16px;
  border-radius: 100px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  white-space: nowrap;
}
.dash-tab:hover {
  color: #111;
}
.dash-tab.active {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.dash-tab-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #f97316;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  margin-top: -2px;
}

/* Course cards grid */
.dash-courses-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Individual course card — white, horizontal */
.dash-course-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
/* Cards with a path badge switch to column layout */
.dash-course-card.has-path-badge {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
}
.dash-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}

.dcc-thumb {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.dcc-info {
  flex: 1;
  min-width: 0;
}

.dcc-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dcc-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #111;
}
.dcc-rating svg {
  color: #f59e0b;
}

.dcc-course-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dcc-course-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #888;
  margin: 0 0 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dcc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dcc-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  background: #f0f0f0;
  padding: 3px 10px;
  border-radius: 100px;
}

.dcc-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dcc-start-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #888;
}
.dcc-start-label strong {
  color: #111;
  font-weight: 600;
}

/* Progress bar inside card */
.dcc-progress-wrap {
  margin-bottom: 10px;
}
.dcc-progress-bar {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 3px;
}
.dcc-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #00c67a, #00e68a);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@starting-style {
  .dcc-progress-fill {
    width: 0% !important;
  }
}
.dcc-progress-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #aaa;
}

.dcc-action-btn {
  background: #f97316;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  flex-shrink: 0;
  white-space: nowrap;
}
.dcc-action-btn:hover {
  background: #e56b0c;
  transform: translateY(-1px);
}
.dcc-action-btn.secondary {
  background: #111;
}
.dcc-action-btn.secondary:hover {
  background: #333;
}

/* Button group: Add/Remove + Continue/Enroll side by side */
.dcc-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Add/Remove toggle button */
.dcc-add-remove-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.dcc-add-remove-btn:hover {
  border-color: #f97316;
  color: #f97316;
  background: #fff8f3;
}
/* Added state — highlighted orange outline */
.dcc-add-remove-btn.added {
  background: #fff5ee;
  border-color: #f97316;
  color: #f97316;
}
/* On hover of added state — show "Remove" intent in red */
.dcc-add-remove-btn.added:hover {
  background: #fff0f0;
  border-color: #e53e3e;
  color: #e53e3e;
}
/* JS toggles the label text on hover via mouseenter/mouseleave */

/* Enroll button — same shape as Continue but outlined style */
.dcc-enroll-btn {
  background: #fff;
  color: #f97316;
  border: 1.5px solid #f97316;
}
.dcc-enroll-btn:hover {
  background: #f97316;
  color: #fff;
  transform: translateY(-1px);
}

/* Empty state */
.dash-empty-state {
  background: #fff;
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  border: 1.5px dashed #e0e0e0;
}
.dash-empty-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.dash-empty-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
}
.dash-empty-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #888;
  margin: 0 0 20px;
  line-height: 1.6;
}
.dash-empty-btn {
  background: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.dash-empty-btn:hover { background: #333; }

/* ============================================================
   RIGHT PANEL — FOR YOU
   ============================================================ */
.learn-right {
  height: 100%;
  overflow-y: auto;
  padding-bottom: 48px;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}
.learn-right::-webkit-scrollbar {
  width: 5px;
}
.learn-right::-webkit-scrollbar-track {
  background: transparent;
}
.learn-right::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 10px;
}

.right-section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}
.right-section-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #aaa;
  margin: 0 0 16px;
}

/* For You cards — vertical stack */
.for-you-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fy-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
}
.fy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.fy-card-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.fy-card-info {
  flex: 1;
  min-width: 0;
}
.fy-card-cat {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 2px;
}
.fy-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fy-card-lessons {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #bbb;
}

.fy-card-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  flex-shrink: 0;
  transition: all 0.18s;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.fy-card-add:hover {
  background: #111;
  color: #fff;
}
.fy-card-add.added {
  background: rgba(0,198,122,0.12);
  color: #00c67a;
}

/* Daily Drop in right panel */
.right-daily-drop-wrap {
  margin-bottom: 24px;
}
.right-daily-drop-wrap .daily-drop-card {
  margin: 0;
  border-radius: 16px !important;
}

/* See all link */
.right-see-all {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}
.right-see-all a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  text-decoration: none;
  transition: color 0.15s;
}
.right-see-all a:hover { color: #111; }

/* ============================================================
   SCROLLABLE SECTIONS BELOW (paths, browse, all modules)
   Push them outside the grid but inside the shell
   ============================================================ */
.learn-below-fold {
  padding: 0 32px 0 calc(220px + 32px); /* sidebar width + body padding */
}



/* ── For You filter bar ── */
.fy-filter-bar {
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* Search row — compact, not full-width */
.fy-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4f4f4;
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 8px 14px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  width: 260px;
  max-width: 100%;
  margin-bottom: 0;
}
.fy-search-wrap:focus-within {
  border-color: #d0d0d0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.fy-search-icon {
  color: #bbb;
  flex-shrink: 0;
  transition: color 0.15s;
}
.fy-search-wrap:focus-within .fy-search-icon {
  color: #888;
}

.fy-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #111;
  min-width: 0;
  width: 0;
}
.fy-search-input:focus {
  outline: none;
}
.fy-search-input::placeholder {
  color: #bbb;
}
.fy-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ccc;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s;
  padding: 0;
}
.fy-search-clear:hover {
  background: #999;
}

/* Divider between search and chips */
.fy-filter-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 12px 0;
}

.fy-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fy-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fy-filter-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #ccc;
  white-space: nowrap;
  flex-shrink: 0;
}

.fy-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fy-chip {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  background: #f4f4f4;
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 5px 13px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  line-height: 1;
}
.fy-chip:hover {
  color: #111;
  background: #ececec;
  transform: translateY(-1px);
}

/* Category chip colours */
#fy-cat-chips .fy-chip[data-value="all"].active       { background: #111;    color: #fff; border-color: #111; }
#fy-cat-chips .fy-chip[data-value="stocks"].active    { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
#fy-cat-chips .fy-chip[data-value="bonds"].active     { background: #dcfce7; color: #16a34a; border-color: #86efac; }
#fy-cat-chips .fy-chip[data-value="reits"].active     { background: #ede9fe; color: #7c3aed; border-color: #c4b5fd; }
#fy-cat-chips .fy-chip[data-value="crypto"].active    { background: #fef3c7; color: #d97706; border-color: #fcd34d; }
#fy-cat-chips .fy-chip[data-value="budgeting"].active { background: #ffedd5; color: #ea580c; border-color: #fdba74; }

/* Difficulty chip colours */
#fy-diff-chips .fy-chip[data-value="all"].active          { background: #111;    color: #fff; border-color: #111; }
#fy-diff-chips .fy-chip[data-value="beginner"].active     { background: #dcfce7; color: #15803d; border-color: #86efac; }
#fy-diff-chips .fy-chip[data-value="intermediate"].active { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
#fy-diff-chips .fy-chip[data-value="advanced"].active     { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

.fy-filter-sep {
  width: 1px;
  height: 24px;
  background: #efefef;
  flex-shrink: 0;
  align-self: center;
}

/* ── Category tiles (from old inline styles) ── */
.cat-tile {
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 700; color: #fff; text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.cat-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.cat-tile:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.cat-stocks       { background: linear-gradient(145deg, #1a6bff 0%, #0a3ecc 100%); }
.cat-bonds        { background: linear-gradient(145deg, #f97316 0%, #c2410c 100%); }
.cat-reits        { background: linear-gradient(145deg, #7c3aed 0%, #4c1d95 100%); }
.cat-crypto       { background: linear-gradient(145deg, #f59e0b 0%, #b45309 100%); }
.cat-budgeting    { background: linear-gradient(145deg, #ec4899 0%, #be185d 100%); }
.cat-career       { background: linear-gradient(145deg, #00c67a 0%, #007a4a 100%); }
.cat-productivity { background: linear-gradient(145deg, #06b6d4 0%, #0e7490 100%); }

/* Path btn variants */
.path-btn-continue {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #000;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  padding: 9px 18px; border-radius: 100px; text-decoration: none;
  transition: all 0.18s; white-space: nowrap; flex-shrink: 0;
}
.path-btn-continue:hover { background: #eee; }
.path-btn-enroll {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  padding: 9px 18px; border-radius: 100px; cursor: pointer; text-decoration: none;
  transition: all 0.18s; white-space: nowrap; flex-shrink: 0;
}
.path-btn-enroll:hover { background: rgba(255,255,255,0.28); }
.path-progress-wrap { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.path-prog-bar { height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; width: 100%; }
.path-prog-fill { height: 100%; background: rgba(255,255,255,0.85); border-radius: 2px; transition: width 0.5s ease; }
.path-prog-text { font-family: 'Inter', sans-serif; font-size: 10px; color: rgba(255,255,255,0.5); white-space: nowrap; }

/* ============================================================
   LEARN PAGE — DASHBOARD LAYOUT (moved from inline styles)
   ============================================================ */
/* ============================================================
   LEARN PAGE — DASHBOARD LAYOUT OVERRIDE
   ============================================================ */
.learn-page nav { display: none !important; }
.learn-page { background: #f4f6f8; min-height: 100vh; display: block; }
.dashboard-shell { display: flex; height: 100vh; overflow: hidden; } /* mobile override above */

/* MAIN */
.learn-main, .sidebar-page-offset { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 220px; transition: margin-left 0.25s cubic-bezier(0.4,0,0.2,1); }
.learn-topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px 16px; gap: 20px; }
.topbar-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 10px 16px; flex: 1; max-width: 360px; transition: border-color 0.18s; }
.topbar-search:focus-within { border-color: rgba(0,0,0,0.18); }
.topbar-search svg { color: #bbb; flex-shrink: 0; }
.topbar-search input { border: none; outline: none; font-family: 'Inter',sans-serif; font-size: 13px; color: #111; background: transparent; width: 100%; }
.topbar-search input::placeholder { color: #bbb; }
.topbar-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.topbar-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(145deg,#1a6bff,#0a3ecc); display: flex; align-items: center; justify-content: center; font-family: 'Poppins',sans-serif; font-size: 14px; font-weight: 700; color: #fff; overflow: hidden; flex-shrink: 0; }
.topbar-user-name { font-family: 'Inter',sans-serif; font-size: 13px; font-weight: 600; color: #111; }
.topbar-chevron { color: #bbb; }

/* BODY GRID */
.learn-body { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 32px 32px 0; align-items: start; flex: 1; min-height: 0; overflow: hidden; }
.learn-center { min-width: 0; height: 100%; overflow-y: auto; padding-bottom: 48px; scrollbar-width: thin; scrollbar-color: #e0e0e0 transparent; }
.learn-center::-webkit-scrollbar { width: 5px; }
.learn-center::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }
.learn-right { height: 100%; overflow-y: auto; padding-bottom: 48px; scrollbar-width: thin; scrollbar-color: #e0e0e0 transparent; }
.learn-right::-webkit-scrollbar { width: 5px; }
.learn-right::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }
.center-heading { font-family: 'Poppins',sans-serif; font-size: 1.7rem; font-weight: 800; color: #111; margin: 0 0 20px; letter-spacing: -0.02em; }

/* Filter tabs */
.dash-filter-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 24px; }
.dash-tab { font-family: 'Inter',sans-serif; font-size: 13px; font-weight: 600; color: #999; padding: 7px 16px; border-radius: 100px; border: none; background: none; cursor: pointer; transition: all 0.18s; white-space: nowrap; }
.dash-tab:hover { color: #111; }
.dash-tab.active { background: #fff; color: #111; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.dash-tab-dot { display: inline-block; width: 7px; height: 7px; background: #f97316; border-radius: 50%; margin-right: 6px; vertical-align: middle; margin-top: -2px; }

/* Course cards */
.dash-courses-grid { display: flex; flex-direction: column; gap: 14px; }
.dash-course-card { background: #fff; border-radius: 20px; padding: 20px 24px; display: flex; align-items: center; gap: 20px; transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s; cursor: pointer; overflow: hidden; }
.dash-course-card.has-path-badge { flex-direction: column; align-items: stretch; padding: 0; gap: 0; }
.dash-course-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.09); }
.dcc-thumb { width: 80px; height: 80px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.dcc-info { flex: 1; min-width: 0; }
.dcc-meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dcc-rating { display: flex; align-items: center; gap: 3px; font-family: 'Inter',sans-serif; font-size: 12px; font-weight: 600; color: #111; }
.dcc-rating svg { color: #f59e0b; }
.dcc-course-title { font-family: 'Poppins',sans-serif; font-size: 15px; font-weight: 700; color: #111; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcc-course-desc { font-family: 'Inter',sans-serif; font-size: 12px; color: #888; margin: 0 0 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dcc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dcc-tag { font-family: 'Inter',sans-serif; font-size: 11px; font-weight: 500; color: #666; background: #f0f0f0; padding: 3px 10px; border-radius: 100px; }
.dcc-bottom-row { display: flex; align-items: center; justify-content: space-between; }
.dcc-start-label { font-family: 'Inter',sans-serif; font-size: 12px; color: #888; }
.dcc-start-label strong { color: #111; font-weight: 600; }
.dcc-progress-wrap { margin-bottom: 10px; }
.dcc-progress-bar { height: 4px; background: #f0f0f0; border-radius: 2px; overflow: hidden; margin-bottom: 3px; }
.dcc-progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg,#00c67a,#00e68a); transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.dcc-progress-label { font-family: 'Inter',sans-serif; font-size: 11px; color: #aaa; }
.dcc-action-btn { background: #f97316; color: #fff; font-family: 'Inter',sans-serif; font-size: 12px; font-weight: 700; padding: 9px 18px; border-radius: 100px; border: none; cursor: pointer; text-decoration: none; transition: all 0.18s; flex-shrink: 0; white-space: nowrap; }
.dcc-action-btn:hover { background: #e56b0c; transform: translateY(-1px); }
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
.dcc-action-btn.secondary { background: #111; }
.dcc-action-btn.secondary:hover { background: #333; }
.dcc-btn-group { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dcc-add-remove-btn { font-family: 'Inter',sans-serif; font-size: 12px; font-weight: 600; padding: 9px 16px; border-radius: 100px; border: 1.5px solid #e0e0e0; background: #fff; color: #555; cursor: pointer; transition: all 0.18s; white-space: nowrap; flex-shrink: 0; }
.dcc-add-remove-btn:hover { border-color: #f97316; color: #f97316; background: #fff8f3; }
.dcc-add-remove-btn.added { background: #fff5ee; border-color: #f97316; color: #f97316; }
.dcc-add-remove-btn.added:hover { background: #fff0f0; border-color: #e53e3e; color: #e53e3e; }
.dcc-enroll-btn { background: #fff; color: #f97316; border: 1.5px solid #f97316; }
.dcc-enroll-btn:hover { background: #f97316; color: #fff; }

/* Empty state */
.dash-empty-state { background: #fff; border-radius: 20px; padding: 48px 32px; text-align: center; border: 1.5px dashed #e0e0e0; }
.dash-empty-icon { font-size: 2rem; margin-bottom: 12px; }
.dash-empty-title { font-family: 'Poppins',sans-serif; font-size: 1rem; font-weight: 700; color: #111; margin: 0 0 6px; }
.dash-empty-sub { font-family: 'Inter',sans-serif; font-size: 13px; color: #888; margin: 0 0 20px; line-height: 1.6; }
.dash-empty-btn { background: #111; color: #fff; font-family: 'Inter',sans-serif; font-size: 13px; font-weight: 700; padding: 11px 24px; border-radius: 100px; text-decoration: none; display: inline-block; transition: background 0.15s; }
.dash-empty-btn:hover { background: #333; }

/* RIGHT PANEL */
.right-section-heading { font-family: 'Poppins',sans-serif; font-size: 1rem; font-weight: 700; color: #111; margin: 0 0 4px; }
.right-section-sub { font-family: 'Inter',sans-serif; font-size: 12px; color: #aaa; margin: 0 0 16px; }
.for-you-list { display: flex; flex-direction: column; gap: 12px; }
.fy-card { background: #fff; border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s; }
.fy-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.fy-card-thumb { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.fy-card-info { flex: 1; min-width: 0; }
.fy-card-cat { font-family: 'Inter',sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #aaa; margin-bottom: 2px; }
.fy-card-title { font-family: 'Poppins',sans-serif; font-size: 13px; font-weight: 700; color: #111; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-card-lessons { font-family: 'Inter',sans-serif; font-size: 11px; color: #bbb; }
.fy-card-add { width: 30px; height: 30px; border-radius: 50%; background: #f5f5f5; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #888; flex-shrink: 0; transition: all 0.18s; font-size: 16px; font-weight: 700; line-height: 1; }
.fy-card-add:hover { background: #111; color: #fff; }
.fy-card-add.added { background: rgba(0,198,122,0.12); color: #00c67a; }
.right-daily-drop-wrap { margin-bottom: 24px; }
.right-see-all { display: flex; align-items: center; justify-content: flex-end; margin-top: 12px; }
.right-see-all a { font-family: 'Inter',sans-serif; font-size: 12px; font-weight: 600; color: #aaa; text-decoration: none; transition: color 0.15s; }
.right-see-all a:hover { color: #111; }

/* BELOW FOLD */
.learn-below-fold { padding: 0 32px 0 32px; }

/* Category tiles */
.cat-tile { border-radius: 16px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-family: 'Poppins',sans-serif; font-size: clamp(13px,1.8vw,16px); font-weight: 700; color: #fff; text-decoration: none; position: relative; overflow: hidden; transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.1); text-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(150deg,rgba(255,255,255,0.12) 0%,transparent 55%); pointer-events: none; }
.cat-tile:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.cat-stocks { background: linear-gradient(145deg,#1a6bff 0%,#0a3ecc 100%); }
.cat-bonds { background: linear-gradient(145deg,#f97316 0%,#c2410c 100%); }
.cat-reits { background: linear-gradient(145deg,#7c3aed 0%,#4c1d95 100%); }
.cat-crypto { background: linear-gradient(145deg,#f59e0b 0%,#b45309 100%); }
.cat-budgeting { background: linear-gradient(145deg,#ec4899 0%,#be185d 100%); }
.cat-career { background: linear-gradient(145deg,#00c67a 0%,#007a4a 100%); }
.cat-productivity { background: linear-gradient(145deg,#06b6d4 0%,#0e7490 100%); }

/* Path btns */
.path-btn-continue { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #000; font-family: 'Inter',sans-serif; font-size: 12px; font-weight: 700; padding: 9px 18px; border-radius: 100px; text-decoration: none; transition: all 0.18s; white-space: nowrap; flex-shrink: 0; }
.path-btn-continue:hover { background: #eee; }
.path-btn-enroll { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); font-family: 'Inter',sans-serif; font-size: 12px; font-weight: 700; padding: 9px 18px; border-radius: 100px; cursor: pointer; text-decoration: none; transition: all 0.18s; white-space: nowrap; flex-shrink: 0; }
.path-btn-enroll:hover { background: rgba(255,255,255,0.28); }
.path-progress-wrap { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.path-prog-bar { height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; width: 100%; }
.path-prog-fill { height: 100%; background: rgba(255,255,255,0.85); border-radius: 2px; transition: width 0.5s ease; }
.path-prog-text { font-family: 'Inter',sans-serif; font-size: 10px; color: rgba(255,255,255,0.5); white-space: nowrap; }



    /* ── Daily Drop — iPhone widget (compact, no fixed height) ── */
    .daily-drop-card {
      background: linear-gradient(135deg, #FF9500 0%, #FFAA00 100%) !important;
      border-radius: 20px !important;
      padding: 0 !important;
      border: none !important;
      box-shadow: 0 4px 20px rgba(255,149,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2) !important;
      margin: 0 !important;
      overflow: hidden !important;
      min-height: unset !important;
    }

    /* Skeleton */
    .dd-loading { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; animation: ddFadeIn 0.2s ease; }
    .dd-loading.dd-hidden { display: none !important; }
    .dd-skeleton-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
    .dd-skeleton {
      border-radius: 6px;
      background: rgba(255,255,255,0.28) !important;
      background-image: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.2) 100%) !important;
      background-size: 200% 100% !important;
      animation: ddShimmer 1.4s ease-in-out infinite !important;
    }
    @keyframes ddShimmer {
      0%   { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    .dd-sk-eyebrow  { width: 80px;  height: 10px; border-radius: 5px; }
    .dd-sk-badge    { width: 48px;  height: 18px; border-radius: 100px; }
    .dd-sk-term     { width: 65%;   height: 16px; border-radius: 5px; }
    .dd-sk-question { width: 100%;  height: 11px; border-radius: 5px; }
    .dd-sk-q2       { width: 70%; }
    .dd-sk-opt      { width: 100%;  height: 30px; border-radius: 8px; }

    /* Empty state — horizontal widget row */
    .dd-empty {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 12px !important;
      padding: 12px 14px !important;
      animation: ddFadeIn 0.3s ease;
    }
    .dd-empty.dd-hidden { display: none !important; }
    .dd-empty-icon {
      font-size: 1.4rem !important;
      line-height: 1 !important;
      margin: 0 !important;
      background: rgba(255,255,255,0.2);
      width: 40px; height: 40px;
      border-radius: 11px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .dd-empty-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
    .dd-empty-title {
      font-family: 'Syne', sans-serif !important;
      font-size: 0.82rem !important;
      font-weight: 800 !important;
      color: rgba(255,255,255,0.97) !important;
      margin: 0 !important;
      letter-spacing: -0.01em;
    }
    .dd-empty-sub {
      font-family: 'DM Sans', sans-serif !important;
      font-size: 0.7rem !important;
      color: rgba(255,255,255,0.65) !important;
      margin: 0 !important;
      line-height: 1.35 !important;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* Real content */
    .dd-content { padding: 14px 16px; animation: ddFadeIn 0.3s ease; }
    .dd-content.dd-hidden { display: none !important; }

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

    .daily-drop-card .dd-eyebrow   { font-size: 9px !important;  color: rgba(255,255,255,0.65) !important; }
    .daily-drop-card .dd-term      { font-size: 0.88rem !important; color: #fff !important; font-weight: 700 !important; }
    .daily-drop-card .dd-xp-badge  { background: rgba(255,255,255,0.22) !important; color: #fff !important; font-size: 10px !important; }
    .daily-drop-card .dd-question  { color: rgba(255,255,255,0.9) !important; font-size: 12px !important; line-height: 1.5 !important; margin-bottom: 10px !important; }
    .daily-drop-card .dd-opt       { background: rgba(255,255,255,0.16) !important; color: #fff !important; border-color: rgba(255,255,255,0.22) !important; font-weight: 600 !important; font-size: 11px !important; padding: 7px 10px !important; border-radius: 9px !important; }
    .daily-drop-card .dd-opt:hover { background: rgba(255,255,255,0.28) !important; }

    /* Filter tab active color uses green for "For You" */
    .dash-tab[data-tab="for-you"].active { color: #00c67a; }

    /* Path + browse sections below fold */
    .learn-below-fold .paths-section,
    .learn-below-fold .browse-section,
    .learn-below-fold .signup-nudge {
      max-width: 100%;
      padding-left: 0;
      padding-right: 0;
    }
/* ── Collapsed sidebar: shrink main content margin ── */
.learn-sidebar.collapsed ~ * .learn-main,
.learn-sidebar.collapsed + .learn-main { margin-left: 68px; }

/* ── Sidebar collapse: content fills the freed space ── */
.learn-main {
  transition: margin-left 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}

/* When sidebar div has the collapsed sidebar as sibling, push content in */
#sidebar:has(.learn-sidebar.collapsed) ~ .learn-main,
.learn-sidebar.collapsed ~ .learn-main {
  margin-left: 68px !important;
}

/* ============================================================
   RESPONSIVE — Single authoritative block (replaces all previous @media blocks)
   ============================================================ */

/* ── 1100px: narrow right panel ── */
@media (max-width: 1100px) {
  .learn-body {
    grid-template-columns: 1fr 260px;
    gap: 20px;
    padding: 0 24px 48px;
  }
}

/* ── 768px: single column, unlock scroll, fix filter bar ── */
@media (max-width: 768px) {
  /* Unlock the shell so the page scrolls naturally — no horizontal bleed */
  .learn-page {
    height: auto;
    overflow-x: hidden;
  }

  .dashboard-shell {
    height: auto;
    overflow-x: hidden;
    flex-direction: column;
  }

  .learn-main,
  .sidebar-page-offset {
    height: auto;
    overflow: visible;
  }

  /* Prevent any child from causing horizontal scroll */
  .learn-body,
  .learn-center,
  .learn-right {
    overflow-x: hidden;
  }

  /* Single-column layout — right panel drops below */
  .learn-body {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 16px 16px 48px !important;
    overflow: visible;
    height: auto;
  }

  .learn-center,
  .learn-right {
    height: auto;
    overflow-y: visible;
  }

  .learn-right {
    position: static !important;
  }

  .learn-topbar {
    padding: 16px;
  }

  .learn-below-fold {
    padding: 0 16px;
  }

  /* Filter bar: stack Category row then Difficulty row vertically */
  .fy-filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .fy-filter-sep {
    display: none;
  }

  .fy-filter-group {
    flex-wrap: wrap;
  }

  /* Tabs: horizontal scroll without wrapping */
  .dash-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

/* ── 480px: no sidebar, fully stacked ── */
@media (max-width: 480px) {
  .learn-main,
  .sidebar-page-offset {
    margin-left: 0 !important;
  }

  /* Hide the in-page topbar — mobile-topbar in header.html replaces it */
  .learn-topbar {
    display: none;
  }

  .learn-body {
    padding: 12px 12px 48px !important;
  }

  .center-heading {
    font-size: 1.3rem;
  }
}

/* ============================================================
   ENROLL PREVIEW MODAL — Netflix-style blurred overlay
   ============================================================ */

/* Overlay + blurred backdrop */
.enroll-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.06s ease;
}
.enroll-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.enroll-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.42);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

/* Modal card */
.enroll-modal {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.06);
  transform: scale(0.88) translateY(24px);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1),
    opacity   0.28s ease;
}
.enroll-overlay.visible .enroll-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Hero banner */
.enroll-hero {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Noise texture overlay for depth */
.enroll-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: cover;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* Radial vignette for depth */
.enroll-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
}

.enroll-hero-symbol {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
  z-index: 1;
  animation: enroll-symbol-float 3.5s ease-in-out infinite;
}
@keyframes enroll-symbol-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Close button */
.enroll-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.18s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.enroll-close-btn:hover {
  background: rgba(0,0,0,0.55);
  transform: scale(1.12);
}

/* Chips row on hero */
.enroll-hero-chips {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.enroll-chip {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 100px;
}
.enroll-chip-diff {
  background: rgba(0,0,0,0.2);
}

/* Body */
.enroll-body {
  padding: 24px 24px 20px;
}

.enroll-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.enroll-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats row */
.enroll-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.enroll-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}
.enroll-stat svg {
  color: #aaa;
  flex-shrink: 0;
}
.enroll-stat-divider {
  width: 1px;
  height: 14px;
  background: #e5e5e5;
}

/* Progress section */
.enroll-progress-section {
  margin-bottom: 18px;
}
.enroll-progress-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.enroll-progress-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.enroll-progress-pct {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #00c67a;
}
.enroll-progress-track {
  height: 5px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}
.enroll-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #00c67a, #00e68a);
  transition: width 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* CTA row */
.enroll-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.enroll-cancel-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  flex-shrink: 0;
  transition: color 0.18s;
}
.enroll-cancel-btn:hover { color: #555; }

.enroll-confirm-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f97316, #e56b0c);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition:
    transform   0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow  0.22s ease,
    background  0.18s ease;
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}
.enroll-confirm-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(249,115,22,0.45);
}
.enroll-confirm-btn:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}
.enroll-confirm-btn.loading {
  opacity: 0.75;
  pointer-events: none;
}
.enroll-confirm-btn svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.enroll-confirm-btn:hover svg {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 480px) {
  .enroll-modal { border-radius: 20px; }
  .enroll-hero  { height: 130px; }
  .enroll-body  { padding: 20px 18px 18px; }
}

/* ============================================================
   BOOKMARK BUTTON — replaces Add/Remove text button
   ============================================================ */
.dcc-bookmark-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid #e8e8e8;
  background: #fafafa;
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    color       0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    background  0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform   0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dcc-bookmark-btn:hover {
  color: #f97316;
  border-color: #f97316;
  background: #fff8f3;
  transform: scale(1.12);
}
.dcc-bookmark-btn:active {
  transform: scale(0.9);
  transition-duration: 0.08s;
}
/* Saved state — filled orange */
.dcc-bookmark-btn.saved {
  color: #f97316;
  border-color: #f97316;
  background: #fff5ee;
}
.dcc-bookmark-btn.saved:hover {
  color: #e53e3e;
  border-color: #e53e3e;
  background: #fff0f0;
  transform: scale(1.12);
}
/* ============================================================
   GUIDED TAB — path cards rendered in center panel
   ============================================================ */
.guided-intro {
  margin-bottom: 24px;
}
.guided-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f97316;
  margin: 0 0 6px;
}
.guided-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.guided-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.6;
}
.guided-paths-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   PATH CARDS — Guided tab
   ============================================================ */
.paths-grid,
.guided-paths-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.path-card {
  position: relative;
  border-radius: 20px;
  padding: 28px 28px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.path-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

/* Color variants */
.path-card-1 { background: linear-gradient(135deg, #1a6bff 0%, #0a3ecc 100%); }
.path-card-2 { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); }
.path-card-3 { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }

/* Enrolled state — subtle inner glow */
.path-card-enrolled { box-shadow: 0 4px 20px rgba(0,198,122,0.25), inset 0 0 0 1.5px rgba(0,198,122,0.35); }

/* Big background number */
.path-bg-num {
  position: absolute;
  right: -8px;
  bottom: -18px;
  font-family: 'Poppins', sans-serif;
  font-size: 7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  letter-spacing: -0.04em;
}

.path-card-body {
  flex: 1;
}

.path-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 8px;
}

.path-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.path-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.55;
  max-width: 480px;
}

.path-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 12px;
}

.path-count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
/* ============================================================
   PATH BANNER — inside dcc-info, above module title
   ============================================================ */
/* Path badge — full-width strip above card content */
.dcc-path-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: color-mix(in srgb, var(--path-color) 9%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--path-color) 20%, transparent);
  border-radius: 14px 14px 0 0;
  width: 100%;
  box-sizing: border-box;
}
.dcc-card-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 24px 20px;
  width: 100%;
  box-sizing: border-box;
}
.dcc-path-banner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--path-color);
  flex-shrink: 0;
}
.dcc-path-banner-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--path-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   ACTIVE PATH CARD — dashboard state in Active tab
   ============================================================ */
.active-path-card {
  position: relative;
  border-radius: 20px;
  padding: 24px 28px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 4px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}
.active-path-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

.apc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.apc-left { flex: 1; min-width: 0; }

.apc-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-bottom: 6px;
}

.apc-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.apc-progress-wrap { width: 100%; }

.apc-prog-bar {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.apc-prog-fill {
  height: 100%;
  background: #fff;
  border-radius: 99px;
  transition: width 0.6s ease;
}

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

.apc-status {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}
.apc-status.complete {
  color: #4ade80;
  font-weight: 700;
}

.apc-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 99px;
  padding: 7px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s;
  text-decoration: none;
  display: inline-block;
}
.apc-btn:hover { transform: scale(1.06); }

.apc-btn-continue {
  background: #fff;
  color: #111;
}
.apc-btn-review {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.apc-bg-num {
  font-family: 'Poppins', sans-serif;
  font-size: 5.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

/* ── Active path card: header row with unenroll ── */
.apc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.apc-unenroll-btn {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.apc-unenroll-btn:hover {
  background: rgba(255,80,80,0.25);
  border-color: rgba(255,80,80,0.4);
  color: #ff8080;
}

/* ============================================================
   CONFIRM DIALOG
   ============================================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.confirm-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,0.55);
  backdrop-filter: blur(6px);
}
.confirm-modal {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-overlay.visible .confirm-modal {
  transform: scale(1);
}
.confirm-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.confirm-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.confirm-body {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 24px;
}
.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.confirm-cancel-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 99px;
  border: 1.5px solid #e5e5e5;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1;
}
.confirm-cancel-btn:hover { background: #f5f5f5; }
.confirm-ok-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 99px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1;
}
.confirm-ok-btn:hover { background: #333; }
.confirm-ok-btn.danger { background: #ef4444; }
.confirm-ok-btn.danger:hover { background: #dc2626; }

/* apc browse link */
.apc-browse-link {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.apc-browse-link:hover { color: rgba(255,255,255,0.85); }
/* ── Guided tab: Leave Path button ── */
.path-btn-group {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.path-btn-leave {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  padding: 9px 16px; border-radius: 100px; cursor: pointer;
  transition: all 0.18s; white-space: nowrap; flex-shrink: 0;
}
.path-btn-leave:hover {
  background: rgba(239,68,68,0.18);
  color: #fca5a5;
  border-color: rgba(239,68,68,0.35);
}
/* ── For You guest login nudge ─────────────────────────── */
.fy-login-nudge {
  position: fixed;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 200px;
  z-index: 99999;
  animation: nudgePop 0.22s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes nudgePop {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.fy-nudge-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  line-height: 1.4;
}
.fy-nudge-login {
  display: block;
  text-align: center;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.fy-nudge-login:hover { background: #333; }
.fy-nudge-signup {
  display: block;
  text-align: center;
  padding: 7px 12px;
  background: rgba(0,198,122,0.08);
  color: #00966b;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(0,198,122,0.2);
  transition: background 0.15s;
}
.fy-nudge-signup:hover { background: rgba(0,198,122,0.14); }
.fy-nudge-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 11px;
  color: #aaa;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.fy-nudge-close:hover { color: #555; }
/* ── For You guest login nudge ─────────────────────────── */
.fy-login-nudge {
  position: fixed;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 200px;
  z-index: 99999;
  animation: nudgePop 0.22s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes nudgePop {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.fy-nudge-text { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: #555; line-height: 1.4; }
.fy-nudge-login { display: block; text-align: center; padding: 8px 12px; background: #111; color: #fff; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.fy-nudge-login:hover { background: #333; }
.fy-nudge-signup { display: block; text-align: center; padding: 7px 12px; background: rgba(0,198,122,0.08); color: #00966b; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; border-radius: 8px; text-decoration: none; border: 1px solid rgba(0,198,122,0.2); transition: background 0.15s; }
.fy-nudge-signup:hover { background: rgba(0,198,122,0.14); }
.fy-nudge-close { position: absolute; top: 8px; right: 8px; background: none; border: none; font-size: 11px; color: #aaa; cursor: pointer; padding: 2px 4px; line-height: 1; }
.fy-nudge-close:hover { color: #555; }

/* ── Active course cap nudge ───────────────────────────── */
.fy-cap-nudge {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 240px;
  z-index: 9999;
  animation: nudgePop 0.22s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.cap-nudge-icon { font-size: 1.4rem; line-height: 1; }
.cap-nudge-body { display: flex; flex-direction: column; gap: 3px; }
.cap-nudge-title { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 700; color: #111; margin: 0; }
.cap-nudge-sub { font-family: 'Inter', sans-serif; font-size: 11.5px; color: #777; line-height: 1.45; margin: 0; }
.cap-nudge-actions { display: flex; gap: 6px; margin-top: 2px; }
.cap-nudge-view { flex: 1; text-align: center; padding: 7px 10px; background: #f5f5f5; color: #111; font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.cap-nudge-view:hover { background: #ebebeb; }
.cap-nudge-anyway { flex: 1; padding: 7px 10px; background: #111; color: #fff; font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.cap-nudge-anyway:hover { background: #333; }
.cap-nudge-close { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 11px; color: #bbb; cursor: pointer; padding: 2px 4px; line-height: 1; }
.cap-nudge-close:hover { color: #555; }
/* ── Real rating pill (replaces fake random stars) ── */
.dcc-rating-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 2px 8px; border-radius: 100px;
  white-space: nowrap;
}
.dcc-rating-val {
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
}
.dcc-rating-count {
  color: #b45309;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
}

/* ── Sidebar drawer — always off-screen until JS opens it ──
   Guards against the drawer leaking text when the shell
   switches to overflow:visible on compressed layouts       */
.modules-sidebar-drawer {
  position: fixed !important;
  top: 0;
  right: 0;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 500;
  overflow: hidden;
  visibility: hidden;
}
.modules-sidebar-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.sidebar-backdrop {
  position: fixed !important;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 499;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}