*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --accent: #0ea5e9;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --lookup-bg: #eef1f4;
  --app-header-h: 52px;
  --bottom-nav-h: 64px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(167, 243, 208, 0.35), transparent),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(191, 219, 254, 0.25), transparent),
    linear-gradient(180deg, #f0fdf4 0%, var(--bg) 40%, #f8fafc 100%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   Native App Shell (PWA)
   ══════════════════════════════════════ */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(160deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.splash-screen.splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-icon {
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
}

.splash-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.splash-sub {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 24px;
}

.splash-loader {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.install-banner {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom));
  left: 12px;
  right: 12px;
  z-index: 1310;
  max-width: 480px;
  margin: 0 auto;
}

.install-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.35);
}

.install-banner-inner img {
  border-radius: 10px;
  flex-shrink: 0;
}

.install-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-banner-text strong {
  font-size: 0.9rem;
}

.install-banner-text span {
  font-size: 0.75rem;
  opacity: 0.75;
}

.install-banner-btn {
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
}

.install-dismiss {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.pull-refresh {
  position: fixed;
  top: calc(var(--app-header-h) + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateY(-110%);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.pull-refresh.hidden {
  display: none;
}

.pull-refresh.is-ready .pull-refresh-label::after {
  content: ' — achia';
}

.pull-refresh.is-refreshing .pull-refresh-spinner {
  animation: spin 0.7s linear infinite;
}

.pull-refresh-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
}

.profile-install-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.profile-install-btn.hidden {
  display: none;
}

html.pwa-standalone #installAppCard,
html.pwa-standalone .install-banner {
  display: none !important;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  position: relative;
  z-index: 1;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.app-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--app-header-h);
  padding: 0 16px;
  max-width: 960px;
  margin: 0 auto;
}

.app-header-icon {
  border-radius: 8px;
}

.app-header-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: 1;
}

.app-header-badge {
  font-size: 0.65rem;
  color: #22c55e;
}

.app-header-badge.offline {
  color: #ef4444;
}

.app-main {
  flex: 1 1 auto;
  width: 100%;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 16px);
  overflow-x: hidden;
  touch-action: pan-y;
}

.app-view {
  display: none;
  animation: viewIn 0.25s ease;
}

.app-view.active {
  display: block;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, transform 0.1s;
}

.bottom-nav-item:active {
  transform: scale(0.94);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.nav-icon {
  width: 24px;
  height: 24px;
}

.nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.view-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.view-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.page-hero {
  text-align: center;
  margin-bottom: 22px;
  padding-top: 2px;
}

.page-hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.page-hero-sub {
  margin: 0 auto;
  max-width: 360px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.text-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  touch-action: manipulation;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-hint {
  font-size: 0.85rem;
  margin-top: 4px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  touch-action: manipulation;
  transition: background 0.12s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.history-item:active {
  transform: scale(0.98);
  background: #f8fafc;
}

.history-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.history-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-info strong {
  font-size: 0.95rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-info span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-time {
  font-size: 0.72rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.more-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.more-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.more-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.more-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.more-card code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.more-footer {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 32px;
  padding-bottom: 16px;
}

/* Standalone PWA mode */
html.pwa-standalone .install-banner {
  display: none !important;
}

html.pwa-standalone .app-header {
  background: rgba(255, 255, 255, 0.98);
}

html.pwa-standalone .bg-gradient {
  opacity: 0.6;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

/* ── ClarityCheck-style lookup bar ── */
.search-section {
  margin-bottom: 32px;
}

.lookup-bar {
  display: flex;
  align-items: stretch;
  background: var(--lookup-bg);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--lookup-shadow);
  border: 1px solid #dde3ea;
  gap: 0;
}

.lookup-country {
  position: relative;
  flex-shrink: 0;
}

.country-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 64px;
  padding: 0 16px;
  background: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
  white-space: nowrap;
  touch-action: manipulation;
}

.country-trigger:hover {
  background: #f8fafc;
}

.country-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.country-name {
  font-weight: 600;
}

.country-code {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.country-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
}

.country-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  list-style: none;
  padding: 6px;
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
}

.country-dropdown li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.12s;
}

.country-dropdown li:hover,
.country-dropdown li.active {
  background: #eff6ff;
  color: var(--primary);
}

.country-dropdown img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.lookup-divider {
  width: 1px;
  background: #d1d9e0;
  margin: 12px 4px;
  flex-shrink: 0;
}

.lookup-phone {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 16px;
  background: #fff;
  border-radius: 10px;
  min-width: 0;
}

.phone-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

#phoneInput {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  padding: 0;
  letter-spacing: 0.02em;
  outline: none;
  min-height: 28px;
  -webkit-appearance: none;
  appearance: none;
}

#phoneInput::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.lookup-btn {
  flex-shrink: 0;
  align-self: center;
  margin: 4px;
  padding: 0 32px;
  min-height: 56px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  touch-action: manipulation;
}

.lookup-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.lookup-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.lookup-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 0 4px;
}

.avatar-stack {
  --avatar-size: 32px;
  --avatar-overlap: 10px;
  --avatar-count: 5;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: calc(
    var(--avatar-size) + (var(--avatar-count) - 1) * (var(--avatar-size) - var(--avatar-overlap))
  );
}

.avatar {
  width: var(--avatar-size, 32px);
  height: var(--avatar-size, 32px);
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: calc(-1 * var(--avatar-overlap, 10px));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  position: relative;
}

.avatar:first-child {
  margin-left: 0;
  z-index: 5;
}

.avatar:nth-child(2) { z-index: 4; }
.avatar:nth-child(3) { z-index: 3; }
.avatar:nth-child(4) { z-index: 2; }
.avatar:nth-child(5) { z-index: 1; }

.social-proof-text {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.social-proof-text strong {
  color: var(--text);
  font-weight: 700;
}

/* ── FAQ ── */
.faq-section {
  margin-top: 28px;
  padding-top: 8px;
}

.faq-preview {
  margin-top: 28px;
  padding-top: 4px;
}

.faq-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.faq-preview-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.faq-preview-all {
  background: none;
  border: none;
  padding: 6px 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
}

.faq-list--preview {
  margin-top: 0;
}

#viewFaq .faq-list {
  margin-top: 4px;
}

.faq-section-head {
  margin-bottom: 14px;
}

.faq-section-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.faq-section-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question-text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq-item[open] .faq-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-answer {
  padding: 12px 16px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* legacy removed */
.search-card,
.input-group,
.country-select,
.search-btn,
.hint {
  display: none;
}

.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hint {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--error);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

.results {
  max-width: 820px;
  margin: 0 auto;
}

/* ── Compact mode after search (home view) ── */
body.has-results #viewHome .container {
  padding-top: 12px;
}

/* ── Unified report panel (ClarityCheck style) ── */
.report-panel {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
  overflow: hidden;
}

.rp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 72%);
}

.rp-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.rp-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.rp-wa-mark {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.rp-phone-block {
  margin-bottom: 2px;
}

.rp-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.rp-score-chip {
  display: none;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.rp-score-chip--good {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.rp-score-chip--mid {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}

.rp-score-chip--low {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.rp-wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 7px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
}

.rp-wa-pill svg {
  width: 14px;
  height: 14px;
  color: #25d366;
}

.rp-wa-pill--off {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.rp-wa-pill--off svg {
  color: #ef4444;
}

.rp-wa-mark--off {
  background: #94a3b8;
  box-shadow: 0 2px 6px rgba(148, 163, 184, 0.45);
}

.ps-value.ps-network {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.ps-value.ps-network .network-logo-xs {
  flex-shrink: 0;
}

.rp-avatar {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rp-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
}

.rp-phone {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 2px;
}

.rp-name {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0;
  margin-top: 4px;
}

.rp-meta .rp-name:not(.rp-name-missing):not(.rp-wa-absent) {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.rp-name-missing {
  color: #64748b;
  font-weight: 500;
  font-style: normal;
  cursor: help;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 5px 12px;
  background: #f1f5f9;
  border-radius: 100px;
  font-size: 0.82rem;
}

.rp-wa-absent {
  color: #dc2626;
  font-weight: 600;
  font-style: normal;
}

.rp-about {
  font-size: 0.85rem;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.35;
}

.rp-gauge-wrap {
  text-align: center;
  flex-shrink: 0;
}

.rp-gauge-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.quality-gauge {
  width: 120px;
  height: 72px;
  display: block;
}

.rp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 28px 20px;
}

.rp-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #dbeafe;
  color: #1d4ed8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}

.rp-btn:hover {
  background: #bfdbfe;
}

.rp-btn-wa {
  background: #dcfce7;
  color: #15803d;
}

.rp-btn-wa:hover {
  background: #bbf7d0;
}

.rp-summary {
  border-top: 1px solid #f1f5f9;
  padding: 20px 28px 12px;
  background: #fafbfc;
}

.rp-summary-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ps-list {
  display: flex;
  flex-direction: column;
}

.ps-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #eef1f5;
}

.ps-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ps-row-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.ps-row--country .ps-row-icon {
  background: #eff6ff;
  color: #2563eb;
}

.ps-row--line .ps-row-icon {
  background: #f5f3ff;
  color: #7c3aed;
}

.ps-row--network .ps-row-icon {
  background: #fef2f2;
  color: #dc2626;
}

.ps-row--whatsapp .ps-row-icon {
  background: #ecfdf5;
  color: #16a34a;
}

.ps-row:last-child {
  border-bottom: none;
}

.ps-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  flex-shrink: 0;
}

.ps-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}

.ps-value.empty {
  color: #cbd5e1;
  font-weight: 500;
}

.ps-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.ps-flag {
  border-radius: 2px;
  object-fit: cover;
}

.rp-footer-note {
  font-size: 0.72rem;
  color: #94a3b8;
  padding: 12px 28px 16px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  line-height: 1.45;
}

/* ── Extra chips (network / IP) ── */
.report-extra {
  margin-bottom: 20px;
}

.rx-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rx-chip {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rx-chip-network {
  border-left: 3px solid var(--c, #2563eb);
}

.rx-chip-muted strong {
  color: #94a3b8;
  font-weight: 500;
}

.rx-chip-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.rx-chip strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}

.rx-chip-sub {
  font-size: 0.78rem;
  color: #64748b;
}

.report-tabs-wrap {
  margin-top: 4px;
}

.report-tabs-wrap .tabs {
  margin-bottom: 16px;
}

.phone-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--lookup-shadow);
  overflow: hidden;
}

.report-card-inner {
  padding: 28px 28px 20px;
}

.report-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.report-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.report-avatar {
  flex-shrink: 0;
}

.report-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.report-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 2px solid #e5e7eb;
}

.report-avatar-placeholder.locked {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
}

.report-number {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 10px;
  word-break: break-word;
}

.report-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.report-updated {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.report-quality {
  text-align: center;
  flex-shrink: 0;
}

.quality-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.quality-gauge {
  width: 120px;
  height: 72px;
  display: block;
}

.report-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.report-btn {
  padding: 11px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

.report-btn:active {
  transform: scale(0.98);
}

.report-btn.primary {
  background: #dbeafe;
  color: #1d4ed8;
}

.report-btn.primary:hover {
  background: #bfdbfe;
}

.report-btn.secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border);
}

.report-btn.secondary:hover {
  background: #e2e8f0;
}

/* ── Profile summary ── */
.profile-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--lookup-shadow);
}

.summary-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.summary-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.summary-row.missing .summary-value em {
  font-style: normal;
  color: #94a3b8;
  font-weight: 500;
}

.summary-row.found .summary-value {
  color: #0f172a;
}

.wa-inline-notice {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.wa-inline-notice.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.wa-inline-notice span:first-child {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.wa-inline-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
}

.wa-inline-notice p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.wa-inline-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: #25d366;
  text-decoration: none;
  font-size: 0.85rem;
}

.wa-inline-link:hover {
  text-decoration: underline;
}

/* ── Data sources info ── */
.data-sources-card {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.sources-header {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.sources-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sources-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e3a5f;
}

.sources-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.source-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.source-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #111827;
}

.source-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.source-tag.paid {
  background: #fef3c7;
  color: #b45309;
}

.source-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

.source-item a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.source-item a:hover {
  text-decoration: underline;
}

.sources-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sources-note code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.phone-summary {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--lookup-shadow);
}

.whatsapp-profile-card {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--lookup-shadow);
  background: linear-gradient(135deg, #f0fdf4, #fff);
}

.wa-profile-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.wa-profile-photo {
  flex-shrink: 0;
}

.wa-profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.wa-profile-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid #25D366;
}

.wa-profile-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #16a34a;
  font-weight: 600;
}

.wa-profile-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin: 4px 0 6px;
}

.wa-profile-about {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.wa-profile-status {
  font-size: 0.85rem;
  color: #16a34a;
  font-weight: 500;
}

.wa-profile-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #25D366;
  text-decoration: none;
}

.wa-profile-link:hover {
  text-decoration: underline;
}

.wa-profile-link-btn {
  background: #25D366;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
}

.wa-profile-link-btn:hover {
  background: #1da851;
}

.wa-profile-hidden .wa-profile-placeholder {
  background: #fef3c7;
  border-color: #f59e0b;
}

.retrieve-real-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.phone-summary .number {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phone-summary .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.badge.success {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--success);
}

.badge.warning {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.badge.network-badge {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
}

.network-logo,
.network-logo-sm,
.network-logo-xs,
.network-logo-lg {
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.network-logo-sm {
  height: 22px;
  width: auto;
  max-width: 72px;
}

.network-logo-xs {
  height: 22px;
  width: auto;
  max-width: 88px;
}

.network-logo-xs[alt='Halotel'] {
  height: 22px;
  width: 22px;
  max-width: 22px;
  border-radius: 6px;
}

.network-logo-xs[alt='Vodacom'] {
  height: 22px;
  width: 22px;
  max-width: 22px;
}

.network-logo-lg {
  width: 100%;
  height: 100%;
  max-height: 36px;
}

.network-logo-wrap {
  width: 100px;
  height: 44px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.info-network {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.network-ip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(12px);
}

.network-card {
  border-left: 4px solid var(--accent, var(--primary));
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.detail-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.detail-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.detail-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.detail-stat label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-stat strong {
  font-size: 0.95rem;
}

.detail-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.detail-note.muted {
  opacity: 0.75;
}

.ip-list {
  gap: 10px;
}

.ip-entry {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ip-address {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.ip-geo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ip-context {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
  line-height: 1.4;
}

.info-item.full {
  grid-column: 1 / -1;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px;
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: var(--primary);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.platforms-section {
  margin-top: 20px;
  padding-top: 4px;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.platforms-section.hidden {
  display: none;
}

.platforms-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.platforms-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.platforms-section-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.platforms-section-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 0;
}

@keyframes platformCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform-card {
  --pc: var(--border);
  background: var(--surface);
  border: 2px solid var(--pc);
  border-radius: 14px;
  padding: 0;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font: inherit;
  color: inherit;
  animation: platformCardIn 0.45s ease backwards;
}

.platform-card-accent {
  display: none;
}

.platform-card:hover:not(.platform-card--wa-off) {
  background: var(--surface-hover);
  transform: translateY(-3px);
  border-color: var(--pc);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--pc) 22%, transparent);
}

.platform-card:active {
  transform: translateY(-1px);
}

.platform-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.platform-card-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 148px;
}

.platform-card.is-loading .platform-card-body {
  opacity: 0.35;
  pointer-events: none;
}

.platform-card-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  z-index: 2;
}

.platform-card-loader.hidden {
  display: none;
}

.platform-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.platform-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--pc) 12%, white);
  border: 1px solid color-mix(in srgb, var(--pc) 28%, white);
}

.platform-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon-svg--wa {
  color: #25d366;
}

.platform-icon-svg--sms {
  color: #2563eb;
}

.platform-icon-svg--phone {
  color: #16a34a;
}

.platform-card-titles {
  flex: 1;
  min-width: 0;
}

.platform-card-titles h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platform-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.platform-badge--off {
  color: #b91c1c;
}

.platform-badge--off .platform-badge-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.platform-card-titles .platform-status {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.platform-card--wa-off .platform-card-titles .platform-status {
  color: #b91c1c;
}

.platform-card--wa-off {
  cursor: not-allowed;
  opacity: 0.72;
  border-color: var(--border);
}

.platform-card--wa-off:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
  background: var(--surface);
}

.platform-card.is-expanded .platform-cta-arrow {
  transform: rotate(90deg);
}

.platform-card-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.platform-card-detail .platform-data {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
}

.platform-lock-mini {
  font-size: 0.85rem;
  opacity: 0.45;
  line-height: 1;
  margin-top: 2px;
}

.platform-data-wrap {
  position: relative;
  margin-bottom: 12px;
}

.platform-data {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
}

.platform-data-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.95));
  pointer-events: none;
  border-radius: 0 0 10px 10px;
}

.platform-data-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
}

.platform-data-row:last-child {
  border-bottom: none;
}

.platform-data-row--primary .pdr-value {
  color: var(--primary);
}

.pdr-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.pdr-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.platform-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  margin-top: auto;
}

.platform-cta-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.platform-cta-arrow {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.15s;
}

.platform-card:hover .platform-cta-arrow {
  transform: translateX(3px);
}

.paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.paywall-modal.hidden {
  display: none;
}

.paywall-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.paywall-card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  margin: auto;
  flex-shrink: 0;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.paywall-card:has(#paywallStepCheckout:not(.hidden)),
.paywall-card:has(#paywallStepPending:not(.hidden)) {
  width: min(100%, 420px);
  padding: 20px 18px 18px;
  text-align: left;
}

.paywall-lock {
  font-size: 2rem;
  margin-bottom: 8px;
}

.paywall-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.paywall-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.paywall-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
}

.paywall-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.paywall-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0;
}

.paywall-btn:hover {
  filter: brightness(1.05);
}

.paywall-btn-secondary {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}

body.paywall-open {
  overflow: hidden;
}

.paywall-step.hidden {
  display: none;
}

.pay-instructions-head {
  text-align: center;
  margin-bottom: 14px;
}

.pay-instructions-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  margin-bottom: 10px;
}

.pay-instructions-head h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.paywall-instructions-lead {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.pay-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.pay-checkout-form .pay-networks {
  margin-top: 2px;
  margin-bottom: 16px;
}

.pay-network-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.pay-network-chip img {
  display: block;
  max-width: 72px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pay-network-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.pay-network-chip--wide {
  min-width: 96px;
}

.pay-network-chip--wide img {
  max-width: 92px;
  max-height: 28px;
}

.pay-recipient-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.pay-recipient-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 0.84rem;
  border-bottom: 1px solid #e8eef7;
}

.pay-recipient-row:last-child {
  border-bottom: none;
}

.pay-recipient-row span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.pay-recipient-row strong {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.pay-recipient-row--phone strong {
  font-size: 1rem;
  color: #2563eb;
  letter-spacing: 0.02em;
}

.pay-recipient-row--amount strong {
  font-size: 1.05rem;
  color: #15803d;
}

.pay-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.pay-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.pay-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pay-step p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

.paywall-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  text-align: center;
}

.pay-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.pay-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.pay-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  background: #fff;
}

.pay-field input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pay-field small {
  font-size: 0.72rem;
  color: #94a3b8;
}

.pay-checkout-amount {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #475569;
}

.pay-checkout-amount strong {
  color: #0f172a;
  font-size: 1.05rem;
}

.pay-checkout-form--simple {
  gap: 14px;
}

.pay-checkout-amount--hero {
  margin: 0 0 4px;
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #dbeafe;
  font-size: 0.92rem;
}

.pay-checkout-amount--hero strong {
  display: block;
  margin-top: 2px;
  font-size: 1.45rem;
  color: #1d4ed8;
  letter-spacing: -0.02em;
}

.pay-field--phone input {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 14px;
  text-align: center;
}

.paywall-btn--paynow {
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 14px 18px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.paywall-btn--paynow:hover {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.pay-checkout-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.82rem;
  line-height: 1.4;
}

.pay-checkout-error.hidden {
  display: none;
}

.pay-pending-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 4px;
}

.pay-pending-spinner {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  flex-shrink: 0;
}

.pay-success-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  animation: payTickIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.pay-success-tick.hidden {
  display: none !important;
}

@keyframes payTickIn {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pay-pending-wrap h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.pay-pending-wrap p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.pay-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pay-status-badge--waiting {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.pay-status-badge--done {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.pay-status-badge--done::before {
  content: '✓ ';
}

.pay-pending-wrap.pay-pending--done h3,
.vpn-pending.vpn-pending--done h3 {
  color: #15803d;
}

.pay-pending-wrap.pay-pending--done,
.vpn-pending.vpn-pending--done {
  animation: payDonePop 0.35s ease;
}

@keyframes payDonePop {
  from { transform: scale(0.98); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

.vpn-pending h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pay-pending-order {
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
}

.pay-pending-order code {
  font-size: 0.72rem;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

#paywallStepCheckout .paywall-btn,
#paywallStepCheckout .paywall-btn-secondary,
#paywallStepPending .paywall-btn-secondary {
  text-align: center;
}

@media (max-width: 480px) {
  .paywall-modal {
    padding: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .paywall-card {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
    padding: 20px 16px 16px;
  }

  .paywall-card:has(#paywallStepCheckout:not(.hidden)),
  .paywall-card:has(#paywallStepPending:not(.hidden)) {
    width: 100%;
    padding: 16px 14px 14px;
  }

  .pay-instructions-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .pay-instructions-head {
    margin-bottom: 10px;
  }

  .pay-instructions-head h3 {
    font-size: 1.05rem;
  }

  .paywall-instructions-lead {
    font-size: 0.8rem;
  }

  .pay-networks {
    margin-bottom: 10px;
    gap: 5px;
  }

  .pay-network-chip {
    min-width: 68px;
    height: 40px;
    padding: 5px 8px;
  }

  .pay-network-chip img {
    max-width: 64px;
    max-height: 28px;
  }

  .pay-recipient-row {
    padding: 9px 11px;
    font-size: 0.8rem;
  }

  .pay-recipient-row--phone strong {
    font-size: 0.92rem;
  }

  .pay-steps {
    gap: 6px;
    margin-bottom: 10px;
  }

  .pay-step {
    padding: 8px 10px;
    gap: 8px;
  }

  .pay-step p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .pay-step-num {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }

  .paywall-btn {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .paywall-note {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }
}

/* ── Platform unlock scan popup ── */
.unlock-scan-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.unlock-scan-modal.hidden {
  display: none;
}

.unlock-scan-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
}

.unlock-retrieve-card {
  position: relative;
  width: min(100%, 520px);
  padding: 32px 28px 26px;
  animation: cardIn 0.35s ease-out;
}

.unlock-scan-title {
  font-size: 1.2rem;
  margin-bottom: 22px;
}

.unlock-scan-phone-row {
  margin-bottom: 24px;
}

.unlock-scan-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #d1d5db;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  filter: blur(11px) saturate(1.1);
  transition: opacity 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
}

.unlock-scan-avatar.is-changing {
  opacity: 0.35;
}

.unlock-scan-phone {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  transition: opacity 0.35s ease;
  min-width: 0;
  word-break: break-word;
}

.unlock-scan-phone.is-changing {
  opacity: 0.35;
}

.unlock-scan-progress-row {
  margin-bottom: 14px;
}

.unlock-scan-note {
  margin: 0;
  text-align: center;
}

.unlock-scan-complete-msg {
  margin: 10px 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #2563eb;
}

.unlock-scan-complete-msg.hidden {
  display: none;
}

.unlock-retrieve-card.unlock-scan-complete .unlock-scan-title {
  color: #15803d;
}

.unlock-retrieve-card.unlock-scan-complete .retrieve-progress-bar {
  background: #16a34a;
  animation: none;
}

.unlock-retrieve-card.unlock-scan-complete .retrieve-percent {
  color: #15803d;
}

body.unlock-scan-open {
  overflow: hidden;
}

.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.platform-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.platform-card p.platform-status {
  margin-bottom: 0;
}

.platform-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.platform-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.platform-link .link-type {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.web-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.web-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: background 0.2s;
}

.web-result:hover {
  background: var(--surface-hover);
}

.web-result a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 6px;
}

.web-result a:hover {
  text-decoration: underline;
}

.web-result p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.web-result .url {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 4px;
  word-break: break-all;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.info-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.info-item span {
  font-size: 1rem;
  font-weight: 600;
}

.disclaimer {
  margin-top: 48px;
  padding: 20px 24px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
}

.disclaimer h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #b45309;
}

.disclaimer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.6);
}

/* ── Loading overlay (ClarityCheck style) ── */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.loading-overlay.hidden {
  display: none !important;
}

.loading-map-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(187, 247, 208, 0.5) 0%, rgba(209, 250, 229, 0.3) 50%, rgba(191, 219, 254, 0.25) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='3' opacity='0.7'%3E%3Cpath d='M0 120h800M0 240h800M0 360h800M0 480h800M120 0v600M240 0v600M360 0v600M480 0v600M600 0v600M720 0v600'/%3E%3Cpath d='M80 80 Q200 40 320 100 T560 80 T720 120' stroke-width='4'/%3E%3Cpath d='M60 300 Q180 260 300 320 T520 280 T760 310' stroke-width='4'/%3E%3Cpath d='M100 500 Q250 460 400 520 T650 480' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E") center/cover;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.05);
}

.loading-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240, 253, 244, 0.55);
  backdrop-filter: blur(2px);
}

.loading-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 28px 24px 20px;
  animation: cardIn 0.35s ease-out;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.loading-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.loading-progress-track {
  flex: 1;
  height: 8px;
  background: #e8ecf0;
  border-radius: 100px;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.loading-timer {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  min-width: 28px;
  text-align: right;
}

.loading-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.loading-steps li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #334155;
}

.loading-steps li:nth-child(odd) {
  background: #fff;
}

.loading-steps li:nth-child(even) {
  background: #f8fafc;
}

.step-label {
  font-weight: 500;
  color: #475569;
}

.step-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading-steps li.done .step-value {
  opacity: 1;
  transform: translateX(0);
}

.step-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #94a3b8;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.loading-steps li.done .step-spinner {
  display: none;
}

.loading-steps li.done .step-icon::after {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'%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;
  animation: checkIn 0.25s ease-out;
}

@keyframes checkIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.loading-steps li.active {
  background: #f0f9ff;
}

/* ── Retrieve screen (stage 2) ── */
.retrieve-screen {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: #f3f4f6;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.retrieve-screen.hidden {
  display: none !important;
}

.retrieve-header {
  padding: 20px 32px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.retrieve-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.retrieve-brand-icon {
  font-size: 1.25rem;
  color: #2563eb;
}

.retrieve-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.retrieve-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 48px;
  gap: 40px;
}

.retrieve-card {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 36px 40px 32px;
  animation: cardIn 0.4s ease-out;
}

.retrieve-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin-bottom: 24px;
}

.retrieve-phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.blur-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.blur-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd, #93c5fd, #fda4af);
  filter: blur(6px);
  opacity: 0.85;
}

.blur-lock {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.retrieve-phone {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.retrieve-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.retrieve-progress-track {
  flex: 1;
  height: 28px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d1d5db;
}

.retrieve-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  background: repeating-linear-gradient(
    -45deg,
    #2563eb,
    #2563eb 10px,
    #3b82f6 10px,
    #3b82f6 20px
  );
  background-size: 28px 28px;
  animation: stripeMove 0.8s linear infinite;
  transition: width 0.4s ease;
}

@keyframes stripeMove {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}

.retrieve-percent {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  min-width: 42px;
  text-align: right;
}

.retrieve-note {
  font-size: 0.82rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 28px;
}

.collect-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.collect-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 20px;
}

.collect-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
}

.collect-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collect-grid li .collect-icon::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2.5px solid #d1d5db;
  border-top-color: #9ca3af;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.collect-grid li.done {
  color: #111827;
}

.collect-grid li.done .collect-icon::before {
  content: '';
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 0;
  animation: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'%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-heading.collect-success {
  color: #2563eb;
  font-size: 1.1rem;
}

.collect-grid li.pending .collect-icon::before {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-top-color: #d1d5db;
  animation: none;
  background: transparent;
  border-radius: 50%;
}

.retrieve-real-avatar.avatar-blurred {
  filter: blur(10px);
  transition: filter 0.8s ease;
}

.blur-lock.hidden {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.collect-grid {
  transition: opacity 0.25s ease;
}

.featured-on {
  text-align: center;
  max-width: 720px;
}

.featured-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 16px;
}

.featured-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
}

.featured-logos span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .container {
    padding: 32px 20px 48px;
  }

  .results {
    max-width: 100%;
  }

  .platforms-grid {
    gap: 10px;
  }
}

/* ── Tablet & large phones ── */
@media (max-width: 720px) {
  .header {
    padding: 14px 16px;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .container {
    padding: 24px 16px 40px;
  }

  body.has-results #viewHome .container {
    padding-top: 16px;
  }

  .install-banner {
    left: 8px;
    right: 8px;
    bottom: calc(var(--bottom-nav-h) + 8px + env(safe-area-inset-bottom));
  }

  .hero {
    margin-bottom: 24px;
  }

  .hero h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }

  .hero p {
    font-size: 0.95rem;
    padding: 0 4px;
  }

  /* Lookup: country + phone inline, button full width */
  .lookup-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 8px;
    gap: 6px;
  }

  .lookup-country {
    flex: 0 0 auto;
    min-width: 128px;
  }

  .lookup-phone {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 14px;
  }

  .lookup-divider {
    display: none;
  }

  .lookup-btn {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    min-height: 50px;
    min-width: unset;
  }

  .country-trigger {
    width: 100%;
    height: 100%;
    min-height: 52px;
    padding: 10px 14px;
    gap: 8px;
    font-size: 0.88rem;
  }

  .country-name {
    display: none;
  }

  .country-code {
    display: inline;
  }

  .country-flag {
    width: 26px;
    height: 26px;
  }

  .country-dropdown {
    left: 0;
    right: 0;
    min-width: unset;
    width: 100%;
    max-height: 50vh;
  }

  .social-proof {
    gap: 14px;
    margin-top: 16px;
    padding: 0 2px;
  }

  .avatar-stack {
    --avatar-size: 28px;
    --avatar-overlap: 8px;
  }

  /* Report panel — mobile pro layout */
  .report-panel {
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.08);
  }

  .rp-header {
    flex-direction: column;
    padding: 22px 16px 18px;
    gap: 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
  }

  .rp-identity {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .rp-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .rp-phone-block {
    width: 100%;
  }

  .rp-phone {
    font-size: clamp(1.45rem, 6vw, 1.75rem);
    word-break: break-word;
    letter-spacing: -0.03em;
    margin-bottom: 0;
  }

  .rp-badges-row {
    justify-content: center;
    margin-top: 10px;
  }

  .rp-score-chip {
    display: inline-flex;
  }

  .rp-gauge-wrap {
    display: none;
  }

  .rp-avatar,
  .rp-avatar-fallback {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  }

  .rp-wa-mark {
    width: 28px;
    height: 28px;
    right: -2px;
    bottom: -2px;
  }

  .rp-name {
    font-size: 0.92rem;
    margin-top: 6px;
  }

  .rp-name-missing {
    margin-top: 10px;
  }

  .rp-about {
    text-align: center;
    max-width: 280px;
  }

  .rp-actions {
    flex-direction: column;
    padding: 0 16px 16px;
    gap: 8px;
  }

  .rp-btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
  }

  .rp-summary {
    padding: 16px 14px 10px;
    background: #fff;
  }

  .rp-summary-title {
    font-size: 0.75rem;
    margin-bottom: 10px;
    padding: 0 2px;
  }

  .rp-footer-note {
    padding: 10px 16px 14px;
    font-size: 0.68rem;
  }

  .ps-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ps-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    border-bottom: 1px solid #eef2f7;
  }

  .ps-row-icon {
    display: inline-flex;
  }

  .ps-row-head {
    width: 100%;
  }

  .ps-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
  }

  .ps-value {
    text-align: left;
    word-break: break-word;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
  }

  .ps-value.ps-network {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ps-location {
    justify-content: flex-start;
  }

  .rx-row {
    flex-direction: column;
  }

  .rx-chip {
    min-width: unset;
    width: 100%;
  }

  /* Tabs: horizontal scroll */
  .tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding: 4px;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.82rem;
    min-height: 42px;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platforms-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .platform-card {
    border-radius: 14px;
  }

  .platform-card:hover {
    transform: none;
    box-shadow: none;
  }

  .platform-card-body {
    padding: 14px 16px;
    min-height: 0;
  }

  .platform-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  .platform-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .platform-icon-svg svg {
    width: 22px;
    height: 22px;
  }

  .platform-lock-mini {
    margin-left: auto;
    font-size: 0.85rem;
  }

  .platform-card-titles {
    flex: 1;
    min-width: 0;
  }

  .platform-card-titles h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .platform-badge {
    font-size: 0.68rem;
    gap: 4px;
  }

  .platform-badge-dot {
    width: 6px;
    height: 6px;
  }

  .platform-card-titles .platform-status {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 6px;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .platform-cta {
    padding: 10px 12px;
    gap: 6px;
    border-radius: 10px;
    justify-content: space-between;
    text-align: left;
  }

  .platform-cta-label {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .platform-cta-arrow {
    display: inline;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .sources-grid {
    grid-template-columns: 1fr;
  }

  /* Loading overlay */
  .loading-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .loading-card {
    width: 100%;
    max-width: 100%;
    margin: 0 0 env(safe-area-inset-bottom, 12px);
    padding: 20px 16px 16px;
    border-radius: 16px 16px 0 0;
  }

  .loading-steps li {
    padding: 12px 12px;
    font-size: 0.88rem;
    gap: 8px;
  }

  .step-value {
    max-width: 120px;
    font-size: 0.8rem;
  }

  /* Retrieve screen */
  .retrieve-header {
    padding: 14px 16px;
  }

  .retrieve-body {
    padding: 16px 12px 24px;
  }

  .retrieve-card {
    padding: 24px 16px 20px;
    border-radius: 14px;
  }

  .retrieve-title {
    font-size: 1rem;
  }

  .retrieve-phone-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .retrieve-phone {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
    word-break: break-word;
  }

  .collect-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .collect-heading {
    font-size: 0.92rem;
  }

  .retrieve-note {
    font-size: 0.78rem;
    padding: 0 4px;
  }

  .featured-logos {
    gap: 12px 16px;
  }

  .featured-logos span {
    font-size: 0.7rem;
  }

  .disclaimer {
    padding: 16px;
    margin: 0 16px 24px;
  }

  .footer {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ── Small phones ── */
@media (max-width: 480px) {
  .logo p {
    display: none;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .hero h2 {
    font-size: 1.25rem;
  }

  body.has-results .hero h2 {
    font-size: 1.1rem;
  }

  /* Lookup: wider country chip on small phones */
  .lookup-country {
    min-width: 118px;
  }

  .country-trigger {
    padding: 10px 12px;
    gap: 6px;
    min-height: 50px;
  }

  .country-code {
    font-size: 0.85rem;
  }

  .lookup-phone {
    flex: 1 1 100px;
    padding: 8px 12px;
  }

  .lookup-btn {
    min-height: 48px;
    font-size: 0.95rem;
  }

  #phoneInput {
    font-size: 1rem;
  }

  .avatar-stack {
    --avatar-size: 26px;
    --avatar-overlap: 7px;
  }

  .social-proof-text {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /* Report: tiny screens — single column summary cards */
  .ps-list {
    grid-template-columns: 1fr;
  }

  .ps-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
  }

  .ps-row-head {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .ps-value {
    text-align: right;
    flex-shrink: 0;
    max-width: 52%;
  }

  .ps-value.ps-network {
    justify-content: flex-end;
  }

  .faq-section {
    margin-top: 20px;
  }

  .faq-section-title {
    font-size: 1.05rem;
  }

  .error-box {
    margin-left: 0;
    margin-right: 0;
    font-size: 0.88rem;
  }

  .blur-avatar-wrap {
    width: 48px;
    height: 48px;
  }

  .retrieve-real-avatar {
    width: 48px;
    height: 48px;
  }

  .retrieve-progress-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .retrieve-percent {
    font-size: 0.85rem;
  }
}

/* Landscape phones */
@media (max-width: 720px) and (orientation: landscape) {
  .loading-overlay {
    align-items: center;
  }

  .loading-card {
    border-radius: 14px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .retrieve-body {
    padding-top: 8px;
  }

  .hero {
    margin-bottom: 12px;
  }
}

/* ── VPN gate (baada ya malipo ya ripoti) ── */
.results {
  position: relative;
}

.results-gated-content {
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  transform-origin: center top;
}

.results-report-wrap {
  position: relative;
}

.results-inner {
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.results-vpn-gated .results-gated-content {
  filter: blur(5px) saturate(0.85);
  opacity: 0.62;
  transform: scale(0.99);
  pointer-events: none;
  user-select: none;
}

.platform-card:disabled {
  cursor: not-allowed;
}

.vpn-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vpn-gate-modal.hidden {
  display: none;
}

.vpn-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.vpn-gate-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  text-align: center;
  animation: cardIn 0.35s ease-out;
}

body.vpn-gate-open {
  overflow: hidden;
}

.vpn-gate-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.vpn-gate-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.vpn-gate-lead {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.vpn-gate-sub {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.vpn-gate-error {
  margin: 10px 0 0;
  color: var(--error);
  font-size: 0.82rem;
}

.vpn-gate-error.hidden {
  display: none;
}

.vpn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.vpn-list-loading,
.vpn-list-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.vpn-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #f8fafc;
}

.vpn-card-body {
  flex: 1;
  min-width: 0;
}

.vpn-card-body h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.vpn-card-body p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.vpn-card-price {
  font-size: 0.92rem;
  color: var(--primary);
}

.vpn-card-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.vpn-card-btn:hover {
  background: var(--primary-hover);
}

.vpn-checkout {
  text-align: left;
  margin-top: 4px;
}

.vpn-checkout.hidden,
.vpn-pending.hidden {
  display: none;
}

.vpn-checkout-selected {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.vpn-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 4px;
  padding: 10px 0;
}

.vpn-pending .pay-pending-spinner {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
}

.vpn-pending .pay-success-tick {
  margin-bottom: 14px;
}

.vpn-pending p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .vpn-gate-modal {
    padding: 12px 8px 20px;
    align-items: flex-start;
  }

  .vpn-gate-card {
    padding: 18px 14px 16px;
  }

  .vpn-card {
    flex-direction: column;
    align-items: stretch;
  }

  .vpn-card-btn {
    width: 100%;
  }
}
