/* ==========================================================================
   DEVSCOURT AI ENGINEERING ROADMAP STYLES
   Devscourt Official Brand Colors:
   Primary: #0064e6 (Devscourt Signature Community Blue)
   Hover: #0056c7
   Dark Active: #004bbd
   Light Tint: #eff6ff / #f0f7ff / #dbeafe
   Border Accent: #bfdbfe
   Warm Highlight: #FFE7BB
   Surface: #ffffff / #f8fafc / #071920
   ========================================================================== */

/* Hero Section */
.roadmap-hero-section {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.roadmap-hero-title {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 800;
  color: #071920;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.roadmap-hero-title span {
  color: #0064e6;
  position: relative;
  display: inline-block;
}

.roadmap-hero-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 720px;
  margin: 0 auto 36px;
}

.roadmap-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Control Dashboard */
.roadmap-control-dashboard {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 100, 230, 0.06), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 24px 28px;
  margin-top: 20px;
  text-align: left;
}

.dashboard-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.dashboard-progress-box {
  flex: 1;
  min-width: 280px;
}

.progress-info-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.progress-title {
  font-weight: 700;
  color: #0064e6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.progress-counter {
  color: #475569;
}

.progress-counter strong {
  color: #0064e6;
  font-weight: 800;
}

.progress-track-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.progress-fill-bar {
  height: 100%;
  background: linear-gradient(90deg, #0064e6 0%, #38bdf8 100%);
  border-radius: 100px;
  transition: width 0.4s ease;
  flex-shrink: 0;
}

.progress-fill-bar.done {
  background: linear-gradient(90deg, #0064e6 0%, #38bdf8 100%);
}

.progress-fill-bar.learning {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.counter-segment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.counter-segment.done strong {
  color: #0064e6;
}

.counter-segment.learning strong {
  color: #d97706;
}

.counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.counter-dot.done {
  background: #0064e6;
}

.counter-dot.learning {
  background: #f59e0b;
}

.counter-divider {
  margin: 0 4px;
  color: #cbd5e1;
}

.counter-total {
  color: #64748b;
  margin-left: 2px;
}

/* View Switcher */
.dashboard-view-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  color: #0064e6;
}

.view-toggle-btn.active {
  background: #ffffff;
  color: #0064e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Search & Filters Row */
.dashboard-filters-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  flex-wrap: wrap;
}

.roadmap-search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.roadmap-search-input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  font-size: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.2s ease;
}

.roadmap-search-input:focus {
  outline: none;
  border-color: #0064e6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 100, 230, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.search-clear-btn:hover {
  color: #0f172a;
}

/* Live Search Autocomplete Dropdown */
.roadmap-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  z-index: 1050;
  overflow: hidden;
  text-align: left;
  animation: searchDropdownFade 0.15s ease-out;
}

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

.search-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.search-results-count {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-dropdown-hint {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.search-dropdown-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px 0;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.search-dropdown-item:hover,
.search-dropdown-item.selected {
  background: #eff6ff;
  border-left-color: #0064e6;
}

.dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.dropdown-item-bullet {
  color: #0064e6;
  font-size: 13px;
  flex-shrink: 0;
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dropdown-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item-category {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}

.dropdown-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}

.dropdown-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.dropdown-status-pill.done {
  background: #dcfce7;
  color: #15803d;
}

.dropdown-status-pill.learning {
  background: #fef3c7;
  color: #b45309;
}

.dropdown-arrow-icon {
  color: #94a3b8;
  transition: transform 0.15s ease;
}

.search-dropdown-item:hover .dropdown-arrow-icon {
  color: #0064e6;
  transform: translateX(2px);
}

.search-dropdown-empty {
  padding: 22px 18px;
  text-align: center;
}

.empty-query-text {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 12px;
}

.search-suggested-keywords {
  margin-top: 10px;
}

.suggested-label {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 600;
}

.suggested-chips-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.suggested-search-chip {
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.suggested-search-chip:hover {
  background: #0064e6;
  color: #ffffff;
  border-color: #0064e6;
}

/* Matching Highlight Mark */
.search-highlight-mark {
  background: #fef08a;
  color: #0f172a;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 700;
}

.spine-milestone-node.search-matched-milestone {
  border-color: #0064e6 !important;
  box-shadow: 0 0 0 3px rgba(0, 100, 230, 0.2), 0 8px 24px rgba(0, 100, 230, 0.15) !important;
}

/* Active Search Filter Banner in Canvas */
.roadmap-search-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 24px;
  animation: searchBarSlide 0.2s ease-out;
}

@keyframes searchBarSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-active-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-active-badge {
  background: #0064e6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-active-badge.done {
  background: #eff6ff;
  color: #0064e6;
  border: 1px solid #bfdbfe;
}

.search-active-badge.learning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.search-active-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-active-clear-btn.status-btn {
  background: rgba(0, 100, 230, 0.08);
  border-color: rgba(0, 100, 230, 0.2);
  color: #0064e6;
}

.search-active-clear-btn.status-btn:hover {
  background: #0064e6;
  color: #ffffff;
}

.status-filter-bar {
  background: #fffbeb;
  border-color: #fde68a;
}

.status-filter-bar .search-active-text {
  color: #78350f;
}

.search-active-text {
  font-size: 14px;
  color: #1e3a8a;
}

.search-active-clear-btn {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-active-clear-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Search Empty State */
.roadmap-search-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 20px;
  max-width: 640px;
  margin: 30px auto;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.empty-state-suggestions {
  margin-bottom: 24px;
}

.suggestions-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 10px;
}

.suggestion-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.suggestion-pill-btn {
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.suggestion-pill-btn:hover {
  background: #0064e6;
  color: #ffffff;
  border-color: #0064e6;
}

.btn-clear-search-empty {
  padding: 10px 24px;
  background: #0064e6;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 100, 230, 0.25);
}

.btn-clear-search-empty:hover {
  background: #0052be;
  transform: translateY(-1px);
}

.empty-state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-clear-search-empty.secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.btn-clear-search-empty.secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.empty-state-icon.status-empty-icon {
  background: #fef3c7;
}

.empty-state-icon.status-empty-icon svg {
  stroke: #d97706;
}

.status-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: #0064e6;
  color: #0064e6;
}

.filter-pill.active {
  background: #0064e6;
  border-color: #0064e6;
  color: #ffffff;
}

.pill-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 100px;
  margin-left: 6px;
  line-height: 1.3;
}

.pill-count-badge.done {
  background: #eff6ff;
  color: #0064e6;
}

.filter-pill.active .pill-count-badge.done {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.pill-count-badge.learning {
  background: #fef3c7;
  color: #b45309;
}

.filter-pill.active .pill-count-badge.learning {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.reset-progress-btn {
  background: transparent;
  border: 1px dashed #ef4444;
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-progress-btn:hover {
  background: #fef2f2;
}

/* ==========================================================================
   VISUAL CANVAS ROADMAP
   ========================================================================== */
.roadmap-canvas-section {
  padding: 40px 0 80px;
  background: #fbfcfd;
}

.roadmap-canvas-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* Top Canvas Row */
.roadmap-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.95fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 50px;
}

.roadmap-top-left,
.roadmap-top-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roadmap-top-right {
  width: 100%;
}

/* ==========================================================================
   INTERACTIVE GUIDE CARD (Top Right of Roadmap Canvas)
   ========================================================================== */
.how-to-box {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-to-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0064e6 0%, #38bdf8 50%, #6366f1 100%);
}

.how-to-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
}

.how-to-box .group-box-header {
  margin-bottom: 18px;
}

.how-to-box .group-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #eff6ff;
  color: #0064e6;
  border: 1px solid #dbeafe;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.how-to-box .group-box-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}

.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Vertical timeline connector line */
.how-to-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 19px;
  width: 2px;
  background: linear-gradient(180deg, #dbeafe 0%, #e2e8f0 100%);
  z-index: 1;
}

.how-to-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 2;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: transparent;
}

.how-to-step:hover {
  background: #f8fafc;
  transform: translateX(4px);
}

.how-to-step.clickable-step {
  cursor: pointer;
  border: 1px solid transparent;
}

.how-to-step.clickable-step:hover {
  background: #f0f7ff;
  border-color: #bfdbfe;
  transform: translateX(4px);
}

.step-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.step-action-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #0064e6;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.how-to-step.clickable-step:hover .step-action-tag {
  background: #0064e6;
  color: #ffffff;
}

.how-to-step.active-action-step {
  background: #f8fafc;
  border: 1px dashed #93c5fd;
}

.how-to-step.active-action-step .step-num {
  border-color: #0064e6;
  background: #eff6ff;
}

.how-to-step .step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #0064e6;
  color: #0064e6;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 100, 230, 0.12);
  transition: all 0.2s ease;
}

.how-to-step:hover .step-num {
  background: #0064e6;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 100, 230, 0.28);
}

.how-to-step > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.how-to-step strong {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.how-to-step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

.roadmap-group-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.group-box-header {
  margin-bottom: 14px;
}

.group-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #eff6ff;
  color: #0064e6;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.group-box-title {
  font-size: 17px;
  font-weight: 800;
  color: #071920;
  margin: 0;
}

.prereq-pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.prereq-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prereq-pill-btn:hover {
  background: #eff6ff;
  border-color: #0064e6;
  color: #0064e6;
  transform: translateY(-2px);
}

.prereq-pill-btn.done {
  background: #eff6ff;
  border-color: #0064e6;
  color: #0064e6;
}

/* Devscourt Promo Card */
.devscourt-promo-card {
  background: linear-gradient(135deg, #0064e6 0%, #004bbd 100%);
  border-radius: 16px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 100, 230, 0.25);
}

.promo-badge-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 231, 187, 0.25);
  color: #ffe7bb;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.devscourt-promo-card h5 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.devscourt-promo-card p {
  color: #eff6ff;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-promo-action {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #ffffff;
  color: #0064e6 !important;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-promo-action:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Related Roadmaps */
.related-roadmaps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-roadmap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.related-roadmap-item:hover {
  background: #eff6ff;
  border-color: #0064e6;
  transform: translateX(4px);
}

.bullet-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #0064e6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
}

.related-title {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.related-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: #e2e8f0;
  color: #475569;
  border-radius: 6px;
}

/* Top Center Spine Node */
.roadmap-top-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px;
}

.spine-target-node {
  background: #0064e6;
  border: 3px solid #bfdbfe;
  border-radius: 18px;
  padding: 22px 30px;
  box-shadow: 0 12px 30px rgba(0, 100, 230, 0.28);
  color: #ffffff;
  width: 100%;
}

.target-node-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.target-node-title {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.target-node-sub {
  font-size: 13px;
  color: #dbeafe;
  font-weight: 600;
}

.spine-connector-vertical-top {
  width: 4px;
  height: 60px;
  background: #0064e6;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spine-pulse-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0064e6;
  box-shadow: 0 0 0 4px rgba(0, 100, 230, 0.3);
}

/* Quick Orient Box */
.orient-text {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 14px;
}

.orient-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.green {
  background: #0064e6;
}

.legend-dot.yellow {
  background: #f59e0b;
}

.legend-dot.gray {
  background: #cbd5e1;
}

/* ==========================================================================
   ROADMAP STAGES & CENTRAL SPINE
   ========================================================================== */
.roadmap-stages-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-bottom: 60px;
}

.central-spine-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #0064e6;
  transform: translateX(-50%);
  z-index: 1;
}

.roadmap-stage-row {
  position: relative;
  z-index: 2;
}

.spine-section-label-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.spine-section-label {
  display: inline-block;
  padding: 6px 18px;
  background: #0064e6;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 100px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 100, 230, 0.25);
}

.stage-row-grid {
  display: grid;
  grid-template-columns: 1fr 280px 1fr;
  gap: 20px;
  align-items: center;
}

.stage-column.stage-left {
  display: flex;
  justify-content: flex-end;
}

.stage-column.stage-right {
  display: flex;
  justify-content: flex-start;
}

.stage-column.stage-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

/* Spine Milestone Node */
.spine-milestone-node {
  width: 100%;
  max-width: 250px;
  padding: 16px 20px;
  background: #0064e6;
  border: 2px solid #0056c7;
  border-radius: 14px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 100, 230, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  z-index: 3;
}

.spine-milestone-node:hover {
  transform: translateY(-3px) scale(1.02);
  background: #0056c7;
  box-shadow: 0 12px 30px rgba(0, 100, 230, 0.38);
  border-color: #93c5fd;
}

.spine-milestone-node.done {
  background: #004bbd;
  border-color: #60a5fa;
  color: #ffffff;
}

.spine-milestone-node.done .milestone-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.spine-milestone-node.done .milestone-title {
  color: #ffffff;
}

.spine-milestone-node.learning {
  background: #d97706;
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
}

.spine-milestone-node.learning:hover {
  background: #b45309;
  border-color: #fbbf24;
}

.spine-milestone-node.learning .milestone-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.spine-milestone-node.learning .milestone-title {
  color: #ffffff;
}

.milestone-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.milestone-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

/* Connectors */
.connector-line-left {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.connector-line-right {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.connector-svg {
  display: block;
}

/* Stage Box Card (Left & Right Boxes) */
.stage-box-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 25px rgba(0, 100, 230, 0.05);
  width: 100%;
  max-width: 480px;
  transition: all 0.2s ease;
}

.stage-box-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 30px rgba(0, 100, 230, 0.08);
}

.box-card-header {
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.box-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #071920;
  margin: 0 0 2px;
}

.box-card-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #0064e6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Flow items */
.box-items-flow,
.box-groups-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.box-subgroup-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.subgroup-label {
  font-size: 12px;
  font-weight: 800;
  color: #0064e6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subgroup-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Individual Topic Button / Card */
.topic-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.topic-card-btn:hover {
  border-color: #0064e6;
  background: #eff6ff;
  color: #0064e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 100, 230, 0.1);
}

.topic-card-btn.done {
  background: #eff6ff;
  border-color: #0064e6;
  color: #0064e6;
}

.topic-card-btn.learning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.topic-card-btn.skip {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
  opacity: 0.8;
}

.topic-card-label {
  line-height: 1.3;
}

/* Status icon badge inside topic button */
.topic-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-card-status.done {
  background: #0064e6;
  color: #ffffff;
  border: 1px solid #0056c7;
}

.topic-card-status.learning {
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  width: 16px;
  height: 16px;
}

.learning-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
  animation: pulseDot 1.6s infinite ease-in-out;
}

.topic-card-status.not_started {
  border: 1.5px dashed #cbd5e1;
  background: transparent;
  width: 16px;
  height: 16px;
}

.topic-card-status.not_started:hover {
  border-color: #0064e6;
  background: #eff6ff;
}

.not-started-circle {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s ease;
}

.topic-card-status.not_started:hover .not-started-circle {
  background: #0064e6;
}

.topic-card-status.skip {
  background: #94a3b8;
  color: #ffffff;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* ==========================================================================
   BOTTOM SPECIALIZATION TRACKS
   ========================================================================== */
.roadmap-bottom-specializations {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.specializations-header {
  max-width: 680px;
  margin: 0 auto 36px;
}

.specializations-header h3 {
  font-size: 28px;
  font-weight: 800;
  color: #071920;
  margin-top: 12px;
  margin-bottom: 10px;
}

.specializations-header p {
  color: #64748b;
  font-size: 15px;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.specialization-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.specialization-card:hover {
  background: #ffffff;
  border-color: #0064e6;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 100, 230, 0.12);
}

.track-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.track-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  background: #eff6ff;
  color: #0064e6;
  border-radius: 100px;
  text-transform: uppercase;
}

.track-title {
  font-size: 20px;
  font-weight: 800;
  color: #071920;
  margin-bottom: 10px;
}

.track-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  flex: 1;
  margin-bottom: 20px;
}

.track-action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0064e6;
  font-size: 14px;
  font-weight: 800;
}

/* ==========================================================================
   LIST / CHECKLIST VIEW
   ========================================================================== */
.roadmap-list-view-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-phase-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.list-phase-card:hover {
  border-color: #bfdbfe;
}

.list-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.phase-header-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.phase-index-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #0064e6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  flex-shrink: 0;
  text-transform: uppercase;
}

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

.phase-meta-tag {
  font-size: 12px;
  font-weight: 700;
  color: #0064e6;
  text-transform: uppercase;
}

.phase-progress-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  background: #eff6ff;
  color: #0064e6;
  border-radius: 100px;
}

.phase-progress-pill.done {
  background: #eff6ff;
  color: #0064e6;
  border: 1px solid #bfdbfe;
}

.phase-progress-pill.learning {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.phase-title {
  font-size: 20px;
  font-weight: 800;
  color: #071920;
  margin: 0 0 6px;
}

.phase-summary {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.phase-expand-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
}

.list-phase-items {
  padding: 12px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fbfcfd;
}

.list-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  gap: 16px;
  transition: all 0.2s ease;
}

.list-item-row:hover {
  border-color: #0064e6;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 100, 230, 0.08);
}

.list-item-row.milestone-row {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.milestone-badge-pill {
  display: inline-block;
  padding: 2px 8px;
  background: #0064e6;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.list-item-content {
  flex: 1;
  cursor: pointer;
}

.item-group-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.list-item-title {
  font-size: 16px;
  font-weight: 800;
  color: #071920;
  margin: 0 0 2px;
}

.list-item-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.list-item-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-status-pill {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.list-status-pill:hover {
  border-color: #0064e6;
  color: #0064e6;
}

.list-status-pill.done {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

.list-status-pill.done:hover {
  border-color: #0064e6;
  color: #0064e6;
  background: #eff6ff;
}

.list-status-pill.done.active {
  background: #0064e6;
  border-color: #0064e6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 100, 230, 0.25);
}

.list-status-pill.learning {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

.list-status-pill.learning:hover {
  border-color: #f59e0b;
  color: #d97706;
  background: #fffbeb;
}

.list-status-pill.learning.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   TOPIC DETAILS CENTERED MODAL (ADVANCED LEARNING EXPERIENCE)
   ========================================================================== */
.topic-drawer-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  animation: modalOverlayFadeIn 0.22s ease-out;
  overflow: hidden;
}

@keyframes modalOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.topic-drawer-panel {
  width: 100%;
  max-width: 920px;
  height: 88vh;
  max-height: 880px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  animation: modalScalePopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

@keyframes modalScalePopIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Header & Tab navigation - Modern & Minimalist */
.topic-drawer-header {
  padding: 14px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  gap: 14px;
  flex-shrink: 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.drawer-nav-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}

.drawer-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-tab-btn:hover {
  color: #0f172a;
}

.drawer-tab-btn.active {
  background: #ffffff;
  color: #0064e6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.tab-chat-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #0064e6;
  color: #ffffff;
  font-size: 10.5px;
  border-radius: 10px;
  font-weight: 700;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-status-pills-top {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.top-status-pill:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.top-status-pill.done.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #0064e6;
}

.top-status-pill.learning.active {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

.top-status-pill.skip.active {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.pill-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.topic-drawer-close-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.topic-drawer-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Scrollable Drawer / Modal Body */
.topic-drawer-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
}

.tab-pane-fade {
  animation: fadeIn 0.2s ease;
}

.drawer-title-area {
  margin-bottom: 20px;
}

.drawer-meta-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.level-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.level-badge.beginner {
  background: #ecfdf5;
  color: #059669;
}

.level-badge.intermediate {
  background: #eff6ff;
  color: #0064e6;
}

.level-badge.advanced {
  background: #f3e8ff;
  color: #7e22ce;
}

.readtime-badge {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 5px;
}

.brand-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #0064e6;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 5px;
}

/* Refined, modern title size (reduced from oversized 32px to 20px) */
.drawer-main-title,
.topic-main-heading {
  font-size: 20px !important;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.drawer-lead-summary,
.topic-summary-lead {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* Recommended Resource Masterclass Card */
.recommended-resource-card {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(0, 100, 230, 0.06);
}

.recommended-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.recommended-star-tag {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #0064e6;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.recommended-type {
  font-size: 12px;
  font-weight: 700;
  color: #0064e6;
}

.recommended-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.recommended-title {
  font-size: 18px;
  font-weight: 800;
  color: #071920;
  margin: 0 0 4px;
}

.recommended-meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.btn-recommended-watch {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: #0064e6;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-recommended-watch:hover {
  background: #0056c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 100, 230, 0.25);
}

/* Section Card - Clean, Modern & Lightweight */
.drawer-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: none;
}

.section-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.section-title-accent {
  width: 3px;
  height: 14px;
  background: #0064e6;
  border-radius: 2px;
  flex-shrink: 0;
}

.deep-dive-paragraphs,
.technical-guide-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deep-dive-text,
.guide-paragraph {
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155;
  margin: 0;
}

/* Takeaways */
.takeaways-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.takeaway-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.takeaway-bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #eff6ff;
  color: #0064e6;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.takeaway-text {
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

/* Curated Resource Subgroups */
.resource-subgroup {
  margin-bottom: 22px;
}

.resource-subgroup:last-child {
  margin-bottom: 0;
}

.resource-subgroup-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #071920;
  margin-bottom: 12px;
}

.resource-type-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resource-type-pill.paper {
  background: #f3e8ff;
  color: #7e22ce;
}

.resource-type-pill.github {
  background: #0f172a;
  color: #ffffff;
}

.resource-type-pill.video {
  background: #fef2f2;
  color: #dc2626;
}

.resource-type-pill.article {
  background: #eff6ff;
  color: #0064e6;
}

.resource-links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-item-link {
  display: block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.resource-item-link:hover {
  background: #ffffff;
  border-color: #0064e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 100, 230, 0.08);
}

.link-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.link-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.link-title.font-mono {
  font-family: monospace;
  color: #0064e6;
}

.link-ext-arrow {
  color: #0064e6;
  font-size: 14px;
  font-weight: 800;
}

.link-stars {
  font-size: 12px;
  font-weight: 800;
  color: #f59e0b;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
}

.link-meta-author {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.link-takeaway {
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

/* Code Snippet Pre Box */
.code-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.code-caption {
  font-size: 13px;
  font-weight: 700;
  color: #0064e6;
}

.copy-code-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0064e6;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-code-btn:hover {
  background: #0064e6;
  color: #ffffff;
}

.code-snippet-pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
}

/* Hands-on Lab Challenge Card */
.hands-on-lab-card {
  background: linear-gradient(135deg, #071920 0%, #0d2733 100%);
  border-radius: 18px;
  padding: 26px 28px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.lab-card-header {
  margin-bottom: 12px;
}

.lab-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 100, 230, 0.35);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hands-on-lab-card h4 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.lab-instructions {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.lab-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lab-meta-tag {
  font-size: 13px;
  color: #94a3b8;
}

.btn-lab-discuss {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #0064e6;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-lab-discuss:hover {
  background: #0056c7;
  transform: translateY(-2px);
}

/* AI Tutor Tab */
.tutor-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tutor-intro-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 18px 22px;
}

.tutor-avatar {
  font-size: 32px;
}

.tutor-intro-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: #071920;
  margin: 0 0 4px;
}

.tutor-intro-card p {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
}

.suggested-prompts-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggested-heading {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.suggested-chips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggested-chip {
  text-align: left;
  padding: 10px 16px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggested-chip:hover {
  border-color: #0064e6;
  background: #eff6ff;
  color: #0064e6;
  transform: translateX(4px);
}

.tutor-chat-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.tutor-history-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.history-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.tutor-clear-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.tutor-clear-chat-btn:hover {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fca5a5;
}

.tutor-clear-chat-btn svg {
  stroke-width: 2.2;
}

.tutor-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 56px;
}

.chat-thread-bottom-anchor {
  height: 2px;
  width: 100%;
  clear: both;
  scroll-margin-bottom: 50px;
}

.chat-bubble-row {
  display: flex;
  width: 100%;
}

.chat-bubble-row.user {
  justify-content: flex-end;
}

.chat-bubble-row.tutor {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 14px;
}

.chat-bubble-row.user .chat-bubble {
  background: #0064e6;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-row.tutor .chat-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.sender-tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.chat-bubble-row.user .sender-tag {
  color: #dbeafe;
}

.chat-bubble-row.tutor .sender-tag {
  color: #0064e6;
}

.bubble-text {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Bottom Interactive Q&A Input Bar - Modern, High-Touch Prompt Area */
.topic-drawer-bottom-bar {
  padding: 14px 24px 16px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.03);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.drawer-interactive-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 5px 6px 5px 16px;
  min-height: 52px; /* Increased height! */
  height: 52px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.drawer-interactive-form:focus-within {
  border-color: #0064e6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 100, 230, 0.12);
}

.interactive-sparkle {
  color: #0064e6;
  font-size: 15px;
  opacity: 0.9;
  flex-shrink: 0;
}

.drawer-interactive-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  height: 42px; /* Increased height! */
  line-height: 42px;
}

.drawer-interactive-input::placeholder {
  color: #94a3b8;
}

.drawer-interactive-submit {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #0064e6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.drawer-interactive-submit:hover:not(:disabled) {
  background: #0056c7;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 100, 230, 0.28);
}

.drawer-interactive-submit:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.drawer-footer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-step-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  transition: all 0.15s ease;
}

.drawer-step-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0064e6;
}


/* ==========================================================================
   ROADMAP FAQ SECTION (MODERN ACCORDION & SUPPORT CARD)
   ========================================================================== */

.roadmap-faq-section {
  padding: 100px 0 110px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  position: relative;
}

.faq-main-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-top: 14px;
  margin-bottom: 12px;
}

.faq-main-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
}

/* Controls Bar (Filter Pills & Search) */
.faq-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.faq-category-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.faq-cat-pill {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-cat-pill:hover {
  background: #edf2f7;
  color: #0064e6;
  border-color: #cbd5e1;
}

.faq-cat-pill.active {
  background: #0064e6;
  color: #ffffff;
  border-color: #0064e6;
  box-shadow: 0 4px 12px rgba(0, 100, 230, 0.25);
}

.faq-search-wrapper {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 340px;
}

.faq-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 34px 9px 38px;
  font-size: 13px;
  color: #0f172a;
  transition: all 0.2s ease;
}

.faq-search-input:focus {
  background: #ffffff;
  border-color: #0064e6;
  box-shadow: 0 0 0 3px rgba(0, 100, 230, 0.12);
  outline: none;
}

.faq-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}

.faq-search-clear:hover {
  color: #0f172a;
}

/* Accordion Container & Cards */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.faq-accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.faq-accordion-item.open {
  border-color: #0064e6;
  box-shadow: 0 10px 28px rgba(0, 100, 230, 0.08);
}

.faq-accordion-item.open::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0064e6;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.faq-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-header-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.faq-item-number {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 7px;
  letter-spacing: 0.05em;
  font-family: monospace;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-accordion-item.open .faq-item-number {
  color: #0064e6;
  background: rgba(0, 100, 230, 0.08);
  border-color: rgba(0, 100, 230, 0.2);
}

.faq-item-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0064e6;
  background: rgba(0, 100, 230, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.faq-item-question {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin: 0;
  transition: color 0.2s ease;
}

.faq-accordion-item.open .faq-item-question {
  color: #0064e6;
}

.faq-toggle-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.faq-accordion-item.open .faq-toggle-circle {
  background: #0064e6;
  border-color: #0064e6;
}

.faq-chevron-icon {
  color: #64748b;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
}

.faq-accordion-item.open .faq-chevron-icon {
  stroke: #ffffff;
  transform: rotate(180deg);
}

.faq-accordion-body {
  padding: 0 24px 22px 64px;
  animation: faqFadeSlide 0.25s ease-out;
}

@keyframes faqFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-body-content {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.faq-item-answer {
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
  margin: 0;
}

/* No Results State */
.faq-no-results {
  text-align: center;
  padding: 50px 24px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
}

.no-results-icon {
  font-size: 34px;
  margin-bottom: 12px;
}

.faq-no-results h4 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.faq-no-results p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
}

.btn-faq-reset {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-faq-reset:hover {
  background: #0064e6;
  color: #ffffff;
  border-color: #0064e6;
}

/* Bottom Support / Community Help Card */
.faq-support-card {
  background: linear-gradient(135deg, #091e42 0%, #002d6b 50%, #004fb0 100%);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 45, 107, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.faq-support-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.faq-support-icon-area {
  flex-shrink: 0;
}

.support-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.faq-support-text {
  flex: 1;
}

.support-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.support-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.support-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 540px;
}

.faq-support-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.btn-support-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0064e6 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-support-discord:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: #0056c7 !important;
}

.btn-support-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-support-contact:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

/* FAQ Responsive */
@media (max-width: 991px) {
  .faq-support-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
  .support-desc {
    max-width: 100%;
  }
  .faq-support-actions {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
  .faq-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .faq-search-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .roadmap-faq-section {
    padding: 60px 0 70px;
  }
  .faq-main-title {
    font-size: 28px;
  }
  .faq-accordion-header {
    padding: 16px 18px;
  }
  .faq-accordion-body {
    padding: 0 18px 18px 18px;
  }
  .faq-item-question {
    font-size: 15px;
  }
  .faq-support-actions {
    flex-direction: column;
  }
}


/* ==========================================================================
   IN-WEBSITE EMBEDDED VIDEO PLAYER & 2025-2026 ARTICLE CARDS
   ========================================================================== */

.embedded-video-player-container,
.modern-video-theater-card {
  background: linear-gradient(180deg, #0d182e 0%, #060b17 100%);
  border: 1px solid rgba(0, 100, 230, 0.45);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 100, 230, 0.25), 0 0 45px -8px rgba(0, 100, 230, 0.25);
  animation: theaterFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes theaterFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theater-ambient-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #0064e6 0%, #38bdf8 45%, #818cf8 80%, #0064e6 100%);
  background-size: 200% 100%;
  animation: ambientGlowShift 4s ease infinite;
  box-shadow: 0 1px 12px rgba(56, 189, 248, 0.6);
}

@keyframes ambientGlowShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.video-player-header,
.theater-card-header {
  padding: 16px 22px;
  background: rgba(11, 22, 42, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.player-header-left,
.theater-header-left {
  flex: 1;
  min-width: 200px;
}

.theater-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.live-pill,
.theater-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 9999px;
}

.theater-pulse-dot,
.pulse-dot.red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseDotRadar 1.6s infinite ease-in-out;
}

@keyframes pulseDotRadar {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 8px #ef4444;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.7;
    box-shadow: 0 0 16px #ef4444;
  }
}

.theater-type-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 100, 230, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(0, 100, 230, 0.35);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
}

.theater-level-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 9999px;
}

.player-title,
.theater-video-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.player-meta,
.theater-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.theater-creator-pill,
.theater-duration-pill {
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  font-weight: 500;
}

/* Modern Sleek Close Button */
.close-player-btn,
.modern-theater-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  outline: none;
}

.close-btn-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.close-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.22s ease;
}

.close-player-btn:hover,
.modern-theater-close-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.close-player-btn:hover .close-btn-icon,
.modern-theater-close-btn:hover .close-btn-icon {
  background: rgba(239, 68, 68, 0.35);
  color: #ffffff;
  transform: rotate(90deg);
}

.close-player-btn:active,
.modern-theater-close-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.video-iframe-responsive,
.theater-frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000000;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
}

.video-iframe-responsive iframe,
.theater-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Modern Card Footer */
.theater-card-footer {
  padding: 12px 20px;
  background: rgba(8, 15, 28, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.theater-footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.theater-brand-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 100, 230, 0.15);
  border: 1px solid rgba(0, 100, 230, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
}

.theater-footer-hint {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

.theater-footer-right {
  display: flex;
  align-items: center;
}

.theater-external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.theater-external-link:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
  text-decoration: none;
}

/* Video Card Interactive Button Style */
.video-card-interactive {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.video-card-interactive:hover {
  border-color: #0064e6 !important;
  background: rgba(0, 100, 230, 0.06) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 100, 230, 0.15);
}

.video-card-interactive.is-playing {
  border-color: #0064e6 !important;
  background: linear-gradient(135deg, rgba(0, 100, 230, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%) !important;
  box-shadow: 0 0 0 2px #0064e6, 0 8px 24px rgba(0, 100, 230, 0.25) !important;
}

.play-badge-pill {
  font-size: 11px;
  font-weight: 700;
  color: #0064e6;
  background: rgba(0, 100, 230, 0.1);
  border: 1px solid rgba(0, 100, 230, 0.2);
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.video-card-interactive:hover .play-badge-pill {
  background: #0064e6;
  color: #ffffff;
}

.video-card-interactive.is-playing .play-badge-pill {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* 2025-2026 Latest Article Badges */
.article-year-pill {
  font-size: 10px;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

.publisher-badge {
  font-weight: 700;
  color: #0064e6;
}

/* ==========================================================================
   Qorebit AI Authentication Modal & AI Tutor Integration
   ========================================================================== */

.qorebit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: qorebitFadeIn 0.25s ease;
}

@keyframes qorebitFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.qorebit-modal-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 100, 230, 0.08), 0 12px 36px rgba(0, 100, 230, 0.08);
  overflow: hidden;
  position: relative;
  animation: qorebitModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes qorebitModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qorebit-modal-glow-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #0064e6 0%, #0284c7 50%, #38bdf8 100%);
  box-shadow: 0 0 10px rgba(0, 100, 230, 0.35);
}

.qorebit-modal-header {
  padding: 15px 22px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qorebit-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0064e6;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
}

.qorebit-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0064e6;
  box-shadow: 0 0 8px rgba(0, 100, 230, 0.6);
  animation: pulseDotRadar 1.5s infinite;
}

.qorebit-modal-close-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.qorebit-modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: rotate(90deg);
}

.qorebit-modal-body {
  padding: 24px 26px 20px;
  background: #ffffff;
}

.qorebit-modal-title-area {
  margin-bottom: 20px;
}

.qorebit-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.qorebit-modal-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.qorebit-modal-subtitle strong {
  color: #0064e6;
}

.qorebit-error-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.qorebit-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.qorebit-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qorebit-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.qorebit-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.qorebit-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.qorebit-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 14px 12px 42px;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.qorebit-input:focus {
  border-color: #0064e6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 100, 230, 0.15);
}

.qorebit-input::placeholder {
  color: #94a3b8;
}

.qorebit-pw-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.qorebit-pw-toggle:hover {
  color: #0f172a;
}

.qorebit-submit-btn {
  background: linear-gradient(135deg, #0064e6 0%, #0056c7 100%);
  border: none;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 100, 230, 0.35);
  margin-top: 4px;
}

.qorebit-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0056c7 0%, #004bbd 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 100, 230, 0.45);
}

.qorebit-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.qorebit-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.qorebit-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: qorebitSpin 0.7s linear infinite;
}

@keyframes qorebitSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Signup CTA card for users without an account */
.qorebit-signup-cta-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qorebit-signup-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qorebit-cta-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.qorebit-cta-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.qorebit-cta-desc strong {
  color: #0064e6;
}

.qorebit-signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffffff;
  border: 1.5px solid #0064e6;
  color: #0064e6;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 100, 230, 0.08);
}

.qorebit-signup-btn:hover {
  background: #0064e6;
  border-color: #0064e6;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 100, 230, 0.25);
  transform: translateY(-1px);
}

.qorebit-modal-footer {
  padding: 13px 20px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.qorebit-security-note {
  font-size: 11.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}
  align-items: center;
}

/* ==========================================================================
   AI Tutor Qorebit Status Bar & Credit Indicators in Topic Drawer
   ========================================================================== */

.tutor-qorebit-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 20, 38, 0.85);
  border: 1px solid rgba(0, 100, 230, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.tutor-qorebit-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tutor-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.tutor-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(56, 189, 248, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.tutor-credit-badge.low {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.tutor-qorebit-status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutor-topup-link {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 9px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tutor-topup-link:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
  text-decoration: none;
}

.tutor-signout-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.tutor-signout-btn:hover {
  color: #ef4444;
}

/* Callout when user is not logged in */
.tutor-login-prompt-banner {
  background: linear-gradient(135deg, rgba(0, 100, 230, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(0, 100, 230, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tutor-prompt-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.tutor-prompt-info strong {
  color: #38bdf8;
}

.tutor-login-action-btn {
  background: #0064e6;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 100, 230, 0.3);
  white-space: nowrap;
}

.tutor-login-action-btn:hover {
  background: #0070ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 100, 230, 0.45);
}

.tutor-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}

.tutor-typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0064e6;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.tutor-typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.tutor-typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   AI TUTOR V2: REDESIGNED LOGIN BANNER, QOREBIT STATUS BAR, AND CARDS
   ========================================================================== */

/* Pinned Top Login & Credit Status Bar on Drawer */
.topic-drawer-top-banner {
  padding: 10px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  position: relative;
  z-index: 15;
}

.topic-drawer-top-banner .tutor-login-prompt-banner-v2,
.topic-drawer-top-banner .tutor-qorebit-status-bar-v2 {
  margin-bottom: 0;
}

/* Redesigned High-Contrast Light-Themed Login Prompt Banner */
.tutor-login-prompt-banner-v2 {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 100, 230, 0.06);
  flex-wrap: wrap;
}

.tutor-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  flex: 1;
}

.tutor-lock-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0064e6;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 100, 230, 0.1);
}

.tutor-banner-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tutor-banner-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tutor-banner-headline {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.qorebit-mini-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #eff6ff;
  color: #0064e6;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 9999px;
}

.tutor-banner-subtext {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.tutor-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tutor-login-btn-primary {
  background: linear-gradient(135deg, #0064e6 0%, #0056c7 100%);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 100, 230, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tutor-login-btn-primary:hover {
  background: linear-gradient(135deg, #0056c7 0%, #004bbd 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 100, 230, 0.42);
}

.tutor-signup-btn-secondary {
  background: #ffffff;
  color: #0064e6 !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1.5px solid #0064e6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tutor-signup-btn-secondary:hover {
  background: #0064e6;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 100, 230, 0.25);
}

/* Logged-In Qorebit Status Bar V2 */
.tutor-qorebit-status-bar-v2 {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
}

.tutor-qorebit-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tutor-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 9999px;
}

.user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.user-dot.active {
  background: #16a34a;
  box-shadow: 0 0 6px #16a34a;
}

.user-email-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.tutor-credit-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fefce8;
  border: 1px solid #fef08a;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #854d0e;
  box-shadow: 0 1px 3px rgba(234, 179, 8, 0.15);
}

.tutor-credit-badge-v2.low-credits {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.tutor-qorebit-status-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tutor-topup-btn-v2 {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #0064e6 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.tutor-topup-btn-v2:hover {
  background: #0064e6;
  border-color: #0064e6;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 100, 230, 0.25);
}

.tutor-refresh-btn-v2 {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tutor-refresh-btn-v2:hover {
  background: #eff6ff;
  color: #0064e6;
  border-color: #0064e6;
}

.tutor-signout-btn-v2 {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tutor-signout-btn-v2:hover {
  color: #dc2626;
  background: #fee2e2;
}

/* Modern Dark Login Modal */
.tutor-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tutor-login-modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 100, 230, 0.08);
  position: relative;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(18px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.tutor-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tutor-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #0064e6;
  letter-spacing: 0.02em;
}

.tutor-modal-close-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tutor-modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.tutor-modal-body {
  display: flex;
  flex-direction: column;
}

.tutor-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.tutor-modal-subtitle {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tutor-modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.tutor-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tutor-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tutor-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tutor-form-input {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.tutor-form-input:focus {
  background: #ffffff;
  border-color: #0064e6;
  box-shadow: 0 0 0 3px rgba(0, 100, 230, 0.15);
}

.tutor-modal-submit-btn {
  background: linear-gradient(135deg, #0064e6 0%, #0056c7 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 100, 230, 0.35);
  margin-top: 6px;
}

.tutor-modal-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0056c7 0%, #004bbd 100%);
  transform: translateY(-1px);
}

.tutor-modal-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tutor-modal-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.tutor-signup-link {
  color: #0064e6;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.tutor-signup-link:hover {
  text-decoration: underline;
  color: #004bbd;
}

/* ==========================================================================
   AI TUTOR RESPONSE CARDS AND USER MESSAGE CARDS
   ========================================================================== */

/* ==========================================================================
   AI TUTOR RESPONSE CARDS AND USER MESSAGE CARDS (WHITE LIGHT THEME)
   ========================================================================== */

.chat-bubble-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.chat-bubble-row.user {
  align-items: flex-end;
}

.chat-bubble-row.tutor {
  align-items: stretch;
}

/* User Message Bubble */
.user-message-card {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.user-message-header {
  padding: 0 4px;
}

.user-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-message-text {
  margin: 0;
  background: linear-gradient(135deg, #0064e6 0%, #0050b8 100%);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 14px rgba(0, 100, 230, 0.28);
  font-size: 14.5px;
  line-height: 1.5;
  word-break: break-word;
}

/* AI Tutor Response Card - White Background */
.tutor-response-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: all 0.2s ease;
}

.tutor-response-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 24px rgba(0, 100, 230, 0.08);
}

.tutor-response-card.has-error,
.tutor-response-card.is-error {
  border-color: #fecaca;
  background: #fffdfd;
}

.tutor-response-card.is-loading {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.tutor-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.tutor-card-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutor-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0064e6;
  flex-shrink: 0;
}

.tutor-identity-names {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tutor-brand-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.tutor-card-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutor-powered-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.tutor-model-badge {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #0064e6;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tutor-copy-response-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.tutor-copy-response-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0064e6;
}

/* Insufficient Credits Banner inside Tutor Response */
.tutor-insufficient-credits-action,
.tutor-credits-depleted-box {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.credits-warning-text,
.tutor-depleted-sub {
  font-size: 13px;
  color: #854d0e;
  font-weight: 500;
}

.tutor-quick-topup-btn,
.tutor-cta-topup-btn {
  background: #eab308;
  color: #000000 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tutor-quick-topup-btn:hover,
.tutor-cta-topup-btn:hover {
  background: #ca8a04;
  color: #ffffff !important;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ==========================================================================
   RICH MARKDOWN MESSAGE RENDERING - LIGHT THEME (Headings, Bullets, Code blocks)
   ========================================================================== */

.markdown-message-root {
  color: #334155;
  font-size: 14.5px;
  line-height: 1.7;
}

.tutor-response-h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.tutor-response-h4:first-child {
  margin-top: 0;
}

.tutor-response-h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: #0064e6;
  margin-top: 14px;
  margin-bottom: 6px;
}

.tutor-response-p {
  margin: 0 0 12px 0;
  color: #334155;
}

.tutor-response-p:last-child {
  margin-bottom: 0;
}

.tutor-bullet-list,
.tutor-ordered-list {
  margin: 8px 0 14px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tutor-list-item {
  color: #334155;
  line-height: 1.6;
}

.tutor-list-subline {
  margin-top: 4px;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.55;
}

/* Clickable Links in AI Tutor Chat */
.tutor-chat-link {
  color: #0064e6 !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 100, 230, 0.4);
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 5px;
  background: rgba(0, 100, 230, 0.06);
  border: 1px solid rgba(0, 100, 230, 0.15);
  transition: all 0.15s ease;
  vertical-align: baseline;
  cursor: pointer;
}

.tutor-chat-link:hover {
  color: #004bb5 !important;
  background: rgba(0, 100, 230, 0.14);
  border-color: rgba(0, 100, 230, 0.3);
  text-decoration-color: #004bb5;
  transform: translateY(-1px);
}

.tutor-link-label {
  display: inline;
}

.tutor-link-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  opacity: 0.8;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.tutor-chat-link:hover .tutor-link-icon {
  transform: translate(1px, -1px);
  opacity: 1;
}

.tutor-bullet-list .tutor-list-item::marker {
  color: #0064e6;
}

.tutor-ordered-list .tutor-list-item::marker {
  color: #0064e6;
  font-weight: 700;
}

.tutor-strong {
  color: #0f172a;
  font-weight: 700;
}

.tutor-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 600;
}

/* Formatted Code Block Container - Clean Modern Light Theme */
.tutor-code-block-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: 16px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tutor-code-block-wrapper:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.tutor-code-header,
.tutor-code-block-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.tutor-code-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutor-code-window-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.window-dot.red {
  background: #f87171;
}

.window-dot.yellow {
  background: #fbbf24;
}

.window-dot.green {
  background: #34d399;
}

.tutor-code-lang,
.code-lang-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0064e6;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tutor-copy-code-btn,
.code-copy-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  line-height: 1;
}

.tutor-copy-code-btn:hover,
.code-copy-btn:hover {
  background: #eff6ff;
  border-color: #0064e6;
  color: #0064e6;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 100, 230, 0.12);
}

.tutor-copy-code-btn.is-copied,
.code-copy-btn.is-copied {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.copy-btn-text {
  font-size: 11.5px;
  font-weight: 600;
}

.copy-btn-text.text-success {
  color: #059669;
  font-weight: 700;
}

.tutor-code-pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #0f172a;
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  tab-size: 2;
}

.tutor-code-element {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
}


/* =========================================================================
   COMPREHENSIVE CAREER BLUEPRINT & TECHNICAL GUIDE STYLING
   ========================================================================= */

.career-guide-section {
  padding: 85px 0 95px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  position: relative;
}

.guide-badge-pill {
  background: linear-gradient(135deg, rgba(0, 100, 230, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  color: #0064e6;
  border: 1px solid rgba(0, 100, 230, 0.25);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
}

.guide-main-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-top: 14px;
  margin-bottom: 12px;
}

.highlight-gradient {
  background: linear-gradient(135deg, #0064e6 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guide-main-subtitle {
  font-size: 16.5px;
  line-height: 1.6;
  color: #64748b;
  max-width: 720px;
  margin: 0 auto;
}

/* Tabs Navigation Container */
.guide-tabs-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  padding: 8px;
  border-radius: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.guide-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.guide-tab-btn:hover {
  color: #0064e6;
  background: rgba(255, 255, 255, 0.6);
}

.guide-tab-btn.active {
  background: #ffffff;
  color: #0064e6;
  box-shadow: 0 4px 14px rgba(0, 100, 230, 0.12);
}

.tab-btn-icon {
  font-size: 15px;
}

/* Main Content Panel */
.guide-content-panel {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.03);
  margin-top: 15px;
}

.guide-section-heading {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.guide-paragraph-lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: #475569;
}

.guide-paragraph-muted {
  font-size: 14.5px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 0;
}

/* Intro Banner */
.guide-intro-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f1f5f9;
}

.guide-timeline-badge {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  padding: 12px 20px;
  border-radius: 14px;
  text-align: center;
  flex-shrink: 0;
}

.timeline-badge-label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #0064e6;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.timeline-badge-val {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #1e3a8a;
}

/* Timeline Grid */
.guide-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.timeline-phase-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.timeline-phase-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(0, 100, 230, 0.06);
}

.phase-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.phase-number-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: #0064e6;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
}

.phase-duration-pill {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 3px 9px;
  border-radius: 100px;
}

.phase-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.phase-card-focus {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 14px;
  flex: 1;
}

.phase-card-milestone {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #1e293b;
}

.milestone-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Prerequisites Card */
.guide-prereq-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

.prereq-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prereq-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prereq-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

.check-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}

/* Tools Stack */
.tools-categories-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tools-category-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tools-category-accent {
  width: 4px;
  height: 16px;
  background: #0064e6;
  border-radius: 2px;
}

.tools-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.tool-item-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.tool-item-card:hover {
  background: #ffffff;
  border-color: #0064e6;
  box-shadow: 0 4px 14px rgba(0, 100, 230, 0.08);
  transform: translateY(-2px);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tool-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.tool-level-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.tool-level-badge.essential {
  background: #eff6ff;
  color: #0064e6;
  border: 1px solid #bfdbfe;
}

.tool-level-badge.industry-standard {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.tool-level-badge.frontier {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.tool-level-badge.recommended {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tool-level-badge.crucial-2026,
.tool-level-badge.primary-standard {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.tool-role-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Roles Overview Card */
.roles-overview-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 18px;
  padding: 28px 32px;
  color: #ffffff;
}

.role-target-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.role-job-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.role-comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 196, 140, 0.15);
  border: 1px solid rgba(0, 196, 140, 0.4);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
}

.comp-label {
  color: #94a3b8;
}

.comp-val {
  color: #34d399;
  font-weight: 800;
}

.role-summary-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 800px;
}

.guide-card-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
}

.guide-card-box.highlight-box {
  background: #f0f7ff;
  border-color: #bfdbfe;
}

.box-card-heading {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.responsibilities-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.responsibility-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.resp-num-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0064e6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.resp-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
}

.day-in-life-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.day-flow-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 12px;
}

.day-flow-time {
  font-size: 11.5px;
  font-weight: 800;
  color: #0064e6;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.day-flow-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
}

/* Projects Grid */
.project-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.project-blueprint-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.project-blueprint-card:hover {
  transform: translateY(-3px);
  border-color: #0064e6;
  box-shadow: 0 10px 25px rgba(0, 100, 230, 0.08);
}

.project-card-header {
  margin-bottom: 16px;
}

.project-badge-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.project-index-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
}

.project-difficulty {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.project-difficulty.intermediate,
.project-difficulty.practical {
  background: #eff6ff;
  color: #0064e6;
}

.project-difficulty.advanced,
.project-difficulty.production-ready {
  background: #fdf2f8;
  color: #be185d;
}

.project-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.project-section-block {
  margin-bottom: 14px;
}

.sub-block-title {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  margin-bottom: 4px;
}

.sub-block-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  margin: 0;
}

.sub-block-outcome {
  font-size: 13px;
  line-height: 1.55;
  color: #059669;
  font-weight: 600;
  margin: 0;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.tech-tag-pill {
  font-size: 11.5px;
  font-weight: 700;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Methodology Grid */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.methodology-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.methodology-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #0064e6 0%, #7c3aed 100%);
}

.methodology-card-body {
  padding: 22px;
  flex: 1;
}

.methodology-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.methodology-num {
  font-size: 14px;
  font-weight: 900;
  color: #0064e6;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
}

.methodology-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
}

.methodology-description {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* Future & Career Market */
.career-market-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 18px;
  padding: 26px 30px;
}

.market-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: #0064e6;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 6px;
}

.market-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.market-summary {
  font-size: 14.5px;
  line-height: 1.65;
  color: #334155;
  margin: 0;
}

.section-sub-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
}

.salary-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.salary-tier-card {
  background: #0f172a;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.salary-role-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}

.salary-comp-figure {
  font-size: 17px;
  font-weight: 900;
  color: #34d399;
}

.ladder-step-text {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  font-weight: 600;
}

.industries-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
}

/* Learning Resources Grid */
.learning-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.learning-resource-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
}

.learning-resource-card:hover {
  background: #ffffff;
  border-color: #0064e6;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 100, 230, 0.08);
}

.resource-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.resource-type-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: #eff6ff;
  color: #0064e6;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 6px;
}

.resource-arrow-icon {
  font-size: 16px;
  font-weight: 800;
  color: #64748b;
  transition: transform 0.2s ease;
}

.learning-resource-card:hover .resource-arrow-icon {
  transform: translate(2px, -2px);
  color: #0064e6;
}

.resource-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}

.resource-card-author {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.resource-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin-top: 10px;
}

/* ==========================================================================
   MASTER RESPONSIVE STYLES (TABLET, MOBILE, SMALL SCREENS)
   ========================================================================== */

/* Tablet & Smaller Desktops (<= 991px) */
@media (max-width: 991px) {
  /* Container & Layout */
  .roadmap-hero-section {
    padding: 60px 0 45px;
  }

  .roadmap-canvas-section {
    padding: 30px 0 50px;
  }

  .roadmap-canvas-container {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }

  /* Control Dashboard */
  .roadmap-control-dashboard {
    padding: 20px 18px;
    margin-top: 24px;
    border-radius: 18px;
  }

  .dashboard-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-bottom: 16px;
  }

  .dashboard-progress-box {
    width: 100%;
    min-width: 0;
  }

  .dashboard-view-toggle {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .view-toggle-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13px;
  }

  .dashboard-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 14px;
  }

  .roadmap-search-box {
    width: 100%;
    min-width: 0;
  }

  .dashboard-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .filter-status-pill {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    padding: 7px 12px;
    font-size: 12.5px;
  }

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

  /* Top Section Grid (Foundations / Guide) */
  .roadmap-top-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
  }

  .roadmap-top-left,
  .roadmap-top-right {
    width: 100%;
    gap: 16px;
  }

  .roadmap-group-box {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .prereq-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .prereq-pill-btn {
    flex: 1 1 auto;
    padding: 9px 14px;
    font-size: 13.5px;
  }

  /* Roadmap Spine & Canvas Stages -> Vertical Timeline Flow */
  .roadmap-stages-wrapper {
    gap: 30px;
    margin-bottom: 40px;
  }

  .central-spine-line {
    display: none !important;
  }

  .stage-row-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .stage-column.stage-center {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    position: static;
  }

  .stage-column.stage-left {
    order: 2;
    width: 100%;
    display: block;
  }

  .stage-column.stage-right {
    order: 3;
    width: 100%;
    display: block;
  }

  .stage-column:empty {
    display: none !important;
  }

  .connector-line-left,
  .connector-line-right {
    display: none !important;
  }

  .spine-milestone-node {
    max-width: 100%;
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
  }

  .milestone-title {
    font-size: 16px;
  }

  .stage-box-card {
    max-width: 100%;
    width: 100%;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .box-card-title {
    font-size: 16px;
  }

  /* Specialization Tracks */
  .tracks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .specialization-card {
    padding: 20px 18px;
  }

  /* Career Blueprint Guide */
  .career-guide-section {
    padding: 60px 0 70px;
  }

  .guide-tabs-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 8px 10px;
    gap: 6px;
    border-radius: 14px;
    max-width: 100%;
  }

  .guide-tabs-container::-webkit-scrollbar {
    display: none;
  }

  .guide-tab-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }

  .guide-content-panel {
    padding: 24px 18px;
    border-radius: 18px;
    margin-top: 14px;
  }

  .guide-intro-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }

  .guide-main-title {
    font-size: 26px;
  }

  .guide-timeline-badge {
    width: 100%;
  }

  .getting-started-phases-grid,
  .tools-category-grid,
  .projects-grid,
  .methodology-grid,
  .salary-tiers-grid,
  .learning-resources-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Mobile Screens (<= 767px) */
@media (max-width: 767px) {
  /* Hero Section */
  .roadmap-hero-section {
    padding: 45px 0 35px;
  }

  .roadmap-hero-title {
    font-size: 30px;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .roadmap-hero-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .roadmap-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-community-blue,
  .btn-learn-white {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 14px;
  }

  .card-tag-pill {
    font-size: 11px;
    padding: 4px 12px;
  }

  .roadmap-control-dashboard {
    padding: 14px 12px;
    border-radius: 14px;
    margin-top: 16px;
  }

  .progress-info-labels {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 13px;
  }

  .progress-title {
    font-size: 12px;
  }

  .progress-counter {
    font-size: 12.5px;
  }

  .view-toggle-btn {
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
  }

  .view-toggle-btn svg {
    width: 15px;
    height: 15px;
  }

  .search-input {
    font-size: 13px;
    padding: 10px 34px 10px 36px;
  }

  .roadmap-search-dropdown {
    border-radius: 12px;
    max-height: 340px;
    overflow-y: auto;
  }

  .search-dropdown-item {
    padding: 10px 14px;
  }

  .dropdown-item-title {
    font-size: 13.5px;
  }

  .filter-status-pill {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  /* Canvas Stages & Nodes */
  .roadmap-stages-wrapper {
    gap: 22px;
    margin-bottom: 30px;
  }

  .spine-section-label-wrapper {
    margin-bottom: 12px;
  }

  .spine-section-label {
    font-size: 11.5px;
    padding: 5px 14px;
  }

  .spine-milestone-node {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .milestone-badge {
    font-size: 10px;
    padding: 2px 8px;
  }

  .milestone-title {
    font-size: 15px;
  }

  .stage-box-card {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .box-card-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .box-card-title {
    font-size: 15px;
  }

  .box-card-subtitle {
    font-size: 11px;
  }

  .box-subgroup-container {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .subgroup-label {
    font-size: 11px;
  }

  .subgroup-pill-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .topic-card-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  .topic-card-label {
    font-size: 13px;
  }

  /* List / Checklist View */
  .list-phase-card {
    border-radius: 14px;
  }

  .list-phase-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .phase-header-info {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .phase-index-badge {
    padding: 4px 10px;
    font-size: 11px;
  }

  .phase-title {
    font-size: 16px;
  }

  .phase-summary {
    font-size: 13px;
  }

  .list-phase-items {
    padding: 10px 12px 16px;
    gap: 8px;
  }

  .list-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
  }

  .list-item-content {
    width: 100%;
  }

  .list-item-title {
    font-size: 14px;
  }

  .list-item-desc {
    font-size: 12.5px;
  }

  .list-item-status-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .list-status-pill {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Topic Details Centered Modal */
  .topic-drawer-overlay {
    z-index: 99999;
    padding: 12px 10px;
    align-items: center;
    justify-content: center;
  }

  .topic-drawer-panel {
    width: 100%;
    max-width: 95vw;
    height: 94vh;
    max-height: 95vh;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
  }

  .topic-drawer-header {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .topic-drawer-bottom-bar {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .drawer-nav-tabs {
    flex: 1 1 auto;
    min-width: 0;
  }

  .drawer-tab-btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .drawer-tab-btn span {
    font-size: 12px;
  }

  .drawer-header-actions {
    gap: 6px;
  }

  .top-status-pill {
    padding: 5px 8px;
    font-size: 11px;
    gap: 3px;
  }

  .topic-drawer-close-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .topic-drawer-body {
    padding: 16px 14px;
  }

  .drawer-title-area {
    margin-bottom: 16px;
  }

  .drawer-main-title,
  .topic-main-heading,
  .drawer-title-area h1,
  .drawer-title-area h2,
  .drawer-title-area h3 {
    font-size: 18px !important;
    line-height: 1.35;
  }

  .drawer-meta-badges {
    gap: 6px;
    margin-bottom: 8px;
  }

  /* Embedded Video Theater */
  .embedded-video-player-container,
  .modern-video-theater-card {
    border-radius: 14px;
    margin-bottom: 20px;
  }

  .theater-card-footer {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .theater-footer-left {
    width: 100%;
    gap: 6px;
  }

  .theater-footer-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .theater-timestamp-pill {
    font-size: 11px;
    padding: 3px 8px;
  }

  .theater-yt-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Drawer Bottom Bar & Interactive Form */
  .topic-drawer-bottom-bar {
    padding: 12px 14px;
  }

  .drawer-interactive-form {
    padding: 4px 6px 4px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    min-height: 48px;
    height: 48px;
  }

  .drawer-interactive-input {
    font-size: 13.5px;
    height: 38px;
    line-height: 38px;
  }

  .drawer-interactive-submit {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .drawer-footer-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .drawer-step-btn {
    font-size: 12px;
    padding: 4px;
  }

  /* AI Tutor Chat Bubbles & Code Blocks */
  .chat-bubble-row {
    max-width: 100%;
  }

  .bubble-text {
    font-size: 13.5px;
    line-height: 1.55;
  }

  .tutor-code-block-wrapper {
    margin: 10px 0;
    border-radius: 10px;
    max-width: 100%;
  }

  .tutor-code-header {
    padding: 6px 10px;
  }

  .tutor-code-pre {
    padding: 10px 12px;
    font-size: 12px;
  }

  .tutor-copy-code-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .tutor-login-prompt-banner-v2,
  .tutor-qorebit-status-bar-v2 {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Career Blueprint Section */
  .career-guide-section {
    padding: 45px 0 55px;
  }

  .guide-main-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .guide-intro-desc {
    font-size: 13.5px;
    line-height: 1.55;
  }

  .guide-tab-btn {
    padding: 7px 11px;
    font-size: 12px;
    gap: 5px;
  }

  .guide-content-panel {
    padding: 18px 14px;
    border-radius: 16px;
    margin-top: 12px;
  }

  .getting-started-phase-card,
  .tool-category-card,
  .project-idea-card,
  .methodology-card,
  .salary-tier-card,
  .learning-resource-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .role-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .role-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .role-salary-pill {
    align-self: flex-start;
  }

  /* FAQ Section */
  .roadmap-faq-section {
    padding: 50px 0 60px;
  }

  .faq-main-title {
    font-size: 26px;
    line-height: 1.25;
  }

  .faq-main-subtitle {
    font-size: 14px;
  }

  .faq-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .faq-category-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-bottom: 4px;
    gap: 6px;
    width: 100%;
  }

  .faq-category-pills::-webkit-scrollbar {
    display: none;
  }

  .faq-cat-pill {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }

  .faq-search-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .faq-accordion-header {
    padding: 14px 16px;
  }

  .faq-item-question {
    font-size: 14.5px;
  }

  .faq-accordion-body {
    padding: 0 16px 16px;
    font-size: 13.5px;
  }

  .faq-support-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .support-title {
    font-size: 18px;
  }

  .support-desc {
    font-size: 13px;
  }

  .faq-support-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .btn-support-discord,
  .btn-support-contact {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .roadmap-hero-title {
    font-size: 26px;
  }

  .topic-drawer-overlay {
    padding: 0;
  }

  .topic-drawer-panel {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .topic-drawer-header {
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .topic-drawer-bottom-bar {
    border-radius: 0;
  }

  .drawer-nav-tabs {
    width: 100%;
    display: flex;
  }

  .drawer-tab-btn {
    flex: 1;
    justify-content: center;
  }

  .drawer-header-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .prereq-pill-btn {
    width: 100%;
    justify-content: space-between;
  }

  .guide-tab-btn span {
    font-size: 11.5px;
  }

  .phase-meta-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .orient-legend {
    flex-wrap: wrap;
    gap: 8px;
  }
}

