/* Pavithra: TERMINAL MISSION theme for Internship Project Wizard.
   Aligned with existing site palette (dark green terminal, matches CodeEditor + LiveScore). */
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=JetBrains+Mono:wght@400;500;700;800&family=Orbitron:wght@500;700;900&family=VT323&display=swap');

:root {
  --tm-void: #000000;
  --tm-deep: #000000;
  --tm-panel: #080a0c;
  --tm-panel-2: #11151a;
  --tm-green: #4CAF50;
  --tm-green-2: #2e7d32;
  --tm-green-soft: rgba(76, 175, 80, 0.12);
  --tm-neon: #00ff7a;
  --tm-cyan: #00d4ff;
  --tm-amber: #FFB627;
  --tm-magenta: #FF2E97;
  --tm-mist: #e8edef;
  --tm-fog: #8faa9e;
  --tm-edge: rgba(76, 175, 80, 0.25);
  --tm-edge-soft: rgba(76, 175, 80, 0.10);
}

/* MODAL OVERLAY */
/* Pavithra: while the internship wizard is open it covers the screen, so hide the floating stage tracker / guide bubble that would otherwise sit on top of the footer buttons */
body.tm-wizard-open .stage-tracker-toggle-btn,
body.tm-wizard-open .stage-tracker-floating-panel {
  display: none !important;
}

#projectWizardModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(circle at 20% 0%, rgba(76, 175, 80, 0.06), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(0, 212, 255, 0.03), transparent 50%),
    rgba(3, 5, 3, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  animation: tm-overlay-in 0.35s ease;
}

@keyframes tm-overlay-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#projectWizardModal .tm-modal {
  position: fixed;
  inset: 14px;
  width: auto;
  height: auto;
  background: var(--tm-void);
  color: var(--tm-mist);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--tm-green);
  box-shadow:
    0 20px 60px -15px rgba(76, 175, 80, 0.15),
    0 0 0 1px rgba(76, 175, 80, 0.08) inset,
    inset 0 0 80px rgba(0, 0, 0, 0.6);
  animation: tm-modal-in 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Pavithra: the 6 code-editor steps go near-fullscreen so the IDE has room; every other step stays a centered card */
#projectWizardModal .tm-modal.tm-code-fullscreen {
  position: fixed;
  inset: 14px;
  width: auto;
  height: auto;
}

@keyframes tm-modal-in {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#projectWizardModal .tm-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(76, 175, 80, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 175, 80, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
}

#projectWizardModal .tm-modal::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--tm-green), transparent);
  animation: tm-beam 4s linear infinite;
}

@keyframes tm-beam {
  0% {
    top: 0;
    opacity: 0.15;
  }

  50% {
    opacity: 0.08;
  }

  100% {
    top: 100%;
    opacity: 0.15;
  }
}

.tm-corners>i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--tm-green);
  z-index: 3;
}

.tm-corners>i:nth-child(1) {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.tm-corners>i:nth-child(2) {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
}

.tm-corners>i:nth-child(3) {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
}

.tm-corners>i:nth-child(4) {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

/* HEADER */
.tm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--tm-edge);
  background:
    repeating-linear-gradient(135deg, rgba(76, 175, 80, 0.03) 0px, rgba(76, 175, 80, 0.03) 12px, transparent 12px, transparent 24px),
    linear-gradient(180deg, rgba(76, 175, 80, 0.04), transparent);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.tm-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Black Ops One', sans-serif;
  font-size: 23px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tm-green);
  text-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

.tm-header-title svg {
  color: var(--tm-green);
}

.tm-header-stamp {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--tm-amber);
  border: 1.5px solid var(--tm-amber);
  padding: 4px 14px;
  letter-spacing: 0.18em;
  transform: rotate(-2deg);
  text-shadow: 0 0 6px rgba(255, 182, 39, 0.5);
}

.tm-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid var(--tm-edge);
  color: var(--tm-fog);
  font-family: 'Black Ops One', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 9px 18px;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-transform: uppercase;
}

.tm-close-btn:hover {
  color: var(--tm-magenta);
  border-color: var(--tm-magenta);
  background: rgba(255, 46, 151, 0.1);
  box-shadow: 0 0 18px rgba(255, 46, 151, 0.4);
}

/* STEP PROGRESS */
.tm-progress {
  padding: 14px 32px;
  border-bottom: 1px solid var(--tm-edge);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  background: rgba(15, 20, 24, 0.6);
}

.tm-orbital {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 12px;
}

.tm-orbital::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(107, 138, 126, 0.2);
  transform: translateY(-50%);
  z-index: 0;
}

.tm-orbital-dot {
  width: 18px;
  height: 18px;
  background: var(--tm-void);
  border: 2px solid var(--tm-fog);
  transition: all 0.4s;
  position: relative;
  z-index: 2;
}

.tm-orbital-dot.done {
  background: var(--tm-green);
  border-color: var(--tm-green);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
}

.tm-orbital-dot.done::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-left: 2px solid var(--tm-void);
  border-bottom: 2px solid var(--tm-void);
  transform: rotate(-45deg) translate(2px, -2px);
}

.tm-orbital-dot.active {
  background: var(--tm-neon);
  border-color: var(--tm-neon);
  box-shadow: 0 0 14px var(--tm-neon), 0 0 4px rgba(255, 255, 255, 0.4) inset;
  transform: scale(1.3);
  animation: tm-pulse-core 1.6s ease-in-out infinite;
}

@keyframes tm-pulse-core {

  0%,
  100% {
    box-shadow: 0 0 10px var(--tm-neon), 0 0 3px #fff inset;
  }

  50% {
    box-shadow: 0 0 18px var(--tm-neon), 0 0 6px #fff inset;
  }
}

.tm-progress-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.10em;
  color: #a7c0b6;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tm-progress-meta strong {
  color: var(--tm-green);
  font-weight: 700;
}

/* BODY */
.tm-body {
  padding: 28px 36px;
  flex: 1;
  overflow-y: auto;
  position: relative;
  z-index: 5;
  scrollbar-width: thin;
  scrollbar-color: var(--tm-green) var(--tm-deep);
  animation: tm-body-in 0.35s ease;
}

@keyframes tm-body-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tm-body::-webkit-scrollbar {
  width: 10px;
}

.tm-body::-webkit-scrollbar-track {
  background: var(--tm-deep);
}

.tm-body::-webkit-scrollbar-thumb {
  background: var(--tm-green);
  border-radius: 0;
}

/* FOOTER */
.tm-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-top: 1px solid var(--tm-edge);
  background: linear-gradient(0deg, rgba(76, 175, 80, 0.04), transparent);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Black Ops One', sans-serif;
  font-size: 16.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 36px;
  cursor: pointer;
  background: transparent;
  color: var(--tm-green);
  border: 2px solid var(--tm-green);
  border-radius: 0;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.tm-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(76, 175, 80, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s;
}

.tm-btn:hover {
  background: var(--tm-green);
  color: var(--tm-void);
  box-shadow: 0 0 18px rgba(76, 175, 80, 0.5);
  text-shadow: none;
}

.tm-btn:hover::before {
  transform: translateX(100%);
}

.tm-btn:active {
  transform: scale(0.98);
}

.tm-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--tm-fog);
  color: var(--tm-fog);
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.tm-btn-back {
  border-color: var(--tm-fog);
  color: var(--tm-fog);
  text-shadow: none;
}

.tm-btn-back:hover {
  background: var(--tm-fog);
  color: var(--tm-void);
  box-shadow: 0 0 20px rgba(107, 138, 126, 0.5);
}

.tm-btn-submit {
  background: var(--tm-amber);
  color: var(--tm-void);
  border-color: var(--tm-amber);
  text-shadow: none;
  box-shadow: 0 0 24px rgba(255, 182, 39, 0.5);
}

.tm-btn-submit:hover {
  box-shadow: 0 0 40px var(--tm-amber);
}

.tm-btn-claim {
  background: var(--tm-green);
  color: var(--tm-void);
  border-color: var(--tm-green);
  text-shadow: none;
  box-shadow: 0 0 24px var(--tm-green);
  font-size: 16px;
}

.tm-btn-claim:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 40px #fff;
}

.tm-btn[hidden] {
  display: none;
}

.tm-project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 18px;
}

.tm-project-intro {
  text-align: center;
  margin-bottom: 32px;
}

.tm-project-intro h2 {
  font-family: 'Black Ops One', sans-serif;
  font-size: 44px;
  color: var(--tm-green);
  margin: 0 0 14px;
  letter-spacing: 0.06em;
}

.tm-project-intro p {
  color: var(--tm-fog);
  font-size: 17px;
  letter-spacing: 0.04em;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
}

.tm-project-card {
  position: relative;
  padding: 38px 32px;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(0, 255, 102, 0.04), transparent 70%),
    var(--tm-panel);
  border: 2px solid var(--tm-edge);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tm-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--tm-green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.tm-project-card:hover {
  border-color: var(--tm-green);
  background:
    linear-gradient(135deg, rgba(0, 255, 102, 0.08), transparent 70%),
    var(--tm-panel);
  box-shadow: 0 16px 40px -12px rgba(76, 175, 80, 0.3);
  transform: translateY(-6px);
}

.tm-project-card:hover::before {
  transform: scaleY(1);
}

.tm-project-card.selected {
  border-color: var(--tm-green);
  background:
    linear-gradient(135deg, rgba(0, 255, 102, 0.12), transparent 70%),
    var(--tm-panel-2);
  box-shadow: 0 0 0 1px var(--tm-green) inset, 0 20px 50px -14px rgba(76, 175, 80, 0.3);
}

.tm-project-card.selected::before {
  transform: scaleY(1);
  background: var(--tm-green);
}

.tm-project-card.selected::after {
  content: 'SELECTED';
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--tm-green);
  color: var(--tm-void);
  font-family: 'Black Ops One', sans-serif;
  font-size: 11px;
  padding: 5px 11px;
  letter-spacing: 0.22em;
}

.tm-card-icon {
  display: block;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 6px rgba(76, 175, 80, 0.3));
  transition: transform 0.4s;
}

.tm-project-card:hover .tm-card-icon {
  transform: scale(1.08) rotate(-3deg);
}

.tm-card-title {
  font-family: 'Black Ops One', sans-serif;
  font-size: 26px;
  color: var(--tm-mist);
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}

.tm-card-tagline {
  color: var(--tm-fog);
  font-size: 15px;
  line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
}

.tm-card-cta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--tm-edge);
  font-family: 'Black Ops One', sans-serif;
  font-size: 13px;
  color: var(--tm-green);
  letter-spacing: 0.24em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-blueprint h2 {
  font-family: 'Black Ops One', sans-serif;
  font-size: 44px;
  color: var(--tm-green);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
  min-height: 1.1em;
  text-shadow: 0 0 18px rgba(76, 175, 80, 0.35);
}

/* Pavithra: blinking caret shown while the project title is being typed out */
.tm-blueprint h2.tm-typing-caret::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 0.92em;
  margin-left: 6px;
  background: var(--tm-green);
  vertical-align: text-bottom;
  box-shadow: 0 0 8px var(--tm-green);
  animation: tm-caret-blink 0.7s steps(1) infinite;
}

@keyframes tm-caret-blink {
  50% {
    opacity: 0;
  }
}

.tm-bp-sub {
  color: var(--tm-mist);
  font-size: 19px;
  margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
}

.tm-bp-section-title {
  font-family: 'Black Ops One', sans-serif;
  font-size: 16px;
  color: var(--tm-amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 32px 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tm-bp-section-title::before,
.tm-bp-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tm-amber), transparent);
  opacity: 0.5;
}

.tm-hld-list,
.tm-lld-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tm-hld-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  margin-bottom: 10px;
  background: var(--tm-panel);
  border-left: 3px solid var(--tm-green);
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--tm-mist);
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
  transform: translateX(-12px);
  animation: tm-fade-slide-in 0.4s ease forwards;
}

.tm-hld-list li:hover {
  background: var(--tm-panel-2);
  border-left-width: 5px;
  padding-left: 22px;
}

.tm-hld-list li:nth-child(1) {
  animation-delay: 0.05s;
}

.tm-hld-list li:nth-child(2) {
  animation-delay: 0.12s;
}

.tm-hld-list li:nth-child(3) {
  animation-delay: 0.19s;
}

.tm-hld-list li:nth-child(4) {
  animation-delay: 0.26s;
}

.tm-hld-list li:nth-child(5) {
  animation-delay: 0.33s;
}

.tm-hld-list li:nth-child(6) {
  animation-delay: 0.40s;
}

@keyframes tm-fade-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tm-hld-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--tm-void);
  border: 2px solid var(--tm-green);
  color: var(--tm-green);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-lld-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  margin-bottom: 10px;
  background: var(--tm-panel);
  border: 1px solid var(--tm-edge);
  font-family: 'JetBrains Mono', monospace;
  font-size: 17.5px;
  color: var(--tm-mist);
  transition: all 0.25s;
}

.tm-lld-list li:hover {
  border-color: var(--tm-green);
  background: var(--tm-panel-2);
  box-shadow: 0 0 18px rgba(0, 255, 102, 0.2);
}

.tm-lld-list .tm-lld-tag {
  font-family: 'Black Ops One', sans-serif;
  font-size: 11px;
  color: var(--tm-amber);
  letter-spacing: 0.14em;
  background: rgba(255, 182, 39, 0.12);
  border: 1px solid var(--tm-amber);
  padding: 4px 10px;
}

.tm-module-header {
  margin-bottom: 28px;
}

.tm-module-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Black Ops One', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--tm-green);
  border: 1.5px solid var(--tm-green);
  padding: 6px 16px;
  margin-bottom: 16px;
  background: rgba(76, 175, 80, 0.08);
}

.tm-module-tag-dot {
  width: 9px;
  height: 9px;
  background: var(--tm-green);
  box-shadow: 0 0 8px var(--tm-green);
  animation: tm-tag-blink 1.4s ease-in-out infinite;
}

@keyframes tm-tag-blink {
  50% {
    opacity: 0.5;
  }
}

.tm-module-title {
  font-family: 'Black Ops One', sans-serif;
  font-size: 36px;
  color: var(--tm-mist);
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}

.tm-module-summary {
  color: var(--tm-fog);
  font-size: 16px;
  line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
}

.tm-code-shell {
  background: var(--tm-deep);
  border: 1px solid var(--tm-edge);
  border-left: 4px solid var(--tm-green);
  overflow: hidden;
  margin-top: 24px;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.7);
}

.tm-code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.06), transparent);
  border-bottom: 1px solid var(--tm-edge);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--tm-fog);
  letter-spacing: 0.14em;
}

.tm-code-traffic {
  display: inline-flex;
  gap: 7px;
  margin-right: 18px;
}

.tm-code-traffic span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.tm-code-traffic span:nth-child(1) {
  background: #ff5f57;
}

.tm-code-traffic span:nth-child(2) {
  background: #febc2e;
}

.tm-code-traffic span:nth-child(3) {
  background: #28c840;
}

.tm-code-lang {
  color: var(--tm-green);
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 12px;
  border: 1px solid var(--tm-green);
  background: rgba(76, 175, 80, 0.08);
}

.tm-code-ai {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tm-green);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.tm-code-ai-dot {
  width: 9px;
  height: 9px;
  background: var(--tm-green);
  box-shadow: 0 0 8px var(--tm-green);
  animation: tm-tag-blink 1s ease-in-out infinite;
}

.tm-code-shell pre {
  margin: 0;
  padding: 24px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tm-mist);
  white-space: pre;
  overflow-x: auto;
  max-height: 58vh;
  overflow-y: auto;
  background: var(--tm-deep);
}

.tm-code-shell pre[class*="language-"],
.tm-code-shell code[class*="language-"] {
  background: #0B0C10 !important;
  color: #f8f8f2 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  text-shadow: none !important;
}

.tm-code-shell .token.comment,
.tm-code-shell .token.prolog,
.tm-code-shell .token.doctype,
.tm-code-shell .token.cdata {
  color: #75715e;
  font-style: italic;
}

.tm-code-shell .token.punctuation {
  color: #f8f8f2;
}

.tm-code-shell .token.property,
.tm-code-shell .token.tag,
.tm-code-shell .token.boolean,
.tm-code-shell .token.number,
.tm-code-shell .token.constant,
.tm-code-shell .token.symbol,
.tm-code-shell .token.deleted {
  color: #ae81ff;
}

.tm-code-shell .token.selector,
.tm-code-shell .token.attr-name,
.tm-code-shell .token.string,
.tm-code-shell .token.char,
.tm-code-shell .token.inserted {
  color: #e6db74;
}

.tm-code-shell .token.builtin {
  color: #66d9ef;
  font-style: italic;
}

.tm-code-shell .token.operator,
.tm-code-shell .token.entity,
.tm-code-shell .token.url {
  color: #f92672;
}

.tm-code-shell .token.atrule,
.tm-code-shell .token.attr-value,
.tm-code-shell .token.keyword {
  color: #f92672;
  font-weight: 700;
}

.tm-code-shell .token.function {
  color: #a6e22e;
  font-weight: 700;
}

.tm-code-shell .token.class-name {
  color: #66d9ef;
  font-weight: 700;
  font-style: italic;
}

.tm-code-shell .token.regex,
.tm-code-shell .token.important,
.tm-code-shell .token.variable {
  color: #fd971f;
}

.tm-code-shell .token.decorator {
  color: #a6e22e;
}

.tm-code-shell .token.triple-quoted-string {
  color: #e6db74;
  font-style: italic;
}

.tm-code-shell pre::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.tm-code-shell pre::-webkit-scrollbar-thumb {
  background: var(--tm-green);
  border-radius: 0;
}

.tm-code-shell pre::-webkit-scrollbar-track {
  background: var(--tm-deep);
}

/* Pavithra: interactive coding workspace - reference on the left, live editor on the right */
.tm-task-strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 18px;
  background: rgba(255, 182, 39, 0.06);
  border: 1px solid rgba(255, 182, 39, 0.3);
  border-left: 4px solid var(--tm-amber);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--tm-mist);
}

.tm-task-label {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--tm-amber);
  padding: 4px 10px;
  border: 1px solid rgba(255, 182, 39, 0.5);
  white-space: nowrap;
}

.tm-task-text {
  flex: 1 1 auto;
}

/* Pavithra: on code steps, let the body become a flex column so the editors fill all remaining height (IDE feel) */
.tm-body:has(.tm-code-workspace) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tm-code-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  flex: 1 1 auto;
  min-height: 0;
}

.tm-code-workspace .tm-code-shell {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.tm-editor-shell {
  border-left: 4px solid var(--tm-amber);
}

.tm-code-workspace .tm-code-shell pre {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  font-size: 19px;
  line-height: 1.85;
  padding: 28px 32px;
}

/* Pavithra: bigger, more readable code in the interactive workspace */
.tm-code-workspace pre[class*="language-"],
.tm-code-workspace code[class*="language-"] {
  font-size: 19px !important;
  line-height: 1.85 !important;
}

/* Pavithra: live code editor = a Prism-highlighted layer behind a transparent textarea, with a line-number gutter */
.tm-editor-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  background: var(--tm-deep);
  overflow: hidden;
}

.tm-editor-wrap:focus-within {
  box-shadow: inset 0 0 0 1px var(--tm-amber);
}

.tm-editor-gutter {
  flex: 0 0 auto;
  width: 56px;
  margin: 0;
  padding: 28px 12px 28px 0;
  box-sizing: border-box;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  line-height: 1.85;
  color: #46554d;
  background: #050607;
  border-right: 1px solid var(--tm-edge);
  white-space: pre;
  overflow: hidden;
  user-select: none;
}

.tm-editor-area {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.tm-code-workspace .tm-editor-area pre.tm-editor-highlight,
.tm-code-workspace .tm-editor-area textarea.tm-code-editor {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 28px 24px;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  line-height: 1.85;
  letter-spacing: normal;
  white-space: pre;
  tab-size: 4;
  -moz-tab-size: 4;
}

.tm-code-workspace .tm-editor-area pre.tm-editor-highlight {
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  color: #f8f8f2;
  background: var(--tm-deep);
}

.tm-code-workspace .tm-editor-area code {
  display: block;
  margin: 0;
  padding: 0 !important;
  background: none !important;
  font: inherit;
  white-space: pre;
}

.tm-code-workspace .tm-editor-area textarea.tm-code-editor {
  z-index: 2;
  resize: none;
  outline: none;
  overflow: auto;
  color: transparent;
  background: transparent;
  caret-color: var(--tm-green);
}

.tm-code-editor::placeholder {
  color: var(--tm-fog);
  opacity: 0.7;
}

.tm-code-editor::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.tm-code-editor::-webkit-scrollbar-thumb {
  background: var(--tm-amber);
}

.tm-code-editor::-webkit-scrollbar-track {
  background: var(--tm-deep);
}

/* live syntax-check status line under the editor */
.tm-lint-bar {
  flex: 0 0 auto;
  padding: 11px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--tm-edge);
  background: #050607;
  color: var(--tm-fog);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-lint-idle {
  color: var(--tm-cyan);
  font-weight: 500;
}

/* Pavithra: clean = bright neon green; error = bold red with tinted bar so it's impossible to miss */
.tm-lint-bar.tm-lint-good {
  color: var(--tm-neon);
  background: rgba(0, 255, 122, 0.06);
  border-top-color: rgba(0, 255, 122, 0.4);
  text-shadow: 0 0 10px rgba(0, 255, 122, 0.4);
}

.tm-lint-bar.tm-lint-bad {
  color: #ff6b6b;
  background: rgba(255, 60, 60, 0.10);
  border-top-color: rgba(255, 60, 60, 0.5);
  text-shadow: 0 0 10px rgba(255, 60, 60, 0.35);
}

.tm-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--tm-edge);
  background: linear-gradient(90deg, rgba(255, 182, 39, 0.05), transparent);
}

.tm-agent-stream {
  flex: 1 1 auto;
  min-height: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15.5px;
  color: var(--tm-fog);
}

.tm-agent-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pavithra: the live AI-agent message - amber, gently pulsing so it reads as "working" */
.tm-agent-msg {
  color: var(--tm-amber);
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: tm-agent-pulse 1.2s ease-in-out infinite;
}

@keyframes tm-agent-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

/* green + yellow dual-colour spinner */
.tm-agent-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(76, 175, 80, 0.22);
  border-top-color: var(--tm-amber);
  border-right-color: var(--tm-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(255, 182, 39, 0.35);
  animation: tm-agent-spin 0.7s linear infinite;
}

@keyframes tm-agent-spin {
  to {
    transform: rotate(360deg);
  }
}

.tm-agent-done {
  color: var(--tm-green);
  font-weight: 700;
  font-size: 15.5px;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.tm-agent-warn {
  color: var(--tm-amber);
  font-weight: 600;
}

.tm-submit-code-btn {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tm-deep);
  background: var(--tm-amber);
  border: 1px solid var(--tm-amber);
  padding: 10px 20px;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.tm-submit-code-btn:hover:not(:disabled) {
  filter: brightness(1.12);
}

.tm-submit-code-btn:disabled {
  cursor: default;
  opacity: 0.55;
  color: var(--tm-green);
  background: transparent;
  border-color: var(--tm-green);
}

@media (max-width: 900px) {

  /* stacked layout: let the body scroll again and give each panel a tall fixed height */
  .tm-body:has(.tm-code-workspace) {
    overflow-y: auto;
  }

  .tm-code-workspace {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
  }

  .tm-code-workspace .tm-code-shell pre {
    height: 55vh;
    min-height: 55vh;
    max-height: 55vh;
  }

  .tm-editor-wrap {
    flex: 0 0 55vh;
    height: 55vh;
  }
}

.tm-stitched-header {
  margin-bottom: 24px;
}

.tm-stitched-header h2 {
  font-family: 'Black Ops One', sans-serif;
  font-size: 40px;
  color: var(--tm-green);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}

.tm-stitched-header p {
  color: #c3d6cc;
  font-size: 18px;
  margin: 0;
  line-height: 1.55;
  font-family: 'JetBrains Mono', monospace;
}

.tm-stitched-stats {
  display: flex;
  gap: 16px;
  margin: 22px 0;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: #c3d6cc;
}

.tm-stitched-stats>div {
  padding: 12px 20px;
  background: var(--tm-panel);
  border: 1px solid var(--tm-edge);
}

.tm-stitched-stats strong {
  color: var(--tm-green);
  font-weight: 700;
}

.tm-stitched-shell {
  background: var(--tm-deep);
  border: 1px solid var(--tm-edge);
  border-left: 4px solid var(--tm-amber);
  overflow: hidden;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.7);
}

.tm-stitched-shell pre {
  margin: 0;
  padding: 26px 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  line-height: 1.85;
  color: #f4f7f5;
  white-space: pre;
  max-height: 62vh;
  overflow: auto;
  background: var(--tm-deep);
}

/* Pavithra: keep the stitched code big and readable (Prism tokens override font-size) */
.tm-stitched-shell pre[class*="language-"],
.tm-stitched-shell code[class*="language-"] {
  font-size: 19px !important;
  line-height: 1.85 !important;
}

.tm-stitched-shell pre::-webkit-scrollbar {
  width: 10px;
}

.tm-stitched-shell pre::-webkit-scrollbar-thumb {
  background: var(--tm-amber);
}

.tm-mc-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px 24px;
  background: var(--tm-panel);
  border: 1px solid var(--tm-edge);
  border-left: 4px solid var(--tm-green);
}

.tm-mc-stat {
  text-align: left;
}

.tm-mc-stat-label {
  font-family: 'Black Ops One', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tm-fog);
  text-transform: uppercase;
}

.tm-mc-stat-value {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--tm-green);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.tm-mc-stat-value.amber {
  color: var(--tm-amber);
}

.tm-mc-clock {
  text-align: center;
}

.tm-mc-clock-time {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 56px;
  color: var(--tm-mist);
  letter-spacing: 0.10em;
  line-height: 1;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.tm-mc-clock-label {
  font-family: 'Black Ops One', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--tm-fog);
  text-transform: uppercase;
  margin-top: 6px;
}


.tm-mc-hpbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  margin-bottom: 24px;
  background: var(--tm-panel);
  border: 1px solid var(--tm-edge);
}

.tm-mc-hpbar-segment {
  flex: 1;
  height: 22px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.4s, box-shadow 0.4s;
  position: relative;
  border-radius: 2px;
}

.tm-mc-hpbar-segment.lit {
  background: var(--tm-green);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.4), inset 0 0 4px rgba(255, 255, 255, 0.2);
}

.tm-mc-hpbar-segment.active {
  background: var(--tm-amber);
  box-shadow: 0 0 8px rgba(255, 182, 39, 0.5);
  animation: tm-tag-blink 0.8s ease-in-out infinite;
}


.tm-mc-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  min-height: 360px;
}

/* Pavithra: let the AI Agent Analysis panels grow to fill the card so there's no empty gap at the bottom */
.tm-body:has(.tm-mc-grid) {
  display: flex;
  flex-direction: column;
}

.tm-body:has(.tm-mc-grid) .tm-mc-grid {
  flex: 1 1 auto;
}

.tm-body:has(.tm-mc-grid) .tm-mc-log {
  max-height: none;
}


.tm-mc-objectives {
  background: var(--tm-panel);
  border: 1px solid var(--tm-edge);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}

.tm-mc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--tm-edge);
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.06), transparent);
  font-family: 'Black Ops One', sans-serif;
  font-size: 13px;
  color: var(--tm-green);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tm-mc-panel-header svg {
  color: var(--tm-green);
}

.tm-mc-panel-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--tm-amber);
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tm-mc-panel-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--tm-amber);
  box-shadow: 0 0 8px var(--tm-amber);
  animation: tm-tag-blink 1s ease-in-out infinite;
}

.tm-objective-list {
  list-style: none;
  margin: 0;
  padding: 16px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tm-green) var(--tm-panel);
}

.tm-objective-list::-webkit-scrollbar {
  width: 6px;
}

.tm-objective-list::-webkit-scrollbar-thumb {
  background: var(--tm-green);
}

.tm-objective {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(76, 175, 80, 0.10);
  font-family: 'JetBrains Mono', monospace;
  font-size: 17.5px;
  color: #c3d6cc;
  transition: all 0.4s;
}

.tm-objective:last-child {
  border-bottom: 0;
}

.tm-obj-marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--tm-fog);
  background: var(--tm-void);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Black Ops One', sans-serif;
  font-size: 10px;
  color: var(--tm-fog);
}

.tm-obj-name {
  flex: 1;
}

.tm-obj-xp {
  font-family: 'Black Ops One', sans-serif;
  font-size: 11px;
  color: var(--tm-fog);
  letter-spacing: 0.15em;
}

.tm-objective.active {
  color: var(--tm-amber);
}

.tm-objective.active .tm-obj-marker {
  border-color: var(--tm-amber);
  color: var(--tm-amber);
  box-shadow: 0 0 12px var(--tm-amber);
  animation: tm-obj-spin 1.4s linear infinite;
}

@keyframes tm-obj-spin {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.tm-objective.active .tm-obj-xp {
  color: var(--tm-amber);
}

.tm-objective.done {
  color: var(--tm-green);
}

.tm-objective.done .tm-obj-marker {
  border-color: var(--tm-green);
  background: var(--tm-green);
  color: var(--tm-void);
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
  animation: none;
}

.tm-objective.done .tm-obj-marker::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--tm-void);
  border-bottom: 2px solid var(--tm-void);
  transform: rotate(-45deg) translate(1px, -1px);
}

.tm-objective.done .tm-obj-marker {
  font-size: 0;
}

.tm-objective.done .tm-obj-xp {
  color: var(--tm-green);
}


.tm-mc-transcript {
  background: var(--tm-deep);
  border: 1px solid var(--tm-edge);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}

.tm-mc-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--tm-mist);
  max-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: var(--tm-green) var(--tm-deep);
}

.tm-mc-log::-webkit-scrollbar {
  width: 6px;
}

.tm-mc-log::-webkit-scrollbar-thumb {
  background: var(--tm-green);
}

.tm-mc-log-line {
  display: flex;
  gap: 14px;
  padding: 4px 0;
  opacity: 0;
  animation: tm-log-appear 0.35s ease forwards;
}

@keyframes tm-log-appear {
  to {
    opacity: 1;
  }
}

.tm-mc-log-time {
  color: var(--tm-fog);
  flex-shrink: 0;
}

.tm-mc-log-icon {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-weight: 700;
}

.tm-mc-log-icon-ok {
  color: var(--tm-green);
}

.tm-mc-log-icon-warn {
  color: var(--tm-amber);
}

.tm-mc-log-icon-fire {
  color: var(--tm-magenta);
}

.tm-mc-log-icon-info {
  color: var(--tm-cyan);
}

.tm-mc-log-msg {
  flex: 1;
  word-break: break-word;
}

/* ACHIEVEMENT TOASTS */
.tm-achievements {
  position: absolute;
  top: 100px;
  right: 32px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
  max-width: 340px;
}

.tm-achievement-toast {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--tm-panel-2);
  border: 1.5px solid rgba(255, 182, 39, 0.5);
  border-left: 4px solid var(--tm-amber);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 182, 39, 0.06) inset;
  animation: tm-toast-in 0.5s cubic-bezier(0.34, 1.5, 0.64, 1);
  min-width: 300px;
  position: relative;
  overflow: hidden;
}

@keyframes tm-toast-in {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tm-achievement-toast.toast-out {
  animation: tm-toast-out 0.5s ease forwards;
}

@keyframes tm-toast-out {
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

.tm-achievement-icon {
  flex-shrink: 0;
  color: var(--tm-amber);
  filter: drop-shadow(0 0 4px rgba(255, 182, 39, 0.3));
}

@keyframes tm-icon-spin {
  to {
    transform: rotate(360deg);
  }
}

.tm-achievement-label {
  font-family: 'Black Ops One', sans-serif;
  font-size: 11px;
  color: var(--tm-amber);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tm-achievement-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--tm-mist);
  line-height: 1.3;
}

.tm-achievement-xp {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Black Ops One', sans-serif;
  font-size: 13px;
  color: var(--tm-amber);
  letter-spacing: 0.16em;
  background: rgba(255, 182, 39, 0.15);
  padding: 3px 12px;
  border: 1px solid var(--tm-amber);
}

/* SUCCESS */
.tm-success {
  text-align: center;
  padding: 14px 0;
  position: relative;
}

/* Pavithra: the finale is content-rich now; keep it from the top with a touch of breathing room and let it scroll if needed */
.tm-body:has(.tm-success) {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 24px;
}

/* Pavithra: gamer-style reward trophy - pops in with overshoot, spinning gold halo, gentle float, pulsing glow */
.tm-success-trophy {
  position: relative;
  margin: 0 auto 16px;
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tm-trophy-in 0.85s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.tm-success-trophy::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 39, 0.38), rgba(0, 0, 0, 0.85) 72%);
  box-shadow: 0 0 60px rgba(255, 182, 39, 0.55), inset 0 0 34px rgba(255, 182, 39, 0.35);
  animation: tm-trophy-glow 2.2s ease-in-out infinite;
  z-index: 1;
}

.tm-trophy-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 182, 39, 0.85), rgba(76, 175, 80, 0.3), transparent 55%);
  filter: blur(3px);
  animation: tm-trophy-spin 3.4s linear infinite;
  z-index: 0;
}

.tm-trophy-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tm-trophy-float 3s ease-in-out 0.85s infinite;
}

.tm-trophy-icon svg {
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 4px 12px rgba(255, 182, 39, 0.6));
}

@keyframes tm-trophy-in {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(-40px) rotate(-25deg);
  }

  60% {
    opacity: 1;
    transform: scale(1.18) translateY(0) rotate(8deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes tm-trophy-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-11px);
  }
}

@keyframes tm-trophy-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tm-trophy-glow {

  0%,
  100% {
    box-shadow: 0 0 45px rgba(255, 182, 39, 0.45), inset 0 0 30px rgba(255, 182, 39, 0.3);
  }

  50% {
    box-shadow: 0 0 75px rgba(255, 182, 39, 0.7), inset 0 0 38px rgba(255, 182, 39, 0.45);
  }
}

/* animated "MISSION ACCOMPLISHED" badge */
.tm-success-badge {
  display: inline-block;
  margin: 0 auto 18px;
  font-family: 'Black Ops One', sans-serif;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--tm-void);
  background: linear-gradient(100deg, var(--tm-amber) 0%, #ffe39a 45%, var(--tm-amber) 90%);
  background-size: 220% 100%;
  padding: 9px 28px;
  box-shadow: 0 0 26px rgba(255, 182, 39, 0.5);
  animation: tm-badge-in 0.55s ease 0.5s both, tm-badge-shine 2.6s linear 1.1s infinite;
}

@keyframes tm-badge-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tm-badge-shine {
  to {
    background-position: -220% 0;
  }
}

/* achievement stat cards */
.tm-success-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 4px auto 30px;
  max-width: 920px;
}

.tm-stat-card {
  min-width: 158px;
  padding: 16px 24px;
  background: linear-gradient(160deg, rgba(76, 175, 80, 0.10), rgba(0, 0, 0, 0.45));
  border: 1px solid var(--tm-edge);
  border-top: 2px solid var(--tm-green);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.7);
  animation: tm-stat-in 0.5s ease both;
}

.tm-stat-card:nth-child(1) {
  animation-delay: 0.7s;
}

.tm-stat-card:nth-child(2) {
  animation-delay: 0.8s;
}

.tm-stat-card:nth-child(3) {
  animation-delay: 0.9s;
}

.tm-stat-card:nth-child(4) {
  animation-delay: 1s;
}

.tm-stat-val {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--tm-amber);
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 182, 39, 0.4);
}

.tm-stat-val small {
  font-size: 17px;
  color: var(--tm-fog);
  font-weight: 700;
}

.tm-stat-label {
  margin-top: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tm-fog);
  text-transform: uppercase;
}

@keyframes tm-stat-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.tm-success-title {
  font-family: 'Black Ops One', sans-serif;
  font-size: 56px;
  color: var(--tm-green);
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  text-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
  animation: tm-success-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tm-success-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tm-success-sub {
  color: var(--tm-mist);
  font-size: 18px;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
}

.tm-success-sub strong {
  color: var(--tm-amber);
  font-weight: 700;
}

.tm-certificate {
  width: min(840px, 92%);
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(0, 212, 255, 0.07), rgba(255, 182, 39, 0.10));
  border: 2px solid var(--tm-green);
  padding: 46px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  animation: tm-cert-reveal 0.9s ease 0.3s forwards, tm-cert-glow 3.2s ease-in-out 1.3s infinite;
  box-shadow: 0 0 55px rgba(76, 175, 80, 0.28), 0 24px 60px -16px rgba(0, 0, 0, 0.7);
}

@keyframes tm-cert-glow {

  0%,
  100% {
    box-shadow: 0 0 45px rgba(76, 175, 80, 0.25), 0 24px 60px -16px rgba(0, 0, 0, 0.7);
  }

  50% {
    box-shadow: 0 0 80px rgba(76, 175, 80, 0.45), 0 0 30px rgba(255, 182, 39, 0.25), 0 24px 60px -16px rgba(0, 0, 0, 0.7);
  }
}

.tm-certificate::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 182, 39, 0.25), transparent 30%);
  animation: tm-cert-shine 4s linear infinite;
  pointer-events: none;
}

@keyframes tm-cert-shine {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tm-cert-reveal {
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.tm-cert-seal {
  font-family: 'Black Ops One', sans-serif;
  font-size: 15px;
  letter-spacing: 0.32em;
  color: var(--tm-amber);
  margin-bottom: 14px;
  position: relative;
  text-shadow: 0 0 6px rgba(255, 182, 39, 0.3);
}

.tm-cert-name {
  font-family: 'Black Ops One', sans-serif;
  font-size: 40px;
  color: var(--tm-mist);
  margin: 12px 0;
  position: relative;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(76, 175, 80, 0.35);
}

.tm-cert-tag {
  color: var(--tm-mist);
  font-size: 16px;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.9;
}

.tm-cert-divider {
  height: 1px;
  margin: 16px auto;
  width: 60%;
  background: linear-gradient(90deg, transparent, var(--tm-amber), transparent);
  position: relative;
}

/* Success Certificate Ribbon */
.tm-cert-ribbon {
  position: absolute;
  top: 18px;
  right: -36px;
  transform: rotate(45deg);
  background: var(--tm-amber);
  color: var(--tm-void);
  font-family: 'Black Ops One', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 5px 48px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.tm-cert-company {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--tm-fog);
  margin-top: 16px;
  text-transform: uppercase;
  position: relative;
}

.tm-pay-cert-company {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--tm-fog);
  margin-top: 14px;
  text-transform: uppercase;
}

.tm-cert-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Confetti */
.tm-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.tm-confetti i {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 10px;
  animation: tm-confetti-fall 4s linear forwards;
}

.tm-confetti i:nth-child(odd) {
  background: var(--tm-green);
}

.tm-confetti i:nth-child(even) {
  background: var(--tm-amber);
}

.tm-confetti i:nth-child(3n) {
  background: var(--tm-cyan);
}

.tm-confetti i:nth-child(5n) {
  background: var(--tm-magenta);
}

.tm-confetti i:nth-child(7n) {
  border-radius: 50%;
}

@keyframes tm-confetti-fall {
  to {
    transform: translateY(120vh) rotate(900deg);
    opacity: 0;
  }
}

/* PAYMENT OVERLAY */
.tm-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  animation: tm-overlay-in 0.45s ease;
}

.tm-pay-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.10), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 182, 39, 0.08), transparent 50%),
    rgba(3, 5, 3, 0.98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tm-pay-card {
  position: relative;
  z-index: 1;
  width: min(94vw, 760px);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--tm-deep);
  border: 1.5px solid var(--tm-green);
  padding: 40px 44px;
  color: var(--tm-mist);
  box-shadow:
    0 30px 60px -15px rgba(76, 175, 80, 0.15),
    0 0 0 1px rgba(76, 175, 80, 0.08) inset,
    inset 0 0 80px rgba(0, 0, 0, 0.5);
  animation: tm-pay-card-in 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--tm-green) var(--tm-deep);
}

.tm-pay-card::-webkit-scrollbar {
  width: 8px;
}

.tm-pay-card::-webkit-scrollbar-thumb {
  background: var(--tm-green);
}

@keyframes tm-pay-card-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tm-pay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent !important;
  border: none !important;
  color: #008000 !important;
  font-family: 'Times New Roman', Times, serif;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.tm-pay-close:hover {
  color: #39ff14 !important;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.tm-pay-badge {
  display: inline-block;
  font-family: 'Black Ops One', sans-serif;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--tm-amber);
  background: rgba(255, 182, 39, 0.12);
  border: 1.5px solid var(--tm-amber);
  padding: 8px 18px;
  margin-bottom: 20px;
  box-shadow: 0 0 16px -4px rgba(255, 182, 39, 0.4);
  text-shadow: 0 0 6px rgba(255, 182, 39, 0.3);
}

.tm-pay-title {
  font-family: 'Black Ops One', sans-serif;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: var(--tm-mist);
  text-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
}

.tm-pay-title-accent {
  color: var(--tm-green);
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.tm-pay-subtitle {
  color: var(--tm-fog);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.tm-pay-subtitle strong {
  color: var(--tm-mist);
  font-weight: 700;
}

.tm-pay-cert-preview {
  position: relative;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(255, 182, 39, 0.06));
  border: 1.5px solid rgba(255, 182, 39, 0.4);
  padding: 30px 32px;
  margin-bottom: 28px;
  overflow: hidden;
  text-align: center;
}

.tm-pay-cert-preview::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 182, 39, 0.25), transparent 30%);
  animation: tm-cert-shine 5s linear infinite;
  pointer-events: none;
}

.tm-pay-cert-ribbon {
  position: absolute;
  top: 18px;
  right: -36px;
  transform: rotate(45deg);
  background: var(--tm-amber);
  color: var(--tm-void);
  font-family: 'Black Ops One', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 5px 48px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.tm-pay-cert-inner {
  position: relative;
  text-align: center;
}

.tm-pay-cert-eyebrow {
  font-family: 'Black Ops One', sans-serif;
  font-size: 11px;
  letter-spacing: 0.30em;
  color: var(--tm-green);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.tm-pay-cert-name {
  font-family: 'Black Ops One', sans-serif;
  font-size: 28px;
  color: var(--tm-mist);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tm-pay-cert-line {
  font-style: italic;
  color: var(--tm-fog);
  font-size: 14px;
  margin-bottom: 6px;
}

.tm-pay-cert-project {
  font-family: 'Black Ops One', sans-serif;
  font-size: 18px;
  color: var(--tm-amber);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 182, 39, 0.3);
  letter-spacing: 0.03em;
}

.tm-pay-cert-meta {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  max-width: 480px;
  margin: 18px auto 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 182, 39, 0.4);
}

.tm-pay-cert-meta span {
  color: var(--tm-fog);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tm-pay-cert-meta strong {
  color: var(--tm-amber);
  font-weight: 700;
  text-align: left;
}

.tm-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}

.tm-pay-price-block {
  background: var(--tm-panel);
  border: 1px solid var(--tm-edge);
  padding: 26px 28px;
}

.tm-pay-price-label {
  font-family: 'Black Ops One', sans-serif;
  font-size: 11px;
  color: var(--tm-fog);
  letter-spacing: 0.30em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tm-pay-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tm-pay-price-currency {
  font-family: 'Black Ops One', sans-serif;
  font-size: 16px;
  color: var(--tm-fog);
}

.tm-pay-price-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: var(--tm-green);
  letter-spacing: 0.04em;
}

.tm-pay-price-strike {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  color: var(--tm-fog);
  text-decoration: line-through;
  margin-left: 10px;
}

.tm-pay-price-note {
  font-size: 13px;
  color: var(--tm-fog);
  margin-top: 12px;
}

.tm-pay-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--tm-mist);
}

.tm-pay-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.tm-pay-perks li svg {
  color: var(--tm-amber);
  flex-shrink: 0;
}

.tm-pay-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tm-pay-actions .tm-btn {
  flex: 1;
  justify-content: center;
}

.tm-pay-actions .tm-btn-claim {
  flex: 2;
}

.tm-pay-footer-note {
  margin-top: 18px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--tm-fog);
  letter-spacing: 0.14em;
}

/* ── PAYMENT METHOD SELECTOR (Razorpay / PayPal) ──────────────────────────── */
.tm-pay-method-row {
  margin-bottom: 22px;
}

.tm-pay-method-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--tm-fog);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tm-pay-method-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-pmc {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  background: rgba(22, 22, 22, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  gap: 16px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tm-pmc:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 30, 30, 0.8);
  transform: translateY(-1px);
}

.tm-pmc.tm-pmc-active[data-method="razorpay"] {
  border-color: #3395FF;
  background: rgba(51, 149, 255, 0.08);
  box-shadow: 0 0 20px -4px rgba(51, 149, 255, 0.3);
}

.tm-pmc.tm-pmc-active[data-method="paypal"] {
  border-color: #0079C1;
  background: rgba(0, 121, 193, 0.08);
  box-shadow: 0 0 20px -4px rgba(0, 121, 193, 0.3);
}

.tm-pmc-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tm-pmc-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--tm-fog);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tm-pmc.tm-pmc-active[data-method="razorpay"] .tm-pmc-name {
  color: #3395FF;
}

.tm-pmc.tm-pmc-active[data-method="paypal"] .tm-pmc-name {
  color: #0079C1;
}

.tm-pmc-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--tm-fog);
  opacity: 0.5;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.tm-pmc-tick {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-size: 10px;
  font-weight: 900;
  color: transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
  position: static;
  opacity: 1;
}

.tm-pmc.tm-pmc-active[data-method="razorpay"] .tm-pmc-tick {
  border-color: #3395FF;
  background: #3395FF;
  color: #0b0f19;
  opacity: 1;
}

.tm-pmc.tm-pmc-active[data-method="paypal"] .tm-pmc-tick {
  border-color: #0079C1;
  background: #0079C1;
  color: #0b0f19;
  opacity: 1;
}


/* RESPONSIVE */
@media (max-width: 980px) {
  #projectWizardModal .tm-modal {
    width: 98vw;
    height: 96vh;
  }

  .tm-header {
    padding: 16px 22px;
  }

  .tm-header-title {
    font-size: 14px;
    letter-spacing: 0.16em;
  }

  .tm-header-stamp {
    display: none;
  }

  .tm-progress {
    padding: 14px 22px;
  }

  .tm-orbital-dot {
    width: 14px;
    height: 14px;
  }

  .tm-body {
    padding: 24px 22px;
  }

  .tm-footer {
    padding: 16px 22px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tm-btn {
    padding: 12px 22px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .tm-project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tm-project-intro h2 {
    font-size: 30px;
  }

  .tm-module-title {
    font-size: 26px;
  }

  .tm-blueprint h2 {
    font-size: 28px;
  }

  .tm-mc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }

  .tm-mc-top {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .tm-mc-clock-time {
    font-size: 50px;
  }

  .tm-success-title {
    font-size: 36px;
  }

  .tm-certificate {
    width: 96%;
    padding: 24px 20px;
  }

  .tm-cert-name {
    font-size: 22px;
  }

  .tm-cert-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tm-achievements {
    right: 12px;
    top: 70px;
    max-width: calc(100vw - 24px);
  }

  .tm-achievement-toast {
    min-width: 220px;
    padding: 12px 16px;
  }

  .tm-pay-card {
    padding: 26px 22px;
  }

  .tm-pay-title {
    font-size: 30px;
  }

  .tm-pay-cert-name {
    font-size: 22px;
  }

  .tm-pay-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tm-pay-actions {
    flex-direction: column;
  }

  .tm-pay-cert-meta {
    grid-template-columns: 1fr 1fr;
  }
}

/* SYLLABUS STEP IN WIZARD */

/* Header */
.rm-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  border-bottom: 1px solid rgba(0, 255, 102, 0.18);
  background: rgba(0, 14, 7, 0.95);
}

.rm-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rm-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.45);
  color: #00ff66;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 3px;
  padding: 3px 10px;
  text-transform: uppercase;
}

.rm-header-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 6px #00ff66;
  animation: blink 1.3s step-start infinite;
}

.rm-header-title {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

.rm-header-title span {
  color: #00ff66;
}

.rm-close {
  cursor: pointer;
  color: #00ff66;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid rgba(0, 255, 102, 0.5);
  padding: 5px 12px;
  background: rgba(0, 14, 7, 0.9);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.rm-close:hover {
  background: #00ff66;
  color: #000;
  box-shadow: 0 0 12px #00ff66;
}

/* Body — two-panel */
.rm-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* LEFT — timeline */
.rm-timeline {
  width: 300px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(0, 255, 102, 0.12);
  padding: 18px 0;
  scrollbar-width: thin;
  scrollbar-color: #00ff66 transparent;
}

.rm-timeline::-webkit-scrollbar {
  width: 3px;
}

.rm-timeline::-webkit-scrollbar-thumb {
  background: #00ff66;
  border-radius: 4px;
}

.rm-act-header {
  padding: 8px 18px 6px;
}

.rm-act-label {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1px;
}

.rm-act-name {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rm-act-divider {
  height: 1px;
  margin: 8px 18px 10px;
  opacity: 0.25;
}

.rm-stage-node {
  display: flex;
  align-items: stretch;
  padding: 0 14px 0 18px;
  margin-bottom: 1px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.rm-stage-node:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rm-stage-node.active {
  background: rgba(255, 255, 255, 0.06);
}

.rm-node-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 26px;
  flex-shrink: 0;
  padding-top: 11px;
}

/* Type-specific icon box replaces the old circle dot */
.rm-node-icon {
  width: 20px;
  height: 20px;
  border: 1.5px solid;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  flex-shrink: 0;
  z-index: 2;
  transition: box-shadow 0.3s, background 0.25s, transform 0.2s;
}

.rm-node-icon svg {
  width: 11px;
  height: 11px;
  display: block;
  overflow: visible;
}

.rm-stage-node:hover .rm-node-icon {
  box-shadow: 0 0 7px currentColor, 0 0 14px currentColor;
  transform: scale(1.1);
}

.rm-stage-node.active .rm-node-icon {
  background: currentColor;
  box-shadow: 0 0 10px currentColor, 0 0 22px currentColor;
}

.rm-stage-node.active .rm-node-icon svg {
  filter: invert(1) brightness(0.05);
}

/* Connector line — now a relative container for the marching soldier */
.rm-node-line {
  flex: 1;
  position: relative;
  width: 2px;
  min-height: 20px;
  margin-top: 4px;
  opacity: 0.35;
  overflow: visible;
}

.rm-stage-node:last-child .rm-node-line {
  display: none;
}

/* Tiny marching soldier walking down the connector line */
.rm-line-soldier {
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
  opacity: 0.9;
  animation: rmSoldierWalk 3.2s linear infinite,
    rmSoldierBob 0.43s ease-in-out infinite alternate;
}

.rm-line-soldier svg {
  display: block;
}

@keyframes rmSoldierWalk {
  0% {
    top: -13px;
    opacity: 0.9;
  }

  74% {
    top: calc(100% + 3px);
    opacity: 0.9;
  }

  75% {
    top: calc(100% + 3px);
    opacity: 0;
  }

  76% {
    top: -13px;
    opacity: 0;
  }

  80% {
    opacity: 0.9;
  }

  100% {
    top: -13px;
    opacity: 0.9;
  }
}

@keyframes rmSoldierBob {
  from {
    transform: translateX(-50%) translateY(0);
  }

  to {
    transform: translateX(-50%) translateY(-1.8px);
  }
}

.rm-node-info {
  flex: 1;
  padding: 10px 0 10px 10px;
}

.rm-node-num {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  opacity: 0.45;
  margin-bottom: 1px;
  text-transform: uppercase;
}

.rm-node-theme {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.rm-node-sub {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  opacity: 0.45;
  letter-spacing: 1px;
  margin-top: 2px;
  text-transform: uppercase;
}

/* RIGHT — detail panel */
.rm-detail {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 32px 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 102, 0.3) transparent;
}

.rm-detail::-webkit-scrollbar {
  width: 3px;
}

.rm-detail::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 102, 0.35);
  border-radius: 4px;
}

/* Welcome */
.rm-welcome {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 16px;
  padding-bottom: 24px;
  text-align: center;
  gap: 18px;
}

.rm-welcome-icon {
  font-size: 51px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 102, 0.5));
}

.rm-welcome-title {
  font-family: 'Courier New', monospace;
  font-size: 31px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 0 0 25px rgba(0, 255, 102, 0.25);
  line-height: 1.2;
  margin: 0;
}

.rm-welcome-title span {
  color: #00ff66;
}

.rm-welcome-sub {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: rgba(0, 255, 102, 0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rm-welcome-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.rm-stat-box {
  background: rgba(0, 255, 102, 0.05);
  border: 1px solid rgba(0, 255, 102, 0.22);
  padding: 14px 20px;
  text-align: center;
  min-width: 90px;
}

.rm-stat-num {
  font-family: 'Courier New', monospace;
  font-size: 29px;
  font-weight: bold;
  color: #00ff66;
  line-height: 1;
}

.rm-stat-label {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(0, 255, 102, 0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}

.rm-welcome-hint {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(0, 255, 102, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: blink 2s step-start infinite;
}

/* Domain cert milestone card shown in left timeline after each domain */
.rm-cert-milestone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 14px 6px 18px;
  padding: 8px 10px;
  border: 1px solid;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
}

.rm-cert-ms-img {
  width: 54px;
  height: 38px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  filter: brightness(0.9) saturate(0.85);
}

.rm-cert-ms-info {
  flex: 1;
  min-width: 0;
}

.rm-cert-ms-label {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: bold;
}

.rm-cert-ms-sub {
  font-family: 'Courier New', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.45;
  margin-top: 2px;
}

/* Cert thumbnail shown at end of each sector pipeline in flow diagram */
.rm-sector-cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  flex-shrink: 0;
}

.rm-sector-cert-img {
  width: 58px;
  height: 40px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: brightness(0.88) saturate(0.8);
}

.rm-sector-cert-lbl {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.45;
}

/* Stage detail */
.rm-d-act-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 3px 12px;
  border: 1px solid;
  margin-bottom: 14px;
  opacity: 0.75;
}

.rm-d-act-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
}

.rm-d-stage-num {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rm-d-theme {
  font-family: 'Courier New', monospace;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.1;
}

.rm-d-subtitle {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.55;
}

.rm-d-type-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.rm-d-type-badge {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 3px 12px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid;
}

.rm-d-desc {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  max-width: 620px;
}

.rm-d-section {
  margin-bottom: 22px;
}

.rm-d-section-title {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(0, 255, 102, 0.7);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rm-d-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 255, 102, 0.15);
}

/* Topics */
.rm-d-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.rm-d-topic {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.rm-d-topic-arrow {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 9px;
}

/* Score */
.rm-d-score-box {
  border: 1px solid rgba(0, 255, 102, 0.2);
  background: rgba(0, 255, 102, 0.04);
  padding: 14px 18px;
}

.rm-d-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rm-d-score-label {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: rgba(0, 255, 102, 0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rm-d-score-val {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: bold;
}

.rm-d-score-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
  overflow: hidden;
}

.rm-d-score-fill {
  height: 100%;
  box-shadow: 0 0 8px currentColor;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.rm-d-score-note {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 1px;
}

/* Hero banner */
.rm-d-hero {
  position: relative;
  height: 150px;
  overflow: hidden;
  margin: -28px -32px 0;
  border-bottom: 2px solid rgba(0, 255, 102, 0.18);
  flex-shrink: 0;
}

.rm-d-hero>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(0.92);
  transition: filter 0.5s;
}

.rm-d-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(0, 0, 0, 0.09) 3px, rgba(0, 0, 0, 0.09) 4px);
}

.rm-d-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.1) 52%, rgba(0, 0, 0, 0.35) 100%);
}

.rm-d-hero-scan {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  animation: rmHeroBreathe 3s ease-in-out infinite alternate;
}

@keyframes rmHeroBreathe {
  0% {
    opacity: 0.35;
  }

  100% {
    opacity: 0.85;
  }
}

.rm-d-hero-info {
  position: absolute;
  bottom: 18px;
  left: 24px;
  z-index: 10;
}

.rm-d-hero-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.rm-d-hero-badge-pill {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 3px 10px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid;
}

.rm-d-hero-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 6;
  pointer-events: none;
  border: 2px solid;
}

.rm-d-hero-corner.tl {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.rm-d-hero-corner.br {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

/* Body wrapper */
.rm-d-body-wrap {
  padding: 20px 0 0;
}

/* Two-column layout */
.rm-d-body-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;
}

/* Objectives (numbered topics) */
.rm-d-objectives {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rm-d-obj {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rm-d-obj:hover {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
}

.rm-d-obj-num {
  font-weight: bold;
  font-size: 9px;
  letter-spacing: 1px;
  flex-shrink: 0;
  min-width: 20px;
  margin-top: 2px;
  font-family: 'Courier New', monospace;
  opacity: 0.85;
}

/* XP Gate box */
.rm-d-xp-box {
  background: rgba(0, 255, 102, 0.03);
  border: 1px solid rgba(0, 255, 102, 0.18);
  padding: 14px 16px;
}

.rm-d-xp-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.rm-d-xp-key {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0, 255, 102, 0.65);
}

.rm-d-xp-val {
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
}

.rm-d-xp-sublabel {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
}

.rm-d-xp-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
  overflow: hidden;
}

.rm-d-xp-fill {
  height: 100%;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.rm-d-xp-note {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
}

/* Unlock banner */
.rm-d-unlock {
  background: rgba(0, 255, 102, 0.05);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-left: 3px solid #00ff66;
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(0, 255, 102, 0.8);
  letter-spacing: 1px;
  line-height: 1.7;
}

/* Domain journey tracker */
.rm-d-journey-wrap {
  padding: 14px 0 14px;
  border-bottom: 1px solid rgba(0, 255, 102, 0.08);
  margin-bottom: 6px;
}

.rm-d-journey {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 3px;
}

.rm-d-journey-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rm-d-journey-node {
  width: 30px;
  height: 30px;
  border: 1.5px solid;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.3s;
}

.rm-d-journey-node svg {
  width: 13px;
  height: 13px;
}

.rm-d-journey-label {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-d-journey-arrow {
  font-size: 9px;
  flex-shrink: 0;
  margin: 0 4px;
}

/* Sector tag on hero top-left */
.rm-d-hero-sector-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  font-family: 'Courier New', monospace;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid;
  padding: 3px 10px;
}

/* Flow diagram in welcome page */
.rm-flow-wrap {
  width: 100%;
  max-width: 760px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 255, 102, 0.12);
}

.rm-flow-section-title {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(0, 255, 102, 0.45);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.rm-flow-section-title::before,
.rm-flow-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 255, 102, 0.12);
}

.rm-flow-sector {
  border: 1px solid;
  border-radius: 4px;
  margin-bottom: 6px;
  position: relative;
  background: rgba(0, 0, 0, 0.4);
}

.rm-flow-sector-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  opacity: 0.7;
  border-radius: 4px 0 0 4px;
}

.rm-flow-sector-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px 7px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
}

.rm-flow-sector-name {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: bold;
}

.rm-flow-sector-xp {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.65;
}

.rm-flow-sector-xp span {
  font-weight: bold;
  opacity: 1;
}

.rm-flow-pipeline {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 0;
}

.rm-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  border: 1.5px solid;
  border-radius: 4px;
  position: relative;
  min-width: 82px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.55s ease, background 0.55s ease;
}

.rm-flow-node.rmfn-active {
  background: rgba(255, 255, 255, 0.06);
}

.rm-fn-stage-num {
  position: absolute;
  top: -1px;
  left: -1px;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.5px;
  font-weight: bold;
  background: currentColor;
  color: #000;
  padding: 1px 5px;
  border-radius: 0 0 3px 0;
  opacity: 0.85;
}

.rm-fn-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rm-fn-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.rm-fn-type {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.55;
}

.rm-fn-pts {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.rm-fn-pop {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%) translateY(0px);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  color: #ffd700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.45s ease, transform 0.6s ease;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.rm-fn-pop.rmfp-show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.rm-fn-sol {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.35s;
  animation: rmSoldierBob 0.43s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px currentColor);
}

.rm-fn-sol.rmfs-show {
  opacity: 1;
}

.rm-flow-pipe {
  height: 2px;
  flex: 1;
  min-width: 18px;
  max-width: 38px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.rm-flow-pipe-inner {
  position: absolute;
  inset: 0;
  background-size: 12px 2px;
  background-repeat: repeat-x;
  animation: rmPipeFlow 0.55s linear infinite;
  opacity: 0.28;
  transition: opacity 0.5s;
}

.rm-flow-pipe.rmp-lit .rm-flow-pipe-inner {
  opacity: 0.95;
}

@keyframes rmPipeFlow {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 12px 0;
  }
}

.rm-flow-sector-unlock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 18px;
  margin-bottom: 4px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rm-flow-ul-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}

.rm-flow-ul-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.rm-flow-ul-line {
  width: 1px;
  height: 9px;
  background: currentColor;
  opacity: 0.25;
}

.rm-flow-ul-head {
  font-size: 10px;
  opacity: 0.45;
}

.rm-flow-ul-text {
  opacity: 0.38;
  letter-spacing: 2px;
}

.rm-flow-ul-hr {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.1;
}

.rm-flow-cert-card {
  border: 1.5px solid #ffd70044;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  transition: box-shadow 0.55s ease, background 0.55s ease;
}

.rm-flow-cert-card.rmfn-active {
  background: rgba(255, 215, 0, 0.04);
}

.rm-flow-cert-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
}

.rm-flow-cert-icon {
  flex-shrink: 0;
}

.rm-flow-cert-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.rm-flow-cert-info {
  flex: 1;
}

.rm-flow-cert-title {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffd700;
}

.rm-flow-cert-sub {
  font-family: 'Courier New', monospace;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 4px;
}

.rm-flow-cert-xp {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  color: #ffd700;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.rm-flow-cert-scan {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #ffd700, transparent);
  opacity: 0;
  animation: rmCertScan 2.8s ease-in-out infinite;
}

@keyframes rmCertScan {

  0%,
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }

  50% {
    transform: translateX(0);
    opacity: 0.55;
  }

  80% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive definitions */
@media (max-width: 860px) {
  .rm-timeline {
    width: 230px;
  }

  .rm-detail {
    padding: 20px;
  }

  .rm-d-hero {
    margin: -20px -20px 0;
    height: 200px;
  }

  .rm-d-body-grid {
    grid-template-columns: 1fr;
  }

  .rm-d-journey-node {
    width: 30px;
    height: 30px;
  }

  .rm-d-journey-label {
    font-size: 6px;
  }
}

@media (max-width: 600px) {
  .rm-body {
    flex-direction: column;
  }

  .rm-timeline {
    width: 100%;
    max-height: 140px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 255, 102, 0.12);
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 8px;
    gap: 4px;
  }

  .rm-act-header,
  .rm-act-divider {
    display: none;
  }

  .rm-stage-node {
    flex-direction: column;
    padding: 8px 10px;
    min-width: 80px;
    margin-bottom: 0;
    border-radius: 4px;
  }

  .rm-node-track {
    flex-direction: row;
    width: auto;
    padding-top: 0;
  }

  .rm-node-line {
    display: none;
  }

  .rm-node-info {
    padding: 4px 0 0;
  }

  .rm-node-theme {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .rm-d-body-grid {
    grid-template-columns: 1fr;
  }

  .rm-d-hero {
    height: 180px;
  }
}

/* FULLSCREEN SYLLABUS STYLING */
#projectWizardModal.tm-fullscreen-mode {
  padding: 0 !important;
  margin: 0 !important;
}

#projectWizardModal.tm-fullscreen-mode .tm-modal {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.rm-fullscreen-syllabus {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--tm-void);
}

/* MODERN FONT OVERRIDE FOR ROADMAP & SYLLABUS */
.rm-fullscreen-syllabus,
.rm-fullscreen-syllabus * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* SYLLABUS SCREENSHOT GALLERY SYSTEM */
.rm-d-gallery {
  margin-top: 10px;
  margin-bottom: 24px;
  width: 100%;
}

.rm-d-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.rm-d-gallery-card {
  position: relative;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rm-d-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  transition: transform 0.4s ease;
}

.rm-d-gallery-card:hover img {
  transform: scale(1.05);
}

.rm-d-gallery-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #00ff88;
  font-size: 10px;
  text-align: center;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 15;
}

.rm-d-gallery-card:hover .rm-d-gallery-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Stage Slideshow Styles */
.stage-slideshow-2,
.stage-slideshow-4,
.stage-slideshow-5,
.stage-slideshow-6 {
  position: relative;
}

.stage-slideshow-2 img,
.stage-slideshow-4 img,
.stage-slideshow-5 img,
.stage-slideshow-6 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.stage-slideshow-2 img {
  animation: fadeCycle2 6s infinite;
}

.stage-slideshow-2 img:nth-child(1) {
  animation-delay: 0s;
}

.stage-slideshow-2 img:nth-child(2) {
  animation-delay: 3s;
}

.stage-slideshow-4 img {
  animation: fadeCycle4 12s infinite;
}

.stage-slideshow-4 img:nth-child(1) {
  animation-delay: 0s;
}

.stage-slideshow-4 img:nth-child(2) {
  animation-delay: 3s;
}

.stage-slideshow-4 img:nth-child(3) {
  animation-delay: 6s;
}

.stage-slideshow-4 img:nth-child(4) {
  animation-delay: 9s;
}

.stage-slideshow-5 img {
  animation: fadeCycle5 15s infinite;
}

.stage-slideshow-5 img:nth-child(1) {
  animation-delay: 0s;
}

.stage-slideshow-5 img:nth-child(2) {
  animation-delay: 3s;
}

.stage-slideshow-5 img:nth-child(3) {
  animation-delay: 6s;
}

.stage-slideshow-5 img:nth-child(4) {
  animation-delay: 9s;
}

.stage-slideshow-5 img:nth-child(5) {
  animation-delay: 12s;
}

.stage-slideshow-6 img {
  animation: fadeCycle6 18s infinite;
}

.stage-slideshow-6 img:nth-child(1) {
  animation-delay: 0s;
}

.stage-slideshow-6 img:nth-child(2) {
  animation-delay: 3s;
}

.stage-slideshow-6 img:nth-child(3) {
  animation-delay: 6s;
}

.stage-slideshow-6 img:nth-child(4) {
  animation-delay: 9s;
}

.stage-slideshow-6 img:nth-child(5) {
  animation-delay: 12s;
}

.stage-slideshow-6 img:nth-child(6) {
  animation-delay: 15s;
}

@keyframes fadeCycle2 {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  65% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeCycle4 {
  0% {
    opacity: 0;
  }

  7.5% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  32.5% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeCycle5 {
  0% {
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  20% {
    opacity: 1;
  }

  26% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeCycle6 {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  16.66% {
    opacity: 1;
  }

  21.66% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}