/* =============================================
   YTMock — Roadmap Features
   ============================================= */

/* ═══════════════════════════════════════════════
   1. ROADMAP LISTING PAGE
   ═══════════════════════════════════════════════ */

.roadmap-hero {
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.roadmap-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-primary-muted), transparent 70%);
  pointer-events: none;
}

.roadmap-stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.roadmap-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  background: var(--bg-tertiary);
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  scrollbar-width: none;
}
.roadmap-tabs::-webkit-scrollbar {
  display: none;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
@media (max-width: 1024px) {
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .roadmap-grid { grid-template-columns: 1fr; }
}

.roadmap-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}
.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.roadmap-card-thumbnail {
  height: 160px;
  background: var(--bg-tertiary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.roadmap-card-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
}

.roadmap-card-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  z-index: 10;
}

.roadmap-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-4) 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.roadmap-card-progress {
  padding: var(--space-4);
}

.roadmap-card-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-4);
  margin-top: auto;
}

.roadmap-empty {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════
   2. ROADMAP DETAIL VIEW
   ═══════════════════════════════════════════════ */

.roadmap-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.roadmap-detail-header {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.roadmap-detail-stats {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.roadmap-day-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.roadmap-day-header {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}
.roadmap-day-header:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}
.roadmap-day-header[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  background: var(--bg-card-hover);
}

.roadmap-day-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-base);
}
.roadmap-day-header[aria-expanded="true"] + .roadmap-day-body {
  max-height: 1000px; /* Arbitrary large height for animation */
}

.roadmap-topic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--space-4);
}
.roadmap-topic-row:last-child {
  border-bottom: none;
}
@media (max-width: 640px) {
  .roadmap-topic-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.roadmap-topic-name {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.roadmap-topic-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.roadmap-topic-action {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.roadmap-topic-action:hover:not(:disabled) {
  background: var(--bg-elevated);
  transform: translateY(-2px);
}
.roadmap-topic-action:disabled,
.roadmap-topic-action[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.roadmap-topic-action[data-type="video"]:hover:not(:disabled) {
  color: var(--color-error);
  border-color: var(--color-error);
  background: var(--color-error-bg);
}
.roadmap-topic-action[data-type="notes"]:hover:not(:disabled) {
  color: var(--color-info);
  border-color: var(--color-info);
  background: var(--color-info-bg);
}
.roadmap-topic-action[data-type="mock"]:hover:not(:disabled) {
  color: var(--color-success);
  border-color: var(--color-success);
  background: var(--color-success-bg);
}

.roadmap-topic-check {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
}
.roadmap-topic-check:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.roadmap-topic-check:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.roadmap-subject-pill {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: #fff;
  white-space: nowrap;
}
.roadmap-subject-pill[data-subject="Maths"] { background: #8b5cf6; }
.roadmap-subject-pill[data-subject="Reasoning"] { background: #f59e0b; }
.roadmap-subject-pill[data-subject="English"] { background: #3b82f6; }
.roadmap-subject-pill[data-subject="GK"],
.roadmap-subject-pill[data-subject="GS"] { background: #22c55e; }
.roadmap-subject-pill[data-subject="Computer"] { background: #ec4899; }
.roadmap-subject-pill[data-subject="Hindi"] { background: #ef4444; }

.roadmap-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.roadmap-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}


/* ═══════════════════════════════════════════════
   3. CUSTOM ROADMAP CREATION WIZARD
   ═══════════════════════════════════════════════ */

.roadmap-wizard {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.roadmap-wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  position: relative;
}

.roadmap-wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 2;
}

.roadmap-wizard-step-line {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg-tertiary);
  z-index: 1;
}

.roadmap-wizard-body {
  min-height: 300px;
  margin-bottom: var(--space-8);
}

.roadmap-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.exam-type-selector,
.duration-selector,
.teacher-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.exam-type-card,
.duration-card,
.teacher-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.exam-type-card:hover,
.duration-card:hover,
.teacher-card:hover {
  border-color: var(--accent-primary-muted);
  background: var(--bg-card-hover);
}
.exam-type-card.selected,
.duration-card.selected,
.teacher-card.selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-muted);
  box-shadow: var(--shadow-glow);
}


/* ═══════════════════════════════════════════════
   4. ADMIN ROADMAP BUILDER
   ═══════════════════════════════════════════════ */

.admin-roadmap-builder {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.admin-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.admin-topic-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr 1.5fr 1fr auto;
  gap: var(--space-3);
  align-items: center;
  background: var(--bg-elevated);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border-subtle);
}
@media (max-width: 1024px) {
  .admin-topic-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.admin-day-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}


/* ═══════════════════════════════════════════════
   5. ADDITIONAL COMPONENT STYLES
   ═══════════════════════════════════════════════ */

/* Hero Content */
.roadmap-hero-content { position: relative; z-index: 2; }
.roadmap-hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.roadmap-hero-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* Stat Cards */
.roadmap-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-6);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}
.roadmap-stat-value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--accent-primary);
}
.roadmap-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filter Bar */
.roadmap-filter-bar {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  scrollbar-width: none;
}
.roadmap-filter-bar::-webkit-scrollbar { display: none; }
.roadmap-filter-chip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.roadmap-filter-chip:hover {
  background: var(--bg-elevated);
  border-color: var(--border-color);
}
.roadmap-filter-chip.active {
  background: var(--accent-primary-muted);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Tabs wrapper */
.roadmap-tabs-wrapper { margin-bottom: var(--space-6); }
.roadmap-tab-content { display: none; }
.roadmap-tab-content.active { display: block; }

/* Card Body & Footer */
.roadmap-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.roadmap-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: var(--lh-tight);
}
.roadmap-card-desc {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  line-height: var(--lh-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.roadmap-card-meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  flex-wrap: wrap;
  align-items: center;
}
.roadmap-card-footer {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}
.roadmap-card-no-thumb {
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.roadmap-card-icon { font-size: 3rem; position: relative; z-index: 2; }
.roadmap-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.roadmap-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 60%);
  z-index: 1;
}

/* Back Button */
.roadmap-back-btn {
  align-self: flex-start;
  margin-bottom: var(--space-2);
}

/* Detail View Extended */
.roadmap-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.roadmap-detail-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.roadmap-detail-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}
.roadmap-detail-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
.roadmap-detail-progress {
  margin-top: var(--space-6);
}
.roadmap-detail-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* Detail Stats */
.roadmap-detail-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  flex: 1;
  min-width: 100px;
  text-align: center;
}
.roadmap-detail-stat-icon { font-size: 1.5rem; }
.roadmap-detail-stat-value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
}
.roadmap-detail-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

/* Subject Legend */
.roadmap-subject-legend {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

/* Subject Pill Colors (class-based) */
.subject-maths { background: #8b5cf6; color: #fff; }
.subject-reasoning { background: #f59e0b; color: #fff; }
.subject-english { background: #3b82f6; color: #fff; }
.subject-gk { background: #22c55e; color: #fff; }
.subject-computer { background: #ec4899; color: #fff; }
.subject-hindi { background: #ef4444; color: #fff; }

.roadmap-subject-pill-sm {
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  color: #fff;
  white-space: nowrap;
}

/* Day Accordion Card */
.roadmap-day-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.roadmap-day-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.roadmap-day-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-primary-muted);
  color: var(--accent-primary);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.roadmap-day-number.complete {
  background: var(--color-success);
  color: #fff;
}
.roadmap-day-info {
  display: flex;
  flex-direction: column;
}
.roadmap-day-title {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-size: var(--fs-sm);
}
.roadmap-day-topic-count {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}
.roadmap-day-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.roadmap-day-progress-mini {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.roadmap-progress-bar-mini {
  width: 60px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.roadmap-progress-fill-mini {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}
.roadmap-day-progress-text {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-weight: var(--fw-semibold);
  min-width: 30px;
  text-align: right;
}
.roadmap-day-expand-icon {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  transition: transform var(--transition-fast);
}
.roadmap-day-body {
  padding: var(--space-4);
}
.roadmap-day-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

/* Topics Table */
.roadmap-topics-table { width: 100%; }
.roadmap-topics-header {
  display: grid;
  grid-template-columns: 1fr 100px 100px 100px;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}
.roadmap-topic-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px 100px;
  gap: var(--space-2);
  padding: var(--space-3);
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}
.roadmap-topic-row:hover {
  background: var(--bg-tertiary);
}
.roadmap-topic-row:last-child { border-bottom: none; }
.rt-col-name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.rt-col-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.roadmap-topic-name-text {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.roadmap-topic-action-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.roadmap-topic-action {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.action-video {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid transparent;
}
.action-video:hover {
  background: var(--color-error);
  color: #fff;
  transform: translateY(-2px);
}
.action-notes {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid transparent;
}
.action-notes:hover {
  background: var(--color-info);
  color: #fff;
  transform: translateY(-2px);
}
.action-mock {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid transparent;
}
.action-mock:hover {
  background: var(--color-success);
  color: #fff;
  transform: translateY(-2px);
}
.action-disabled {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.roadmap-topic-empty {
  padding: var(--space-4);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
}

/* Checkboxes */
.roadmap-topic-check {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.roadmap-topic-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-tertiary);
  border-radius: var(--radius-sm);
  display: inline-block;
  position: relative;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
}
.roadmap-topic-check input:checked + .check-custom {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.roadmap-topic-check input:checked + .check-custom::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Wizard Modal */
.roadmap-wizard-modal {
  max-width: 700px;
  width: 95%;
}
.roadmap-wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
.roadmap-wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.wizard-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  border: 2px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.roadmap-wizard-step.active .wizard-step-circle {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: var(--accent-glow);
}
.roadmap-wizard-step.completed .wizard-step-circle {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}
.wizard-step-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-weight: var(--fw-medium);
}
.roadmap-wizard-step.active .wizard-step-label { color: var(--accent-primary); }
.roadmap-wizard-step.completed .wizard-step-label { color: var(--color-success); }
.roadmap-wizard-step-line {
  width: 40px;
  height: 2px;
  background: var(--border-subtle);
  flex-shrink: 0;
}
.wizard-step-content { display: none; }
.wizard-step-content.active { display: block; }
.wizard-step-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.roadmap-wizard-body {
  max-height: 60vh;
  overflow-y: auto;
}

/* Exam Type Selector */
.exam-type-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}
.exam-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.exam-type-card:hover {
  border-color: var(--accent-primary-muted);
  background: var(--bg-card-hover);
}
.exam-type-card.selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-muted);
  box-shadow: var(--accent-glow);
}
.exam-type-icon { font-size: 1.5rem; }
.exam-type-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-align: center;
}

/* Duration Selector */
.duration-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-3);
}
.duration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.duration-card:hover { border-color: var(--accent-primary-muted); }
.duration-card.selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-muted);
}
.duration-days {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--accent-primary);
}
.duration-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}
.duration-desc {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

/* Subject Checkboxes */
.subject-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.subject-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}
.subject-checkbox input { accent-color: var(--accent-primary); width: 16px; height: 16px; }

/* Teacher Selection */
.teacher-subject-group {
  margin-bottom: var(--space-6);
}
.teacher-subject-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.teacher-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}
.teacher-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.teacher-card:hover { border-color: var(--accent-primary-muted); }
.teacher-card.selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-muted);
}
.teacher-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-primary-muted);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.teacher-card-info { display: flex; flex-direction: column; }
.teacher-card-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.teacher-card-subject {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

/* Review Card */
.wizard-review-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.review-section {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}
.review-section:last-of-type { border-bottom: none; margin-bottom: var(--space-2); }
.review-section h4 {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}
.review-section p, .review-section ul {
  font-size: var(--fs-sm);
  color: var(--text-primary);
}
.review-section ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.review-section li { display: flex; align-items: center; gap: var(--space-2); }
.review-note {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-top: var(--space-2);
}

/* Responsive Topics Table */
@media (max-width: 768px) {
  .roadmap-topics-header { display: none; }
  .roadmap-topic-row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .rt-col-action { justify-content: flex-start; }
  .roadmap-detail-stats { flex-direction: row; overflow-x: auto; }
  .roadmap-detail-stat-card { min-width: 80px; padding: var(--space-3); }
  .roadmap-hero { padding: var(--space-6); }
  .roadmap-hero-title { font-size: var(--fs-xl); }
  .roadmap-stats-row { gap: var(--space-3); }
  .roadmap-wizard-steps { gap: var(--space-2); }
  .wizard-step-circle { width: 28px; height: 28px; font-size: var(--fs-xs); }
  .roadmap-wizard-step-line { width: 20px; }
}
