/* ═══════════════════════════════════════════════════
   VOOD PURCHASE POPUP  v3.0.2  –  popup.css
   Matches unified-checkout-modal reference design
═══════════════════════════════════════════════════ */

:root {
  /* exact tokens from the reference index.css */
  --vp-bg:          hsl(220,25%,8%);
  --vp-card:        hsl(220,20%,12%);
  --vp-modal:       hsl(220,18%,14%);
  --vp-input:       hsl(220,15%,20%);
  --vp-border:      hsl(220,15%,22%);
  --vp-primary:     hsl(245,80%,55%);
  --vp-primary-fg:  #ffffff;
  --vp-secondary:   hsl(220,15%,20%);
  --vp-fg:          hsl(210,20%,95%);
  --vp-muted:       hsl(215,15%,55%);
  --vp-highlight:   hsl(160,70%,45%);
  --vp-red:         hsl(0,84%,60%);
}

/* ── OVERLAY ─────────────────────────────────────── */
.vood-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.vood-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ── MODAL ───────────────────────────────────────── */
.vood-modal {
  position: relative;
  width: min(520px, 100%);
  background: var(--vp-modal);
  border: 1px solid var(--vp-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
  transform: translateY(20px) scale(.98);
  transition: transform .28s cubic-bezier(.34,1.4,.64,1);
  max-height: 90vh;
  overflow-y: auto;
}
.vood-overlay.is-open .vood-modal {
  transform: translateY(0) scale(1);
}

/* ── CLOSE ───────────────────────────────────────── */
.vood-x {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--vp-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
  padding: 4px;
}
.vood-x:hover { color: var(--vp-fg); }

/* ── HEADER ──────────────────────────────────────── */
.vood-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.vood-modal-header__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vp-fg);
  margin-bottom: 4px;
}
.vood-modal-header__tier {
  font-size: .9rem;
  color: rgba(210,210,240,.7);
  margin-bottom: 6px;
}
.vood-modal-header__price {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--vp-fg);
}

/* ── FIELDS ──────────────────────────────────────── */
.vood-field {
  margin-bottom: 20px;
}
.vood-field > label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--vp-fg);
  margin-bottom: 6px;
}
.vood-req { color: var(--vp-primary); }

.vood-field input[type="email"],
.vood-field input[type="tel"] {
  width: 100%;
  background: var(--vp-input);
  border: 1px solid var(--vp-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .95rem;
  color: var(--vp-fg);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.vood-field input::placeholder { color: var(--vp-muted); }
.vood-field input:focus {
  border-color: var(--vp-primary);
  box-shadow: 0 0 0 2px hsla(245,80%,55%,.25);
}

/* phone with emoji icon */
.vood-input-icon-wrap { position: relative; }
.vood-input-icon-wrap input { padding-right: 40px; }
.vood-input-emoji {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

/* ── RADIO GROUP ─────────────────────────────────── */
.vood-radio-group {
  display: flex;
  gap: 10px;
}
.vood-radio-group--wrap { flex-wrap: wrap; }

.vood-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--vp-border);
  border-radius: 6px;
  background: var(--vp-input);
  cursor: pointer;
  font-size: .875rem;
  color: var(--vp-fg);
  transition: border-color .2s, background .2s;
  user-select: none;
}
.vood-radio:hover {
  border-color: var(--vp-muted);
}
.vood-radio.is-active {
  border-color: var(--vp-primary);
  background: hsla(245,80%,55%,.1);
}

/* custom radio dot */
.vood-radio__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--vp-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s;
}
.vood-radio.is-active .vood-radio__dot {
  border-color: var(--vp-primary);
}
.vood-radio.is-active .vood-radio__dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vp-primary);
  display: block;
}

/* hide native radio */
.vood-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── SUBMIT BUTTON ───────────────────────────────── */
.vood-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--vp-primary);
  color: var(--vp-primary-fg);
  border: none;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  margin-top: 4px;
}
.vood-submit:hover:not(:disabled) { background: hsl(245,80%,48%); }
.vood-submit:disabled { opacity: .5; cursor: not-allowed; }

/* spinner */
.vood-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vp-spin .65s linear infinite;
}
@keyframes vp-spin { to { transform: rotate(360deg); } }

/* ── ERROR ───────────────────────────────────────── */
.vood-error-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .875rem;
  background: hsla(0,84%,60%,.08);
  border: 1px solid hsla(0,84%,60%,.28);
  color: var(--vp-red);
}

/* ── SUCCESS VIEW ────────────────────────────────── */
.vood-success {
  text-align: center;
  padding: 24px 0 8px;
}
.vood-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--vp-highlight);
}
.vood-success__icon svg {
  width: 100%;
  height: 100%;
}
.vood-success__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--vp-fg);
  margin-bottom: 12px;
  line-height: 1.4;
}
.vood-success__sub {
  font-size: .9rem;
  color: var(--vp-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.vood-success__warning {
  background: hsla(38,95%,55%,.1);
  border: 1px solid hsla(38,95%,55%,.35);
  color: hsl(38,95%,65%);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .875rem;
  margin-bottom: 14px;
}
.vood-success__note {
  font-size: .85rem;
  color: var(--vp-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.vood-success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.vood-success__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.vood-success__btn:hover { opacity: .85; }
.vood-success__btn--wa {
  background: hsl(142,70%,40%);
  color: #fff;
}
.vood-success__btn--home {
  background: var(--vp-secondary);
  border: 1px solid var(--vp-border);
  color: var(--vp-fg);
}

/* ── SCROLLBAR ───────────────────────────────────── */
.vood-modal::-webkit-scrollbar { width: 4px; }
.vood-modal::-webkit-scrollbar-track { background: transparent; }
.vood-modal::-webkit-scrollbar-thumb { background: var(--vp-border); border-radius: 2px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 480px) {
  .vood-modal { padding: 24px 18px; }
  .vood-radio-group { flex-direction: column; }
  .vood-modal-header__title { font-size: 1.15rem; }
}


/* ═══════════════════════════════════════════════════
   VOOD PRICING TABLE  –  [vood_pricing] shortcode
═══════════════════════════════════════════════════ */

/* Wrapper */
.vpt-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ── TOGGLE ── */
.vpt-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.vpt-toggle {
  display: inline-flex;
  border: 1px solid var(--vp-border);
  border-radius: 50px;
  overflow: hidden;
}
.vpt-toggle__btn {
  padding: 10px 32px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  background: var(--vp-secondary);
  color: var(--vp-muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.vpt-toggle__btn:hover { color: var(--vp-fg); }
.vpt-toggle__btn.is-active {
  background: var(--vp-primary);
  color: #fff;
}
.vpt-toggle__btn[data-tier="Elite"].is-active {
  background: hsl(42,95%,52%);
  color: #1a1400;
}

/* ── GRID ── */
.vpt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .vpt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .vpt-grid { grid-template-columns: 1fr; } }

/* ── CARD ── */
.vpt-card {
  position: relative;
  background: var(--vp-card);
  border: 1px solid var(--vp-border);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.vpt-card:hover {
  border-color: var(--vp-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px hsla(245,80%,55%,.15);
}
.vpt-card.is-highlighted {
  border-color: var(--vp-primary);
  background: hsla(245,80%,55%,.05);
  box-shadow: 0 0 0 1px var(--vp-primary), 0 8px 32px hsla(245,80%,55%,.12);
}

/* ── PREMIUM GOLD THEME ── */
.vpt-card.is-premium {
  border-color: hsl(42,95%,52%);
  background: hsla(42,95%,52%,.05);
  box-shadow: 0 0 0 1px hsl(42,95%,52%), 0 8px 32px hsla(42,95%,52%,.12);
}
.vpt-card.is-premium:hover {
  border-color: hsl(42,95%,60%);
  box-shadow: 0 12px 40px hsla(42,95%,52%,.25);
}
.vpt-card.is-premium .vpt-card__badge {
  background: hsl(42,95%,52%);
  color: #1a1400;
}
.vpt-card.is-premium .vpt-buy-btn {
  background: hsl(42,95%,52%);
  color: #1a1400;
}
.vpt-card.is-premium .vpt-buy-btn:hover {
  background: hsl(42,95%,44%);
}

/* Most popular badge */
.vpt-card__badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--vp-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}

/* Card header */
.vpt-card__header {
  text-align: center;
  padding-top: 12px;
  margin-bottom: 20px;
}
.vpt-card__duration {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vp-fg);
  margin-bottom: 6px;
}
.vpt-card__price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--vp-fg);
}

/* Features list */
.vpt-features {
  list-style: none;
  padding: 0; margin: 0 0 20px;
  flex: 1;
}
.vpt-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: .85rem;
  color: var(--vp-highlight);
  border-bottom: 1px solid var(--vp-border);
}
.vpt-features li:last-child { border-bottom: none; }
.vpt-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--vp-highlight);
}

/* Guarantees */
.vpt-guarantees {
  margin-bottom: 18px;
}
.vpt-guarantees p {
  font-size: .82rem;
  color: var(--vp-highlight);
  line-height: 1.8;
}

/* Buy button */
.vpt-buy-btn {
  width: 100%;
  padding: 12px;
  background: var(--vp-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-bottom: 16px;
}
.vpt-buy-btn:hover {
  background: hsl(245,80%,48%);
  transform: scale(1.02);
}

/* Secure checkout */
.vpt-secure {
  text-align: center;
}
.vpt-secure__label {
  font-size: .65rem;
  color: var(--vp-muted);
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.vpt-secure__icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: var(--vp-muted);
  flex-wrap: wrap;
}
.vpt-ideal-badge {
  background: #cc0066;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 2px 6px;
  border-radius: 3px;
}
