/* ============================================================
   BROWSE PAGE — browse.css
   Extends learn.css — no overrides, only additions
   ============================================================ */

/* ── TOP NAV ── */
.browse-topnav {
  position: sticky; top: 0; z-index: 100;
  padding: 16px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.browse-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: rgba(0,0,0,0.4); text-decoration: none;
  transition: color 0.15s;
}
.browse-back:hover { color: #111; }
@media (max-width: 768px) { .browse-topnav { padding: 14px 20px; } }

/* ── PATH HERO — hidden ── */
#browse-path-hero {
  display: none !important;
}

.browse-path-hero {
  padding: 32px 48px 0;
  max-width: 900px;
  margin: 0 auto;
}

.path-hero-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.06);
}

/* ── Colored banner ── */
.path-hero-banner {
  height: 88px;
  display: flex;
  align-items: flex-end;
  padding: 0 28px 16px;
  position: relative;
  overflow: hidden;
}
.path-hero-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Per-path colors — mapped from COLLECTIONS.colorClass */
.path-hero-banner.path-card-1 { background: linear-gradient(135deg, #1a9be0 0%, #0dd4c8 100%); }
.path-hero-banner.path-card-2 { background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%); }
.path-hero-banner.path-card-3 { background: linear-gradient(135deg, #ea580c 0%, #facc15 100%); }

.path-hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 4px 12px; border-radius: 100px;
  position: relative; z-index: 1;
  backdrop-filter: blur(4px);
}

/* ── Card body ── */
.path-hero-body {
  padding: 22px 28px 26px;
}

.path-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.025em;
  color: #0a0a0a; margin: 0 0 6px;
}

.path-hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: #aaa; line-height: 1.65;
  margin: 0 0 20px; max-width: 440px;
}

/* ── Progress bar with sliding icon ── */
.path-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.path-progress-label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: #bbb;
}
.path-progress-pct {
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 800; color: #00c67a;
}
.path-progress-track {
  position: relative;
  height: 10px;
  background: #f0f0f0;
  border-radius: 100px;
  overflow: visible;
  margin-bottom: 20px;
}
.path-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00c67a, #00e08a);
  border-radius: 100px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.25,1,0.5,1);
}
.path-progress-icon {
  position: absolute;
  top: 50%; left: 0;
  transform: translate(-4px, -50%);
  font-size: 18px; line-height: 1;
  transition: left 0.8s cubic-bezier(0.25,1,0.5,1);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

/* ── Meta row ── */
.path-hero-meta-row {
  margin-bottom: 18px;
}
.path-hero-count {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  color: #999; background: #f4f4f4;
  padding: 4px 12px; border-radius: 100px;
}

/* ── CTA row ── */
.path-hero-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.path-hero-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0a0a0a; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  padding: 12px 24px; border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.18s; white-space: nowrap;
}
.path-hero-cta-btn:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* Override the old progress-wrap inline display:none handling */
#collection-progress-wrap {
  max-width: 100% !important;
  margin-top: 0 !important;
}
#collection-progress-wrap > div > div:last-child {
  display: block !important;
}
#collection-progress-label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: #bbb;
}
#collection-progress-pct {
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 800; color: #00c67a;
}

@media (max-width: 768px) {
  .browse-path-hero  { padding: 20px 20px 0; }
  .path-hero-body    { padding: 18px 20px 22px; }
  .path-hero-banner  { height: 72px; padding: 0 20px 14px; }
}

/* ── CATEGORY HERO ── */
.browse-cat-hero {
  padding: 64px 48px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.browse-cat-hero-inner { max-width: 680px; }
.browse-cat-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800; line-height: 1;
  letter-spacing: -0.04em;
  color: #0a0a0a; margin: 8px 0 14px;
}
.browse-cat-desc {
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: #888; line-height: 1.7; margin: 0;
  max-width: 480px;
}
@media (max-width: 768px) {
  .browse-cat-hero { padding: 40px 20px 28px; }
  .browse-cat-title { font-size: clamp(2rem, 10vw, 3rem); }
}

/* ── RELATED PATH BANNER ── */
.browse-related-path {
  max-width: 900px; margin: 0 auto;
  padding: 0 48px 40px;
}
.browse-related-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: #0a0a0a; border-radius: 20px; padding: 24px 28px;
}
.browse-related-label {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); display: block; margin-bottom: 4px;
}
.browse-related-title {
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700;
  color: #fff; margin: 0 0 4px;
}
.browse-related-desc {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: rgba(255,255,255,0.45); margin: 0; max-width: 380px; line-height: 1.5;
}
.browse-related-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #000;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  padding: 11px 22px; border-radius: 100px;
  text-decoration: none; white-space: nowrap;
  transition: all 0.18s; flex-shrink: 0;
}
.browse-related-btn:hover {
  background: #00b36e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,198,122,0.25);
}
@media (max-width: 768px) {
  .browse-related-path { padding: 0 20px 32px; }
  .browse-related-btn  { width: 100%; justify-content: center; }
}

/* ── BODY WRAP — full height split layout ── */
html, body {
  height: 100%;
  overflow: hidden;
}

.browse-body-wrap {
  display: flex;
  height: calc(100vh - 57px);
  overflow: visible; /* must be visible so card outline isn't clipped */
  width: 100%;
}
.browse-body-wrap.has-sidebar .browse-main {
  flex: 1;
  min-width: 0;
  overflow: visible;
  max-width: none;
  height: auto;
  padding: 0;
}

/* ── PATH SIDEBAR ── */
.path-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 36px 28px 40px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.path-sidebar::-webkit-scrollbar { width: 0; }

.sidebar-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.sidebar-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem; font-weight: 800;
  color: #fff; line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.sidebar-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.35);
  line-height: 1.6; margin: 0 0 24px;
}

/* Progress */
.sidebar-progress-wrap { margin-bottom: 28px; }
.sidebar-progress-label-row {
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
}
.sidebar-progress-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.3);
}
.sidebar-progress-pct {
  font-family: 'Poppins', sans-serif;
  font-size: 11px; font-weight: 800; color: #00c67a;
}
.sidebar-progress-track {
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px; overflow: hidden;
}
.sidebar-progress-fill {
  height: 100%; width: 0%;
  background: #00c67a;
  border-radius: 100px;
  transition: width 0.9s cubic-bezier(0.25,1,0.5,1);
}

/* Step list */
.sidebar-steps {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-step:hover { background: rgba(255,255,255,0.06); }
.sidebar-step.current { background: rgba(255,255,255,0.08); }

.sidebar-step-dot {
  width: 26px; height: 26px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.35);
  transition: all 0.2s;
}
.sidebar-step.done .sidebar-step-dot {
  background: rgba(0,198,122,0.2);
  border-color: rgba(0,198,122,0.4);
  color: #00c67a;
}
.sidebar-step.active .sidebar-step-dot,
.sidebar-step.current .sidebar-step-dot {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}

.sidebar-step-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.3);
  line-height: 1.3;
  transition: color 0.15s;
}
.sidebar-step.done .sidebar-step-label { color: rgba(255,255,255,0.55); }
.sidebar-step.active .sidebar-step-label { color: rgba(255,255,255,0.85); font-weight: 600; }
.sidebar-step.current .sidebar-step-label { color: #fff; font-weight: 700; }
.sidebar-step.locked .sidebar-step-label { color: rgba(255,255,255,0.2); }
.sidebar-step.locked .sidebar-step-dot { opacity: 0.4; }

/* ── MAIN CONTENT WRAPPER ── */
.browse-main {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .browse-main { padding: 0 20px 80px; }
}

/* ── SKELETON ── */
.browse-skeleton {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.skel-card {
  height: 140px; border-radius: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── PATH GRID — fills full height of main ── */
.duo-path-wrap {
  flex: 1;
  height: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
}

/* Path card — large horizontal card with step number */
.browse-path-card {
  border-radius: 22px; padding: 28px 32px;
  display: flex; align-items: center; gap: 28px;
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.browse-path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
}
.browse-path-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* Step badge */
.bpc-step {
  font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  position: absolute; top: 20px; left: 28px;
}

/* Body */
.bpc-body { flex: 1; position: relative; z-index: 1; padding-top: 20px; }
.bpc-top  { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bpc-cat {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.bpc-diff {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  padding: 2px 8px; border-radius: 10px;
}
.bpc-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700; color: #fff; line-height: 1.2;
  margin: 0 0 6px;
}
.bpc-desc {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  max-width: 480px;
}
.bpc-meta {
  display: flex; align-items: center; gap: 16px;
}
.bpc-lessons {
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* Progress bar inside path card */
.bpc-prog-wrap { display: flex; align-items: center; gap: 8px; }
.bpc-prog-bar  { width: 80px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; }
.bpc-prog-fill { height: 100%; background: #fff; border-radius: 2px; }
.bpc-prog-text { font-family: 'Inter', sans-serif; font-size: 10px; color: rgba(255,255,255,0.5); }

/* Actions */
.bpc-actions {
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1; flex-shrink: 0;
}
.bpc-btn-start {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: #000;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  padding: 11px 20px; border-radius: 100px; border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: all 0.18s;
}
.bpc-btn-start:hover { background: #f0f0f0; transform: translateY(-1px); }
.bpc-btn-add {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: 100px; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.bpc-btn-add:hover { background: rgba(255,255,255,0.2); }
.bpc-btn-add.added {
  background: rgba(0,198,122,0.2); color: #fff;
  border-color: rgba(0,198,122,0.4);
}

/* Background symbol */
.bpc-symbol {
  position: absolute; right: 28px; bottom: 12px;
  font-size: 100px; font-weight: 900;
  font-family: 'Syne', sans-serif;
  opacity: 0.07; line-height: 1;
  pointer-events: none; user-select: none; color: #fff;
}

@media (max-width: 640px) {
  .browse-path-card {
    flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 28px 24px 24px;
  }
  .bpc-actions { flex-direction: row; width: 100%; }
  .bpc-btn-start { flex: 1; justify-content: center; }
  .bpc-symbol { display: none; }
}

/* ── CATEGORY GRID ── */
.browse-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.browse-cat-grid .mod-card-sm { width: auto; flex-shrink: unset; }

/* ── EMPTY STATE ── */
.browse-empty {
  flex-direction: column; align-items: center;
  text-align: center; padding: 80px 24px;
}
.browse-empty-icon  { font-size: 3rem; margin: 0 0 16px; }
.browse-empty-title {
  font-family: 'Poppins', sans-serif; font-size: 1.2rem;
  font-weight: 700; color: #0a0a0a; margin: 0 0 8px;
}
.browse-empty-sub {
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: #888; margin: 0;
}

/* ── SIGNUP NUDGE (inherits from learn.css) ── */
.signup-nudge {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .signup-nudge { padding: 12px 20px; }
}
/* ── LOCKED MODULE CARD ── */
.browse-path-card.bpc-locked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}
.browse-path-card.bpc-locked:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.bpc-lock-icon {
  position: absolute; top: 18px; right: 28px;
  font-size: 1.3rem; opacity: 0.6; z-index: 2;
}
.bpc-btn-locked {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: rgba(255,255,255,0.45); padding: 11px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px; white-space: nowrap;
}

/* ── DONE BADGE ── */
.bpc-done-badge {
  position: absolute; top: 18px; right: 28px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  background: rgba(0,198,122,0.2); color: #00c67a;
  border: 1px solid rgba(0,198,122,0.3);
  padding: 4px 12px; border-radius: 100px; z-index: 2;
}
.browse-path-card.bpc-done { opacity: 0.8; }
/* ── UNENROLL MODULE BUTTON (path cards in browse + active tab) ── */
.bpc-btn-unenroll {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  padding: 7px 14px; border-radius: 100px; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
  letter-spacing: 0.01em;
}
.bpc-btn-unenroll:hover {
  background: rgba(239,68,68,0.2);
  color: #fca5a5;
  border-color: rgba(239,68,68,0.35);
}

/* Confirm overlay (reused from learn.css pattern) */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.confirm-overlay.visible { opacity: 1; pointer-events: all; }
.confirm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.confirm-modal {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 380px; width: 90%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: translateY(8px);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.confirm-overlay.visible .confirm-modal { transform: translateY(0); }
.confirm-icon  { font-size: 2rem; margin-bottom: 12px; }
.confirm-title {
  font-family: 'Poppins', sans-serif; font-size: 1.05rem;
  font-weight: 700; color: #0a0a0a; margin: 0 0 8px;
}
.confirm-body  {
  font-family: 'Inter', sans-serif; font-size: 13px;
  color: #888; line-height: 1.6; margin: 0 0 24px;
}
.confirm-actions { display: flex; gap: 10px; }
.confirm-cancel-btn {
  flex: 1; padding: 11px; border-radius: 100px;
  background: #f5f5f5; color: #555;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.15s;
}
.confirm-cancel-btn:hover { background: #ebebeb; }
.confirm-ok-btn {
  flex: 1; padding: 11px; border-radius: 100px;
  background: #0a0a0a; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.15s;
}
.confirm-ok-btn.danger { background: #ef4444; }
.confirm-ok-btn.danger:hover { background: #dc2626; }
.confirm-ok-btn:hover { background: #222; }
/* ============================================================
   ARTICLE CARD GUIDED PATH — replaces Duolingo circles
   ============================================================ */

/* ── Step pills row — hidden (all cards visible, pills redundant) ── */
.ac-step-pills {
  display: none;
}
.ac-step-pill-top {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  border: 1.5px solid rgba(0,0,0,0.08);
  color: #bbb; background: #fff;
  transition: all 0.2s;
}
.ac-step-pill-top.ac-pill--done {
  background: rgba(0,198,122,0.1);
  border-color: rgba(0,198,122,0.3);
  color: #00c67a;
}
.ac-step-pill-top.ac-pill--active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}
.ac-step-pill-top.ac-pill--locked {
  opacity: 0.4;
}
.ac-step-pill-top.ac-pill--current {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── HORIZONTAL 2-UP CARD VIEWER ── */
.ac-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 100px 0 0; /* no horizontal padding — track is centered by JS */
  box-sizing: border-box;
  overflow: hidden; /* clip the track edges so cards bleed but don't scroll */
}

/* Clip wrapper */
.ac-carousel-track-wrap {
  overflow: visible;
  border-radius: 4px;
  padding: 20px 0 0;
  margin: -20px 0 0;
}

.ac-carousel-track {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 20px;
  overflow: visible;
  min-height: unset;
  /* transition handled by JS (set/unset per call) */
  will-change: transform;
}

/* Each slide — fixed card width, center-focused */
.ac-carousel-slide {
  position: relative;
  inset: unset;
  flex: 0 0 480px;        /* fixed card width */
  height: 800px;          /* taller cards */
  opacity: 1;
  pointer-events: all;
  /* Scale + opacity driven by ac-slide--active / prev / next */
  transition: transform 0.42s cubic-bezier(0.25,1,0.5,1),
              opacity  0.42s cubic-bezier(0.25,1,0.5,1);
  transform-origin: center bottom;
  overflow: visible; /* allow outline to paint outside */
  border-radius: 26px;
}
/* The actual card visual still clips its inner content */
.ac-carousel-slide .kyc-style-card {
  overflow: hidden;
  height: 100%;
}

/* Focus / Cover-flow scale states */
.ac-carousel-slide.ac-slide--active {
  transform: scale(1.0);
  opacity: 1;
  position: relative;
  z-index: 2;
}
.ac-carousel-slide.ac-slide--prev,
.ac-carousel-slide.ac-slide--next {
  transform: scale(0.88);
  opacity: 0.7;
  position: relative;
  z-index: 1;
}
/* Farther-out slides shrink even more (handled via JS class) */
.ac-carousel-slide.ac-slide--far {
  transform: scale(0.78);
  opacity: 0.45;
  z-index: 0;
}
.ac-carousel-slide:has(.ac-card--locked),
.ac-carousel-slide:has(.ac-card--locked).ac-slide--active,
.ac-carousel-slide:has(.ac-card--locked).ac-slide--next {
  opacity: 0.35;
}

/* ── KYC-STYLE GRADIENT CARDS ── */
.kyc-style-card {
  height: 900px;
  border-radius: 26px;
  border: none !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: e-resize;
  background: var(--card-bg, #4fa8ff);
  box-shadow: 0 8px 0 var(--card-shadow, rgba(0,0,0,0.2)), 0 4px 24px rgba(0,0,0,0.15);
  transition: transform 0.14s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.14s;
  position: relative;
}
.kyc-style-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
  border-radius: 26px;
}
.kyc-style-card:not(.ac-card--locked):hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 0 var(--card-shadow, rgba(0,0,0,0.2)), 0 12px 40px rgba(0,0,0,0.18);
}
.kyc-style-card:not(.ac-card--locked):active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 var(--card-shadow, rgba(0,0,0,0.2)), 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.07s, box-shadow 0.07s;
}
.kyc-style-card.ac-card--locked { pointer-events: none; filter: grayscale(0.3); }

/* Card inner layout */
.kyc-card-inner {
  display: flex; flex-direction: column;
  height: 100%; padding: 28px 24px 24px;
  position: relative; z-index: 1;
}
/* Top: tag + xp */
.kyc-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-shrink: 0;
}
.kyc-card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 13px; border-radius: 100px;
  backdrop-filter: blur(4px);
}
.kyc-card-xp {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.75);
}
/* Body */
.kyc-card-body { flex: 1; display: flex; flex-direction: column; }
.kyc-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.kyc-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; color: rgba(255,255,255,0.65);
  line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
/* Meta */
.kyc-card-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 16px; margin-bottom: 16px; flex-shrink: 0;
}
.kyc-card-meta-pill {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px; border-radius: 100px;
}
/* CTA */
.kyc-card-action { flex-shrink: 0; }
.kyc-card-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: #fff; color: #000;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 800;
  padding: 14px 20px; border-radius: 100px;
  border: none; cursor: pointer;
  box-shadow: 0 5px 0 rgba(0,0,0,0.18);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.kyc-card-btn:hover {
  background: #f5f5f5; transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(0,0,0,0.18);
}
.kyc-card-btn:active {
  transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,0.18);
  transition: transform 0.06s, box-shadow 0.06s;
}
.kyc-card-btn--locked {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none; cursor: not-allowed; font-size: 12px;
}
/* Watermark number */
.kyc-card-num {
  position: absolute; right: 16px; bottom: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 90px; font-weight: 800;
  color: rgba(255,255,255,0.07); line-height: 1;
  pointer-events: none; user-select: none; letter-spacing: -0.04em;
}

/* ── Floating side arrows ── */
.ac-carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  pointer-events: all;
  padding: 20px 6px 24px;
  z-index: 30;
  box-sizing: border-box;
}

.ac-nav-btn {
  pointer-events: all;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: #fff;
  color: #555;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  transition: all 0.18s;
  flex-shrink: 0;
}
.ac-nav-btn:hover:not(:disabled) {
  background: #0a0a0a; color: #fff; border-color: #0a0a0a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}
.ac-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
/* ── Dot-track nav indicator ── */
.ac-nav-dots {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
}

/* The sliding outline ring — absolutely positioned, moves via translateX */
.ac-nav-dot-ring {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #00c67a;
  transform: translateX(0) translateY(-50%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,198,122,0.4);
}

.ac-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  /* Add invisible padding so the ring (20px) centers over the dot (8px) */
  position: relative;
}

.ac-nav-dot:hover {
  background: rgba(0,0,0,0.35);
  transform: scale(1.2);
}

.ac-nav-dot--active {
  background: #00c67a;
}

.ac-nav-counter {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  min-width: 50px;
  text-align: center;
}


/* ── Individual article card ── */
/* ac-card base — split to avoid overriding kyc-style-card */
.ac-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s;
}
/* Only apply white card defaults when NOT a kyc-style-card */
.ac-card:not(.kyc-style-card) {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.ac-card:not(.ac-card--locked):not(.kyc-style-card):hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

/* Active card: green ring matching dot nav — z-index so it paints above siblings */
.ac-card--active {
  position: relative;
  z-index: 2;
  outline: 3px solid rgba(0,198,122,0.8);
  outline-offset: 6px;
}

.ac-card--done { opacity: 1; }

.ac-card--locked {
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes ac-unlock-pop {
  0%   { transform: scale(0.95); }
  55%  { transform: scale(1.04); }
  80%  { transform: scale(0.99); }
  100% { transform: scale(1); }
}
.ac-card--just-unlocked {
  animation: ac-unlock-pop 0.65s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* ── Image area ── */
.ac-img {
  position: relative;
  height: 170px;
  overflow: hidden;
  flex-shrink: 0;
}
.ac-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ac-card:not(.ac-card--locked):hover .ac-img img {
  transform: scale(1.04);
}
.ac-card--locked .ac-img img {
  filter: blur(3px) grayscale(0.5) brightness(0.75);
  transform: scale(1.06);
}

/* Locked overlay — always visible */
.ac-locked-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,26,0.55);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  z-index: 2;
}
.ac-lock-icon { font-size: 26px; }
.ac-lock-msg {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-align: center; line-height: 1.4;
  padding: 0 14px;
}

/* Done checkmark badge */
.ac-done-badge {
  position: absolute; top: 10px; left: 10px;
  z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: #00c67a;
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,198,122,0.4);
}

/* Progress ring (top-right of image) */
.ac-ring-wrap {
  position: absolute; top: 10px; right: 10px;
  z-index: 3;
  width: 44px; height: 44px;
}
.ac-ring-bg  { fill: none; stroke: rgba(255,255,255,0.3); stroke-width: 3.5; }
.ac-ring-fill {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.25,1,0.5,1);
}
.ac-ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 9px; font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── Card body ── */
.ac-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ac-top-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.ac-cat {
  font-family: 'Inter', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #bbb;
}
.ac-step-pill {
  font-family: 'Inter', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.08);
  color: #bbb; background: #f6f6f6;
}
.ac-step-pill--done {
  background: rgba(0,198,122,0.1);
  border-color: rgba(0,198,122,0.3);
  color: #00c67a;
}
.ac-step-pill--active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}
.ac-step-pill--locked { opacity: 0.5; }

.ac-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: #0a0a0a; line-height: 1.25;
  margin: 0 0 7px;
  letter-spacing: -0.015em;
}
.ac-card--locked .ac-title { color: #aaa; }

.ac-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; color: #888;
  line-height: 1.65; margin: 0 0 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ac-card--locked .ac-desc { -webkit-line-clamp: 2; }

/* Meta pills row */
.ac-meta {
  display: flex; align-items: center; gap: 7px;
  flex-wrap: wrap; margin-bottom: 0;
}
.ac-meta-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; color: #888;
  background: #f5f5f5;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 4px 10px; border-radius: 100px;
}
.ac-meta-pill svg { opacity: 0.55; flex-shrink: 0; }

/* XP pill */
.ac-xp-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Inter', sans-serif;
  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: 4px 10px; border-radius: 100px;
}
.ac-xp-pill--earned {
  color: #00c67a;
  background: rgba(0,198,122,0.1);
  border-color: rgba(0,198,122,0.25);
}
.ac-xp-pill--active {
  color: #0a0a0a;
  background: rgba(0,198,122,0.12);
  border-color: rgba(0,198,122,0.3);
}

/* Locked banner */
.ac-locked-banner {
  display: flex; align-items: center; gap: 7px;
  margin-top: 12px;
  background: rgba(0,0,0,0.03);
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 100px;
  padding: 7px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  color: #bbb;
}
.ac-locked-banner svg { opacity: 0.45; flex-shrink: 0; }

/* CTA buttons */
.ac-cta { margin-top: 14px; }
.ac-btn-continue, .ac-btn-review {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  padding: 12px 20px; border-radius: 100px;
  border: none; cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.ac-btn-continue {
  background: #0a0a0a; color: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
.ac-btn-continue:hover  { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,0.25); }
.ac-btn-continue:active { transform: translateY(3px);  box-shadow: 0 1px 0 rgba(0,0,0,0.25); }
.ac-btn-review {
  background: #f5f5f5; color: #555;
  box-shadow: 0 3px 0 rgba(0,0,0,0.1);
}
.ac-btn-review:hover  { background: #ececec; transform: translateY(-1px); }

/* ── Particle burst (unchanged) ── */
.duo-particle {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  animation: duo-particle-fly 0.7s ease-out forwards;
}
@keyframes duo-particle-fly {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--px), var(--py)) scale(0); opacity: 0; }
}

/* ── Browse page scroll fix ── */
body.learn-page:has(.browse-cat-hero),
body.learn-page:has(.ac-cards-grid) {
  height: 100% !important;
  overflow: hidden !important;
}
body.learn-page:has(.duo-path-wrap) {
  height: auto !important;
  overflow: auto !important;
}

/* Mobile */
@media (max-width: 600px) {
  .ac-img { height: 150px; }
}
@media (max-width: 768px) {
  .path-sidebar { display: none !important; }
  .browse-body-wrap.has-sidebar .browse-main { padding: 24px 20px 80px; }
  .ac-carousel { max-width: 100%; }
}
.hero-leave-btn {
  display: inline-flex; align-items: center;
  background: transparent; color: #888;
  border: 1.5px solid #e0e0e0;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  padding: 12px 22px; border-radius: 100px; cursor: pointer;
  transition: all 0.18s; white-space: nowrap;
}
.hero-leave-btn:hover {
  background: rgba(239,68,68,0.06);
  color: #ef4444;
  border-color: rgba(239,68,68,0.35);
}
/* ============================================================
   MODULE PREVIEW MODAL — Hype Screen
   ============================================================ */
.mod-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
@media (min-width: 560px) {
  .mod-preview-overlay { align-items: center; }
}
.mod-preview-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.mod-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Sheet ── */
.mod-preview-sheet {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 32px 32px 0 0;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  transform: translateY(40px);
  transition: transform 0.34s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 -8px 64px rgba(0,0,0,0.22);
}
@media (min-width: 560px) {
  .mod-preview-sheet {
    border-radius: 28px;
    transform: translateY(24px) scale(0.96);
    box-shadow: 0 32px 96px rgba(0,0,0,0.28);
  }
}
.mod-preview-overlay.visible .mod-preview-sheet {
  transform: translateY(0) scale(1);
}

/* ── Close button ── */
.mod-preview-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.mod-preview-close:hover { background: rgba(0,0,0,0.45); }

/* ── Hero banner ── */
.mod-preview-hero {
  width: 100%;
  height: 180px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 20px;
  background: var(--mod-color, #4fa8ff);
  overflow: hidden;
}
/* Subtle radial glow from center */
.mod-preview-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.22) 0%, transparent 65%);
  pointer-events: none;
}
/* Bottom fade into white */
.mod-preview-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08));
  pointer-events: none;
}

/* Big centered icon */
.mod-preview-icon-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -62%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 0 rgba(255,255,255,0.15) inset;
}
.mod-preview-symbol {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Category pill at bottom of banner */
.mod-preview-cat {
  position: relative; z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 14px; border-radius: 100px;
  backdrop-filter: blur(4px);
}

/* ── Body ── */
.mod-preview-body {
  padding: 28px 28px 32px;
}
.mod-preview-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: #0a0a0a; margin: 0 0 8px;
  letter-spacing: -0.025em; line-height: 1.15;
}
.mod-preview-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: #999;
  line-height: 1.65; margin: 0 0 20px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Loot pills ── */
.mod-preview-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.mod-preview-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  color: #555;
  background: #f4f4f4;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 6px 14px; border-radius: 100px;
}
.mod-preview-pill svg { color: #aaa; flex-shrink: 0; }

/* ── Actions ── */
.mod-preview-actions {
  display: flex; flex-direction: column; gap: 10px;
}

/* Big 3D start button */
.mod-preview-start {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  background: var(--mod-color, #00c67a);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px; font-weight: 800;
  letter-spacing: -0.01em;
  padding: 18px 28px;
  border-radius: 18px;
  text-decoration: none;
  border: none; cursor: pointer;
  box-shadow: 0 6px 0 var(--mod-shadow, rgba(0,0,0,0.25));
  transition: transform 0.1s, box-shadow 0.1s;
  position: relative; top: 0;
}
.mod-preview-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--mod-shadow, rgba(0,0,0,0.25));
}
.mod-preview-start:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--mod-shadow, rgba(0,0,0,0.25));
}

/* Ghost "maybe later" */
.mod-preview-maybe {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  color: #bbb;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  transition: color 0.15s;
  text-align: center; width: 100%;
}
.mod-preview-maybe:hover { color: #888; }
/* ── Active card pulse — outline opacity breathes in sync with dot nav ring ── */
@keyframes acActivePulse {
  0%   {
    outline-color: rgba(0,198,122,0.6);
    box-shadow: 0 8px 0 var(--card-shadow, rgba(0,0,0,0.2)), 0 0 20px 6px rgba(0,198,122,0.15);
  }
  50%  {
    outline-color: rgba(0,198,122,1);
    box-shadow: 0 8px 0 var(--card-shadow, rgba(0,0,0,0.2)), 0 0 36px 14px rgba(0,198,122,0.28);
  }
  100% {
    outline-color: rgba(0,198,122,0.6);
    box-shadow: 0 8px 0 var(--card-shadow, rgba(0,0,0,0.2)), 0 0 20px 6px rgba(0,198,122,0.15);
  }
}
.ac-card--active {
  animation: acActivePulse 2s ease-in-out infinite;
}
/* ── Module Rating Pills ── */
.mod-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; letter-spacing: 0.01em;
}
.mod-rating-val {
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
}
.mod-rating-count {
  color: #b45309;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
}

/* Pill on the duo path card — sits below the step label, above the ring */
.duo-rating-pill {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}
/* ── Signup nudge bar (fixed bottom) ── */
.signup-nudge-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 900px;
}
.signup-nudge-text { flex: 1; }
.signup-nudge-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #111; margin: 0 0 2px;
}
.signup-nudge-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: #888; margin: 0;
}
.signup-nudge-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0a0a0a; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 12px 22px; border-radius: 100px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
  transition: transform 0.1s, box-shadow 0.1s;
  flex-shrink: 0;
}
.signup-nudge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.3);
}
/* ============================================================
   MOBILE FIXES — path sidebar drawer + nav accessibility
   ============================================================ */

/* ── Mobile path drawer toggle button (in topnav) ── */
.browse-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.browse-path-toggle {
  display: none; /* hidden on desktop */
  align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  color: #fff;
  background: #0a0a0a;
  border: none; cursor: pointer;
  padding: 8px 16px; border-radius: 100px;
  line-height: 1;
  transition: background 0.15s;
  white-space: nowrap;
}
.browse-path-toggle:hover { background: #222; }
.browse-path-toggle svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .browse-path-toggle { display: inline-flex; }
}

/* ── Mobile sidebar: hide desktop sidebar, show as drawer ── */
@media (max-width: 768px) {
  /* Hide the fixed left sidebar */
  .path-sidebar {
    display: none !important;
  }

  /* Reset body-wrap so content fills full width */
  .browse-body-wrap {
    height: auto !important;
    overflow: visible !important;
  }

  html, body {
    height: auto !important;
    overflow: auto !important;
  }

  /* Give browse-main proper padding for bottom nudge bar */
  .browse-main {
    padding: 0 16px 120px !important;
  }

  /* Carousel: shrink card width to fit mobile */
  .ac-carousel-slide {
    flex: 0 0 88vw !important;
    height: auto !important;
    min-height: 520px !important;
  }
  .kyc-style-card {
    height: auto !important;
    min-height: 520px !important;
  }

  /* Nav buttons: bigger tap targets on mobile */
  .ac-nav-btn {
    width: 52px !important;
    height: 52px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2) !important;
  }
}

/* ── Mobile path drawer overlay ── */
.path-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.path-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 768px) {
  .path-drawer-overlay {
    display: block;
    pointer-events: none;
  }
}

/* ── Drawer sheet (slides up from bottom) ── */
.path-drawer-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8001;
  background: #0a0a0a;
  border-radius: 24px 24px 0 0;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0 0 env(safe-area-inset-bottom, 20px);
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: none;
}
.path-drawer-sheet::-webkit-scrollbar { width: 0; }
.path-drawer-sheet.open {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .path-drawer-sheet {
    display: block;
  }
}

/* Drag handle */
.path-drawer-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 100px;
  margin: 14px auto 20px;
}

/* Drawer inner content */
.path-drawer-inner {
  padding: 0 24px 32px;
}

.path-drawer-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.path-drawer-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem; font-weight: 800;
  color: #fff; line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}
.path-drawer-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.35);
  line-height: 1.6; margin: 0 0 20px;
}

/* Progress bar inside drawer */
.path-drawer-prog-wrap { margin-bottom: 24px; }
.path-drawer-prog-row {
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
}
.path-drawer-prog-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.3);
}
.path-drawer-prog-pct {
  font-family: 'Poppins', sans-serif;
  font-size: 11px; font-weight: 800; color: #00c67a;
}
.path-drawer-prog-track {
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px; overflow: hidden;
}
.path-drawer-prog-fill {
  height: 100%; width: 0%;
  background: #00c67a;
  border-radius: 100px;
  transition: width 0.9s cubic-bezier(0.25,1,0.5,1);
}

/* Drawer steps — same style as sidebar-steps */
.path-drawer-steps {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.path-drawer-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 48px; /* tap-friendly */
}
.path-drawer-step:hover,
.path-drawer-step:active { background: rgba(255,255,255,0.06); }
.path-drawer-step.current { background: rgba(255,255,255,0.08); }
.path-drawer-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.35);
}
.path-drawer-step.done .path-drawer-step-dot {
  background: rgba(0,198,122,0.2);
  border-color: rgba(0,198,122,0.4);
  color: #00c67a;
}
.path-drawer-step.current .path-drawer-step-dot {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}
.path-drawer-step-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.3);
  line-height: 1.3;
}
.path-drawer-step.done .path-drawer-step-label { color: rgba(255,255,255,0.55); }
.path-drawer-step.current .path-drawer-step-label { color: #fff; font-weight: 700; }
.path-drawer-step.locked .path-drawer-step-label { color: rgba(255,255,255,0.18); }
.path-drawer-step.locked .path-drawer-step-dot { opacity: 0.4; }