/* ==========================================================================
   PROMPTSTAGING INTERACTIVE SEO ROADMAP - ULTRA HIGH-END DESIGN SYSTEM
   Inspired by RankRise & Developer Portals
   3-Column Architecture: Sidebar Nav + Milestone Timeline + Radial Progress HUD
   Fluid Responsive • Accessible AAA • Zero Runtime Frameworks
   ========================================================================== */

/* --- Atmospheric & Ambient Elements --- */
.rankrise-hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%), var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.hero-ambient-glow {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.hero-container-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-container-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  /* .hero-visual-col rendered responsively below */
}

/* --- Hero Left Column Typography --- */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  color: #A5B4FC;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818CF8;
  box-shadow: 0 0 8px #818CF8;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 4.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #C084FC 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2.25rem;
}

/* --- 3 Feature Highlight Trio --- */
.hero-feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .hero-feature-trio {
    grid-template-columns: 1fr;
  }
}

.hero-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.hero-feat-item:hover {
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateY(-2px);
}

.feat-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.feat-content strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.feat-content p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* --- Hero Right Column Visual Dashboard (RankRise Mockup) --- */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.analytics-card-mockup {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.7);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.dot-red { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; }
.dot-yellow { width: 10px; height: 10px; border-radius: 50%; background: #F59E0B; }
.dot-green { width: 10px; height: 10px; border-radius: 50%; background: #10B981; }

.mockup-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.mockup-chart-area {
  position: relative;
  width: 100%;
  height: 180px;
}

/* Floating Organic Traffic Card */
.floating-stat-card {
  position: absolute;
  bottom: -24px;
  left: -20px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  z-index: 2;
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.fsc-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.fsc-metric {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fsc-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #10B981;
  font-family: var(--font-heading);
}

.fsc-arrow {
  color: #10B981;
  font-weight: 800;
  font-size: 1.25rem;
}

.fsc-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Floating Glowing Donut Ring */
.floating-donut-ring {
  position: absolute;
  top: 35%;
  right: -32px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%, #818CF8 0deg, #C084FC 140deg, #06B6D4 260deg, #4F46E5 360deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #fff calc(100% - 22px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #fff calc(100% - 22px));
  box-shadow: 0 0 35px rgba(129, 140, 248, 0.45);
  animation: floatRing 5s ease-in-out infinite alternate;
}

@keyframes floatRing {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(15deg); }
}

/* --- Mobile Responsive Hero Visual Card --- */
@media (max-width: 640px) {
  .hero-visual-col {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
    margin-top: 1.5rem;
  }
  .analytics-card-mockup {
    max-width: 100%;
    padding: 1.25rem 0.85rem;
  }
  .floating-stat-card {
    position: static;
    margin-top: 1rem;
    animation: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  .floating-donut-ring {
    top: 15px;
    right: 8px;
    width: 58px;
    height: 58px;
    opacity: 0.85;
  }
}

/* --- Section Heading (RankRise Centered Style) --- */
.roadmap-main-section {
  padding: 4.5rem 0 3rem;
  position: relative;
}

.roadmap-section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.heading-badge-pill {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  color: #A5B4FC;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.heading-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.heading-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Search & Filter Toolbar --- */
.roadmap-filter-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.25);
}

.filter-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

#roadmapSearchInput {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
}

#roadmapSearchInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.filter-pill-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-group-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.filter-pill {
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.filter-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.filter-status-box {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- 3-COLUMN CORE ROADMAP GRID --- */
.roadmap-3col-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .roadmap-3col-grid {
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .roadmap-3col-grid {
    grid-template-columns: 1fr 290px;
  }
  .roadmap-sidebar-left {
    display: none;
  }
}

@media (max-width: 768px) {
  .roadmap-3col-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-sidebar-right {
    order: -1;
    margin-bottom: 2rem;
  }
}

.sticky-sidebar-inner {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- Left Column: Vertical Phase Navigation --- */
.sidebar-header-box {
  padding: 0 0.5rem;
}

.shb-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.shb-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.phase-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.phase-nav-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.phase-nav-tab:hover {
  border-color: rgba(129, 140, 248, 0.5);
  background: var(--bg-subtle);
  transform: translateX(2px);
}

.phase-nav-tab.is-active {
  background: #4F46E5;
  border-color: #6366F1;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.pnt-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pnt-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.phase-nav-tab.is-active .pnt-num {
  color: rgba(255, 255, 255, 0.8);
}

.pnt-text {
  display: flex;
  flex-direction: column;
}

.pnt-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.pnt-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.phase-nav-tab.is-active .pnt-sub {
  color: rgba(255, 255, 255, 0.85);
}

.pnt-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Sidebar Help Card */
.sidebar-help-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
}

.shc-icon {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.sidebar-help-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
}

.sidebar-help-card p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.btn-sidebar-help {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.btn-sidebar-help:hover {
  text-decoration: underline;
}

/* --- Center Column: Connected Milestone Timeline --- */
.roadmap-timeline-col {
  position: relative;
  min-width: 0;
}

.timeline-track-line {
  position: absolute;
  left: 23px;
  top: 40px;
  bottom: 80px;
  width: 2px;
  background: linear-gradient(to bottom, #4F46E5 0%, #06B6D4 50%, #10B981 100%);
  opacity: 0.35;
  z-index: 0;
}

@media (max-width: 640px) {
  .timeline-track-line {
    display: none;
  }
}

.roadmap-phases-timeline {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.timeline-phase-block {
  position: relative;
  scroll-margin-top: 100px;
}

/* Milestone Node & Phase Header */
.milestone-header-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.milestone-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-phase-block.is-completed .milestone-node {
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.phase-card-wrapper {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

.phase-card-wrapper:hover {
  border-color: rgba(129, 140, 248, 0.4);
}

.phase-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.phase-badge-pill {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.phase-level-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.phase-prog-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.phase-heading-title {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}

.phase-heading-tagline {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}

.phase-analogy-quote {
  background: var(--bg-subtle);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.analogy-emoji {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Framed Compact Infographic */
.phase-infographic-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem;
  max-width: 300px;
  margin: 0 auto 1.5rem;
}

.btn-toggle-infographic {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.65rem;
  transition: all 0.15s ease;
}

.btn-toggle-infographic:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

.infographic-preview-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.infographic-preview-frame.is-hidden {
  display: none;
}

.phase-infographic-img {
  width: 100%;
  max-width: 270px;
  max-height: 337px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phase-infographic-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.infographic-zoom-caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
  cursor: pointer;
}

.infographic-zoom-caption:hover {
  color: var(--primary);
}

/* --- Step Cards (Sleek Accordion) --- */
.phase-steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.step-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  scroll-margin-top: 110px;
}

.step-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.step-card.is-done {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(to right, rgba(16, 185, 129, 0.04), transparent);
}

.step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  gap: 1rem;
}

.step-card-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.step-master-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #10B981;
  flex-shrink: 0;
}

.step-id-badge {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.step-card.is-done .step-id-badge {
  color: #10B981;
  border-color: #10B981;
}

.step-title-wrap {
  flex: 1;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.step-card.is-done .step-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.step-meta-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.step-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.step-toggle-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Step Card Collapsible Body */
.step-body {
  display: none;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.step-body.is-open {
  display: block;
}

.step-simple-words {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.05));
  border-left: 3px solid #818CF8;
  border-radius: 0 8px 8px 0;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.sw-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-explanation {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.step-explanation p {
  margin-bottom: 0.75rem;
}

/* Tasks */
.step-tasks-section {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.tasks-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-tasks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.step-task-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.step-task-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #10B981;
  flex-shrink: 0;
}

/* Example Box */
.step-example-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.example-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .example-grid {
    grid-template-columns: 1fr;
  }
}

.eg-before,
.eg-after {
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.eg-before {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--text-secondary);
}

.eg-after {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--text-primary);
}

/* Real-World Reference */
.step-realworld-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.rw-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-right: 0.4rem;
}

.step-realworld-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.step-realworld-box a:hover {
  text-decoration: underline;
}

/* Mistake Callout */
.step-mistake-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #F59E0B;
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.mistake-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
}

/* Guides */
.step-guides-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.guides-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guides-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.guides-list li {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.guide-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.guide-free { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.guide-video { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

.guides-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.guides-list a:hover {
  text-decoration: underline;
}

/* Terms */
.step-terms-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.terms-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step-terms-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.term-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Step Footer */
.step-footer-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-step-toggle-complete {
  min-height: 40px;
  padding: 0.5rem 1.15rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.step-card.is-done .btn-step-toggle-complete {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10B981;
  color: #10B981;
}

.btn-step-toggle-complete:hover {
  border-color: var(--primary);
}

/* --- Right Column: Progress & Insights Dashboard --- */
.progress-radial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.prc-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.prc-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
}

.radial-gauge-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
}

.radial-gauge-svg {
  display: block;
  transform: rotate(-90deg);
}

.gauge-circle-bar {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.radial-gauge-text-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radial-gauge-number {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.radial-gauge-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.prc-ratio-line {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.prc-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.btn-prc-primary,
.btn-prc-ghost {
  flex: 1;
  min-height: 40px;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.btn-prc-primary {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
}

.btn-prc-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-prc-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

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

.prc-privacy-note {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Up Next HUD Card */
.up-next-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--primary);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.up-next-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.up-next-phase {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.up-next-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.15rem 0 0.35rem;
  line-height: 1.3;
}

.up-next-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 0.5rem;
}

.btn-jump-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-jump-step:hover {
  background: var(--primary-hover);
  transform: translateX(2px);
}

/* Why Follow Card */
.why-roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
}

.wrc-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
}

.wrc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wrc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.wrc-check {
  color: #10B981;
  font-weight: 800;
  flex-shrink: 0;
}

/* Pro Tip Card */
.pro-tip-card {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid #818CF8;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.15rem;
}

.ptc-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #A5B4FC;
  margin-bottom: 0.35rem;
}

.ptc-body {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Ready CTA Banner Section (RankRise Style) --- */
.ready-cta-section {
  padding: 3rem 0;
}

.ready-cta-card {
  position: relative;
  background: linear-gradient(135deg, #090D16 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.cta-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.cta-actions {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #4F46E5;
  color: #FFFFFF;
  padding: 0.85rem 2.25rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.btn-cta-primary:hover {
  background: #6366F1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.5);
}

.cta-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.btn-cta-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-trust-trio {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* --- Dynamic Glossary Section --- */
.glossary-section {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 3rem 0;
}

.section-heading-wrap {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.section-pill {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0;
}

.glossary-nav-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.glossary-letter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.glossary-letter-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.glossary-group {
  margin-bottom: 2rem;
  scroll-margin-top: 100px;
}

.glossary-group-letter {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.35rem;
  margin: 0 0 1rem;
}

.glossary-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.glossary-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.glossary-term {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.glossary-def {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

.glossary-ref a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.glossary-ref a:hover {
  text-decoration: underline;
}

/* --- FAQ Accordion Section --- */
.faq-section {
  padding: 3rem 0 4rem;
}

.faq-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  min-height: 52px;
  padding: 1.15rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-chevron {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
}

/* --- Toast Notification --- */
.roadmap-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #111827;
  color: #FFFFFF;
  border: 1px solid var(--primary);
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Highlight Step Pulse */
@keyframes highlightStep {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.highlight-pulse {
  animation: highlightStep 1.2s ease 2;
  border-color: var(--primary) !important;
}

/* Print Stylesheet */
@media print {
  .site-header,
  .announcement-bar,
  .roadmap-sidebar-left,
  .roadmap-sidebar-right,
  .roadmap-filter-toolbar,
  .ready-cta-section,
  .site-footer,
  .roadmap-toast {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .roadmap-3col-grid {
    display: block !important;
  }
  .step-body {
    display: block !important;
  }
}

/* ==========================================================================
   PHASE STEPPER BAR & FOCUS VIEW CONTROLS (Zero Scroll Fatigue)
   ========================================================================== */
.phase-stepper-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
}

.psb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.psb-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-psb-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-psb-nav:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-psb-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.psb-current-indicator {
  display: flex;
  flex-direction: column;
}

.psb-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.psb-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.psb-view-toggle {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.btn-view-mode {
  min-height: 34px;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-view-mode:hover {
  color: var(--text-primary);
}

.btn-view-mode.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/* Horizontal Pills Strip */
.psb-pills-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.psb-pills-strip::-webkit-scrollbar {
  height: 4px;
}

.psb-pills-strip::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.psb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.psb-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(129, 140, 248, 0.5);
}

.psb-pill.is-active {
  background: #4F46E5;
  border-color: #6366F1;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.psb-pill-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.75rem;
  opacity: 0.75;
}

.psb-pill.is-active .psb-pill-num {
  opacity: 1;
}

.psb-pill-name {
  font-weight: 700;
}

.psb-pill-prog {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
}

.psb-pill.is-completed {
  border-color: rgba(16, 185, 129, 0.4);
}

.psb-pill.is-completed .psb-pill-prog {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  font-weight: 800;
}

.psb-pill.is-active.is-completed .psb-pill-prog {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Phase Footer Navigation */
.phase-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-pfn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pfn-prev {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-pfn-prev:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateX(-2px);
}

.btn-pfn-next {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  border: none;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-pfn-next:hover {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
  transform: translateX(2px);
}

.btn-pfn-complete-phase {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
}

.btn-pfn-complete-phase:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
}

.btn-pfn-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Timeline Mode Collapsed Milestones (RankRise Style) */
.timeline-phase-block.milestone-collapsed {
  scroll-margin-top: 100px;
}

.timeline-phase-block.milestone-collapsed .milestone-node {
  border-color: var(--border-color);
  color: var(--text-muted);
  box-shadow: none;
}

.timeline-phase-block.milestone-collapsed.is-completed .milestone-node {
  border-color: #10B981;
  color: #10B981;
}

.milestone-collapsed-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.milestone-collapsed-card:hover {
  border-color: rgba(129, 140, 248, 0.5);
  background: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.mcc-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.mcc-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mcc-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.mcc-level {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.mcc-progress {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline-phase-block.milestone-collapsed.is-completed .mcc-progress {
  color: #10B981;
}

.mcc-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.mcc-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.mcc-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.mcc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.mcc-explore-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .mcc-explore-btn {
    display: none;
  }
  .mcc-tagline {
    display: none;
  }
}

/* Filter Results Banner & Empty State */
.filter-results-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
}

.frb-text {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.btn-clear-search {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-clear-search:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.empty-filter-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.ef-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.filtered-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Left Sidebar Enhancements */
.pnt-meta-col {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pnt-check {
  font-size: 0.75rem;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.phase-nav-tab.is-completed {
  border-left: 3px solid #10B981;
}

/* Mobile Responsive Refinements (<= 640px) */
@media (max-width: 640px) {
  .milestone-header-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .milestone-node {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .phase-card-wrapper {
    width: 100%;
    padding: 1.15rem 1rem;
    border-radius: 12px;
  }

  .phase-heading-title {
    font-size: 1.35rem;
  }

  .phase-heading-tagline {
    font-size: 0.92rem;
  }

  .phase-infographic-box {
    max-width: 100%;
    width: 100%;
  }

  .phase-infographic-img {
    max-width: 240px;
  }

  /* Step Card Header on Mobile */
  .step-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .step-card-header-left {
    align-items: flex-start;
    width: 100%;
  }

  .step-master-checkbox {
    margin-top: 3px;
  }

  .step-title-wrap {
    flex: 1;
    min-width: 0;
  }

  .step-title {
    font-size: 0.98rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .step-toggle-btn {
    width: 100%;
    justify-content: center;
  }

  .step-body {
    padding: 1rem 0.9rem;
  }

  /* Stepper Bar on Mobile */
  .phase-stepper-bar {
    padding: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .psb-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .psb-nav-btns {
    width: 100%;
    justify-content: space-between;
  }

  .btn-psb-nav {
    flex-shrink: 0;
    min-width: 68px;
    white-space: nowrap;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }

  .psb-current-indicator {
    text-align: center;
    overflow: hidden;
  }

  .psb-title {
    font-size: 0.85rem;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .psb-view-toggle {
    width: 100%;
  }

  .btn-view-mode {
    flex: 1;
    justify-content: center;
    font-size: 0.78rem;
  }

  /* Phase Footer Navigation */
  .phase-footer-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .btn-pfn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   INTERACTIVE ZERO-SCROLL SLIDE DECK & MODERN TOOLTIPS ENGINE
   Added for PromptStaging SEO Roadmap Ergonomics
   ========================================================================== */

/* --- Sticky Stepper Enhancement --- */
.phase-stepper-bar {
  position: sticky;
  top: 72px;
  z-index: 35;
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

/* --- Slide Deck Container --- */
.roadmap-slide-deck {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

/* Phase Banner */
.slide-deck-phase-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%), var(--bg-card);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

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

.sdpb-badges {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.sdpb-prog {
  font-size: 0.78rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.sdpb-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.sdpb-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.sdpb-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-deck-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.btn-deck-action:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

.btn-deck-action.is-open {
  background: rgba(99, 102, 241, 0.15);
  border-color: #A5B4FC;
  color: #A5B4FC;
}

.btn-deck-complete-phase {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10B981;
}

.btn-deck-complete-phase:hover {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}

/* Collapsible Infographic Drawer */
.slide-infographic-drawer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  animation: fadeIn 0.2s ease;
}

.slide-infographic-drawer.is-hidden {
  display: none;
}

.sid-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.sid-img {
  max-width: 380px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: zoom-in;
}

.sid-caption {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-sid-close {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
}

.btn-sid-close:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* --- Horizontal Step Tabs Ribbon --- */
.slide-step-tabs-ribbon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0.1rem 0.65rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}

.slide-step-tabs-ribbon::-webkit-scrollbar {
  height: 5px;
}

.slide-step-tabs-ribbon::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.3);
  border-radius: 9999px;
}

.slide-step-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.slide-step-tab:hover {
  background: var(--bg-subtle);
  border-color: rgba(129, 140, 248, 0.4);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.slide-step-tab.is-active {
  background: #4F46E5;
  border-color: #6366F1;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}

.slide-step-tab.is-done .sst-check {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}

.sst-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}

.slide-step-tab.is-active .sst-check {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.sst-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.sst-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1.1;
}

.slide-step-tab.is-active .sst-id {
  color: rgba(255, 255, 255, 0.8);
}

.sst-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.sst-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.15);
}

.slide-step-tab.is-active .sst-time {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
}

/* --- Slide Content Stage & Active Slide Card --- */
.slide-content-stage {
  position: relative;
  min-height: 480px;
}

.active-slide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  transition: border-color 0.2s ease;
}

.active-slide-card.is-step-completed {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(to bottom right, rgba(16, 185, 129, 0.03), var(--bg-card));
}

/* Animations for slide advancement */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-anim-next {
  animation: slideInFromRight 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-anim-prev {
  animation: slideInFromLeft 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Top Slide Meta Bar */
.slide-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.stb-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.slide-counter-badge {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.slide-id-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.slide-time-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.btn-slide-toggle-master {
  min-height: 36px;
  padding: 0.4rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.btn-slide-toggle-master:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.btn-slide-toggle-master.is-done {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #10B981;
}

/* Slide Step Title */
.slide-step-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.active-slide-card.is-step-completed .slide-step-title {
  color: var(--text-primary);
}

/* Kid-Simple Words Callout */
.slide-simple-words {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.05));
  border-left: 3px solid #818CF8;
  border-radius: 0 10px 10px 0;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ssw-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  line-height: 1;
}

.ssw-content {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.ssw-content strong {
  color: #A5B4FC;
}

/* --- 2-Column Ergonomic Dashboard Layout --- */
.slide-two-col-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .slide-two-col-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.slide-card-panel {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.slide-section-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.55rem;
}

.ssh-icon {
  font-size: 1rem;
}

/* Left Column: Lesson & Examples */
.slide-explanation-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 0.85rem;
}

.slide-explanation-text p:last-child {
  margin-bottom: 0;
}

.slide-case-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
}

.scc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.scc-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.scc-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.scc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .scc-grid {
    grid-template-columns: 1fr;
  }
}

.scc-before {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: var(--text-secondary);
}

.scc-after {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: var(--text-secondary);
}

.slide-pitfall-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.spc-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.spc-content {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.spc-content strong {
  color: #F59E0B;
}

.slide-realworld-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.srb-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.srb-content a {
  color: #06B6D4;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.35rem;
}

/* Right Column: Tasks, Tooltip Terms & Guides */
.slide-tasks-header {
  justify-content: space-between;
}

.tasks-ratio-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.slide-tasks-progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: -0.35rem;
}

.stpt-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #10B981);
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-tasks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.slide-task-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  transition: all 0.15s ease;
}

.slide-task-item:hover {
  border-color: rgba(129, 140, 248, 0.4);
}

.slide-task-item.is-task-done {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.slide-task-item.is-task-done .task-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.slide-task-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.slide-task-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #10B981;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Key Terms Pills */
.slide-terms-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.roadmap-term-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #C7D2FE;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.roadmap-term-pill:hover,
.roadmap-term-pill:focus-visible {
  background: rgba(99, 102, 241, 0.25);
  border-color: #A5B4FC;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.rtp-icon {
  font-size: 0.85rem;
}

/* Guides List */
.slide-guides-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.slide-guides-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.slide-guides-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.slide-guides-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Slide Bottom Controls Bar --- */
.slide-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

.btn-slide-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.35rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.18s ease;
}

.btn-slide-nav:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-slide-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Step Dots */
.slide-dots-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--border-color);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-dot:hover {
  background: rgba(129, 140, 248, 0.6);
  transform: scale(1.2);
}

.slide-dot.is-active {
  width: 26px;
  border-radius: 9999px;
  background: #4F46E5;
  border-color: #6366F1;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

.slide-dot.is-done:not(.is-active) {
  background: #10B981;
  border-color: #10B981;
}

/* Keyboard hint */
.slide-keyboard-hint {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding-top: 0.2rem;
}

.slide-keyboard-hint kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Filter search result jump buttons */
.filtered-step-result-card {
  margin-bottom: 1.25rem;
}

.fsrc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.fsrc-phase {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-jump-slide {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-jump-slide:hover {
  opacity: 0.9;
}

/* ==========================================================================
   MODERN INTERACTIVE FLOATING TOOLTIP POPOVER
   ========================================================================== */
.roadmap-tooltip-popover {
  position: absolute;
  z-index: 1000;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(129, 140, 248, 0.45);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 20px rgba(99, 102, 241, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-tooltip-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rtp-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.96);
  border-right: 1px solid rgba(129, 140, 248, 0.45);
  border-bottom: 1px solid rgba(129, 140, 248, 0.45);
}

.roadmap-tooltip-popover.is-bottom .rtp-arrow {
  bottom: auto;
  top: -6px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid rgba(129, 140, 248, 0.45);
  border-top: 1px solid rgba(129, 140, 248, 0.45);
}

.rtp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.rtp-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.4rem;
}

.rtp-close {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 1.35rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
}

.rtp-close:hover {
  color: #FFFFFF;
}

.rtp-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.rtp-def {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 0.55rem;
}

.rtp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.4rem;
}

.rtp-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .slide-deck-phase-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  .sdpb-right {
    justify-content: space-between;
  }
  .active-slide-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }
  .slide-step-title {
    font-size: 1.2rem;
  }
  .btn-slide-nav {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }
}


/* ==========================================================================
   GAME-LIKE SINGLE INTERACTIVE CONSOLE BOX (Ultra Ergonomic Zero-Scroll)
   Replaces cramped 3-column squeeze with full-width immersive quest station
   ========================================================================== */

.roadmap-console-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 3rem;
  padding: 0 0.5rem;
}

.console-box-wrapper {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(79, 70, 229, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

/* --- 1. Top Gamer HUD Bar --- */
.console-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.65rem;
  background: rgba(17, 24, 39, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.chb-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hud-xp-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
}

.hxb-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.hxb-text {
  display: flex;
  flex-direction: column;
}

.hxb-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FBBF24;
  line-height: 1.1;
}

.hxb-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hud-rank-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
}

.hrb-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.hrb-text {
  display: flex;
  flex-direction: column;
}

.hrb-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.hrb-tier {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #A5B4FC;
}

.chb-center {
  flex: 1;
  min-width: 200px;
  max-width: 380px;
}

.hud-progress-meter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hpm-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}

.hpm-title {
  color: var(--text-muted);
}

.hpm-val {
  color: #10B981;
  font-weight: 700;
}

.hpm-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.hpm-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5 0%, #06B6D4 60%, #10B981 100%);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chb-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-console-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.btn-console-tool:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-tool-ghost {
  opacity: 0.75;
}

/* --- 2. Horizontal World Map Navigation Strip --- */
.console-world-map-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.85rem 1.65rem;
  background: rgba(10, 15, 30, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}

.console-world-map-strip::-webkit-scrollbar {
  height: 5px;
}

.console-world-map-strip::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.3);
  border-radius: 9999px;
}

.world-node-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.world-node-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(129, 140, 248, 0.4);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.world-node-btn.is-active {
  background: #4F46E5;
  border-color: #6366F1;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.45);
}

.wnb-node {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.wnb-icon {
  font-size: 1.1rem;
}

.wnb-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.world-node-btn.is-active .wnb-status {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.world-node-btn.is-done .wnb-status {
  color: #FBBF24;
}

.wnb-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.wnb-prog {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
}

.world-node-btn.is-active .wnb-prog {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
}

/* --- 3. World Subbar & Mission Track --- */
.console-world-subbar {
  padding: 1.25rem 1.65rem 0.75rem;
  background: linear-gradient(to bottom, rgba(79, 70, 229, 0.08), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cws-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cws-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cws-world-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.cws-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.cws-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cws-analogy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 520px;
}

.cap-emoji {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Mission Track Ribbon */
.console-mission-track {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.mission-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.mission-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(129, 140, 248, 0.4);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.mission-pill-btn.is-active {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  border-color: #A5B4FC;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
}

.mpb-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}

.mission-pill-btn.is-active .mpb-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.mission-pill-btn.is-done .mpb-badge {
  background: #10B981;
  color: #FFFFFF;
}

.mpb-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mpb-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1.1;
}

.mission-pill-btn.is-active .mpb-id {
  color: rgba(255, 255, 255, 0.85);
}

.mpb-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.mpb-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}

.mission-pill-btn.is-active .mpb-time {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.2);
}

/* --- 4. Main Mission Screen (Wide, 2-Zone Ergonomic Display) --- */
.console-mission-stage {
  padding: 1.65rem;
}

.mission-screen-card {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* Slide Transition Animations */
@keyframes missionAnimNext {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes missionAnimPrev {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.mission-anim-next {
  animation: missionAnimNext 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mission-anim-prev {
  animation: missionAnimPrev 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mission Brief Bar */
.mission-brief-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mbb-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.mb-pill-mission {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.mb-pill-id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.mb-pill-time {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.mb-pill-reward {
  font-size: 0.74rem;
  font-weight: 800;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.btn-mission-master-toggle {
  min-height: 40px;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-mission-master-toggle:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #A5B4FC;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-mission-master-toggle.is-done {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

/* Mission Headline */
.mission-headline {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

/* In Simple Words Callout */
.mission-simple-briefing {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%);
  border-left: 3px solid #06B6D4;
  border-radius: 0 12px 12px 0;
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.msb-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.msb-content {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.msb-content strong {
  color: #06B6D4;
}

/* --- WIDE 2-ZONE GRID (Breathing Room, Zero Cramping) --- */
.mission-two-zone-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.65rem;
  align-items: start;
}

@media (max-width: 960px) {
  .mission-two-zone-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

.zone-box {
  background: rgba(10, 15, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.zone-header {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.65rem;
}

.zh-between {
  justify-content: space-between;
}

.zh-icon {
  font-size: 1.1rem;
}

/* Zone 1: Intel & Field Study */
.zone-explanation-text p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 0.9rem;
}

.zone-explanation-text p:last-child {
  margin-bottom: 0;
}

.mission-case-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem;
}

.mcc-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.mcc-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.mcc-sitename {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mcc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .mcc-grid {
    grid-template-columns: 1fr;
  }
}

.mcc-before {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: var(--text-secondary);
}

.mcc-after {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: var(--text-secondary);
}

.mission-trap-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
}

.mtc-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.mtc-content {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.mtc-content strong {
  color: #F59E0B;
}

.mission-realworld-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.mrb-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.mrb-content a {
  color: #06B6D4;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.35rem;
}

/* Zone 2: Objectives, Codex Terms & Guides */
.objectives-ratio-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}

.objectives-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: -0.4rem;
}

.opb-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #10B981);
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-tasks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mission-task-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  transition: all 0.15s ease;
}

.mission-task-item:hover {
  border-color: rgba(129, 140, 248, 0.4);
}

.mission-task-item.is-checked {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.mission-task-item.is-checked .task-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.mission-task-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-primary);
  position: relative;
}

.mission-task-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.task-check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #10B981;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s ease;
}

.mission-task-item.is-checked .task-check-box {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.task-reward {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #FBBF24;
  margin-left: auto;
  flex-shrink: 0;
}

/* Codex Terms */
.mission-terms-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
}

.mtb-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.mission-terms-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Guides */
.mission-guides-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
}

.mgb-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.mission-guides-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mission-guides-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
}

.mission-guides-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.mission-guides-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- 5. Bottom Controls Dock --- */
.mission-bottom-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}

.btn-dock-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.45rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transition: all 0.18s ease;
}

.btn-dock-nav:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}

.btn-dock-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Mission Dots */
.mission-dots-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mission-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 32x32px Accessible Touch Target */
.mission-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 32px;
  min-height: 32px;
  width: 100%;
  height: 100%;
}

.mission-dot:hover {
  background: rgba(129, 140, 248, 0.6);
  transform: scale(1.2);
}

.mission-dot.is-active {
  width: 28px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4F46E5, #06B6D4);
  border-color: #A5B4FC;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.mission-dot.is-done:not(.is-active) {
  background: #10B981;
  border-color: #10B981;
}

/* Keyboard hint */
.console-keyboard-hint {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding-top: 0.2rem;
}

.console-keyboard-hint kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* --- Floating +50 XP and +10 XP Animation --- */
@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -24px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -48px) scale(1);
  }
}

.floating-xp-pill {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(135deg, #F59E0B, #EAB308);
  color: #000000;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
  animation: floatUpFade 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Level Infographic Modal --- */
.level-infographic-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.level-infographic-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lim-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lim-dialog {
  position: relative;
  z-index: 1;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.3);
}

.lim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lim-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #06B6D4;
}

.lim-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0.15rem 0 0;
}

.btn-lim-close {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-lim-close:hover {
  color: #FFFFFF;
}

.lim-body {
  padding: 1.25rem;
  overflow-y: auto;
  text-align: center;
}

.lim-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lim-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-lim-ok {
  background: var(--primary);
  border: none;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Filter search result grid */
.filtered-missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  padding: 1.25rem 1.65rem 1.65rem;
}

.filtered-mission-card {
  background: rgba(10, 15, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

.filtered-mission-card:hover {
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateY(-2px);
}

.filtered-mission-card.is-done {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.04);
}

.fmc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fmc-world {
  font-size: 0.76rem;
  font-weight: 700;
  color: #06B6D4;
}

.btn-launch-mission {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}

.fmc-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

.fmc-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.fmc-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .console-hud-bar {
    padding: 0.85rem 1rem;
    gap: 0.85rem;
  }
  .chb-center {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .console-world-map-strip {
    padding: 0.65rem 1rem;
  }
  .console-world-subbar {
    padding: 1rem;
  }
  .cws-title {
    font-size: 1.25rem;
  }
  .console-mission-stage {
    padding: 1rem;
  }
  .mission-headline {
    font-size: 1.25rem;
  }
  .zone-box {
    padding: 1rem;
  }
  .btn-dock-nav {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
}


/* ==========================================================================
   INTERACTIVE CODEX GLOSSARY WORKSTATION (Zero Endless Scroll)
   Replaces massive A-Z vertical dumps with a sleek 2-panel searchable inspector
   ========================================================================== */

.glossary-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

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

.gsw-icon {
  position: absolute;
  left: 1.15rem;
  font-size: 1.15rem;
  pointer-events: none;
  opacity: 0.65;
}

#glossarySearchInput {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

#glossarySearchInput:focus {
  outline: none;
  border-color: #A5B4FC;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  background: rgba(15, 23, 42, 0.95);
}

.glossary-nav-letters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  flex-wrap: wrap;
}

.glossary-letter-pill {
  min-height: 38px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.glossary-letter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 140, 248, 0.4);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.glossary-letter-pill.is-active {
  background: #4F46E5;
  border-color: #6366F1;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

/* --- 2-Panel Codex Stage Wrapper --- */
.codex-stage-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 30px rgba(79, 70, 229, 0.12);
  max-width: 1080px;
  margin: 0 auto;
  max-height: 520px;
}

@media (max-width: 860px) {
  .codex-stage-wrapper {
    grid-template-columns: 1fr;
    max-height: none;
    padding: 1rem;
  }
}

/* Left List Column */
.codex-list-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.95rem;
  overflow: hidden;
}

.clc-header {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
}

.clc-scroll-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.35) transparent;
}

.clc-scroll-wrap::-webkit-scrollbar {
  width: 5px;
}

.clc-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.35);
  border-radius: 9999px;
}

.codex-term-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.codex-term-entry:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(129, 140, 248, 0.35);
  color: #FFFFFF;
}

.codex-term-entry.is-selected {
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  border-color: #A5B4FC;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.cte-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cte-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

/* Right Inspector Column */
.codex-inspector-col {
  display: flex;
  flex-direction: column;
}

.codex-card {
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
}

.cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cc-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.cc-icon {
  font-size: 1.25rem;
}

.cc-badge {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.cc-step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.btn-cc-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cc-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.cc-term-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.cc-def-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #818CF8;
  border-radius: 0 10px 10px 0;
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cc-def-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #A5B4FC;
}

.cc-def-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.cc-action-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cc-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  border: none;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
}

.btn-cc-launch:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.5);
}

.cc-nav-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.btn-cc-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cc-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.btn-cc-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cc-nav-indicator {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.codex-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.ces-icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 0.75rem;
}

.codex-empty-state h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
}

.codex-empty-state p {
  font-size: 0.88rem;
  margin: 0;
}


/* ==========================================================================
   OFFICIAL CERTIFICATE OF COMPLETION MODAL & CANVAS GENERATOR
   ========================================================================== */

.btn-tool-cert {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.12));
  border-color: rgba(245, 158, 11, 0.5);
  color: #FBBF24;
  font-weight: 700;
}

.btn-tool-cert:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.certificate-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cert-modal-dialog {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.25);
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.65rem;
  background: rgba(17, 24, 39, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmh-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FBBF24;
}

.cmh-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0.15rem 0 0;
}

.btn-cert-modal-close {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-cert-modal-close:hover {
  color: #FFFFFF;
}

.cert-modal-body {
  padding: 1.65rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* State A: Incomplete */
.cert-incomplete-view {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.civ-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.civ-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.civ-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.civ-progress-box {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.civ-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.civ-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #F59E0B);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.civ-progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FBBF24;
}

.civ-missing-phases-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cmpb-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.civ-missing-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
}

.cml-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.15s ease;
}

.cml-item:hover {
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.cml-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cml-world {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.cml-status {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.btn-cml-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  background: #4F46E5;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-cml-jump:hover {
  background: #6366F1;
  transform: translateY(-1px);
}

/* State B: Complete & Generator */
.cert-complete-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ccv-celebration {
  text-align: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.ccv-sparkle {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.35rem;
}

.ccv-celebration h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FBBF24;
  margin: 0 0 0.25rem;
}

.ccv-celebration p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.cert-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cert-input-row label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cert-input-wrap {
  display: flex;
  gap: 0.75rem;
}

#certUserNameInput {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
}

#certUserNameInput:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.btn-cert-apply {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cert-apply:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cert-canvas-preview-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: #0B0F19;
}

.cert-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.cert-download-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.btn-download-cert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border: none;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-download-cert:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.cert-share-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ==========================================================================
   Hero CTA Action Buttons
   ========================================================================== */
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3730A3, #4338CA);
  color: #FFFFFF !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(55, 48, 163, 0.45);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #312E81, #3730A3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(49, 46, 129, 0.6);
}

.btn-hero-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FBBF24;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.btn-hero-cert:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #F59E0B;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.35);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0 !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Dedicated Certificate Showcase Section
   ========================================================================== */
.certificate-showcase-section {
  padding: 4.5rem 0;
  position: relative;
}

.cert-showcase-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.08), transparent 60%),
              radial-gradient(circle at 85% 80%, rgba(79, 70, 229, 0.08), transparent 60%),
              rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 2.75rem 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(245, 158, 11, 0.12);
  position: relative;
  overflow: hidden;
}

.cert-kicker-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.9rem;
}

.cert-showcase-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.cert-showcase-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 1.65rem;
}

.cert-perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.cpg-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.cpg-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cpg-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.15rem;
}

.cpg-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.cert-showcase-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cert-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
  font-size: 0.95rem;
  font-weight: 900;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.btn-cert-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.btn-cert-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cert-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Certificate Visual Mockup Frame */
.cert-showcase-preview-col {
  display: flex;
  justify-content: center;
}

.cert-visual-frame {
  width: 100%;
  max-width: 420px;
  background: #0B101D;
  border: 2px solid #D97706;
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.cert-visual-frame:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #FBBF24;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8), 0 0 45px rgba(245, 158, 11, 0.35);
}

.cvf-ribbon {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #F59E0B;
  color: #000000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.cvf-inner {
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 1.25rem 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4), transparent 75%);
}

.cvf-seal-icon {
  font-size: 0.68rem;
  font-weight: 800;
  color: #FBBF24;
  letter-spacing: 0.15em;
}

.cvf-header {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.cvf-award {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin-top: 0.2rem;
}

.cvf-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FBBF24;
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  padding-bottom: 0.4rem;
  margin: 0.2rem 0;
}

.cvf-desc {
  font-size: 0.72rem;
  line-height: 1.45;
  color: #CBD5E1;
}

.cvf-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #64748B;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cvf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 0.88rem;
  font-weight: 800;
  color: #FBBF24;
}

.cert-visual-frame:hover .cvf-overlay {
  opacity: 1;
}

/* ==========================================================================
   Modal Tabs & Unified Studio Styles
   ========================================================================== */
.cert-modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 30, 0.7);
  padding: 0 1.65rem;
  gap: 0.75rem;
}

.cert-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.15rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cert-tab-btn:hover {
  color: #FFFFFF;
}

.cert-tab-btn.active {
  color: #FBBF24;
  border-bottom-color: #F59E0B;
  background: rgba(245, 158, 11, 0.05);
}

.cert-tab-content {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.cert-tab-content.active {
  display: flex;
}

/* Status Banners inside modal */
.cert-status-banner {
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.csb-complete {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.csb-complete strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FBBF24;
}

.csb-complete span {
  font-size: 0.85rem;
  color: #E2E8F0;
}

.csb-inprogress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.csb-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}

.csb-inprogress strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
}

.csb-inprogress span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .cert-showcase-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .cert-visual-frame {
    max-width: 100%;
  }
}


/* ==========================================================================
   Strict Certificate Lock View Styles
   ========================================================================== */
.cert-locked-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.civ-locked-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
}

.clb-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.clb-text h4 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #F87171;
  margin: 0 0 0.35rem;
}

.clb-text p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.civ-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.cph-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.civ-jump-action-wrap {
  display: flex;
  justify-content: center;
}

.btn-jump-next-incomplete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1.75rem;
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
  transition: all 0.2s ease;
}

.btn-jump-next-incomplete:hover {
  background: linear-gradient(135deg, #3730A3, #4338CA);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(55, 48, 163, 0.6);
}

.cert-unlocked-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}


/* Keyboard hint responsiveness */
.ckh-mobile { display: none; }
@media (max-width: 768px), (pointer: coarse) {
  .ckh-desktop { display: none; }
  .ckh-mobile { display: inline; }
}
