/* ═══════════════════════════════════════════════════════════════════════════
   People Search by Photo — Light / White Theme, Mobile-First
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:              #FFFFFF;
  --bg-card:         #F8F9FA;
  --bg-card2:        #F1F3F5;
  --border-card:     #E5E7EB;
  --accent-green:    #6366F1;
  --accent-green-dk: #4F46E5;
  --accent-blue:     #6366F1;
  --accent-blue-dk:  #4F46E5;
  --accent-purple:   #8B5CF6;
  --text-primary:    #1A1A2E;
  --text-secondary:  #6B7280;
  --text-muted:      #9CA3AF;
  --danger:          #EF4444;
  --radius-card:     16px;
  --radius-btn:      16px;
  --radius-sm:       8px;
  --radius-full:     999px;
  --max-width:       480px;
  --font:            -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --safe-bottom:     env(safe-area-inset-bottom, 0px);
  --transition:      0.25s cubic-bezier(.4,0,.2,1);
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:       0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:       0 8px 24px rgba(0,0,0,0.1);
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }

/* ─── App Shell ────────────────────────────────────────────────────────────── */
.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  padding-bottom: calc(24px + var(--safe-bottom));
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dk) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover  { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { filter: brightness(0.95); transform: translateY(0); }

.btn-blue {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dk) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-blue:hover  { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-blue:active { filter: brightness(0.95); transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
}
.btn-ghost:hover { background: var(--bg-card); }

.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Pulsing animation for CTAs */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
  50%       { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}
.pulse-btn { animation: pulse-glow 2.5s ease-in-out infinite; }

@keyframes pulse-glow-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
  50%       { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}
.pulse-btn-blue { animation: pulse-glow-blue 2.5s ease-in-out infinite; }

/* ─── Screen Transitions ──────────────────────────────────────────────────── */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* ─── ═══════════════════════════════════════════════════════════════════════
   LANDING SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-screen {
  padding-top: 24px;
  position: relative;
}

/* Subtle grid overlay via pseudo-element */
.landing-screen::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
  animation: grid-drift 30s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 44px; }
}

/* All direct children above the grid */
.landing-screen > * {
  position: relative;
  z-index: 1;
}

/* Header */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.landing-logo-name {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Live Activity Counter ─────────────────────────────────────────────────── */
.live-activity-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: var(--radius-card);
  padding: 10px 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
}

.live-count-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.live-count-text .live-num {
  color: #EF4444;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.live-separator {
  width: 1px;
  height: 14px;
  background: var(--border-card);
  flex-shrink: 0;
}

.live-24h-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.live-24h-text .live-num {
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.hero-gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 50%, var(--accent-green) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

/* ── Visual Demo Section ───────────────────────────────────────────────────── */
.demo-section {
  margin-bottom: 20px;
}

.demo-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 8px;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  padding: 20px 16px 16px;
}

.demo-photo-side {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d4d8e8, #bfc5d8);
  border-radius: 12px;
  margin-bottom: 12px;
}

.demo-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  filter: blur(4px) brightness(0.8);
}

.demo-scan-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(16,185,129,0.07) 3px,
    rgba(16,185,129,0.07) 4px
  );
}

.demo-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.8), transparent);
  top: 0;
  animation: demo-scan 2s ease-in-out infinite;
}

@keyframes demo-scan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Corner scan brackets */
.demo-photo-side::before,
.demo-photo-side::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent-green);
  border-style: solid;
  opacity: 0.8;
}
.demo-photo-side::before {
  top: 8px; left: 8px;
  border-width: 2px 0 0 2px;
}
.demo-photo-side::after {
  bottom: 8px; right: 8px;
  border-width: 0 2px 2px 0;
}

.demo-photo-label {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.75);
  padding: 3px 0;
  animation: label-blink 2s ease-in-out infinite;
}

@keyframes label-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.demo-results-side {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.demo-found-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-found-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}

.demo-found-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.demo-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.demo-platform-icon {
  background: var(--bg-card2);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  animation: demo-pop 0.4s ease forwards;
}

.demo-platform-icon:nth-child(1) { animation-delay: 0.3s; }
.demo-platform-icon:nth-child(2) { animation-delay: 0.6s; }
.demo-platform-icon:nth-child(3) { animation-delay: 0.9s; }
.demo-platform-icon:nth-child(4) { animation-delay: 1.2s; }
.demo-platform-icon:nth-child(5) { animation-delay: 1.5s; }
.demo-platform-icon:nth-child(6) { animation-delay: 1.8s; }

@keyframes demo-pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.demo-confidence {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.demo-confidence-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border-card);
  flex: 1;
  overflow: hidden;
}

.demo-confidence-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  width: 0;
  animation: confidence-fill 1.5s 2s ease forwards;
}

@keyframes confidence-fill {
  from { width: 0; }
  to   { width: 94%; }
}

/* ── Upload Area ───────────────────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed #D1D5DB;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.upload-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--accent-blue);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: var(--shadow-md);
}
.upload-area.drag-over { transform: scale(1.01); }

/* Enhanced upload area glow animation */
.upload-area-enhanced {
  border: 2px dashed rgba(99,102,241,0.35);
  animation: upload-glow-pulse 3s ease-in-out infinite;
}

@keyframes upload-glow-pulse {
  0%, 100% { border-color: rgba(99,102,241,0.35); box-shadow: 0 0 0 0 rgba(99,102,241,0); }
  50%       { border-color: rgba(99,102,241,0.6);  box-shadow: 0 0 20px rgba(99,102,241,0.1); }
}

.upload-area-enhanced:hover,
.upload-area-enhanced.drag-over {
  animation: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 28px rgba(99,102,241,0.15);
}

.upload-camera-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  position: relative;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(99,102,241,0.1));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.upload-camera-ring {
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 2px solid rgba(99,102,241,0.35);
  animation: camera-ring-pulse 2s ease-in-out infinite;
}

@keyframes camera-ring-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%       { transform: scale(1.08); opacity: 0.3; }
}

.upload-preview-wrap {
  margin: 0 auto 12px;
}

.upload-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--accent-blue);
  margin: 0 auto;
  box-shadow: 0 0 16px rgba(99,102,241,0.25);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}
.upload-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.upload-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.upload-formats {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-block;
}

.upload-security-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

#file-input { display: none; }

/* ── Stats Bars ────────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}
.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}
.stat-pill::before { content: '✓'; font-size: 10px; }

/* Full stats grid */
.stats-bar-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px 12px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover { border-color: rgba(99,102,241,0.3); box-shadow: var(--shadow-md); }

.stat-card-number {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
  line-height: 1.1;
}

.stat-card-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Use Cases ─────────────────────────────────────────────────────────────── */
.use-cases-section { margin-bottom: 24px; }

.use-cases-title {
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px 12px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.use-case-card:hover {
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.04);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.use-case-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.use-case-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.use-case-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── As Featured In ────────────────────────────────────────────────────────── */
.featured-bar {
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.featured-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 10px;
}

.featured-logos {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-logo {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-style: italic;
  transition: var(--transition);
}

.featured-logo:hover { opacity: 0.8; }

/* ── How It Works ──────────────────────────────────────────────────────────── */
.how-section { margin-bottom: 24px; }
.how-title {
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.how-steps { display: flex; gap: 8px; }
.how-step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.how-step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 8px;
}
.how-step-title { font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.how-step-desc  { font-size: 11px; color: var(--text-muted); line-height: 1.3; }

/* ── Social Proof Enhanced ─────────────────────────────────────────────────── */
.reviews-section { margin-bottom: 24px; }
.reviews-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-proof-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.rating-big {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.rating-stars-row {
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: 1px;
  margin-top: 2px;
}

.rating-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.reviews-list { display: flex; flex-direction: column; gap: 10px; }

/* Legacy review card (kept for compatibility) */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.review-stars { color: #F59E0B; font-size: 13px; margin-bottom: 4px; }
.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-style: italic;
}
.review-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* Enhanced review card */
.review-card-enhanced {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.review-body { flex: 1; min-width: 0; }

.review-header-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.review-author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.review-verified {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-stars-sm { color: #F59E0B; font-size: 11px; }

.review-text-enhanced {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  font-style: italic;
}

/* ── FAQ Section ───────────────────────────────────────────────────────────── */
.faq-section { margin-bottom: 24px; }

.faq-title {
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.faq-item.open { border-color: rgba(99,102,241,0.3); box-shadow: var(--shadow-md); }

.faq-question {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.faq-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.28s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent-green); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.25s ease;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0 16px;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0 16px 14px;
}

/* ── Trust Badges ──────────────────────────────────────────────────────────── */
.trust-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-badge-icon { font-size: 14px; }

/* ── Sticky CTA ────────────────────────────────────────────────────────────── */
.sticky-cta-bar {
  position: sticky;
  bottom: calc(16px + var(--safe-bottom));
  padding: 12px 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.sticky-cta-subtext {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sticky-cta-subtext span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Name Search Demo Card ─────────────────────────────────────────────────── */
.name-demo-section { margin-bottom: 20px; }

.name-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.name-demo-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-card2);
}

.name-demo-search-icon { font-size: 16px; flex-shrink: 0; }

.name-demo-typing-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}

.name-demo-cursor::after {
  content: '|';
  color: var(--accent-blue);
  animation: blink-cursor 0.7s ease-in-out infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.name-demo-results-preview {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.name-demo-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  opacity: 0;
  animation: slide-in 0.4s ease forwards;
}

.name-demo-result-row:nth-child(1) { animation-delay: 0.5s; }
.name-demo-result-row:nth-child(2) { animation-delay: 1.0s; }
.name-demo-result-row:nth-child(3) { animation-delay: 1.5s; }

@keyframes slide-in {
  from { transform: translateX(-8px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.name-demo-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card2), var(--border-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  filter: blur(3px);
}

.name-demo-info { flex: 1; }

.name-demo-name-blur {
  height: 10px;
  width: 90px;
  background: var(--border-card);
  border-radius: 4px;
  margin-bottom: 5px;
  filter: blur(2px);
}

.name-demo-meta-blur {
  height: 8px;
  width: 55px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  filter: blur(2px);
}

.name-demo-lock { font-size: 13px; opacity: 0.7; }

.name-demo-label {
  text-align: center;
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 700;
  padding: 8px;
  border-top: 1px solid var(--border-card);
  background: rgba(99,102,241,0.04);
}

/* ─── ═══════════════════════════════════════════════════════════════════════
   ANALYZING SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */

.analyzing-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  gap: 32px;
}

.analyzing-photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}
.analyzing-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-green);
  box-shadow: var(--shadow-md);
}
.analyzing-rings {
  position: absolute;
  inset: -14px;
}
.analyzing-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  opacity: 0;
  animation: ring-pulse 2s ease-out infinite;
}
.analyzing-rings span:nth-child(2) { animation-delay: 0.5s; }
.analyzing-rings span:nth-child(3) { animation-delay: 1s; }

@keyframes ring-pulse {
  0%   { transform: scale(1);    opacity: 0.5; }
  100% { transform: scale(1.6);  opacity: 0; }
}

.analyzing-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.analyzing-steps { width: 100%; }
.analyzing-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  opacity: 0.3;
  transition: opacity 0.4s ease;
}
.analyzing-step:last-child { border-bottom: none; }
.analyzing-step.active { opacity: 1; }
.analyzing-step.done   { opacity: 0.65; }

.step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: var(--transition);
}
.analyzing-step.active .step-icon {
  background: rgba(99,102,241,0.1);
  border-color: var(--accent-green);
  animation: spin-icon 1s linear infinite;
}
.analyzing-step.done .step-icon {
  background: rgba(99,102,241,0.12);
  border-color: var(--accent-green);
}
@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
}
.analyzing-step.active .step-label { color: var(--text-primary); }

/* ─── ═══════════════════════════════════════════════════════════════════════
   RESULTS SCREEN (BLURRED + REVEALED)
   ═══════════════════════════════════════════════════════════════════════════ */

.results-screen { padding-top: 20px; }

.results-header { margin-bottom: 20px; }

.results-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 10px;
}
.results-count-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.results-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* AI Description */
.ai-desc-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-card);
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.ai-desc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-desc-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.result-card {
  background: var(--bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.result-card:hover { border-color: var(--accent-blue); box-shadow: var(--shadow-md); }

.result-thumb-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-card2);
}
.result-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease;
}
.result-thumb.blurred { filter: blur(8px) brightness(0.85); }

.result-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, var(--bg-card2), var(--border-card));
}
.result-thumb-placeholder.blurred { filter: blur(4px); }

.result-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(241,243,245,0.6);
  font-size: 22px;
  transition: opacity 0.3s;
}
.result-lock-overlay.hidden { opacity: 0; pointer-events: none; }

.result-info {
  padding: 10px;
}
.result-source {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.result-source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}
.result-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-title.blurred-text {
  filter: blur(4px);
  user-select: none;
}

.result-view-btn {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0;
  opacity: 0.6;
}
.result-view-btn.active {
  color: var(--accent-green);
  opacity: 1;
}

/* Social Proof */
.results-social-proof {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

/* Unlock CTA */
.unlock-cta-wrap {
  position: sticky;
  bottom: calc(20px + var(--safe-bottom));
  padding: 16px 0;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}

/* ─── ═══════════════════════════════════════════════════════════════════════
   PAYWALL SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */

.paywall-screen { padding-top: 20px; }

.paywall-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: opacity 0.5s ease;
  box-shadow: var(--shadow-sm);
}
.paywall-close-btn[data-hidden] { opacity: 0; pointer-events: none; }

.paywall-hero { text-align: center; margin-bottom: 24px; padding-top: 8px; }
.paywall-hero-icon { font-size: 48px; margin-bottom: 12px; }
.paywall-hero h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.paywall-hero p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Features list */
.paywall-features {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.paywall-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  color: var(--text-primary);
}
.paywall-feature:last-child { border-bottom: none; }
.paywall-feature-check {
  width: 22px;
  height: 22px;
  background: rgba(99,102,241,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Plans */
.paywall-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.plan-card:hover { border-color: var(--accent-blue); box-shadow: var(--shadow-md); }
.plan-card.selected {
  border-color: var(--accent-blue);
  background: #EEF2FF;
  box-shadow: var(--shadow-md);
}

.plan-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.plan-card.selected .plan-radio {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
}
.plan-radio-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
}
.plan-card.selected .plan-radio-dot { opacity: 1; }

.plan-info { flex: 1; }
.plan-badge-wrap {
  position: absolute;
  top: -10px;
  right: 14px;
}
.plan-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dk));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: var(--text-primary); }
.plan-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-blue);
}
.plan-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.plan-save { font-size: 11px; color: var(--accent-green); font-weight: 600; margin-top: 2px; }

/* Countdown urgency timer */
.paywall-countdown {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  animation: countdown-pulse 2s ease-in-out infinite;
}
.paywall-countdown strong {
  color: var(--danger);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}
@keyframes countdown-pulse {
  0%,100% { border-color: rgba(239, 68, 68, 0.2); }
  50%      { border-color: rgba(239, 68, 68, 0.45); }
}

/* Guarantee */
.paywall-guarantee {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(99,102,241,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99,102,241,0.18);
}

/* Disclaimer */
.paywall-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 12px;
}
.paywall-links {
  text-align: center;
  font-size: 12px;
  margin-bottom: 24px;
}
.paywall-links a { color: var(--text-muted); }
.paywall-links a:hover { color: var(--accent-blue); }

/* Processing Spinner */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.processing-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ─── ═══════════════════════════════════════════════════════════════════════
   RESULTS REVEALED SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */

.revealed-screen { padding-top: 20px; }

.revealed-banner {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(99,102,241,0.07));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.revealed-banner h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.revealed-banner p { font-size: 13px; color: var(--text-secondary); }

/* ─── ═══════════════════════════════════════════════════════════════════════
   POPUPS / MODALS
   ═══════════════════════════════════════════════════════════════════════════ */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0 16px;
}
.popup-overlay.open { opacity: 1; }

.popup-card {
  background: var(--bg);
  border: 1px solid var(--border-card);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px calc(32px + var(--safe-bottom));
  width: 100%;
  max-width: var(--max-width);
  transform: translateY(60px);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
}
.popup-overlay.open .popup-card { transform: translateY(0); }

.popup-icon  { font-size: 40px; text-align: center; margin-bottom: 12px; }
.popup-title { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 8px; color: var(--text-primary); }
.popup-text  { font-size: 14px; color: var(--text-secondary); text-align: center; line-height: 1.5; margin-bottom: 6px; }
.popup-plan  {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-blue);
  margin: 12px 0;
}
.popup-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ─── ═══════════════════════════════════════════════════════════════════════
   ERROR & TOAST
   ═══════════════════════════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1E293B;
  color: #F8FAFC;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #334155;
  z-index: 999;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast.error { border-color: var(--danger); background: rgba(239,68,68,0.15); color: var(--danger); }
.toast.success { border-color: var(--accent-green); background: rgba(99,102,241,0.12); color: var(--accent-green); }

/* ─── ═══════════════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════════════════ */

.text-muted    { color: var(--text-muted); }
.text-green    { color: var(--accent-green); }
.text-blue     { color: var(--accent-blue); }
.text-center   { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

/* Skeleton loading */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--border-card) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONVERSION UPLIFT — New Landing Sections (v2)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Live Country Rotation Bar ─────────────────────────────────────────── */
.live-country-bar {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: -8px 0 16px;
  font-weight: 500;
  min-height: 16px;
}

/* ── Big Animated Demo Card ─────────────────────────────────────────────── */
.demo-big-section { margin-bottom: 24px; }

.demo-big-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

/* CSS Face Silhouette */
.css-face-outer {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, #dce0ec, #c8cedf);
  border: 2px solid var(--border-card);
}

.css-face-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 4px,
    rgba(99,102,241,0.05) 4px, rgba(99,102,241,0.05) 5px
  );
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

.css-face-head {
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, #a0a8c0, #8890a8);
  border-radius: 50%;
  margin: 12px auto 4px;
  position: relative;
  z-index: 3;
}

.css-face-eye {
  position: absolute;
  width: 9px;
  height: 9px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  top: 36%;
}
.css-face-eye.left  { left: 22%; }
.css-face-eye.right { right: 22%; }

.css-face-mouth {
  position: absolute;
  width: 18px;
  height: 7px;
  border-radius: 0 0 9px 9px;
  background: rgba(255,255,255,0.35);
  bottom: 24%;
  left: 50%;
  transform: translateX(-50%);
}

.css-face-body {
  width: 82px;
  height: 42px;
  background: linear-gradient(145deg, #9098b8, #787ea0);
  border-radius: 41px 41px 0 0;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.css-face-scan-line {
  position: absolute;
  left: -2px; right: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.95) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(99,102,241,0.8), 0 0 28px rgba(99,102,241,0.3);
  top: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

@keyframes big-scan-move {
  0%   { top: 0%;    opacity: 0; }
  6%   { opacity: 1; }
  91%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

.scan-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(99,102,241,0.7);
  border-style: solid;
  z-index: 15;
}
.scan-corner.tl { top: 6px;    left: 6px;    border-width: 2px 0 0 2px; }
.scan-corner.tr { top: 6px;    right: 6px;   border-width: 2px 2px 0 0; }
.scan-corner.bl { bottom: 6px; left: 6px;    border-width: 0 0 2px 2px; }
.scan-corner.br { bottom: 6px; right: 6px;   border-width: 0 2px 2px 0; }

.demo-scan-status {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  min-height: 16px;
}

.demo-big-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.demo-check-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 7px 12px;
  background: rgba(99,102,241,0.04);
  border-left: 3px solid rgba(99,102,241,0.18);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.32s ease, transform 0.32s ease, color 0.32s ease,
              border-color 0.32s ease, background 0.32s ease;
}
.demo-check-item.visible {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-green);
  border-left-color: var(--accent-green);
  background: rgba(99,102,241,0.08);
}

.demo-big-results {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.demo-result-item {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--bg-card2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.demo-result-item.visible { opacity: 1; transform: translateY(0); }

.demo-conf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.demo-conf-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.demo-conf-pct {
  font-size: 14px;
  font-weight: 900;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}
.demo-conf-bar-bg {
  height: 8px;
  background: var(--border-card);
  border-radius: 4px;
  overflow: hidden;
}
.demo-conf-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green-dk), var(--accent-blue));
  border-radius: 4px;
  width: 0%;
  box-shadow: 0 0 8px rgba(99,102,241,0.4);
}

/* ── Example Result Cards ────────────────────────────────────────────────── */
.example-results-section { margin-bottom: 24px; }

.example-results-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 12px;
}

.example-results-list { display: flex; flex-direction: column; gap: 10px; }

.example-result-card {
  background: var(--bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.example-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.ea-jd { background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dk)); }
.ea-sm { background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); }
.ea-ak { background: linear-gradient(135deg, #F59E0B, #EF4444); }

.example-result-body { flex: 1; min-width: 0; }
.example-result-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; color: var(--text-primary); }
.example-result-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.example-result-found { font-size: 11px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }

.example-blurred-row {
  height: 10px;
  background: var(--border-card);
  border-radius: 5px;
  filter: blur(3px);
  margin-bottom: 5px;
  width: 100%;
}
.example-blurred-row.short { width: 60%; }

.example-view-btn-grey {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  opacity: 0.4;
  cursor: not-allowed;
  display: inline-block;
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}

/* ── Animated Stats Grid ─────────────────────────────────────────────────── */
.stats-animated-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.stat-animated-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.stat-animated-card:hover { border-color: rgba(99,102,241,0.3); box-shadow: var(--shadow-md); }

.stat-animated-number {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
  margin-bottom: 3px;
  line-height: 1.15;
  min-height: 22px;
}
.stat-animated-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
