.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  color: #fff;
  animation: fadeIn 0.3s ease;
}

/* Header */
.roadmap-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.roadmap-header-text h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roadmap-header-text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Locked Card View */
.roadmap-locked-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 30px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 40px auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.lock-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.1);
  border: 2px solid rgba(108, 99, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.roadmap-locked-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.roadmap-locked-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Unlocked Grid Layout */
.roadmap-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 950px) {
  .roadmap-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Level Banner Card */
.roadmap-level-banner {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(0,229,255,0.05) 100%);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(108,99,255,0.1);
}

@media (max-width: 768px) {
  .roadmap-level-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.banner-level-info {
  flex: 1;
  max-width: 600px;
}

.banner-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--purple-main);
  letter-spacing: 0.08em;
}

.banner-level-info h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 4px 0 8px 0;
}

.banner-level-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.banner-stats {
  display: flex;
  gap: 16px;
}

.b-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  min-width: 90px;
}

.b-stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.b-stat-lbl {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Sections General */
.roadmap-sequence-container, .roadmap-parallel-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-sequence {
  background: rgba(108, 99, 255, 0.15);
  color: var(--purple-main);
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.badge-parallel {
  background: rgba(0, 229, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 229, 255, 0.15);
}

.section-intro h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-intro p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================= SEQUENTIAL PATH TIMELINE ================= */
.sequence-steps-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
  margin-left: 12px;
}

.sequence-steps-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background: var(--border);
}

.seq-node {
  position: relative;
  padding-bottom: 24px;
}

.seq-node:last-child {
  padding-bottom: 0;
}

.seq-bullet {
  position: absolute;
  left: -33px;
  top: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
}

.seq-node.completed .seq-bullet {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 10px rgba(34, 216, 122, 0.4);
}

.seq-node.active .seq-bullet {
  background: var(--purple-main);
  border-color: var(--purple-main);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.4);
}

.seq-node.locked .seq-bullet {
  background: var(--bg-card2);
  border-color: var(--border-light);
  color: var(--text-muted);
}

.seq-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.seq-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.1);
}

.seq-node.active .seq-card {
  border-color: rgba(108, 99, 255, 0.45);
  background: linear-gradient(135deg, var(--bg-card2) 0%, rgba(108, 99, 255, 0.05) 100%);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.05);
}

.seq-node.locked .seq-card {
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.01);
  border-color: var(--border-light);
  cursor: not-allowed;
}

.seq-node.locked .seq-card:hover {
  transform: none;
  border-color: var(--border-light);
  box-shadow: none;
}

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

.seq-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.seq-node.active .seq-step-num {
  color: var(--purple-main);
}

.seq-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.seq-card p.desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.seq-live-tracker {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.tracker-metric {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 6px;
}

.tracker-metric-label {
  color: var(--text-secondary);
}

.tracker-metric-value {
  font-weight: 600;
}

/* ================= PARALLEL PRACTICE GRID ================= */
.parallel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.para-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.para-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.1);
}

.para-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.para-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.para-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  color: var(--neon-blue);
  flex-shrink: 0;
}

.para-title-area h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
}

.para-card p.desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.para-live-tracker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.para-tracker-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.para-tracker-label {
  color: var(--text-muted);
}

.para-tracker-val {
  font-weight: 600;
}

.para-progress-bar {
  height: 5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.para-progress-fill {
  height: 100%;
  background: var(--neon-blue);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Status Badges */
.status-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-completed {
  background: rgba(34, 216, 122, 0.15);
  color: var(--success);
}

.badge-active {
  background: rgba(108, 99, 255, 0.15);
  color: var(--purple-main);
}

.badge-locked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.badge-parallel-practicing {
  background: rgba(0, 229, 255, 0.1);
  color: var(--neon-blue);
}
.badge-parallel-ready {
  background: rgba(255, 184, 0, 0.1);
  color: #ffb800;
}

/* Reminder Notice Banner */
.roadmap-reminder-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-md);
  margin-top: -8px;
}

.reminder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-main);
  animation: bellRing 4s ease-in-out infinite;
}

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

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  5%, 15% { transform: rotate(12deg); }
  10%, 20% { transform: rotate(-12deg); }
  25% { transform: rotate(0); }
}

/* Roadmap banner styling on dashboard */
.roadmap-banner {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12) 0%, rgba(0, 229, 255, 0.03) 100%);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 24px;
}

.roadmap-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 99, 255, 0.45);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.15);
}

.roadmap-banner:active {
  transform: translateY(0);
}

.roadmap-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.15);
  color: var(--purple-main, #6C63FF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roadmap-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.roadmap-banner-text h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.roadmap-banner-text p {
  font-size: 0.8125rem;
  color: var(--text-secondary, #b3b3b3);
  margin: 0;
}

.roadmap-banner-arrow {
  color: var(--text-muted, #737373);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.25s ease;
}

.roadmap-banner:hover .roadmap-banner-arrow {
  transform: translateX(4px);
  color: #fff;
} 
@media (min-width: 768px){
  .parallel-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .parallel-grid .para-card:last-child{
    grid-column: span 2;
  }
}

/* ================= MILESTONE ACHIEVEMENT BADGES GRID ================= */
.roadmap-badges-section {
  grid-column: 1 / -1;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.roadmap-badges-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.roadmap-badges-header .badges-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 950px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.badge-milestone-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.badge-milestone-card.unlocked {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.06) 0%, rgba(0, 229, 255, 0.02) 100%);
  border-color: rgba(108, 99, 255, 0.25);
}

.badge-milestone-card.unlocked:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 99, 255, 0.45);
}

.badge-milestone-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-milestone-card.unlocked .badge-milestone-icon.streak {
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: #ff6b00;
}

.badge-milestone-card.unlocked .badge-milestone-icon.vocab {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--neon-blue);
}

.badge-milestone-card.unlocked .badge-milestone-icon.speech {
  background: rgba(34, 216, 122, 0.12);
  border: 1px solid rgba(34, 216, 122, 0.3);
  color: var(--success);
}

.badge-milestone-card.unlocked .badge-milestone-icon.fluency {
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--purple-main);
}

.badge-milestone-card.locked {
  opacity: 0.5;
}

.badge-milestone-card.locked .badge-milestone-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.badge-info h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.badge-milestone-card.locked .badge-info h4 {
  color: var(--text-secondary);
}

.badge-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}
