/* ═══════════════════════════════════════════════════════════
   MKPAYZ — Visual Enhancement Layer
   Loaded after inline styles; adds polish without touching
   the base layout or business logic.
   ═══════════════════════════════════════════════════════════ */

/* ── Shared token additions ──────────────────────────────── */
:root {
  --glow-purple: rgba(124,58,237,.22);
  --glow-cyan:   rgba(6,182,212,.18);
  --glow-green:  rgba(16,185,129,.18);
  --glow-amber:  rgba(245,158,11,.18);
  --glass-bg:    rgba(255,255,255,.03);
  --glass-border:rgba(255,255,255,.06);
  --radius-lg: 20px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════════
   HERO — animated orbs + glow crown
   ══════════════════════════════════════════════════════════ */
.hero { isolation: isolate; }

/* Three ambient gradient orbs behind the hero */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 15% 60%, rgba(124,58,237,.11), transparent),
    radial-gradient(ellipse 40% 30% at 85% 30%, rgba(6,182,212,.10), transparent);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* Floating animated blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .15;
  pointer-events: none;
  z-index: 0;
  animation: blobDrift 14s ease-in-out infinite;
}
.hero-blob-1 {
  width: 440px; height: 440px;
  background: var(--primary);
  top: -120px; left: -80px;
  animation-duration: 16s;
}
.hero-blob-2 {
  width: 340px; height: 340px;
  background: var(--accent);
  top: -60px; right: -60px;
  animation-duration: 12s;
  animation-delay: -5s;
}
.hero-blob-3 {
  width: 260px; height: 260px;
  background: #06b6d4;
  bottom: 0; left: 45%;
  animation-duration: 18s;
  animation-delay: -9s;
  opacity: .08;
}

@keyframes blobDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(28px,-18px) scale(1.04); }
  66%      { transform: translate(-18px,14px) scale(.97); }
}

/* ── Live pulse badge ── */
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.28);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
  cursor: default;
  user-select: none;
}
.hero-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: livePulse 1.8s ease infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

/* ── Hero stat card grid (mobile) ── */
@media (max-width:640px) {
  .hero-stats {
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 32px;
  }
  .hero-stat {
    padding: 18px 12px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .hero-stat:nth-child(2n) { border-right: none; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ══════════════════════════════════════════════════════════
   BRAND MARQUEE (inject below hero-stats)
   ══════════════════════════════════════════════════════════ */
.brand-marquee-wrap {
  overflow: hidden;
  margin: 36px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
  position: relative;
  z-index: 1;
}
.brand-marquee-wrap::before,
.brand-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.brand-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.brand-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.brand-marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.brand-marquee-wrap:hover .brand-marquee-track { animation-play-state: paused; }
.brand-marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--transition);
}
.brand-marquee-item:hover { color: var(--text); }
.brand-marquee-item img {
  width: 22px; height: 22px;
  object-fit: contain;
  opacity: .65;
  filter: grayscale(40%);
  transition: opacity var(--transition), filter var(--transition);
}
.brand-marquee-item:hover img { opacity: 1; filter: none; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════
   PRODUCT CARDS — enhanced hover glow
   ══════════════════════════════════════════════════════════ */
.product-card {
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
  background: var(--card);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,.55);
  box-shadow:
    0 0 0 1px rgba(124,58,237,.15),
    0 20px 52px rgba(124,58,237,.18),
    0 8px 20px rgba(0,0,0,.3);
}

/* Per-category glow tints on hover */
.product-card[data-category="gaming"]:hover       { box-shadow: 0 0 0 1px rgba(124,58,237,.2), 0 20px 48px rgba(124,58,237,.22), 0 8px 20px rgba(0,0,0,.3); }
.product-card[data-category="entertainment"]:hover { box-shadow: 0 0 0 1px rgba(239,68,68,.2), 0 20px 48px rgba(239,68,68,.18), 0 8px 20px rgba(0,0,0,.3); border-color:rgba(239,68,68,.4); }
.product-card[data-category="shopping"]:hover      { box-shadow: 0 0 0 1px rgba(16,185,129,.2), 0 20px 48px rgba(16,185,129,.18), 0 8px 20px rgba(0,0,0,.3); border-color:rgba(16,185,129,.4); }
.product-card[data-category="payment"]:hover       { box-shadow: 0 0 0 1px rgba(6,182,212,.2), 0 20px 48px rgba(6,182,212,.18), 0 8px 20px rgba(0,0,0,.3); border-color:rgba(6,182,212,.4); }
.product-card[data-category="crypto"]:hover        { box-shadow: 0 0 0 1px rgba(251,191,36,.2), 0 20px 48px rgba(251,191,36,.15), 0 8px 20px rgba(0,0,0,.3); border-color:rgba(251,191,36,.35); }
.product-card[data-category="food"]:hover          { box-shadow: 0 0 0 1px rgba(249,115,22,.2), 0 20px 48px rgba(249,115,22,.18), 0 8px 20px rgba(0,0,0,.3); border-color:rgba(249,115,22,.4); }

/* Shimmer sweep on hover */
.card-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position .5s ease;
  pointer-events: none;
}
.product-card:hover .card-img::after { background-position: 200% 0; }

/* Buy button reveal on hover */
.card-buy {
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}
.product-card:hover .card-buy {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  transform: none;
  box-shadow: 0 4px 14px var(--glow-purple);
}

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS — connected timeline redesign
   ══════════════════════════════════════════════════════════ */
.how {
  position: relative;
}

/* Connector line (desktop only) */
@media (min-width: 768px) {
  .how-steps {
    position: relative;
  }
  .how-steps::before {
    content: '';
    position: absolute;
    top: 34px;
    left: calc(12.5% + 22px);
    right: calc(12.5% + 22px);
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    opacity: .35;
    z-index: 0;
    border-radius: 2px;
  }
}

.how-step {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.how-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 18px;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.how-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
}

/* Step colour themes */
.how-step:nth-child(1) { --step-color: #818cf8; --step-glow: rgba(129,140,248,.18); }
.how-step:nth-child(2) { --step-color: #a78bfa; --step-glow: rgba(167,139,250,.18); }
.how-step:nth-child(3) { --step-color: #06b6d4; --step-glow: rgba(6,182,212,.18); }
.how-step:nth-child(4) { --step-color: #34d399; --step-glow: rgba(52,211,153,.18); }

.how-step:hover { border-color: var(--step-color); box-shadow: 0 16px 44px var(--step-glow), 0 4px 12px rgba(0,0,0,.2); }
.how-step:hover::before { opacity: 1; background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--step-glow), transparent); }

/* Step number ring */
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  background: var(--step-color, var(--primary));
  box-shadow: 0 4px 18px var(--step-glow, var(--glow-purple));
  transition: box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.how-step:hover .step-num {
  transform: scale(1.08);
  box-shadow: 0 6px 24px var(--step-glow, var(--glow-purple));
}

/* Step icon alongside number */
.step-icon {
  font-size: 22px;
  margin-bottom: 6px;
  display: block;
}

.how-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.how-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* Mobile: horizontal scroll layout */
@media (max-width: 640px) {
  .how-steps {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 12px;
    scrollbar-width: none;
    -webkit-mask: linear-gradient(to right, #000 80%, transparent 100%);
    mask: linear-gradient(to right, #000 80%, transparent 100%);
  }
  .how-steps::-webkit-scrollbar { display: none; }
  .how-step {
    min-width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 18px;
  }
  .how-steps::before { display: none; }
}

/* ══════════════════════════════════════════════════════════
   PAYMENT METHOD CARDS — rich visual
   ══════════════════════════════════════════════════════════ */
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pay-opt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  border-radius: 12px;
}
.pay-opt:hover { border-color: var(--primary); background: rgba(124,58,237,.06); }
.pay-opt:hover::before { opacity: 1; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,.06), transparent); }
.pay-opt.sel {
  border-color: var(--primary);
  background: rgba(124,58,237,.09);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12), 0 4px 16px rgba(124,58,237,.14);
}

/* Stripe card accent */
.pay-opt[data-method="stripe"].sel {
  border-color: #6772e5;
  background: rgba(103,114,229,.08);
  box-shadow: 0 0 0 3px rgba(103,114,229,.12), 0 4px 16px rgba(103,114,229,.12);
}
.pay-opt[data-method="stripe"] .pay-opt-icon-svg { color: #6772e5; }

/* Bank transfer accent */
.pay-opt[data-method="banktransfer"].sel {
  border-color: #10b981;
  background: rgba(16,185,129,.08);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12), 0 4px 16px rgba(16,185,129,.10);
}
.pay-opt[data-method="banktransfer"] .pay-opt-icon-svg { color: #10b981; }

/* PawaPay accent */
.pay-opt[data-method="pawapay"].sel {
  border-color: #f59e0b;
  background: rgba(245,158,11,.07);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12), 0 4px 16px rgba(245,158,11,.10);
}
.pay-opt[data-method="pawapay"] .pay-opt-icon-svg { color: #f59e0b; }

/* Balance accent */
.pay-opt[data-method="balance"].sel {
  border-color: var(--accent);
  background: rgba(6,182,212,.07);
  box-shadow: 0 0 0 3px rgba(6,182,212,.12), 0 4px 16px rgba(6,182,212,.10);
}

/* Payment option icon container */
.pay-opt-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.pay-opt:hover .pay-opt-icon-wrap,
.pay-opt.sel .pay-opt-icon-wrap {
  background: rgba(124,58,237,.1);
  border-color: rgba(124,58,237,.3);
}
.pay-opt[data-method="stripe"]:hover .pay-opt-icon-wrap,
.pay-opt[data-method="stripe"].sel .pay-opt-icon-wrap {
  background: rgba(103,114,229,.1);
  border-color: rgba(103,114,229,.3);
}
.pay-opt[data-method="banktransfer"]:hover .pay-opt-icon-wrap,
.pay-opt[data-method="banktransfer"].sel .pay-opt-icon-wrap {
  background: rgba(16,185,129,.1);
  border-color: rgba(16,185,129,.3);
}
.pay-opt[data-method="pawapay"]:hover .pay-opt-icon-wrap,
.pay-opt[data-method="pawapay"].sel .pay-opt-icon-wrap {
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.3);
}

.pay-opt-icon-svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: color var(--transition);
  color: var(--muted);
}
.pay-opt:hover .pay-opt-icon-svg { color: var(--text); }

/* ── PawaPay / Mobile Money fields ── */
#pawapayFields {
  background: linear-gradient(135deg, rgba(245,158,11,.06), rgba(124,58,237,.05));
  border: 1.5px solid rgba(245,158,11,.25);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  animation: ppSlideIn .24s ease;
}
@keyframes ppSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pp-field-hd {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}
.pp-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

/* ── Custom country dropdown ─────────────────────────────────────────────────
   The trigger button's layout and the list panel's layout are set as inline
   styles in HTML/JS so no stylesheet rule can override them. Only focus/hover
   glows that can't be set inline live here.
   ─────────────────────────────────────────────────────────────────────────── */
#ppCDBtn:hover,
#ppCDBtn:focus { border-color: #f59e0b !important; box-shadow: 0 0 0 3px rgba(245,158,11,.15); outline: none; }

/* Scrollbar tint for the panel */
#ppCDList { scrollbar-width: thin; scrollbar-color: rgba(245,158,11,.22) transparent; }
#ppCDList::-webkit-scrollbar       { width: 4px; }
#ppCDList::-webkit-scrollbar-thumb { background: rgba(245,158,11,.22); border-radius: 2px; }

/* Network carrier visual cards */
.pp-network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.pp-network-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  /* iOS/Android: eliminate 300ms tap delay and prevent scroll-ghost on taps */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* Ensure 44pt minimum touch target height (Apple HIG) */
  min-height: 72px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: rgba(0,0,0,.2);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  user-select: none;
}
.pp-network-card:hover { border-color: var(--nc-color, var(--primary)); color: var(--text); }
.pp-network-card.active {
  border-color: var(--nc-color, var(--primary));
  background: rgba(var(--nc-rgb, 124,58,237), .1);
  color: var(--nc-color, var(--primary));
  box-shadow: 0 0 0 3px rgba(var(--nc-rgb, 124,58,237), .12);
}
.pp-network-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.pp-network-card:hover .pp-network-logo,
.pp-network-card.active .pp-network-logo { transform: scale(1.08); }

/* Carrier brand colors */
.pp-nc-mtn        { --nc-color: #ffcc00; --nc-rgb: 255,204,0; }
.pp-nc-airtel     { --nc-color: #e40513; --nc-rgb: 228,5,19; }
.pp-nc-mpesa      { --nc-color: #00a650; --nc-rgb: 0,166,80; }
.pp-nc-tnm        { --nc-color: #0069b4; --nc-rgb: 0,105,180; }
.pp-nc-orange     { --nc-color: #ff6900; --nc-rgb: 255,105,0; }
.pp-nc-wave       { --nc-color: #4da6ff; --nc-rgb: 77,166,255; }
.pp-nc-vodafone   { --nc-color: #e60000; --nc-rgb: 230,0,0; }
.pp-nc-tigo       { --nc-color: #003087; --nc-rgb: 0,48,135; }
.pp-nc-airteltigo { --nc-color: #e40513; --nc-rgb: 228,5,19; }
.pp-nc-moov       { --nc-color: #0082c8; --nc-rgb: 0,130,200; }
.pp-nc-other      { --nc-color: #a78bfa; --nc-rgb: 167,139,250; }

/* SVG logos replace text in .pp-network-logo */
.pp-network-card > svg {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  transition: transform var(--transition);
}
.pp-network-card:hover > svg,
.pp-network-card.active > svg { transform: scale(1.08); }

/* Scrollable grid when many networks are shown */
.pp-network-grid {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}
.pp-network-grid::-webkit-scrollbar { width: 4px; }
.pp-network-grid::-webkit-scrollbar-track { background: transparent; }
.pp-network-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 2px; }

/* Country flag + name next to network card */
.pp-network-country {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
  opacity: .7;
}

/* Phone input row */
.pp-phone-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pp-dial-select {
  width: 90px;
  flex-shrink: 0;
  padding: 10px 8px;
  background: rgba(0,0,0,.22);
  border: 1.5px solid rgba(245,158,11,.22);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition);
}
.pp-dial-select:focus { border-color: #f59e0b; }

.pp-input {
  flex: 1;
  padding: 10px 13px;
  background: rgba(0,0,0,.22);
  border: 1.5px solid rgba(245,158,11,.2);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  letter-spacing: .02em;
}
.pp-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.14);
}
.pp-input::placeholder { color: var(--muted); font-weight: 400; }

.pp-hint {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.5;
}

/* Security note inside PawaPay panel */
.pp-security-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.pp-security-note svg { flex-shrink: 0; color: #34d399; }

/* ══════════════════════════════════════════════════════════
   MODAL — enhanced bottom sheet on mobile
   ══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    backdrop-filter: blur(6px);
  }
  .modal {
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    padding: 24px 20px 32px;
    border-bottom: none;
  }
  /* Drag handle */
  .modal::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin: 0 auto 20px;
  }
}

/* Step progress pill upgrade */
.modal-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  width: fit-content;
  min-width: 100%;
}
.modal-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.modal-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -50%;
  top: 13px;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
  transition: background .4s;
}
.modal-step-item.done::after { background: var(--primary); }

.modal-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  color: var(--muted);
  position: relative; z-index: 1;
  transition: all .3s;
}
.modal-step-item.active .modal-step-num {
  border-color: var(--primary);
  background: rgba(124,58,237,.12);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
}
.modal-step-item.done .modal-step-num {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.modal-step-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  transition: color .3s;
}
.modal-step-item.active .modal-step-label,
.modal-step-item.done .modal-step-label { color: var(--primary); }

/* Buy button enhanced */
.btn-buy {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 4px 22px rgba(124,58,237,.3);
  transition: all var(--transition);
  border: none;
}
.btn-buy:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,.4);
}
.btn-buy:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(124,58,237,.3);
}

/* Stripe security badge */
.stripe-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 8px 14px;
  background: rgba(103,114,229,.05);
  border: 1px solid rgba(103,114,229,.12);
  border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════
   TRUST BAR — enhanced pill items
   ══════════════════════════════════════════════════════════ */
.trust-bar {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-item-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.trust-item-pill:hover { color: var(--text); border-color: var(--primary); }
.trust-item-pill-icon {
  font-size: 14px;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   CATEGORY FILTER BUTTONS — upgraded
   ══════════════════════════════════════════════════════════ */
.cat-btn {
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 7px;
}
.cat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124,58,237,.14);
}
.cat-btn.active {
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADINGS
   ══════════════════════════════════════════════════════════ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.22);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════
   FAQ SECTION — enhanced
   ══════════════════════════════════════════════════════════ */
.faq-item {
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: 0 4px 24px rgba(0,0,0,.18); }
.faq-q {
  transition: background var(--transition), color var(--transition);
}
.faq-q:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════
   FOOTER — subtle glow top
   ══════════════════════════════════════════════════════════ */
.footer {
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(124,58,237,.3), transparent);
}

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE — enhanced card glow
   ══════════════════════════════════════════════════════════ */
.card {
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04);
  transition: box-shadow var(--transition);
}
.card:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(124,58,237,.12);
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL HELPERS
   ══════════════════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-up.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
  .pay-opt[data-method="pawapay"] {
    grid-column: auto;
  }
  .pp-network-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .pp-network-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════════════════════════
   MOBILE OVERRIDES — additional UX / compatibility fixes
   ══════════════════════════════════════════════════════════ */

/* PawaPay network grid: remove nested-scroll trap inside the bottom-sheet modal.
   The modal itself scrolls; the grid should expand fully rather than trap touch. */
@media (max-width: 640px) {
  .pp-network-grid {
    max-height: none;
    overflow-y: visible;
  }
}

/* Cart drawer: slide up from bottom on mobile instead of sliding in from the right.
   This matches the bottom-sheet pattern used by the purchase modal. */
@media (max-width: 640px) {
  .cart-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    transform: translateY(100%);
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .cart-drawer.open {
    transform: translateY(0);
  }
}

/* How-it-works swipe cards: slightly wider for legibility on narrow phones */
@media (max-width: 480px) {
  .how-step {
    min-width: 240px;
  }
}

/* Hero live badge: smaller on phones */
@media (max-width: 480px) {
  .hero-live-badge {
    font-size: 11px;
    padding: 4px 10px;
    margin-bottom: 14px;
  }
}

/* Prevent overflow from hero animated blobs on narrow screens */
@media (max-width: 640px) {
  .hero-blob-1 { width: 280px; height: 280px; }
  .hero-blob-2 { width: 220px; height: 220px; }
  .hero-blob-3 { width: 180px; height: 180px; }
}

/* Newsletter section: tighter padding on mobile */
@media (max-width: 640px) {
  .newsletter-section {
    padding: 40px 16px;
  }
}

/* touch-action on all interactive button/link elements — eliminates 300ms iOS delay */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-buy, .btn-add-cart, .cart-checkout-btn,
  .cat-btn, .denom-btn, .pay-opt, .cart-pay-opt,
  .faq-q, .mob-nav-link, .region-btn,
  .cart-close-btn, .modal-close, .scroll-nav-btn {
    touch-action: manipulation;
  }
}

/* Ensure how-step cards are always visible even if IntersectionObserver misses them
   (e.g. if user scrolls very fast or the observer fires before the threshold) */
@media (max-width: 640px) {
  .how-step {
    opacity: 1 !important;
    transform: none !important;
  }
}
