:root {
  --yosds-tour-z: 2147483000;
  --yosds-tour-accent-a: #58c8ff;
  --yosds-tour-accent-b: #a44cff;
  --yosds-tour-accent-c: #ff4db8;
}

html.yosds-tour-open {
  scroll-behavior: smooth;
}

.yosds-tour-blocker,
.yosds-tour-spotlight,
.yosds-tour-card,
.yosds-tour-launcher {
  box-sizing: border-box;
  font-family: inherit;
}

.yosds-tour-blocker {
  position: fixed;
  z-index: var(--yosds-tour-z);
  background: rgba(3, 0, 8, .76);
  -webkit-backdrop-filter: blur(5px) saturate(115%);
  backdrop-filter: blur(5px) saturate(115%);
  touch-action: none;
}

.yosds-tour-spotlight {
  position: fixed;
  z-index: calc(var(--yosds-tour-z) + 1);
  pointer-events: none;
  border: 2px solid rgba(126, 219, 255, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .025);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18) inset,
    0 0 18px rgba(74, 203, 255, .9),
    0 0 42px rgba(151, 65, 255, .68),
    0 0 74px rgba(255, 45, 171, .28);
  transition: top .32s cubic-bezier(.2,.8,.2,1), left .32s cubic-bezier(.2,.8,.2,1), width .32s cubic-bezier(.2,.8,.2,1), height .32s cubic-bezier(.2,.8,.2,1);
  animation: yosdsTourPulse 1.9s ease-in-out infinite;
}

.yosds-tour-spotlight::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: inherit;
}

.yosds-tour-card {
  position: fixed;
  z-index: calc(var(--yosds-tour-z) + 3);
  width: min(390px, calc(100vw - 28px));
  padding: 18px;
  color: #fff;
  border: 1px solid rgba(186, 192, 255, .32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0, rgba(169, 71, 255, .25), transparent 42%),
    linear-gradient(145deg, rgba(24, 23, 58, .96), rgba(10, 8, 27, .97));
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .62), 0 0 34px rgba(102, 68, 255, .22), inset 0 1px rgba(255, 255, 255, .14);
  transform-origin: center;
  animation: yosdsTourCardIn .34s cubic-bezier(.16, 1, .3, 1) both;
}

.yosds-tour-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(91, 205, 255, .75), rgba(160, 72, 255, .25), rgba(255, 67, 177, .68));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.yosds-tour-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.yosds-tour-step {
  color: rgba(228, 234, 255, .68);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.yosds-tour-skip {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(238, 241, 255, .72);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  padding: 5px 2px;
}

.yosds-tour-progress {
  display: grid;
  grid-template-columns: repeat(var(--yosds-tour-total), 1fr);
  gap: 5px;
  margin-bottom: 17px;
}

.yosds-tour-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.yosds-tour-progress span.is-done {
  background: linear-gradient(90deg, var(--yosds-tour-accent-a), var(--yosds-tour-accent-b), var(--yosds-tour-accent-c));
  box-shadow: 0 0 12px rgba(116, 115, 255, .52);
}

.yosds-tour-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.32rem, 5.5vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.yosds-tour-card p {
  margin: 0;
  color: rgba(231, 232, 247, .75);
  font-size: .96rem;
  line-height: 1.5;
}

.yosds-tour-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px !important;
  color: #c9f3ff !important;
  font-size: .82rem !important;
  font-weight: 850;
}

.yosds-tour-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 18px;
}

.yosds-tour-btn {
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.yosds-tour-btn:focus-visible,
.yosds-tour-skip:focus-visible,
.yosds-tour-launcher:focus-visible {
  outline: 2px solid #83deff;
  outline-offset: 3px;
}

.yosds-tour-back {
  padding: 0 16px;
  background: rgba(255, 255, 255, .055);
}

.yosds-tour-next {
  padding: 0 18px;
  background: linear-gradient(120deg, #347df6, #713fd7 62%, #bd3fc6);
  box-shadow: 0 10px 28px rgba(90, 67, 230, .35), inset 0 1px rgba(255, 255, 255, .3);
}

.yosds-tour-back[hidden] {
  display: block;
  visibility: hidden;
}

.yosds-tour-target {
  position: relative !important;
  z-index: calc(var(--yosds-tour-z) + 2) !important;
}

.yosds-tour-launcher {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px));
  z-index: 900;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(126, 188, 255, .33);
  border-radius: 999px;
  background: rgba(12, 11, 31, .88);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .42), 0 0 25px rgba(78, 115, 255, .14), inset 0 1px rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
}

.yosds-tour-launcher[hidden] {
  display: none;
}

@keyframes yosdsTourPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 0 24px rgba(74,203,255,.98), 0 0 54px rgba(151,65,255,.78), 0 0 86px rgba(255,45,171,.35); }
}

@keyframes yosdsTourCardIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  .yosds-tour-card { padding: 16px; border-radius: 21px; }
  .yosds-tour-launcher { right: 12px; bottom: max(78px, calc(env(safe-area-inset-bottom) + 66px)); }
}

@media (prefers-reduced-motion: reduce) {
  .yosds-tour-spotlight,
  .yosds-tour-card { animation: none; transition: none; }
}

.yosds-payment-tour-help {
  position: sticky;
  top: 8px;
  z-index: 45;
  display: block;
  width: max-content;
  min-height: 42px;
  margin: 0 0 10px auto;
  padding: 0 14px;
  border: 1px solid rgba(116, 199, 255, .35);
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 11, 31, .92);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .4), 0 0 20px rgba(74, 151, 255, .18), inset 0 1px rgba(255, 255, 255, .12);
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.yosds-payment-tour-help:focus-visible {
  outline: 2px solid #83deff;
  outline-offset: 3px;
}

.yosds-bank-copy-details {
  display: block;
  border-radius: 18px;
}

/* Compact fixed controls: tour, install and light mode. */
:where(.yosds-tour-launcher, #yosdsInstallApp, #yosdsLowLightToggle) {
  position: fixed !important;
  left: auto !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(126, 188, 255, .34) !important;
  border-radius: 50% !important;
  background: rgba(12, 11, 31, .92) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .42), 0 0 18px rgba(78, 115, 255, .14), inset 0 1px rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  z-index: 99991 !important;
}

.yosds-tour-launcher { bottom: max(116px, calc(env(safe-area-inset-bottom) + 116px)) !important; }
#yosdsInstallApp { bottom: max(64px, calc(env(safe-area-inset-bottom) + 64px)) !important; }
#yosdsLowLightToggle { bottom: max(12px, calc(env(safe-area-inset-bottom) + 12px)) !important; }

:where(.yosds-tour-launcher, #yosdsInstallApp, #yosdsLowLightToggle)::before {
  display: block;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.yosds-tour-launcher::before { content: "?"; }
#yosdsInstallApp::before { content: "\2193"; }
#yosdsLowLightToggle::before { content: "\263E"; }
#yosdsLowLightToggle[aria-pressed="true"]::before { content: "\2726"; }

/* Keep only the bank-details WhatsApp action clear of the mobile browser edge. */
#bankDetailsModal #bankModalBody .bank-proof-wa {
  position: sticky !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  z-index: 30 !important;
  margin-bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px)) !important;
}
