.guide-page {
  background:
    radial-gradient(circle at 80% 12%, rgba(125, 166, 255, .1), transparent 28rem),
    radial-gradient(circle at 10% 44%, rgba(224, 184, 90, .06), transparent 24rem),
    var(--canvas);
}

.guide-intro {
  padding: calc(var(--header-height) + 76px) 0 48px;
  text-align: center;
}

.guide-intro h1 {
  max-width: 920px;
  margin: 16px auto 20px;
  font-size: clamp(3.4rem, 7.4vw, 7.2rem);
  line-height: .91;
  letter-spacing: -.07em;
}

.guide-intro h1 span { color: var(--gold); }
.guide-intro > .container > p:last-child { max-width: 680px; margin: 0 auto; color: var(--muted-strong); font-size: 1.08rem; }

.onboarding-guide { padding: 0 0 96px; }

.platform-picker {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px;
  margin: 0 auto 28px;
  padding: 6px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(8, 15, 27, .92);
}

.platform-picker button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 9px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.platform-picker button[aria-pressed="true"] { background: var(--text); color: var(--canvas); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.platform-picker .platform-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(125, 166, 255, .14); font-size: .82rem; font-weight: 950; }
.platform-picker button[aria-pressed="true"] .platform-icon { background: var(--signal-soft); color: var(--signal-deep); }

.swipe-shell {
  max-width: 1160px;
  margin: 0 auto;
  border: 1px solid var(--stroke-strong);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(17, 29, 49, .94), rgba(7, 13, 24, .98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.swipe-toolbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--stroke);
}

.step-counter { color: var(--muted); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.step-counter strong { color: var(--text); }
.swipe-actions { display: flex; gap: 8px; }
.swipe-actions button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke-strong);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}
.swipe-actions button:disabled { opacity: .28; cursor: default; }

.swipe-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.swipe-track::-webkit-scrollbar { display: none; }
.swipe-track[hidden] { display: none; }

.swipe-step {
  min-width: 100%;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  padding: clamp(34px, 6vw, 76px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.step-copy { max-width: 510px; }
.step-label { display: block; margin-bottom: 18px; color: var(--signal); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.step-copy h2 { margin-bottom: 18px; font-size: clamp(2.65rem, 5vw, 5.1rem); line-height: .96; letter-spacing: -.06em; }
.step-copy p { margin: 0; color: var(--muted-strong); font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.65; }
.step-copy .simple-path { display: inline-flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.simple-path span { padding: 7px 10px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--text); font-size: .72rem; font-weight: 760; }

.step-visual { margin: 0; }
.phone-art {
  width: min(100%, 410px);
  min-height: 520px;
  margin: 0 auto;
  padding: 15px;
  border: 1px solid rgba(247, 250, 255, .24);
  border-radius: 44px;
  background: #02050a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}
.phone-art-screen { min-height: 490px; padding: 23px; border-radius: 32px; background: #f4f7fb; color: #101522; }
.phone-art-top { display: flex; justify-content: space-between; margin-bottom: 32px; font-size: .66rem; font-weight: 850; }
.phone-art h3 { margin: 0 0 22px; font-size: 1.5rem; letter-spacing: -.04em; }
.ui-breadcrumb { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.ui-breadcrumb span { padding: 5px 8px; border-radius: 999px; background: #e3eaf4; color: #38526f; font-size: .6rem; font-weight: 800; }
.ui-list { display: grid; gap: 9px; }
.ui-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 43, 72, .07);
}
.ui-row.is-active { border-color: #4f7fd0; box-shadow: 0 0 0 3px rgba(79, 127, 208, .12); }
.ui-row i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #eaf0fa; color: #315b9d; font-style: normal; font-size: .72rem; font-weight: 950; }
.ui-row strong, .ui-row small { display: block; }
.ui-row strong { font-size: .82rem; }
.ui-row small { margin-top: 2px; color: #718096; font-size: .62rem; }
.ui-row b { color: #6f7d91; }
.ui-note { margin-top: 18px; padding: 15px; border-radius: 14px; background: #142139; color: #e7edf7; font-size: .72rem; line-height: 1.45; }
.ui-note strong { display: block; margin-bottom: 3px; color: #9cbbff; }

.ui-dialog { min-height: 350px; display: grid; align-content: center; text-align: center; }
.ui-dialog .sim-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; background: #142139; color: #e0b85a; font-size: 1.05rem; font-weight: 950; }
.ui-dialog h3 { margin-bottom: 10px; }
.ui-dialog p { max-width: 260px; margin: 0 auto 22px; color: #66758a; font-size: .75rem; }
.ui-kicker { display: block; margin: 0 auto 5px; color: #63748c; font-size: .62rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.ui-request { width: min(100%, 280px); display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0 auto 20px; padding: 14px 16px; border: 1px solid #d9e1ed; border-radius: 14px; background: #fff; text-align: left; }
.ui-request span { color: #748297; font-size: .62rem; font-weight: 760; }
.ui-request strong { color: #152033; font-size: .72rem; }
.ui-pin { display: flex; justify-content: center; gap: 9px; margin: 12px 0 26px; }
.ui-pin i { width: 12px; height: 12px; border-radius: 50%; background: #101522; }
.ui-code { display: block; margin: 10px auto; padding: 14px; border: 1px dashed #9aa9bd; border-radius: 12px; background: #fff; font-size: 1.12rem; font-weight: 900; letter-spacing: .13em; }
.ui-code.is-recovery { font-size: .88rem; letter-spacing: .08em; overflow-wrap: anywhere; }
.ui-paper { width: 76%; margin: 0 auto 22px; padding: 20px; border: 1px solid #d8c79e; border-radius: 3px; background: #fffdf5; box-shadow: 0 10px 24px rgba(65, 54, 28, .1); transform: rotate(-1.5deg); }
.ui-paper small { display: block; margin-bottom: 9px; color: #87754b; }
.ui-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 13px; background: #142139; color: #fff; font-size: .75rem; font-weight: 850; }
.ui-button.is-success { background: #206e62; }
.ui-button.is-muted { background: #e8edf4; color: #344158; }
.ui-button-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; }
.shield-mark { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid #a7d7c9; border-radius: 22px; background: #e6f6f0; color: #176957; font-size: 1.4rem; font-weight: 950; }
.recovery-transfer-mark { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 18px; }
.recovery-transfer-mark span { width: 58px; height: 44px; display: grid; place-items: center; border: 1px solid #a7b9d5; border-radius: 13px; background: #eaf0fa; color: #315b9d; font-size: .67rem; font-weight: 900; }
.recovery-transfer-mark b { color: #176957; font-size: 1.1rem; }
.ui-expiry { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: #e8edf4; color: #45536a; font-size: .65rem; font-weight: 850; }

.swipe-dots { display: flex; justify-content: center; gap: 8px; padding: 0 20px 24px; }
.swipe-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #3d4a60; cursor: pointer; }
.swipe-dots button[aria-current="step"] { width: 26px; border-radius: 999px; background: var(--gold); }
.swipe-hint { margin: 17px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }

.guide-bottom { border-top: 1px solid var(--stroke); }
.guide-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guide-bottom article { padding: 30px; border: 1px solid var(--stroke); border-radius: 22px; background: var(--surface); }
.guide-bottom h2 { margin-bottom: 12px; font-size: 1.4rem; }
.guide-bottom p { margin: 0; color: var(--muted); }
.guide-bottom .official-links-simple { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.official-links-simple a { padding: 9px 12px; border: 1px solid var(--stroke-strong); border-radius: 999px; color: var(--text); font-size: .74rem; font-weight: 780; text-decoration: none; }

@media (max-width: 860px) {
  .guide-intro { padding-top: calc(var(--header-height) + 54px); }
  .guide-intro h1 { font-size: clamp(3.2rem, 13vw, 5.1rem); }
  .swipe-step { min-height: auto; grid-template-columns: 1fr; padding: 36px 28px 44px; }
  .step-copy { max-width: none; }
  .step-copy h2 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .phone-art { width: min(100%, 360px); min-height: 470px; }
  .phone-art-screen { min-height: 440px; }
  .guide-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .guide-intro { padding-bottom: 34px; }
  .guide-intro h1 { text-align: left; }
  .guide-intro > .container > p:last-child { text-align: left; }
  .guide-intro .eyebrow { justify-content: flex-start; }
  .platform-picker { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .platform-picker button { min-width: 0; padding-inline: 12px; }
  .swipe-shell { border-radius: 24px; }
  .swipe-toolbar { min-height: 64px; padding: 10px 14px; }
  .swipe-step { gap: 28px; padding: 30px 18px 36px; }
  .step-copy h2 { font-size: 2.55rem; }
  .phone-art { padding: 10px; border-radius: 34px; }
  .phone-art-screen { padding: 18px; border-radius: 26px; }
  .swipe-hint { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-track { scroll-behavior: auto; }
}
