.onboarding-tour {
  position: fixed;
  inset: 0;
  z-index: 1085;
  font-family: var(--font-sans, "Inter", sans-serif);
}

.onboarding-tour[hidden] { display: none !important; }

.onboarding-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.onboarding-spotlight {
  position: fixed;
  border: 2px solid rgba(68, 83, 224, .78);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(5, 15, 34, .7), 0 0 0 5px rgba(255, 255, 255, .72), 0 14px 36px rgba(5, 15, 34, .22);
  pointer-events: none;
  transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}

.onboarding-card {
  position: fixed;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(163, 175, 198, .5);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(5, 15, 34, .3);
  color: #0b1b30;
  outline: none;
}

.onboarding-card > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 15px 17px;
  border-bottom: 1px solid #e4e9f1;
  background: linear-gradient(135deg, #f6f8ff, #f1fbfa);
}

.onboarding-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(20, 39, 77, .1);
}

.onboarding-mark img { width: 27px; height: 27px; object-fit: contain; }
.onboarding-card > header div { display: flex; flex-direction: column; gap: 1px; }
.onboarding-card > header small {
  color: #53627a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.onboarding-card > header strong { color: #236f69; font-size: .77rem; }
.onboarding-card > header button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5a677a;
}
.onboarding-card > header button:hover { background: #e9edf5; color: #0b1b30; }

.onboarding-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 21px 20px 14px;
}
.onboarding-step-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #e7f6f3;
  color: #087d74;
  font-size: 1.15rem;
}
.onboarding-copy h2 { margin: 0 0 6px; font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.onboarding-copy p { margin: 0; color: #53627a; font-size: .91rem; line-height: 1.52; }

.onboarding-dots { display: flex; gap: 5px; padding: 0 20px 17px 76px; }
.onboarding-dots i { width: 17px; height: 3px; border-radius: 99px; background: #d8dee9; }
.onboarding-dots i.is-active { width: 27px; background: linear-gradient(90deg, #3021a8, #08a79a); }

.onboarding-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border-top: 1px solid #e4e9f1;
  background: #fbfcfe;
}
.onboarding-card > footer span { display: flex; gap: 8px; }
.onboarding-card > footer button { min-height: 38px; padding: 8px 13px; border-radius: 8px; font-size: .84rem; font-weight: 750; }
.onboarding-skip { padding-inline: 0 !important; border: 0; background: transparent; color: #68758a; }
.onboarding-skip:hover { color: #bd273b; }
.onboarding-back { border: 1px solid #d8dfeb; background: #fff; color: #27364d; }
.onboarding-back[hidden] { display: none; }
.onboarding-next { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #271a92; background: #271a92; color: #fff; }
.onboarding-next:hover { background: #1e1474; }

body.is-onboarding { overflow: hidden; }

@media (max-width: 680px) {
  .onboarding-spotlight { border-radius: 9px; }
  .onboarding-card { left: 12px !important; right: 12px; bottom: 12px !important; top: auto !important; width: auto; max-height: 48vh; overflow: auto; }
  .onboarding-copy { padding: 17px 16px 12px; }
  .onboarding-dots { padding: 0 16px 13px 72px; }
  .onboarding-card > footer { align-items: stretch; flex-direction: column-reverse; }
  .onboarding-card > footer span { display: grid; grid-template-columns: 1fr 1.25fr; }
  .onboarding-card > footer button { justify-content: center; }
  .onboarding-skip { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-spotlight { transition: none; }
}
