/* ==========================================================================
   ATV MEDIA - ROADMAP SNAP SCROLL CINEMATIC STYLES
   ========================================================================== */

/* 1. Snap Sections Container (Desktop >= 992px) */
@media (min-width: 992px) {
  html.has-roadmap-snap,
  body.has-roadmap-snap,
  body.page-roadmap {
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .roadmap-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-synthesis: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .roadmap-snap-section {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 72px 0 52px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .roadmap-snap-section > .container-fluid,
  .roadmap-snap-section > .container {
    max-height: calc(100vh - 124px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1440px;
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .roadmap-snap-section {
    padding: 50px 0;
    min-height: auto;
    display: block;
    height: auto;
    overflow: visible;
    position: relative;
  }
}

/* 2. Floating Navigation Dots (Desktop Right Edge) */
.roadmap-snap-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(18, 21, 19, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 8px;
  border-radius: 24px;
  border: 1px solid rgba(57, 181, 74, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .roadmap-snap-dots {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 104, 55, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.roadmap-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(120, 140, 125, 0.45);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.roadmap-dot:hover {
  background: var(--atv-primary);
  transform: scale(1.25);
}

.roadmap-dot.active {
  background: var(--atv-primary);
  transform: scale(1.35);
  box-shadow: 0 0 12px var(--atv-primary-glow);
}

.roadmap-dot .roadmap-tooltip {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .roadmap-dot .roadmap-tooltip {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.roadmap-dot:hover .roadmap-tooltip {
  opacity: 1;
  visibility: visible;
  right: 30px;
}

/* 3. Top & Bottom Center Chevron Navigation Buttons (Delayed Entrance on Active) */
.roadmap-chevron-top {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--color-main);
  border: 1px solid rgba(57, 181, 74, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.roadmap-chevron-bottom {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--color-main);
  border: 1px solid rgba(57, 181, 74, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.roadmap-snap-section.is-active .roadmap-chevron-top {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.45s;
}

.roadmap-snap-section.is-active .roadmap-chevron-bottom {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.45s;
  animation: roadmapBounce 2.4s infinite ease-in-out 0.5s;
}

html[data-theme="dark"] .roadmap-chevron-top,
html[data-theme="dark"] .roadmap-chevron-bottom {
  background: rgba(26, 32, 28, 0.95);
  border-color: rgba(74, 222, 128, 0.45);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.roadmap-chevron-top:hover,
.roadmap-chevron-bottom:hover {
  background: var(--atv-primary) !important;
  color: #ffffff !important;
  border-color: var(--atv-primary) !important;
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(57, 181, 74, 0.45);
  animation: none;
}

@keyframes roadmapBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-6px);
  }
  60% {
    transform: translateX(-50%) translateY(-3px);
  }
}

/* 4. Full-Bleed Image Showcase With Fade to Left (No Border, No Watermark Number) */
.roadmap-step-hero-visual {
  position: relative;
  width: 100%;
  height: clamp(380px, 58vh, 520px);
  overflow: hidden;
  border-radius: 24px;
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  /* Cinematic mask: Smoothly fade out to transparent on the left edge */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 8%, rgba(0, 0, 0, 0.8) 28%, #000 50%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 8%, rgba(0, 0, 0, 0.8) 28%, #000 50%);
}

.roadmap-step-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-step-hero-visual:hover img {
  transform: scale(1.05);
}

/* Image Bottom Glass Overlay Caption - Aligned Right as requested */
.roadmap-image-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 12, 0.65) 30%, rgba(10, 15, 12, 0.92) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* ==========================================================================
   SEMANTIC CUSTOM CSS FOR ROADMAP HERO (LEFT CONTENT)
   ========================================================================== */
.roadmap-hero-tagline {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  background: rgba(57, 181, 74, 0.12);
  border: 1px solid rgba(57, 181, 74, 0.28);
}

.roadmap-tagline-icon {
  color: var(--atv-primary);
  margin-right: 8px;
  flex-shrink: 0;
}

.roadmap-tagline-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--atv-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roadmap-hero-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--color-main);
}

.roadmap-hero-desc {
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 22px;
  line-height: 1.6;
}

.roadmap-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.roadmap-overview-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(57, 181, 74, 0.1);
  color: var(--atv-primary);
  border: 1px solid rgba(57, 181, 74, 0.22);
  transition: all 0.2s ease;
}

.roadmap-overview-badge:hover {
  background: rgba(57, 181, 74, 0.16);
  border-color: rgba(57, 181, 74, 0.38);
  transform: translateY(-1px);
}

.roadmap-badge-icon {
  color: var(--atv-primary);
  margin-right: 8px;
  flex-shrink: 0;
}

.roadmap-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.roadmap-hero-btn {
  padding: 10px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.roadmap-btn-icon {
  margin-right: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   SEMANTIC CUSTOM CSS FOR 6-MILESTONE INTERACTIVE PIPELINE (HERO OVERVIEW)
   ========================================================================== */
.roadmap-pipeline-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(57, 181, 74, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .roadmap-pipeline-card {
  background: rgba(24, 29, 26, 0.92);
  border-color: rgba(57, 181, 74, 0.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.roadmap-pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .roadmap-pipeline-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.roadmap-pipeline-title-group {
  display: flex;
  align-items: center;
}

.roadmap-pipeline-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(57, 181, 74, 0.14);
  border: 1px solid rgba(57, 181, 74, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.roadmap-icon-primary {
  color: var(--atv-primary);
}

.roadmap-pipeline-heading {
  font-size: 0.96rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-main);
  margin: 0;
}

.roadmap-pipeline-subheading {
  font-size: 0.74rem;
  color: var(--color-muted);
  display: block;
  margin-top: 2px;
}

.roadmap-pipeline-time-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(57, 181, 74, 0.1);
  color: var(--atv-primary);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.roadmap-pipeline-time-icon {
  color: var(--atv-primary);
  margin-right: 6px;
  flex-shrink: 0;
}

/* ==========================================================================
   SEMANTIC CUSTOM CSS FOR BAMBOO-SPINE 6-SEGMENT TIMELINE (HERO OVERVIEW)
   (Thanh xiên giữa + 6 đốt tre cao vừa vặn + Box kéo sát trục, hover nhớm ra ngoài)
   ========================================================================== */
.roadmap-bamboo-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(57, 181, 74, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .roadmap-bamboo-card {
  background: rgba(22, 26, 23, 0.96);
  border-color: rgba(57, 181, 74, 0.28);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

:root {
  --bamboo-base-tone: rgba(57, 181, 74, 0.18);
  --bamboo-bubble-bg: rgba(255, 255, 255, 0.75);
  --bamboo-bubble-border: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] {
  --bamboo-base-tone: rgba(74, 222, 128, 0.14);
  --bamboo-bubble-bg: rgba(28, 33, 29, 0.88);
  --bamboo-bubble-border: rgba(255, 255, 255, 0.08);
}

.roadmap-bamboo-container {
  position: relative;
  margin: 10px 0 6px;
  padding: 18px 0;
}

/* Central Bamboo Skewer (Đồng màu tuyệt đối với các đốt, tạo thành 1 khối liền mạch) */
.roadmap-bamboo-skewer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5px;
  background: var(--bamboo-base-tone);
  border-radius: 4px;
  box-shadow: none;
  z-index: 1;
}

/* 6 Bamboo Rows */
.roadmap-bamboo-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.roadmap-bamboo-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
}

/* Central Bamboo Knuckle Node (Màu đồng nhất với trục, liền 1 khối, không scale ngang khi hover) */
.roadmap-bamboo-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  border-radius: 4px;
  background: var(--bamboo-base-tone);
  border: 1px solid var(--bamboo-base-tone);
  box-shadow: none;
  transition: background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  z-index: 3;
  cursor: pointer;
}

/* When card/row or node is hovered: Node turns active green without horizontal scale */
.roadmap-bamboo-row:hover .roadmap-bamboo-seg,
.roadmap-bamboo-seg:hover,
.roadmap-bamboo-seg.is-active {
  transform: translateX(-50%) !important;
  background: var(--atv-primary) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 14px rgba(57, 181, 74, 0.9), 0 0 4px #ffffff !important;
}

/* Chat Bubble (Giữ nguyên kích thước compact 245px, nhích ra với calc(52%)) */
.roadmap-bamboo-bubble {
  position: relative;
  width: 245px;
  max-width: calc(48% - 14px);
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bamboo-bubble-bg);
  border: 1px solid var(--bamboo-bubble-border);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease,
              background 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Left vs Right Placement: nhích ra với calc(52% + 14px) */
.bamboo-side-left {
  justify-content: flex-start;
}

.bamboo-side-left .roadmap-bamboo-bubble {
  margin-left: auto;
  margin-right: calc(52% + 14px);
}

.bamboo-side-right {
  justify-content: flex-end;
}

.bamboo-side-right .roadmap-bamboo-bubble {
  margin-left: calc(52% + 14px);
  margin-right: auto;
}

/* Chat Bubble Pointer Tails pointing to center */
.bamboo-side-left .roadmap-bamboo-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(0, 0, 0, 0.1);
  transition: border-left-color 0.25s ease;
}

html[data-theme="dark"] .bamboo-side-left .roadmap-bamboo-bubble::after {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.bamboo-side-right .roadmap-bamboo-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid rgba(0, 0, 0, 0.1);
  transition: border-right-color 0.25s ease;
}

html[data-theme="dark"] .bamboo-side-right .roadmap-bamboo-bubble::after {
  border-right-color: rgba(255, 255, 255, 0.12);
}

/* Hover Interaction: Box Info nhớm ra ngoài khi hover chuột */
.bamboo-side-left .roadmap-bamboo-bubble:hover {
  transform: translateX(-8px) scale(1.03);
  border-color: var(--atv-primary);
  background: rgba(57, 181, 74, 0.1);
  box-shadow: 0 8px 22px rgba(57, 181, 74, 0.2);
  z-index: 10;
}

.bamboo-side-left .roadmap-bamboo-bubble:hover::after {
  border-left-color: var(--atv-primary);
}

.bamboo-side-right .roadmap-bamboo-bubble:hover {
  transform: translateX(8px) scale(1.03);
  border-color: var(--atv-primary);
  background: rgba(57, 181, 74, 0.1);
  box-shadow: 0 8px 22px rgba(57, 181, 74, 0.2);
  z-index: 10;
}

.bamboo-side-right .roadmap-bamboo-bubble:hover::after {
  border-right-color: var(--atv-primary);
}

/* ==========================================================================
   AUTO TRIGGER (THAY CHO HOVER CỦA CHUỘT): NHÁY TRONG 2S RỒI NGHỈ 10S
   (Lần lượt từng bước sáng đốt + nhớm box info ra ngoài y hệt hover chuột)
   ========================================================================== */
@keyframes bambooFlashWaveNode {
  0% {
    background: var(--bamboo-base-tone);
    border-color: var(--bamboo-base-tone);
    box-shadow: none;
  }
  1.5%, 3% {
    background: var(--atv-primary) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 14px rgba(57, 181, 74, 0.9), 0 0 4px #ffffff !important;
  }
  4.5%, 100% {
    background: var(--bamboo-base-tone);
    border-color: var(--bamboo-base-tone);
    box-shadow: none;
  }
}

/* Auto wave for Left Bubbles: Nhóm sang trái y hệt hover */
@keyframes bambooFlashWaveBubbleLeft {
  0% {
    transform: translateX(0) scale(1);
    border-color: var(--bamboo-bubble-border);
    background: var(--bamboo-bubble-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }
  1.5%, 3% {
    transform: translateX(-8px) scale(1.03);
    border-color: var(--atv-primary);
    background: rgba(57, 181, 74, 0.1);
    box-shadow: 0 8px 22px rgba(57, 181, 74, 0.2);
  }
  4.5%, 100% {
    transform: translateX(0) scale(1);
    border-color: var(--bamboo-bubble-border);
    background: var(--bamboo-bubble-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }
}

/* Auto wave for Right Bubbles: Nhớm sang phải y hệt hover */
@keyframes bambooFlashWaveBubbleRight {
  0% {
    transform: translateX(0) scale(1);
    border-color: var(--bamboo-bubble-border);
    background: var(--bamboo-bubble-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }
  1.5%, 3% {
    transform: translateX(8px) scale(1.03);
    border-color: var(--atv-primary);
    background: rgba(57, 181, 74, 0.1);
    box-shadow: 0 8px 22px rgba(57, 181, 74, 0.2);
  }
  4.5%, 100% {
    transform: translateX(0) scale(1);
    border-color: var(--bamboo-bubble-border);
    background: var(--bamboo-bubble-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }
}

/* Stagger 6 steps: Trigger tuần tự trong 2s, sau đó nghỉ 10s (Tổng chu kỳ 12s) */
.roadmap-bamboo-row:nth-child(1) .roadmap-bamboo-seg { animation: bambooFlashWaveNode 12s infinite ease-in-out 0s; }
.roadmap-bamboo-row:nth-child(1) .roadmap-bamboo-bubble { animation: bambooFlashWaveBubbleLeft 12s infinite cubic-bezier(0.34, 1.56, 0.64, 1) 0s; }

.roadmap-bamboo-row:nth-child(2) .roadmap-bamboo-seg { animation: bambooFlashWaveNode 12s infinite ease-in-out 0.33s; }
.roadmap-bamboo-row:nth-child(2) .roadmap-bamboo-bubble { animation: bambooFlashWaveBubbleRight 12s infinite cubic-bezier(0.34, 1.56, 0.64, 1) 0.33s; }

.roadmap-bamboo-row:nth-child(3) .roadmap-bamboo-seg { animation: bambooFlashWaveNode 12s infinite ease-in-out 0.66s; }
.roadmap-bamboo-row:nth-child(3) .roadmap-bamboo-bubble { animation: bambooFlashWaveBubbleLeft 12s infinite cubic-bezier(0.34, 1.56, 0.64, 1) 0.66s; }

.roadmap-bamboo-row:nth-child(4) .roadmap-bamboo-seg { animation: bambooFlashWaveNode 12s infinite ease-in-out 1.0s; }
.roadmap-bamboo-row:nth-child(4) .roadmap-bamboo-bubble { animation: bambooFlashWaveBubbleRight 12s infinite cubic-bezier(0.34, 1.56, 0.64, 1) 1.0s; }

.roadmap-bamboo-row:nth-child(5) .roadmap-bamboo-seg { animation: bambooFlashWaveNode 12s infinite ease-in-out 1.33s; }
.roadmap-bamboo-row:nth-child(5) .roadmap-bamboo-bubble { animation: bambooFlashWaveBubbleLeft 12s infinite cubic-bezier(0.34, 1.56, 0.64, 1) 1.33s; }

.roadmap-bamboo-row:nth-child(6) .roadmap-bamboo-seg { animation: bambooFlashWaveNode 12s infinite ease-in-out 1.66s; }
.roadmap-bamboo-row:nth-child(6) .roadmap-bamboo-bubble { animation: bambooFlashWaveBubbleRight 12s infinite cubic-bezier(0.34, 1.56, 0.64, 1) 1.66s; }

/* When user hovers over the bamboo card, pause auto loop so manual hover takes full control */
.roadmap-bamboo-card:hover .roadmap-bamboo-seg,
.roadmap-bamboo-card:hover .roadmap-bamboo-bubble {
  animation: none !important;
}

/* Bubble Content Elements (Không còn tag thừa bên phải số bước) */
.roadmap-bubble-header {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.roadmap-bubble-step-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--atv-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.roadmap-bubble-body {
  display: flex;
  align-items: center;
}

.roadmap-bubble-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(57, 181, 74, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.roadmap-bubble-icon {
  color: var(--atv-primary);
  flex-shrink: 0;
}

.roadmap-bubble-content {
  min-width: 0;
  flex: 1;
}

.roadmap-bubble-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roadmap-bubble-tag {
  font-size: 0.7rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  font-weight: 500;
}

/* Mobile Responsive (< 768px): Skewer & nodes align left, bubbles nudge right on hover */
@media (max-width: 767.98px) {
  .roadmap-bamboo-skewer {
    left: 12px;
    transform: none;
    width: 3px;
  }

  .roadmap-bamboo-seg {
    left: 12px;
    transform: translate(-50%, -50%);
    width: 0.55rem;
    height: 20px;
  }

  .roadmap-bamboo-row:hover .roadmap-bamboo-seg,
  .roadmap-bamboo-seg.is-active {
    transform: translate(-50%, -50%) scale(1.6, 1.1) !important;
  }

  .roadmap-bamboo-row {
    justify-content: flex-end;
  }

  .roadmap-bamboo-bubble {
    width: calc(100% - 30px);
    max-width: none;
    margin-left: auto;
    margin-right: 0 !important;
  }

  .bamboo-side-left .roadmap-bamboo-bubble::after,
  .bamboo-side-right .roadmap-bamboo-bubble::after {
    left: -7px !important;
    right: auto !important;
    border-left: none !important;
    border-right: 7px solid rgba(0, 0, 0, 0.1) !important;
  }

  html[data-theme="dark"] .bamboo-side-left .roadmap-bamboo-bubble::after,
  html[data-theme="dark"] .bamboo-side-right .roadmap-bamboo-bubble::after {
    border-right-color: rgba(255, 255, 255, 0.12) !important;
  }

  .bamboo-side-left .roadmap-bamboo-bubble:hover,
  .bamboo-side-right .roadmap-bamboo-bubble:hover {
    transform: translateX(4px) scale(1.02);
  }

  .roadmap-bamboo-bubble:hover::after {
    border-right-color: var(--atv-primary) !important;
  }
}

.roadmap-pipeline-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--color-muted);
}

html[data-theme="light"] .roadmap-pipeline-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.roadmap-pipeline-nda {
  display: inline-flex;
  align-items: center;
}

.roadmap-nda-icon {
  color: var(--atv-primary);
  margin-right: 8px;
  flex-shrink: 0;
}

.roadmap-pipeline-hint {
  color: var(--atv-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.roadmap-hint-icon {
  margin-left: 4px;
  flex-shrink: 0;
}

/* ==========================================================================
   ARTISTIC SUBMERGED WATERMARK NUMBER IN MIDDLE OF STEP LAYOUT
   (Full solid glyph fill, permanent static background depth, no fade animation)
   ========================================================================== */
.roadmap-step-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(140px, 22vw, 290px);
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -6px;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  color: rgba(0, 0, 0, 0.028);
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
  will-change: auto;
}

html[data-theme="dark"] .roadmap-step-watermark {
  color: rgba(255, 255, 255, 0.028);
}

html[data-theme="light"] .roadmap-step-watermark {
  color: rgba(0, 0, 0, 0.028);
}

@media (max-width: 767.98px) {
  .roadmap-step-watermark {
    font-size: 110px;
    opacity: 0.6 !important;
  }
}

/* ==========================================================================
   SEMANTIC CUSTOM CSS FOR STEP DETAILS & DELIVERABLES PANEL
   ========================================================================== */
.roadmap-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.roadmap-step-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-main);
  margin-bottom: 14px;
  line-height: 1.25;
}

.roadmap-step-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.roadmap-del-container {
  margin-bottom: 16px;
}

.roadmap-deliverables-panel {
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(57, 181, 74, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-theme="dark"] .roadmap-deliverables-panel {
  background: rgba(28, 33, 30, 0.6);
  border-color: rgba(57, 181, 74, 0.25);
}

.roadmap-del-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .roadmap-del-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.roadmap-del-header-title {
  display: flex;
  align-items: center;
}

.roadmap-del-header-icon {
  color: var(--atv-primary);
  margin-right: 10px;
  flex-shrink: 0;
}

.roadmap-del-heading {
  font-weight: 700;
  color: var(--color-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.82rem;
}

.roadmap-del-count-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(57, 181, 74, 0.1);
  color: var(--atv-primary);
  white-space: nowrap;
}

.roadmap-del-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.roadmap-del-card {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.22s ease;
  min-height: 48px;
}

html[data-theme="dark"] .roadmap-del-card {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}

.roadmap-del-card:hover {
  background: rgba(57, 181, 74, 0.08);
  border-color: rgba(57, 181, 74, 0.35);
  transform: translateX(3px);
}

.roadmap-del-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(57, 181, 74, 0.14);
  border: 1px solid rgba(57, 181, 74, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
  transition: transform 0.2s ease;
}

.roadmap-del-card:hover .roadmap-del-icon-box {
  transform: scale(1.1);
  background: rgba(57, 181, 74, 0.22);
}

.roadmap-del-icon {
  color: var(--atv-primary);
  flex-shrink: 0;
}

.roadmap-del-text {
  font-size: 0.83rem;
  line-height: 1.35;
  color: var(--color-main);
  font-weight: 500;
}

.roadmap-benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.roadmap-benefit-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(57, 181, 74, 0.1);
  color: var(--atv-primary);
  border: 1px solid rgba(57, 181, 74, 0.25);
  font-size: 0.79rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 50px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.roadmap-benefit-pill:hover {
  background: rgba(57, 181, 74, 0.18);
  border-color: rgba(57, 181, 74, 0.4);
  transform: translateY(-1px);
}

.roadmap-benefit-icon {
  color: var(--atv-primary);
  margin-right: 8px;
  flex-shrink: 0;
}

.roadmap-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.roadmap-step-cta,
.roadmap-step-call {
  padding: 10px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

/* ==========================================================================
   SEMANTIC CUSTOM CSS FOR FINAL CTA CARD (SANG TRỌNG, TƯƠNG PHẢN TỐI)
   ========================================================================== */
.roadmap-final-cta-card {
  padding: 56px 40px 42px;
  border-radius: 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="dark"] .roadmap-final-cta-card {
  background: #121613;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.roadmap-final-cta-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 50% 30%, rgba(57, 181, 74, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.roadmap-final-cta-card > * {
  position: relative;
  z-index: 1;
}

.roadmap-cta-tagline {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .roadmap-cta-tagline {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.roadmap-cta-tagline-icon {
  color: var(--atv-primary);
  margin-right: 8px;
  flex-shrink: 0;
  animation: pulse-rocket 2.4s infinite ease-in-out;
}

@keyframes pulse-rocket {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.roadmap-cta-tagline-text {
  color: var(--color-main);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Crisp high-contrast heading with focused accent */
.roadmap-cta-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-main);
  margin-bottom: 18px;
  line-height: 1.25;
}

html[data-theme="dark"] .roadmap-cta-heading {
  color: #ffffff;
}

.roadmap-cta-highlight {
  color: var(--atv-primary);
  position: relative;
}

.roadmap-cta-desc {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto 28px;
}

html[data-theme="dark"] .roadmap-cta-desc {
  color: rgba(255, 255, 255, 0.72);
}

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

.roadmap-cta-btn {
  padding: 13px 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.roadmap-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.roadmap-cta-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(57, 181, 74, 0.35);
}

/* Trust Guarantees Micro-Bar */
.roadmap-cta-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--color-muted);
}

html[data-theme="light"] .roadmap-cta-trust-bar {
  border-top-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .roadmap-cta-trust-bar {
  color: rgba(255, 255, 255, 0.6);
}

.roadmap-cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.roadmap-trust-icon {
  color: var(--atv-primary);
  flex-shrink: 0;
}

.roadmap-cta-trust-dot {
  opacity: 0.35;
}

/* Staggered Entrance & Exit Animations */
@media (min-width: 992px) {
  .roadmap-snap-section .roadmap-anim-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  .roadmap-snap-section.is-active .roadmap-anim-item {
    opacity: 1;
    transform: translateY(0);
  }

  .roadmap-snap-section .anim-delay-1 { transition-delay: 0.06s; }
  .roadmap-snap-section .anim-delay-2 { transition-delay: 0.15s; }
  .roadmap-snap-section .anim-delay-3 { transition-delay: 0.24s; }
  .roadmap-snap-section .anim-delay-4 { transition-delay: 0.33s; }
  .roadmap-snap-section .anim-delay-5 { transition-delay: 0.42s; }
  .roadmap-snap-section .anim-delay-6 { transition-delay: 0.51s; }

  /* Image Visual Stagger Animation */
  .roadmap-snap-section .roadmap-anim-img {
    opacity: 0;
    transform: translateX(30px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
    will-change: opacity, transform;
  }

  .roadmap-snap-section.is-active .roadmap-anim-img {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Refined Header Badges */
.roadmap-badge-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(57, 181, 74, 0.15);
  color: var(--atv-primary);
  border: 1px solid rgba(57, 181, 74, 0.3);
}

.roadmap-badge-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-muted);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .roadmap-badge-category {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

