.tour-root {
  position: fixed;
  inset: 0;
  z-index: 14000;
  pointer-events: none;
}
.tour-root.hidden,
.tour-root[hidden] { display: none !important; }

.tour-pad {
  position: fixed;
  background: rgba(3, 2, 5, .82);
  pointer-events: auto;
  z-index: 14000;
}
.tour-ring {
  position: fixed;
  z-index: 14001;
  pointer-events: none;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18),
    0 0 0 3px rgba(225, 6, 0, .85),
    0 0 42px rgba(225, 6, 0, .35);
  transition: top .32s ease, left .32s ease, width .32s ease, height .32s ease;
}
.tour-root.is-welcome .tour-pad[data-pad="t"] {
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(225, 6, 0, .16), transparent 58%),
    rgba(3, 2, 5, .84);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
.tour-root.is-welcome .tour-pad:not([data-pad="t"]),
.tour-root.is-welcome .tour-ring { display: none; }

.tour-welcome {
  position: fixed;
  inset: 0;
  z-index: 14010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: auto;
}
.tour-welcome.hidden { display: none !important; }

.tour-welcome-card {
  position: relative;
  width: min(440px, 100%);
  overflow: hidden;
  padding: 28px 26px 22px;
  border-radius: 22px;
  text-align: center;
  background:
    linear-gradient(165deg, rgba(36, 36, 42, .98) 0%, rgba(14, 14, 16, .99) 52%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    0 0 0 1px rgba(225, 6, 0, .08) inset,
    0 1px 0 rgba(255, 255, 255, .1) inset,
    0 32px 80px rgba(0, 0, 0, .7),
    0 0 60px rgba(225, 6, 0, .12);
}
.tour-welcome-accent {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, transparent, #ff3a3a, #ffb08a, #ff3a3a, transparent);
}
.tour-welcome-glow {
  position: absolute;
  inset: auto 0 40% 0;
  height: 120px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(225, 6, 0, .22), transparent 70%);
}
.tour-welcome-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 8px auto 14px;
  padding: 6px;
  border-radius: 18px;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 24px rgba(225, 6, 0, .28);
}
.tour-welcome-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tour-welcome-kicker {
  position: relative;
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #ff7a7a;
  font-weight: 800;
}
.tour-welcome-card h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
}
.tour-welcome-sub {
  position: relative;
  margin: 0 0 22px;
  color: #b4b4bc;
  font-size: 14.5px;
  line-height: 1.5;
}
.tour-welcome-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tour-tip {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 14020;
  width: min(640px, calc(100vw - 28px));
  padding: 16px 18px 14px;
  border-radius: 18px;
  pointer-events: auto;
  display: grid;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, transparent 28%),
    linear-gradient(165deg, rgba(28, 28, 32, .96) 0%, rgba(10, 10, 12, .98) 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .1) inset,
    0 22px 50px rgba(0, 0, 0, .55),
    0 0 28px rgba(225, 6, 0, .12);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.tour-tip.hidden { display: none !important; }
.tour-tip-progress {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tour-tip-progress i {
  width: 18px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
}
.tour-tip-progress i.is-done { background: rgba(225, 6, 0, .45); }
.tour-tip-progress i.is-on {
  width: 28px;
  background: linear-gradient(90deg, #ff4a4a, #ffb090);
  box-shadow: 0 0 10px rgba(255, 70, 70, .5);
}
.tour-tip-copy { min-width: 0; }
.tour-tip-step {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ff8080;
}
.tour-tip strong {
  display: block;
  color: #fff;
  font-size: 17px;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.tour-tip p {
  margin: 0;
  color: #c8c8d0;
  font-size: 13.5px;
  line-height: 1.45;
}
.tour-tip-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tour-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 12px;
  min-width: 0;
}
.tour-btn:disabled { opacity: .35; cursor: default; }
.tour-welcome-actions .tour-btn {
  display: grid;
  gap: 2px;
  padding: 12px 10px 11px;
  min-height: 64px;
  text-align: center;
}
.tour-welcome-actions .tour-btn em {
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
  color: inherit;
}
.tour-welcome-actions .tour-btn span {
  font-size: 11px;
  font-weight: 600;
  opacity: .72;
}
.tour-btn--primary {
  color: #fff;
  background: #e10600;
  border: 1px solid rgba(255, 160, 160, .25);
  box-shadow: 0 8px 18px rgba(225, 6, 0, .28);
}
.tour-btn--ghost {
  color: #ececf2;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}
.tour-btn--primary:hover { background: #ff1c14; }
.tour-btn--ghost:hover { background: rgba(255, 255, 255, .09); }

.side-nav [data-tour].tour-nav-on {
  outline: 2px solid rgba(255, 70, 70, .95);
  outline-offset: 2px;
}

body.tour-on .main {
  padding-bottom: 150px;
}

@media (max-width: 720px) {
  .tour-welcome-card { padding: 22px 16px 16px; }
  .tour-welcome-card h2 { font-size: 21px; }
  .tour-welcome-actions { grid-template-columns: 1fr; }
  .tour-tip {
    bottom: 10px;
    padding: 14px 12px 12px;
  }
  .tour-tip-actions { justify-content: stretch; }
  .tour-tip-actions .tour-btn { flex: 1; }
}
