/* Website Boost — open, visual, electric blue */

html:has(body.wb-svc) {
  overflow-x: clip;
  overflow-y: scroll;
  height: 100%;
}
body.wb-svc {
  --ig-a: #4f8cff;
  --ig-b: #2563eb;
  --ig-c: #60a5fa;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  overscroll-behavior-y: auto;
}

body.wb-svc .svc-main {
  max-width: 600px;
  padding-top: calc(var(--nav-h) + var(--safe-t) + 28px);
}

body.wb-svc .svc-hero { margin-bottom: 36px; }
body.wb-svc .svc-hero h1 { margin-bottom: 8px; }
body.wb-svc .svc-lead {
  max-width: none;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

body.wb-svc .svc-glow-a {
  background: radial-gradient(circle, rgba(79, 140, 255, 0.28), transparent 68%);
}
body.wb-svc .svc-glow-b {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
}

body.wb-svc .svc-badge {
  color: #bfdbfe;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(37, 99, 235, 0.1));
  border-color: rgba(79, 140, 255, 0.4);
}
body.wb-svc .svc-badge i {
  background: linear-gradient(135deg, #4f8cff, #2563eb);
  box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.45);
  animation: svcPulseWb 2s ease-out infinite;
}
@keyframes svcPulseWb {
  0% { box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(79, 140, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 140, 255, 0); }
}

body.wb-svc .svc-hero h1 em {
  background: linear-gradient(115deg, #fff 0%, #bfdbfe 42%, #4f8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.wb-svc .svc-step.is-active .svc-step-n {
  background: linear-gradient(135deg, #4f8cff, #2563eb);
  box-shadow: 0 8px 20px -8px rgba(79, 140, 255, 0.65);
}

/* ── Live visual ── */
.wb-viz {
  --tx: 0deg;
  --ty: 0deg;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px 20px;
  margin: 0 0 26px;
  padding: 22px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(79, 140, 255, 0.18);
  background:
    radial-gradient(80% 80% at 30% 40%, rgba(79, 140, 255, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
  cursor: crosshair;
  touch-action: pan-y;
}
.wb-viz-stage {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  transform: perspective(700px) rotateX(var(--ty)) rotateY(var(--tx));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}
.wb-viz-orbits {
  position: absolute;
  inset: 0;
}
.wb-viz-orbits i {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(147, 197, 253, 0.16);
  animation: wbSpin 18s linear infinite;
}
.wb-viz-orbits i:nth-child(2) {
  inset: 8%;
  animation-duration: 26s;
  animation-direction: reverse;
  border-color: rgba(79, 140, 255, 0.12);
}
.wb-viz-orbits i:nth-child(3) {
  inset: 28%;
  animation-duration: 14s;
}
.wb-viz-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #dbeafe;
  background: radial-gradient(circle at 35% 30%, #6ea6ff, #2563eb 62%, #16357a);
  box-shadow:
    0 0 0 8px rgba(79, 140, 255, 0.1),
    0 16px 36px -12px rgba(37, 99, 235, 0.65);
  animation: wbCore 3.4s ease-in-out infinite;
}
.wb-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(147, 197, 253, 0.9);
  animation: wbArrive 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: calc(var(--i) * -0.35s);
}
@keyframes wbArrive {
  0% {
    transform: rotate(calc(var(--i) * 45deg)) translateX(78px) scale(0.4);
    opacity: 0;
  }
  18% { opacity: 1; }
  78% {
    transform: rotate(calc(var(--i) * 45deg + 40deg)) translateX(22px) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(calc(var(--i) * 45deg + 55deg)) translateX(0) scale(0.2);
    opacity: 0;
  }
}
@keyframes wbSpin { to { transform: rotate(360deg); } }
@keyframes wbCore {
  0%, 100% { box-shadow: 0 0 0 8px rgba(79, 140, 255, 0.1), 0 16px 36px -12px rgba(37, 99, 235, 0.6); }
  50% { box-shadow: 0 0 0 14px rgba(79, 140, 255, 0.16), 0 18px 40px -10px rgba(96, 165, 250, 0.75); }
}

.wb-rank {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 88px;
  padding-right: 4px;
}
.wb-rank-bar {
  width: 16px;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: rgba(255, 255, 255, 0.1);
  transform-origin: bottom;
  animation: wbBar 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wb-rank-bar:nth-child(2) { animation-delay: 0.12s; }
.wb-rank-bar:nth-child(3) { animation-delay: 0.22s; }
.wb-rank-bar.is-you {
  background: linear-gradient(180deg, #93c5fd, #2563eb);
  box-shadow: 0 8px 18px -8px rgba(79, 140, 255, 0.8);
}
@keyframes wbBar {
  from { transform: scaleY(0.15); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

.wb-viz-cap {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.72);
  margin: 0;
}

.wb-viz.is-burst .wb-dot { animation-duration: 1.1s; }
.wb-viz.is-burst .wb-viz-core { animation-duration: 0.9s; }

/* ── Why tiles ── */
.wb-why { margin: 0 0 36px; }
.wb-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wb-why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 16px 8px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, background 0.25s;
}
.wb-why-card h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  color: rgba(244, 247, 245, 0.88);
}
.wb-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(79, 140, 255, 0.12);
  color: #93c5fd;
}
.wb-ico-radar,
.wb-ico-ghost,
.wb-ico-up {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
}
.wb-ico-radar {
  border: 1.6px solid currentColor;
  background: transparent;
}
.wb-ico-radar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.35;
  animation: wbRadar 1.8s ease-out infinite;
}
.wb-ico-ghost {
  background: currentColor;
  opacity: 0.35;
  animation: wbGhost 2.2s ease-in-out infinite;
}
.wb-ico-up {
  width: 0;
  height: 0;
  border-radius: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid currentColor;
  animation: wbUp 1.6s ease-in-out infinite;
}
@keyframes wbRadar {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes wbGhost {
  0%, 100% { opacity: 0.22; transform: scale(0.92); }
  50% { opacity: 0.55; transform: scale(1); }
}
@keyframes wbUp {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-3px); }
}

body.wb-svc .pkg-card.is-selected,
body.wb-svc .pkg-card.is-best.is-selected {
  border-color: rgba(79, 140, 255, 0.55);
  background: linear-gradient(165deg, rgba(79, 140, 255, 0.14) 0%, rgba(37, 99, 235, 0.08) 100%);
  box-shadow:
    0 0 0 1px rgba(79, 140, 255, 0.12),
    0 18px 40px -20px rgba(79, 140, 255, 0.45);
}
body.wb-svc .pkg-hot {
  background: linear-gradient(135deg, #4f8cff, #2563eb);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(79, 140, 255, 0.7);
}
body.wb-svc .pkg-card.is-selected .pkg-radio {
  border-color: rgba(79, 140, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
}
body.wb-svc .pkg-radio::after {
  background: linear-gradient(135deg, #4f8cff, #2563eb);
}
body.wb-svc .pkg-card.is-selected .pkg-price strong {
  background: linear-gradient(115deg, #fff, #bfdbfe, #4f8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.wb-svc .pkg-card.is-best {
  padding-top: 22px;
  min-height: 92px;
}
body.wb-svc .pkg-card.is-best .pkg-qty { font-size: 28px; }
body.wb-svc .pkg-card.is-best.is-selected {
  animation: wbBest 2.8s ease-in-out infinite;
}
@keyframes wbBest {
  0%, 100% { box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.12), 0 18px 40px -20px rgba(79, 140, 255, 0.4); }
  50% { box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.28), 0 22px 46px -16px rgba(96, 165, 250, 0.55); }
}

body.wb-svc .field-wrap:focus-within {
  border-color: rgba(79, 140, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.1);
}

body.wb-svc .order-total strong {
  background: linear-gradient(115deg, #fff, #bfdbfe, #4f8cff);
  -webkit-background-clip: text;
  background-clip: text;
}

body.wb-svc .pay-bar-btn {
  background: linear-gradient(135deg, #4f8cff, #2563eb);
  box-shadow: 0 10px 28px -10px rgba(79, 140, 255, 0.75);
}

@media (hover: hover) and (pointer: fine) {
  .wb-why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 140, 255, 0.35);
    background: rgba(79, 140, 255, 0.08);
  }
}

@media (max-width: 520px) {
  .wb-viz { grid-template-columns: 1fr; justify-items: center; padding: 18px 14px 14px; }
  .wb-rank { height: 64px; }
  .wb-why-card h3 { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-dot, .wb-viz-orbits i, .wb-viz-core, .wb-rank-bar,
  .wb-ico-radar::after, .wb-ico-ghost, .wb-ico-up,
  .pkg-card.is-best.is-selected {
    animation: none !important;
  }
  .wb-viz-stage { transform: none !important; }
}
