/* SPY MAX — modern dark intelligence theme
   Loaded after style.css. Tokens + chrome first, then component overrides. */

:root {
  --bg: #070b14;
  --bg-mid: #0c1322;
  --surface: #121a2c;
  --surface-2: #182236;
  --surface-glass: rgba(14, 20, 36, 0.72);
  --surface-hover: #1b2740;
  --border: rgba(148, 180, 230, 0.14);
  --text: #eef3ff;
  --text-muted: #8b9bb8;
  --primary: #3ba3ff;
  --primary-hover: #1d8cf0;
  --primary-glow: rgba(59, 163, 255, 0.38);
  --accent: #2ce8d4;
  --accent-soft: rgba(44, 232, 212, 0.14);
  --success: #34d399;
  --error: #fb7185;
  --radius: 20px;
  --radius-sm: 14px;
  --lookup-bg: rgba(18, 26, 44, 0.82);
  --lookup-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --app-header-h: 58px;
  --bottom-nav-h: 84px;
  --font-display: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --font-body: 'Manrope', 'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 22px 56px rgba(0, 0, 0, 0.4);
  --tech-glow: 0 0 48px rgba(59, 163, 255, 0.16);
}

html {
  color-scheme: dark;
}

::selection {
  background: rgba(59, 163, 255, 0.35);
  color: #fff;
}

body {
  background: var(--bg);
  color: var(--text);
}

.bg-gradient {
  background:
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(59, 163, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 8%, rgba(44, 232, 212, 0.16), transparent 50%),
    radial-gradient(ellipse 45% 38% at -8% 70%, rgba(99, 102, 241, 0.16), transparent 48%),
    linear-gradient(180deg, #08101c 0%, var(--bg) 42%, #05080f 100%);
}

.bg-gradient::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(59, 163, 255, 0.12), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(44, 232, 212, 0.08), transparent 24%);
}

.bg-gradient::after {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(59, 163, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 163, 255, 0.07) 1px, transparent 1px);
}

/* ── Splash ── */
.splash-screen {
  background:
    radial-gradient(ellipse 70% 50% at 50% 28%, rgba(59, 163, 255, 0.28), transparent 62%),
    linear-gradient(165deg, #04070e 0%, #0a1a33 48%, #0c3a6a 100%);
}

/* ── Header ── */
.app-header {
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.app-header-icon {
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 16px rgba(59, 163, 255, 0.25);
}

.app-header-title {
  background: linear-gradient(120deg, #fff 20%, var(--accent) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  filter: none;
}

.app-header-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: brandDot 2s ease-in-out infinite;
}

.app-header-badge.offline {
  color: #fda4af;
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.28);
}

.app-header-badge.offline::before {
  background: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
  animation: none;
}

.header-status-label {
  line-height: 1;
}

html.pwa-standalone .app-header {
  background: rgba(7, 11, 20, 0.92);
}

html.pwa-standalone .bg-gradient {
  opacity: 1;
}

:root {
  --bottom-nav-h: 16px;
}

.app-header-inner {
  gap: 10px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #9aa9c2;
  cursor: pointer;
}

.header-icon-btn.active {
  color: var(--accent);
  border-color: rgba(44, 232, 212, 0.32);
  background: rgba(44, 232, 212, 0.1);
}

.header-icon-btn .nav-badge {
  top: 2px;
  right: 2px;
  left: auto;
}

/* ── Hero ── */
#viewSearch .container {
  padding-top: 28px;
  max-width: 720px;
}

.page-hero {
  position: relative;
  margin-bottom: 26px;
  padding-top: 10px;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: -20px;
  width: 280px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(59, 163, 255, 0.28), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.page-hero-brand {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 163, 255, 0.1);
  border: 1px solid rgba(59, 163, 255, 0.2);
  color: #9fd2ff;
  letter-spacing: 0.12em;
}

.page-hero-title {
  background: linear-gradient(180deg, #fff 0%, #c5d4ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.85rem, 6.8vw, 2.55rem);
}

.page-hero-sub {
  max-width: 460px;
  color: #93a3bf;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #d5def0;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-pills li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-pills li:nth-child(2)::before { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.hero-pills li:nth-child(3)::before { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }

/* ── Lookup ── */
.lookup-shell {
  position: relative;
  padding: 12px;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(59, 163, 255, 0.12), transparent 55%),
    rgba(12, 18, 32, 0.72);
  border: 1px solid rgba(148, 180, 230, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.lookup-shell::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(44, 232, 212, 0.28), transparent 40%, rgba(59, 163, 255, 0.2));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
}

.lookup-bar {
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(148, 180, 230, 0.12);
  box-shadow: none;
  padding: 7px;
}

.lookup-shell .social-proof {
  margin-top: 14px;
  padding: 4px 8px 2px;
}

.lookup-bar:focus-within {
  border-color: rgba(59, 163, 255, 0.45);
  box-shadow: 0 18px 50px rgba(59, 163, 255, 0.14), 0 0 0 3px rgba(59, 163, 255, 0.12);
}

.country-trigger,
.lookup-phone {
  background: rgba(255, 255, 255, 0.04);
}

.country-trigger:hover {
  background: rgba(255, 255, 255, 0.07);
}

.country-dropdown {
  background: #121a2c;
  border-color: var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.country-dropdown li:hover,
.country-dropdown li.active {
  background: rgba(59, 163, 255, 0.12);
  color: #9fd2ff;
}

.lookup-divider {
  background: rgba(148, 180, 230, 0.16);
}

#phoneInput::placeholder {
  color: #64748b;
}

.lookup-btn {
  background: linear-gradient(135deg, #2ce8d4 0%, #3ba3ff 100%);
  color: #041018;
  box-shadow: 0 10px 28px rgba(59, 163, 255, 0.32);
  gap: 8px;
}

.lookup-btn-icon {
  flex-shrink: 0;
}

.lookup-btn:has(.btn-loader:not(.hidden)) .lookup-btn-icon,
.lookup-btn:has(.btn-loader:not(.hidden)) .btn-text {
  display: none;
}

.featured-logos span {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

.avatar {
  border-color: #0b1220;
}

.social-proof-text strong {
  color: #fff;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.home-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(18, 26, 44, 0.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.home-feature h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-feature p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.home-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-feature-icon--wa { background: rgba(37, 211, 102, 0.14); color: #25d366; }
.home-feature-icon--sms { background: rgba(59, 163, 255, 0.14); color: #7dd3fc; }
.home-feature-icon--phone { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 8px;
  padding: 14px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.home-stat {
  text-align: center;
}

.home-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.home-stat span {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .home-feature {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 12px 8px;
  }

  .home-stats {
    padding: 12px 4px;
  }

  .home-stat strong {
    font-size: 1.02rem;
  }
}

/* ── Cards / lists ── */
.history-item,
.more-card,
.report-panel,
.phone-summary,
.rx-chip,
.ps-card {
  background: rgba(18, 26, 44, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.history-item:active {
  background: var(--surface-hover);
}

.history-info strong,
.ps-card-value,
.rx-chip strong,
.rp-phone,
.report-number,
.rp-meta .rp-name:not(.rp-name-missing):not(.rp-wa-absent) {
  color: #f4f7ff;
}

.history-avatar {
  background: linear-gradient(145deg, #134e6f, #0e7490);
  color: #e0f2fe;
}

.more-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
}

.more-card-icon {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 163, 255, 0.12);
  color: var(--primary);
}

.more-card-icon--alert { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.more-card-icon--app { background: rgba(44, 232, 212, 0.12); color: var(--accent); }
.more-card-icon--api { background: rgba(167, 139, 250, 0.12); color: #c4b5fd; }

.more-card h3,
.more-card p,
.more-card .profile-install-btn {
  grid-column: 2;
}

.more-card code {
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
}

.error-box {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.28);
}

.empty-state {
  background: rgba(18, 26, 44, 0.55);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.pull-refresh {
  background: rgba(7, 11, 20, 0.92);
  border-bottom-color: var(--border);
  color: var(--accent);
}

/* ── Report ── */
.report-panel {
  background: #121a2c;
  box-shadow: var(--shadow-lift);
}

.rp-header {
  background: linear-gradient(180deg, rgba(59, 163, 255, 0.12) 0%, transparent 72%);
}

.rp-header--dossier {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 28px 20px 20px;
}

.rp-header--dossier .rp-identity {
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rp-header--dossier .rp-meta,
.rp-header--dossier .rp-phone-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rp-header--dossier .rp-avatar,
.rp-header--dossier .rp-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(44, 232, 212, 0.28);
  box-shadow: 0 0 0 8px rgba(44, 232, 212, 0.08), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.rp-header--dossier .rp-phone {
  font-size: clamp(1.55rem, 6vw, 2rem);
}

.rp-header--dossier .rp-badges-row {
  justify-content: center;
}

.rp-header--dossier .rp-score-chip {
  display: none;
}

.rp-scoreline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

.rp-scoreline-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.rp-scoreline-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rp-scoreline-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ce8d4, #3ba3ff);
}

.rp-scoreline-fill.rp-score-chip--mid {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.rp-scoreline-fill.rp-score-chip--low {
  background: linear-gradient(90deg, #fb7185, #f43f5e);
}

.rp-scoreline-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #fff;
  min-width: 36px;
  text-align: right;
}

.ps-cards--list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.ps-cards--list .ps-card {
  flex-direction: row;
  align-items: center;
  min-height: 0;
  padding: 12px 14px;
  gap: 12px;
}

.ps-cards--list .ps-card-label {
  flex: 1;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #9aa9c2;
}

.ps-cards--list .ps-card-value {
  text-align: right;
  font-size: 0.92rem;
}

.rp-gauge-wrap {
  display: none;
}

.rp-avatar {
  border-color: rgba(255, 255, 255, 0.1);
}

.rp-avatar-fallback {
  background: linear-gradient(145deg, #1e293b, #0f172a);
}

.rp-name,
.rp-about,
.rp-gauge-label,
.rp-summary-title,
.ps-card-label,
.rx-chip-label,
.rx-chip-sub,
.rp-footer-note {
  color: var(--text-muted);
}

.rp-name-missing {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.rp-wa-pill {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
}

.rp-wa-pill--off {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.28);
  color: #fda4af;
}

.rp-score-chip--good {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
}

.rp-score-chip--mid {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

.rp-score-chip--low {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.28);
  color: #fda4af;
}

.rp-summary {
  border-top-color: var(--border);
  background: rgba(8, 12, 22, 0.45);
}

.ps-card--country .ps-card-icon { background: rgba(59, 163, 255, 0.14); color: #7dd3fc; }
.ps-card--line .ps-card-icon { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; }
.ps-card--network .ps-card-icon { background: rgba(251, 113, 133, 0.12); color: #fda4af; }
.ps-card--whatsapp .ps-card-icon { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }

.ps-card-icon--network-logo {
  background: #0b1220 !important;
  border-color: var(--border);
}

.rp-footer-note {
  border-top-color: var(--border);
}

.rp-btn {
  background: rgba(59, 163, 255, 0.14);
  color: #bfdbfe;
}

.rp-btn:hover { background: rgba(59, 163, 255, 0.22); }

.rp-btn-wa {
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
}

.platforms-section-badge {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
}

.platform-card {
  background: #121a2c;
  border-color: var(--border);
}

.platform-card:hover:not(.platform-card--wa-off) {
  background: #182236;
}

.platform-card-loader {
  background: rgba(8, 12, 22, 0.86);
}

.platform-icon-wrap {
  background: color-mix(in srgb, var(--pc) 22%, #0b1220);
  border-color: color-mix(in srgb, var(--pc) 35%, transparent);
}

.platform-badge { color: #6ee7b7; }
.platform-badge--off { color: #fda4af; }
.platform-card-titles .platform-status { color: var(--text-muted); }
.platform-card--wa-off .platform-card-titles .platform-status { color: #fda4af; }

.platform-data,
.platform-card-detail .platform-data {
  background: rgba(8, 12, 22, 0.55);
}

.platform-data-fade {
  background: linear-gradient(to bottom, transparent, rgba(18, 26, 44, 0.95));
}

.platform-cta {
  background: linear-gradient(135deg, rgba(59, 163, 255, 0.12) 0%, rgba(44, 232, 212, 0.1) 100%);
  border-color: rgba(59, 163, 255, 0.22);
}

.collect-grid li {
  background: rgba(255, 255, 255, 0.04);
}

.collect-grid li.done {
  background: rgba(59, 163, 255, 0.1);
  border-color: rgba(59, 163, 255, 0.2);
}

/* ── Paywall / VPN / retrieve ── */
.paywall-backdrop,
.unlock-scan-backdrop,
.vpn-gate-backdrop {
  background: rgba(3, 6, 12, 0.72);
}

.paywall-card,
.vpn-gate-card,
.retrieve-card,
.unlock-retrieve-card {
  background:
    radial-gradient(ellipse 90% 40% at 50% -8%, rgba(59, 163, 255, 0.12), transparent 55%),
    #121a2c;
  border: 1px solid var(--border);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  color: var(--text);
}

.paywall-card:has(#paywallStepCheckout:not(.hidden)),
.paywall-card:has(#paywallStepPending:not(.hidden)) {
  text-align: center;
}

.paywall-card {
  width: min(100%, 380px);
  padding: 26px 20px 18px;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(44, 232, 212, 0.14), transparent 52%),
    rgba(10, 16, 30, 0.94);
  border-radius: 28px;
}

.paywall-success-ring {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paywall-success-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(44, 232, 212, 0.35);
  animation: scanSpin 12s linear infinite;
}

.paywall-summary-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(44, 232, 212, 0.2), rgba(59, 163, 255, 0.16));
  border-color: rgba(44, 232, 212, 0.35);
  color: var(--accent);
  box-shadow: 0 0 0 8px rgba(44, 232, 212, 0.08), 0 12px 28px rgba(0, 0, 0, 0.25);
}

.paywall-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(44, 232, 212, 0.12);
  border: 1px solid rgba(44, 232, 212, 0.28);
  color: #5eead4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paywall-ready-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ce8d4;
  box-shadow: 0 0 0 4px rgba(44, 232, 212, 0.16);
}

.paywall-price--hero {
  margin: 0 0 14px !important;
  padding: 16px 14px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(59, 163, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(148, 180, 230, 0.16);
}

.paywall-price-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.paywall-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.paywall-perks li {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #d5def0;
  font-size: 0.72rem;
  font-weight: 600;
}

.paywall-btn--paynow {
  min-height: 50px;
  border-radius: 16px;
  font-size: 1rem;
}

.paywall-secure {
  margin: 12px 0 0 !important;
  font-size: 0.72rem !important;
  color: #7c8ba5 !important;
}

.paywall-summary-title,
.paywall-card h3,
.vpn-gate-card h3,
.retrieve-title {
  color: #f8fafc;
}

.paywall-summary-text,
.paywall-card p,
.vpn-gate-lead,
.vpn-gate-sub,
.retrieve-note {
  color: var(--text-muted);
}

.paywall-price--hero #paywallPriceAmount,
.pay-checkout-amount--hero strong {
  color: #fff;
}

.paywall-step--checkout,
.paywall-step--pending {
  text-align: center;
}

.pay-checkout-hero {
  margin-bottom: 16px;
}

.pay-checkout-hero h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.pay-checkout-icon {
  color: var(--accent);
}

.pay-instructions-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(44, 232, 212, 0.18), rgba(59, 163, 255, 0.14));
  border: 1px solid rgba(44, 232, 212, 0.28);
  color: var(--accent);
  box-shadow: 0 0 0 8px rgba(44, 232, 212, 0.07);
  font-size: 0;
}

.pay-instructions-head h3 {
  color: #fff;
  margin-bottom: 8px;
}

.paywall-instructions-lead {
  max-width: 28em;
  color: #8b9bb8;
  font-size: 0.86rem;
}

.pay-networks {
  margin: 0 0 14px;
  gap: 6px;
}

.pay-network-chip {
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  gap: 6px;
}

.pay-network-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(148, 180, 230, 0.28);
  box-shadow: none;
}

.pay-net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pay-network-chip[data-net="mpesa"] .pay-net-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

.pay-network-chip[data-net="yas"] .pay-net-dot {
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.45);
}

.pay-network-chip[data-net="airtel"] .pay-net-dot {
  background: #fb7185;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.45);
}

.pay-network-chip[data-net="halo"] .pay-net-dot {
  background: #fb923c;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.45);
}

.pay-network-label {
  color: #d5def0;
  font-size: 0.7rem;
}

.pay-checkout-amount--hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(44, 232, 212, 0.12), rgba(59, 163, 255, 0.05));
  border: 1px solid rgba(148, 180, 230, 0.16);
  border-radius: 18px;
  padding: 16px 14px 14px;
  color: #8b9bb8;
}

.pay-checkout-amount--hero::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(44, 232, 212, 0.55), transparent);
}

.pay-amount-note {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7c8ba5;
}

.pay-phone-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.pay-phone-shell:focus-within {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 163, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 163, 255, 0.14);
}

.pay-phone-ico {
  display: flex;
  color: #7dd3fc;
  flex-shrink: 0;
}

.pay-phone-shell input,
.pay-phone-shell input:focus {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff;
  border-radius: 0;
  text-align: left;
  padding: 14px 0;
}

.pay-checkout-error {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.28);
  color: #fda4af;
}

.paywall-btn-secondary {
  margin-top: 2px;
  border-radius: 14px;
}

.pay-field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #fff;
}

.pay-field input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 163, 255, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 163, 255, 0.14);
}

.pay-pending-visual {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-pending-ring,
.pay-pending-ring--2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(59, 163, 255, 0.22);
  animation: scanPulse 2.4s ease-out infinite;
}

.pay-pending-ring--2 {
  inset: 16px;
  border-color: rgba(44, 232, 212, 0.3);
  animation-delay: 0.45s;
}

.pay-pending-spinner {
  width: 28px;
  height: 28px;
  margin: 0;
  border-width: 2px;
  border-color: rgba(125, 211, 252, 0.25);
  border-top-color: #2ce8d4;
}

.pay-success-tick {
  color: #2ce8d4;
}

.pay-success-tick svg {
  width: 44px;
  height: 44px;
}

.pay-pending-wrap h3 {
  color: #f8fafc;
}

.pay-pending-wrap p {
  color: #8b9bb8;
}

.pay-pending-wrap.pay-pending--done h3,
.vpn-pending.vpn-pending--done h3 {
  color: #5eead4;
}

.pay-status-badge--done {
  background: rgba(44, 232, 212, 0.12);
  color: #5eead4;
  border: 1px solid rgba(44, 232, 212, 0.28);
}

.pay-pending-order code {
  background: rgba(255, 255, 255, 0.06);
  color: #d5def0;
  border-radius: 6px;
  padding: 3px 7px;
}

.paywall-btn,
.paywall-btn--paynow,
.vpn-card-btn,
.profile-install-btn,
.install-banner-btn {
  background: linear-gradient(135deg, #2ce8d4 0%, #3ba3ff 100%);
  color: #041018;
}

.paywall-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #dbeafe;
}

.pay-status-badge--waiting {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}

.pay-recipient-card,
.vpn-card,
.pay-network-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.loading-overlay {
  padding: 20px;
}

.loading-map-bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(59, 163, 255, 0.22), transparent 58%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(44, 232, 212, 0.1), transparent 50%),
    #05080f;
}

.loading-overlay::after {
  background: rgba(3, 6, 12, 0.28);
}

.loading-card {
  width: min(100%, 380px);
  padding: 28px 22px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(59, 163, 255, 0.16), transparent 55%),
    rgba(10, 16, 30, 0.88);
  border: 1px solid rgba(148, 180, 230, 0.16);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.loading-scan {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto 16px;
}

.loading-scan-ring,
.loading-scan-ring--2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(59, 163, 255, 0.22);
  animation: scanPulse 2.4s ease-out infinite;
}

.loading-scan-ring--2 {
  inset: 14px;
  border-color: rgba(44, 232, 212, 0.28);
  animation-delay: 0.4s;
}

.loading-scan-sweep {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(44, 232, 212, 0.45) 100%);
  animation: scanSpin 1.6s linear infinite;
  mask: radial-gradient(farthest-side, transparent 62%, #000 63%);
  -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 63%);
}

.loading-scan-core {
  position: absolute;
  inset: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 163, 255, 0.12);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(44, 232, 212, 0.25);
}

@keyframes scanPulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  70% { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}

@keyframes scanSpin {
  to { transform: rotate(360deg); }
}

.loading-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.loading-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.loading-phone {
  margin: 0 0 18px;
  min-height: 1.2em;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.loading-progress-wrap {
  margin-bottom: 16px;
}

.loading-progress-track,
.retrieve-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.loading-timer {
  color: var(--accent);
  min-width: 28px;
}

.loading-steps {
  gap: 8px;
  text-align: left;
}

.loading-steps li,
.loading-steps li:nth-child(odd),
.loading-steps li:nth-child(even) {
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
}

.loading-steps li.active {
  background: rgba(59, 163, 255, 0.1);
  border-color: rgba(59, 163, 255, 0.22);
  box-shadow: none;
}

.loading-steps li.done {
  background: rgba(44, 232, 212, 0.06);
  border-color: rgba(44, 232, 212, 0.16);
}

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8b9bb8;
}

.loading-steps li.active .step-label,
.loading-steps li.done .step-label {
  color: #e8eefc;
}

.step-value {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  max-width: none;
}

.step-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}

.loading-steps li[data-step="carrier"] .step-mark {
  background-color: rgba(59, 163, 255, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='2'%3E%3Cpath d='M2 20h20M5 20V10M12 20V4M19 20v-6'/%3E%3C/svg%3E");
}

.loading-steps li[data-step="type"] .step-mark {
  background-color: rgba(167, 139, 250, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

.loading-steps li[data-step="country"] .step-mark {
  background-color: rgba(44, 232, 212, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ce8d4' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 010 18M12 3a15 15 0 000 18'/%3E%3C/svg%3E");
}

.step-icon {
  background: transparent;
}

.loading-steps li.done .step-icon {
  background: rgba(44, 232, 212, 0.14);
}

.loading-steps li.done .step-icon::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232ce8d4'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.step-spinner {
  border-color: rgba(44, 232, 212, 0.2);
  border-top-color: var(--accent);
}

.retrieve-screen {
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(59, 163, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 80%, rgba(44, 232, 212, 0.08), transparent 50%),
    #05080f;
}

.retrieve-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  background: transparent;
  border-bottom: none;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
}

.retrieve-brand {
  margin: 0;
}

.retrieve-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retrieve-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: brandDot 2s ease-in-out infinite;
}

.retrieve-body {
  padding-top: 8px;
  gap: 0;
}

.retrieve-card {
  max-width: 440px;
  padding: 26px 20px 20px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(59, 163, 255, 0.14), transparent 55%),
    rgba(10, 16, 30, 0.9);
  border: 1px solid rgba(148, 180, 230, 0.16);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.retrieve-kicker {
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.retrieve-title {
  margin-bottom: 18px;
  color: #fff;
}

.retrieve-phone-row {
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 180, 230, 0.12);
}

.retrieve-orb {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.retrieve-orb-ring,
.retrieve-orb-ring--2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(59, 163, 255, 0.25);
  animation: scanPulse 2.4s ease-out infinite;
}

.retrieve-orb-ring--2 {
  inset: 10px;
  border-color: rgba(44, 232, 212, 0.28);
  animation-delay: 0.35s;
}

.blur-avatar {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #22d3ee, #3ba3ff);
}

.blur-lock {
  background: #0b1220;
  border-color: rgba(44, 232, 212, 0.35);
  color: var(--accent);
}

.retrieve-phone {
  color: #fff;
  font-size: clamp(1.15rem, 4.6vw, 1.45rem);
}

.retrieve-progress-row {
  margin-bottom: 12px;
}

.retrieve-progress-track {
  height: 8px;
}

.retrieve-percent {
  color: var(--accent);
}

.retrieve-note {
  color: #8b9bb8;
  margin-bottom: 18px;
}

.collect-heading {
  color: #e8eefc;
  text-align: center;
  font-size: 0.92rem;
}

.collect-heading.collect-success {
  color: var(--accent);
}

.collect-grid {
  gap: 8px;
}

.collect-grid li {
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 180, 230, 0.08);
  color: #93a3bf;
  border-radius: 14px;
}

.collect-grid li.done {
  color: #e8eefc;
  background: rgba(44, 232, 212, 0.08);
  border-color: rgba(44, 232, 212, 0.18);
}

.collect-grid li.done .collect-icon::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232ce8d4'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.collect-grid li .collect-icon::before {
  border-color: rgba(44, 232, 212, 0.2);
  border-top-color: var(--accent);
}

.collect-grid li.pending {
  opacity: 0.55;
}

.collect-grid li.pending .collect-icon::before {
  border-color: #475569;
  border-top-color: #475569;
}

@media (max-width: 560px) {
  .collect-grid {
    grid-template-columns: 1fr;
  }

  .paywall-card,
  .paywall-card:has(#paywallStepCheckout:not(.hidden)),
  .paywall-card:has(#paywallStepPending:not(.hidden)) {
    border-radius: 24px;
    padding: 22px 16px 16px;
  }

  .pay-checkout-hero h3 {
    font-size: 1.2rem;
  }

  .pay-network-chip {
    height: 34px;
  }
}

.install-banner-inner {
  background: linear-gradient(135deg, #0b1220 0%, #123056 100%);
  border-color: rgba(44, 232, 212, 0.22);
}

.install-banner {
  bottom: calc(16px + env(safe-area-inset-bottom));
}

@media (max-width: 720px) {
  .rp-header {
    background: linear-gradient(180deg, rgba(59, 163, 255, 0.12) 0%, transparent 100%);
  }

  .report-panel {
    box-shadow: var(--shadow-lift);
  }

  .more-card {
    grid-template-columns: auto 1fr;
  }
}
