/* ========================================================
   BLOCK 04: ONBOARDING STEPS (ORLOV BASE)
   Ultra-Premium Agency Interactive Snake Experience
   Scoped strictly under .ob-steps / #block-steps
   ======================================================== */

.ob-steps {
  position: relative;
  z-index: 20;
  background-color: var(--color-bg, #eae6dd);
  padding: 7rem 3.5rem 9rem 3.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 860px) {
  .ob-steps {
    padding: 4.5rem 1.25rem 6rem 1.25rem;
  }
}

.ob-steps .sheet-container,
.ob-steps .ob-steps__container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* ========================================================
   ATMOSPHERIC AMBIENT GLOWS
   ======================================================== */
.ob-steps__bg-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
  filter: blur(80px);
}

.ob-steps__bg-glow--top {
  top: 10%;
  left: 20%;
  width: 600px;
  height: 450px;
  background: radial-gradient(circle, rgba(45, 196, 107, 0.08) 0%, rgba(234, 230, 221, 0) 70%);
}

.ob-steps__bg-glow--bottom {
  bottom: 10%;
  right: 15%;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 196, 107, 0.06) 0%, rgba(234, 230, 221, 0) 70%);
}

/* ========================================================
   SECTION HEADER
   ======================================================== */
.ob-steps .sheet-header,
.ob-steps .ob-steps__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ob-steps .sheet-tag,
.ob-steps .ob-steps__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b4843;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 16px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.ob-steps .sheet-tag-dot,
.ob-steps .ob-steps__tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent, #2dc46b);
  box-shadow: 0 0 8px rgba(45, 196, 107, 0.6);
}

.ob-steps .sheet-title,
.ob-steps .ob-steps__title {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

.ob-steps .sheet-subtitle,
.ob-steps .ob-steps__subtitle {
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.55;
  color: #4a4742;
  max-width: 760px;
  margin: 0;
}

/* ========================================================
   SNAKE CONTAINER & MULTI-LAYER SVG
   ======================================================== */
.ob-steps__snake-wrap {
  position: relative;
  margin-top: 5rem;
  width: 100%;
}

.ob-steps__snake-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* 1. Глибока тінь під треком */
.ob-steps__snake-shadow-track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.05);
  stroke-width: 26px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 2. Зовнішній обід рейки */
.ob-steps__snake-bg-outer {
  fill: none;
  stroke: #d5cfbf;
  stroke-width: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

/* Внутрішній жолоб */
.ob-steps__snake-bg-inner {
  fill: none;
  stroke: var(--color-bg, #eae6dd);
  stroke-width: 14px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Тонка архітектурна осьова лінія */
.ob-steps__snake-bg-guide {
  fill: none;
  stroke: rgba(0, 0, 0, 0.15);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 8;
}

/* 3. Основна активна смарагдова змійка */
.ob-steps__snake-fill {
  fill: none;
  stroke: url(#ob-snake-grad);
  stroke-width: 15px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  will-change: stroke-dashoffset;
}

/* 4. Спекулярний глянцевий відблиск по лінії */
.ob-steps__snake-sheen {
  fill: none;
  stroke: url(#ob-snake-highlight);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  will-change: stroke-dashoffset;
}

/* 5. Голівка-комета зі світловим ядром */
.ob-steps__snake-head-group {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ob-steps__snake-head-group.is-visible {
  opacity: 1;
}

.ob-steps__snake-head-aura {
  fill: var(--color-accent, #2dc46b);
  opacity: 0.35;
  filter: blur(6px);
}

.ob-steps__snake-head-pulse {
  fill: var(--color-accent, #2dc46b);
  stroke: #ffffff;
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 10px rgba(45, 196, 107, 0.85));
}

.ob-steps__snake-head-core {
  fill: #ffffff;
}

/* ========================================================
   TIMELINE NODES
   ======================================================== */
.ob-steps__timeline {
  display: flex;
  flex-direction: column;
  gap: 6.5rem;
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.ob-steps__node {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Шаховий порядок на десктопі */
.ob-steps__node--left {
  justify-content: flex-start;
  padding-left: 4%;
}

.ob-steps__node--right {
  justify-content: flex-end;
  padding-right: 4%;
}

/* ========================================================
   HARDWARE DIAL CHECKPOINTS (01, 02, 03)
   ======================================================== */
.ob-steps__checkpoint {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05), inset 0 2px 4px rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ob-steps__checkpoint-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ob-steps__checkpoint-num {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #7b756c;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.ob-steps__checkpoint-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  margin-top: 3px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Пульсуючі радари */
.ob-steps__checkpoint-pulse {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid var(--color-accent, #2dc46b);
  opacity: 0;
  pointer-events: none;
}

.ob-steps__checkpoint-pulse--delayed {
  animation-delay: 0.9s;
}

/* АКТИВНИЙ СТАН ЧЕКПОЇНТА */
.ob-steps__node.is-active .ob-steps__checkpoint,
.ob-steps__node.is-passed .ob-steps__checkpoint {
  background: #090c0a;
  border-color: var(--color-accent, #2dc46b);
  box-shadow: 0 0 0 3px rgba(45, 196, 107, 0.4),
              0 0 32px rgba(45, 196, 107, 0.55),
              0 14px 30px rgba(0, 0, 0, 0.25);
  transform: scale(1.1);
}

.ob-steps__node.is-active .ob-steps__checkpoint-num,
.ob-steps__node.is-passed .ob-steps__checkpoint-num {
  color: #ffffff;
}

.ob-steps__node.is-active .ob-steps__checkpoint-dot,
.ob-steps__node.is-passed .ob-steps__checkpoint-dot {
  background: var(--color-accent, #2dc46b);
  box-shadow: 0 0 6px var(--color-accent, #2dc46b);
}

.ob-steps__node.is-active .ob-steps__checkpoint-pulse {
  animation: obSnakeRadar 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes obSnakeRadar {
  0% {
    transform: scale(0.9);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ========================================================
   TETHER CONNECTOR (ЛІНІЯ ЗВ'ЯЗКУ МІЖ ЧЕКПОЇНТОМ І КАРТКОЮ)
   ======================================================== */
.ob-steps__tether {
  width: 44px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0.15) 0 4px, transparent 4px 8px);
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ob-steps__tether::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -3px;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.ob-steps__tether--right::after {
  right: auto;
  left: -3px;
}

.ob-steps__node.is-active .ob-steps__tether {
  background: repeating-linear-gradient(90deg, rgba(45, 196, 107, 0.5) 0 4px, transparent 4px 8px);
}

.ob-steps__node.is-active .ob-steps__tether::after {
  background: var(--color-accent, #2dc46b);
  box-shadow: 0 0 6px var(--color-accent, #2dc46b);
}

/* ========================================================
   HIGH-CRAFT GLASS CARDS
   ======================================================== */
.ob-steps__card {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.6rem;
  padding: 2.4rem 2.6rem;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02),
              0 24px 48px -12px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.ob-steps__card-glass-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.ob-steps__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.04),
              0 32px 64px -12px rgba(0, 0, 0, 0.08);
}

/* Активна картка */
.ob-steps__node.is-active .ob-steps__card {
  border-color: rgba(45, 196, 107, 0.45);
  box-shadow: 0 14px 28px -4px rgba(45, 196, 107, 0.08),
              0 36px 70px -12px rgba(45, 196, 107, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-5px);
}

.ob-steps__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.ob-steps__pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ob-steps__badge {
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  background: #ede8dc;
  padding: 4px 12px;
  border-radius: 9999px;
}

.ob-steps__hint {
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: #7b756c;
}

.ob-steps__status-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: #555555;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 10px;
  border-radius: 9999px;
}

.ob-steps__status-flag--accent {
  color: #127a3c;
  background: rgba(45, 196, 107, 0.12);
}

.ob-steps__status-flag--pro {
  color: #000000;
  background: #f0ece1;
}

.ob-steps__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888888;
}

.ob-steps__live-dot--accent {
  background: var(--color-accent, #2dc46b);
  box-shadow: 0 0 6px var(--color-accent, #2dc46b);
}

.ob-steps__live-dot--pro {
  background: #000000;
}

.ob-steps__card-title {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #000000;
  line-height: 1.15;
  margin: 0 0 0.85rem 0;
}

.ob-steps__card-desc {
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: 1.04rem;
  color: #55514a;
  line-height: 1.55;
  margin: 0 0 1.5rem 0;
}

/* ========================================================
   MICRO-UI COMPONENTS INSIDE CARDS
   ======================================================== */
.ob-steps__micro-ui {
  background: rgba(246, 244, 239, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.1rem;
  padding: 1.1rem 1.25rem;
}

/* Step 01: Payment chips */
.ob-steps__pay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ob-steps__pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: #333333;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.ob-steps__pay-chip--dark {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.ob-steps__pay-chip--crypto {
  background: rgba(45, 196, 107, 0.12);
  border-color: rgba(45, 196, 107, 0.28);
  color: #12793c;
  font-weight: 700;
}

.ob-steps__crypto-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent, #2dc46b);
}

.ob-steps__trust-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: 0.76rem;
  font-weight: 500;
  color: #6e6960;
}

/* Step 02: Telegram Invite Ticket */
.ob-steps__tg-ticket {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f1412;
  border: 1px solid rgba(45, 196, 107, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
}

.ob-steps__tg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent, #2dc46b);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ob-steps__tg-info {
  flex: 1;
  min-width: 0;
}

.ob-steps__tg-title {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.ob-steps__tg-sub {
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: 0.74rem;
  color: #9ba69f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ob-steps__tg-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-accent, #2dc46b);
  color: #000000;
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Step 03: PRO Dashboard unlock */
.ob-steps__pro-dashboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-steps__pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  color: var(--color-accent, #2dc46b);
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 6px;
  width: fit-content;
}

.ob-steps__pro-star {
  font-size: 0.9rem;
}

.ob-steps__pro-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-body, 'Onest', sans-serif);
  font-size: 0.82rem;
  color: #3b3833;
  font-weight: 600;
}

.ob-steps__pro-check {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   AGENCY RIBBON (З РЕФЕРЕНСУ З ШТРИХОВКОЮ ///)
   ======================================================== */
.ob-steps__ribbon-container {
  display: flex;
  justify-content: flex-end;
  padding-right: 12%;
  margin: -3.5rem 0 -2.5rem 0;
  pointer-events: none;
  position: relative;
  z-index: 3;
}

.ob-steps__ribbon-body {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #090c0a;
  color: var(--color-accent, #2dc46b);
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: 9999px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: rotate(3.2deg) skewX(-2deg);
  border: 1px solid rgba(45, 196, 107, 0.4);
  white-space: nowrap;
}

.ob-steps__ribbon-stripes {
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  font-weight: 900;
}

/* ========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ======================================================== */
@media (max-width: 960px) {
  .ob-steps__timeline {
    gap: 4.5rem;
    padding: 1rem 0;
  }

  .ob-steps__node,
  .ob-steps__node--left,
  .ob-steps__node--right {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0;
    gap: 1.25rem;
  }

  /* На мобільному в node--right чекпоїнт стає першим зліва */
  .ob-steps__node--right .ob-steps__checkpoint {
    order: 1;
  }

  .ob-steps__node--right .ob-steps__tether {
    order: 2;
  }

  .ob-steps__node--right .ob-steps__card {
    order: 3;
  }

  .ob-steps__tether {
    width: 20px;
  }

  .ob-steps__checkpoint {
    width: 58px;
    height: 58px;
  }

  .ob-steps__checkpoint-num {
    font-size: 1.45rem;
  }

  .ob-steps__card {
    padding: 1.8rem 1.6rem;
    border-radius: 1.35rem;
    max-width: none;
    flex: 1;
  }

  .ob-steps__card-title {
    font-size: 1.4rem;
  }

  .ob-steps__ribbon-container {
    justify-content: center;
    padding: 0;
    margin: -1.5rem 0 -0.5rem 0;
  }

  .ob-steps__ribbon-body {
    font-size: 0.74rem;
    padding: 7px 18px;
    transform: rotate(0deg);
  }

  .ob-steps__snake-bg-outer {
    stroke-width: 14px;
  }
  .ob-steps__snake-bg-inner {
    stroke-width: 10px;
  }
  .ob-steps__snake-fill {
    stroke-width: 11px;
  }
}

/* Телефони: картка поруч зі змійкою займала ~2/3 ширини, а мітки
   «Миттєва дія», «24/7 Автоматично», «PRO Активовано» обрізалися (BUGS #36). */
@media (max-width: 600px) {
  .ob-steps__node,
  .ob-steps__node--left,
  .ob-steps__node--right {
    gap: 0.6rem;
  }

  .ob-steps__tether {
    width: 10px;
  }

  .ob-steps__checkpoint {
    width: 48px;
    height: 48px;
  }

  .ob-steps__card {
    min-width: 0;
    padding: 1.4rem 1.15rem;
  }

  .ob-steps__card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .ob-steps__pill-group {
    flex-wrap: wrap;
  }

  .ob-steps__status-flag {
    white-space: nowrap;
  }

  /* Кнопка «Вступити» окремим рядком: інакше назві групи лишалося ~70px
     і вона налазила на кнопку (BUGS #52) */
  .ob-steps__tg-ticket {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .ob-steps__tg-action {
    flex-basis: 100%;
    justify-content: center;
    padding: 8px 12px;
  }
}
