/* Design tokens — mirror src/index.css */
:root {
  --background: 30 50% 98%;
  --foreground: 20 20% 15%;
  --card: 0 0% 100%;
  --card-foreground: 20 20% 15%;
  --primary: 16 85% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 30 40% 94%;
  --muted: 30 20% 94%;
  --muted-foreground: 20 10% 50%;
  --accent: 340 70% 58%;
  --accent-foreground: 0 0% 100%;
  --border: 30 20% 90%;
  --radius: 1rem;
  --gradient-warm: linear-gradient(135deg, hsl(16 85% 60%), hsl(340 70% 58%));
  --gradient-soft: linear-gradient(135deg, hsl(30 50% 98%), hsl(340 70% 58% / 0.08));
  --shadow-warm: 0 8px 32px -8px hsl(16 85% 60% / 0.3);
  --shadow-card: 0 4px 24px -4px hsl(20 20% 15% / 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3 { line-height: 1.15; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.muted { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }

/* Icons */
.icon { width: 24px; height: 24px; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }
.icon-primary { color: hsl(var(--primary)); }

/* Language switcher */
.lang-switcher { position: fixed; top: .75rem; right: .75rem; z-index: 60; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem .75rem; border-radius: .75rem;
  background: hsl(var(--card) / 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
  font-size: .875rem; font-weight: 500;
  transition: background-color .2s;
}
.lang-btn:hover { background: hsl(var(--secondary)); }
.lang-label { display: none; }
@media (min-width: 640px) { .lang-label { display: inline; } }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 170px; background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: .75rem;
  box-shadow: var(--shadow-card); padding: .35rem; overflow: hidden;
}
.lang-menu button {
  display: flex; width: 100%; align-items: center; gap: .5rem;
  padding: .5rem .625rem; border-radius: .5rem; font-size: .875rem;
  text-align: left;
}
.lang-menu button:hover { background: hsl(var(--secondary)); }
.lang-menu button.active { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); font-weight: 600; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; }
.brand-mark {
  width: 32px; height: 32px; border-radius: .5rem;
  background: var(--gradient-warm);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary-foreground));
}
.brand-mark.sm { width: 24px; height: 24px; border-radius: .375rem; }
.brand-name { font-weight: 700; font-size: 1.125rem; }

/* Hero */
.hero { padding: 7rem 1rem 4rem; }
.hero-grid {
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
}
@media (min-width: 1024px) { .hero-grid { flex-direction: row; } }
.hero-copy { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .hero-copy { text-align: left; } }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem 1rem; border-radius: 999px;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
  font-size: .875rem; font-weight: 500;
  align-self: center;
}
@media (min-width: 1024px) { .hero-copy .chip { align-self: flex-start; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--primary)); display: inline-block; }
.pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.hero-title { font-size: 2.25rem; font-weight: 800; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.grad-text {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 32rem; margin: 0 auto; }
@media (min-width: 1024px) { .hero-sub { margin: 0; } }

.hero-actions { display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
@media (min-width: 1024px) { .hero-actions { justify-content: flex-start; } }

.btn {
  display: inline-block; text-decoration: none;
  padding: 1rem 2rem; border-radius: 1rem; font-weight: 700; font-size: 1.125rem;
  transition: transform .2s;
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(.95); }
.btn-primary { background: var(--gradient-warm); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-warm); }
.btn-light { background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: var(--shadow-card); }

.stats { display: flex; gap: 2rem; padding-top: 1rem; justify-content: center; }
@media (min-width: 1024px) { .stats { justify-content: flex-start; } }
.stat-v { font-size: 1.5rem; font-weight: 800; }
.stat-l { font-size: .75rem; color: hsl(var(--muted-foreground)); }

.hero-img-wrap { flex: 1; display: flex; justify-content: center; }
.hero-img { width: 100%; max-width: 28rem; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.chev { display: flex; justify-content: center; margin-top: 3rem; color: hsl(var(--muted-foreground)); }
.bounce { animation: bounce 1.5s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-25%); } }

/* Features */
.features { padding: 4rem 1rem; }
.gradient-soft { background: var(--gradient-soft); }
.section-title { font-size: 1.875rem; font-weight: 700; text-align: center; margin-bottom: 3rem; }

.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: hsl(var(--card)); border-radius: 1rem; padding: 1.5rem;
  box-shadow: var(--shadow-card); border: 1px solid hsl(var(--border));
  transition: box-shadow .3s, transform .3s;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-warm); transform: translateY(-4px); }
.feature h3 { font-weight: 700; margin-bottom: .25rem; }
.feature p { font-size: .875rem; color: hsl(var(--muted-foreground)); }
.feat-ic {
  width: 48px; height: 48px; border-radius: .75rem;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary)); margin-bottom: 1rem;
  transition: background .3s, color .3s, box-shadow .3s;
}
.feature:hover .feat-ic { background: var(--gradient-warm); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-warm); }

/* Testimonials */
.testimonials { padding: 4rem 1rem; }
.t-card { background: hsl(var(--card)); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-card); border: 1px solid hsl(var(--border)); transition: box-shadow .3s, transform .3s; height: 100%; }
.t-card:hover { box-shadow: var(--shadow-warm); transform: translateY(-4px); }
.t-stars { display: flex; gap: 2px; color: hsl(var(--primary)); }
.t-stars svg { width: 16px; height: 16px; }
.t-stars .off { color: hsl(var(--muted)); }
.t-text { font-size: .875rem; color: hsl(var(--muted-foreground)); margin: .75rem 0 1rem; line-height: 1.6; }
.t-foot { display: flex; align-items: center; gap: .75rem; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.t-name { font-size: .875rem; font-weight: 600; }
.t-city { font-size: .75rem; color: hsl(var(--muted-foreground)); }

.stats-bar { display: flex; justify-content: center; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid hsl(var(--border)); }

/* CTA */
.cta-section { padding: 5rem 1rem; }
.cta-card {
  background: var(--gradient-warm); border-radius: 1.5rem; padding: 4rem 2.5rem;
  text-align: center; box-shadow: var(--shadow-warm); color: hsl(var(--primary-foreground));
}
.cta-card h2 { font-size: 1.875rem; font-weight: 800; margin-bottom: 1rem; }
@media (min-width: 640px) { .cta-card h2 { font-size: 2.25rem; } }
.cta-card p { color: hsl(var(--primary-foreground) / 0.85); margin: 0 auto 2rem; max-width: 28rem; }

/* Footer */
.footer { padding: 2rem 1rem; border-top: 1px solid hsl(var(--border)); }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }

/* Reveal animation (scroll-triggered) */
.reveal {
  opacity: 0; transform: translateY(24px) scale(.9);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .bounce, .pulse { animation: none; }
}

/* ============= Onboarding page shared layout ============= */
.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: hsl(var(--background));
}
.page-card { width: 100%; max-width: 28rem; }
.page-card.lg { max-width: 32rem; }
.center-stack { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.h-title { font-size: 1.5rem; font-weight: 700; }
.h-sub { color: hsl(var(--muted-foreground)); margin-top: .25rem; font-size: .95rem; }

.back-link {
  margin-top: 1.5rem; display: block; margin-left: auto; margin-right: auto;
  font-size: .875rem; color: hsl(var(--muted-foreground));
  background: none; transition: color .2s;
}
.back-link:hover { color: hsl(var(--foreground)); }

/* page enter animation */
.page-enter { animation: page-enter .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Gender */
.gender-row { display: flex; gap: 1rem; justify-content: center; }
.gender-card {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 1.5rem; border-radius: 1rem; background: hsl(var(--card));
  border: 2px solid hsl(var(--border)); width: 9rem;
  box-shadow: var(--shadow-card);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.gender-card:hover { border-color: hsl(var(--primary)); box-shadow: var(--shadow-warm); transform: translateY(-4px); }
.gender-card.female:hover { border-color: hsl(var(--accent)); }
.gender-ic {
  width: 64px; height: 64px; border-radius: 50%;
  background: hsl(var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
  transition: background .25s, color .25s;
}
.gender-card:hover .gender-ic { background: var(--gradient-warm); color: hsl(var(--primary-foreground)); }
.gender-card.female:hover .gender-ic { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

/* Age picker */
.age-picker { position: relative; margin: 0 auto; height: 240px; max-width: 22rem; }
.age-highlight {
  position: absolute; left: 0; right: 0;
  top: 96px; height: 48px;
  border-top: 2px solid hsl(var(--primary));
  border-bottom: 2px solid hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
  border-radius: .5rem; pointer-events: none; z-index: 5;
}
.age-fade-top, .age-fade-bot {
  position: absolute; left: 0; right: 0; height: 80px; z-index: 6; pointer-events: none;
}
.age-fade-top { top: 0; background: linear-gradient(to bottom, hsl(var(--background)), transparent); }
.age-fade-bot { bottom: 0; background: linear-gradient(to top, hsl(var(--background)), transparent); }
.age-scroll {
  height: 100%; overflow-y: auto; scroll-snap-type: y mandatory;
  padding: 96px 0;
  scrollbar-width: none;
}
.age-scroll::-webkit-scrollbar { display: none; }
.age-item {
  scroll-snap-align: center;
  height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: hsl(var(--muted-foreground) / 0.4);
  transform: scale(.9); transition: color .15s, transform .15s;
}
.age-item.selected { color: hsl(var(--primary)); transform: scale(1.1); }
.age-current { font-size: 2.25rem; font-weight: 800; }

/* Buttons */
.btn-block {
  width: 100%; padding: 1rem; border-radius: 1rem; font-weight: 700; font-size: 1.125rem;
  background: var(--gradient-warm); color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-warm); transition: transform .15s, opacity .2s;
}
.btn-block:hover:not(:disabled) { transform: scale(1.02); }
.btn-block:active:not(:disabled) { transform: scale(.98); }
.btn-block:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline {
  flex: 1; padding: .75rem; border-radius: .75rem;
  background: transparent; border: 2px solid hsl(var(--border));
  color: hsl(var(--muted-foreground)); font-weight: 600;
  transition: background .2s;
}
.btn-outline:hover { background: hsl(var(--secondary)); }
.btn-row { display: flex; gap: .75rem; }

/* Name */
.input-card {
  background: hsl(var(--card)); border-radius: 1rem; padding: 1.5rem;
  box-shadow: var(--shadow-card); border: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; gap: 1rem;
}
.avatar-circle-warm {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient-warm); display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary-foreground)); margin: 0 auto;
  box-shadow: var(--shadow-warm);
}
.field { text-align: left; display: flex; flex-direction: column; gap: .375rem; }
.field label { font-size: .875rem; font-weight: 500; }
.field input {
  height: 48px; padding: 0 .875rem; border-radius: .5rem;
  border: 1px solid hsl(var(--input)); background: hsl(var(--background));
  font-size: 1rem; font-family: inherit; color: hsl(var(--foreground));
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 2px hsl(var(--primary) / .15); }
.field .help { font-size: .75rem; color: hsl(var(--muted-foreground)); }

/* Avatar */
.avatar-drop {
  position: relative; width: 160px; height: 160px; border-radius: 50%;
  border: 4px dashed hsl(var(--muted-foreground) / .3);
  background: hsl(var(--muted) / .5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; cursor: pointer; overflow: hidden; margin: 0 auto;
  color: hsl(var(--muted-foreground) / .6);
  transition: border-color .2s, background .2s, transform .2s;
}
.avatar-drop:hover { border-color: hsl(var(--primary) / .5); background: hsl(var(--primary) / .05); }
.avatar-drop.has-image { border-style: solid; border-color: hsl(var(--primary) / .3); box-shadow: var(--shadow-warm); background: transparent; }
.avatar-drop.drag { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .1); transform: scale(1.05); }
.avatar-drop img { width: 100%; height: 100%; object-fit: cover; }
.avatar-drop .label { font-size: .75rem; font-weight: 500; }
.avatar-drop > video { display: none; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.avatar-drop.cam-active { border-style: solid; border-color: hsl(var(--primary)); background: #000; cursor: default; }
.avatar-drop.cam-active > svg, .avatar-drop.cam-active > .label { display: none; }
.avatar-drop.cam-active > video { display: block; }
.cam-controls { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.cam-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .1s, border-color .15s;
}
.cam-btn:hover { background: hsl(var(--muted)); border-color: hsl(var(--primary) / .5); }
.cam-btn:active { transform: scale(.97); }
.cam-btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: transparent; }
.cam-btn-primary:hover { background: hsl(var(--primary) / .9); color: hsl(var(--primary-foreground)); }
.avatar-clear {
  position: absolute; top: 4px; right: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: hsl(0 84% 60%); color: white;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.fmt-line {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  font-size: .75rem; color: hsl(var(--muted-foreground));
}

/* Location */
.loc-icon-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  background: hsl(var(--primary) / .1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; color: hsl(var(--primary));
}
.loc-icon-wrap svg { width: 40px; height: 40px; }
.privacy-box {
  display: flex; gap: .75rem; text-align: left;
  background: hsl(var(--primary) / .05); border-radius: .75rem; padding: 1rem;
  font-size: .875rem; color: hsl(var(--muted-foreground));
}
.privacy-box svg { color: hsl(var(--primary)); flex-shrink: 0; margin-top: .15rem; width: 20px; height: 20px; }
.error-box {
  font-size: .875rem; color: hsl(0 84% 60%);
  background: hsl(0 84% 60% / .1); border-radius: .75rem; padding: .75rem;
}

/* Profile preview */
.profile-card {
  background: hsl(var(--card)); border-radius: 1rem; padding: 1.5rem;
  box-shadow: var(--shadow-card); border: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; gap: 1.25rem; align-items: center;
}
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  border: 4px solid hsl(var(--primary) / .2); box-shadow: var(--shadow-warm);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.25rem; font-weight: 700; }
.profile-line { display: flex; align-items: center; gap: .375rem; justify-content: center; font-size: .875rem; }
.profile-line svg { width: 16px; height: 16px; color: hsl(var(--primary)); }

/* Agreement */
.shield-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-warm); box-shadow: var(--shadow-warm);
  display: flex; align-items: center; justify-content: center; color: hsl(var(--primary-foreground));
  margin: 0 auto;
}
.rule-row {
  display: flex; align-items: center; gap: .75rem; text-align: left;
  padding: .75rem; border-radius: .75rem;
  background: hsl(var(--secondary) / .5); border: 1px solid hsl(var(--border));
  font-size: .875rem; font-weight: 500;
}
.rule-row svg { width: 20px; height: 20px; flex-shrink: 0; }
.rule-row.danger svg { color: hsl(0 84% 60%); }
.rule-row.warm svg { color: hsl(var(--primary)); }
.rule-row.accent svg { color: hsl(var(--accent)); }
.warn-box {
  background: hsl(0 84% 60% / .1); border: 1px solid hsl(0 84% 60% / .2);
  border-radius: .75rem; padding: .75rem;
  font-size: .75rem; color: hsl(0 84% 60%); font-weight: 500;
}
.check-row {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  font-size: .875rem; color: hsl(var(--muted-foreground)); cursor: pointer;
}
.check-row input { width: 16px; height: 16px; accent-color: hsl(var(--primary)); }

/* Scanning */
.radar-wrap {
  position: relative; width: 18rem; height: 18rem;
  margin: 0 auto; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, hsl(var(--primary) / .10), hsl(var(--muted) / .35) 70%);
  border: 1px solid hsl(var(--border) / .6);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / .08);
}
/* Map overlay: grid, rings, crosshair, faux roads */
.radar-map {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; opacity: .9;
  overflow: visible;
}
.radar-map * { vector-effect: non-scaling-stroke; }
.radar-map .grid line { stroke: hsl(var(--primary) / .12); stroke-width: 1; fill: none; }
.radar-map .ring { fill: none; stroke: hsl(var(--primary) / .25); stroke-width: 1; stroke-dasharray: 3 4; }
.radar-map .axis { fill: none; stroke: hsl(var(--primary) / .22); stroke-width: 1; stroke-dasharray: 4 5; }
.radar-map .road { fill: none; stroke: hsl(var(--foreground) / .18); stroke-width: 1.6; stroke-linecap: round; }
.radar-map .road.thin { fill: none; stroke: hsl(var(--foreground) / .10); stroke-width: 1; }
.radar-map .label { fill: hsl(var(--muted-foreground)); font-size: 5px; font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: .12em; }
.radar-map .compass { fill: hsl(var(--primary)); font-size: 6px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.radar-map .blob { fill: hsl(var(--primary) / .08); stroke: none; }
.radar-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--gradient-warm);
  box-shadow: var(--shadow-warm); z-index: 20;
  outline: 2px solid hsl(var(--background));
}
.radar-circle {
  position: absolute; top: 50%; left: 50%;
  border: 2px solid hsl(var(--primary) / .2);
  background: hsl(var(--primary) / .05);
  border-radius: 50%;
  transition: width .8s ease-in-out, height .8s ease-in-out;
  transform: translate(-50%, -50%);
}
.radar-sweep {
  position: absolute; inset: 0; z-index: 5; border-radius: 50%;
  background: conic-gradient(from 0deg, hsl(16 85% 60% / 0.28) 0deg, hsl(16 85% 60% / 0.04) 40deg, transparent 60deg, transparent 360deg);
  animation: radar-spin 2.4s linear infinite;
  mask: radial-gradient(circle at 50% 50%, black 0, black 50%, transparent 50%);
  -webkit-mask: radial-gradient(circle at 50% 50%, black 0, black 50%, transparent 50%);
  pointer-events: none;
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
.user-dot {
  position: absolute; width: 10px; height: 10px;
  border-radius: 50%; background: hsl(var(--primary) / .7);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s, background .3s;
  z-index: 10;
}
.user-dot.active { transform: translate(-50%, -50%) scale(1); }
.user-dot.eliminated { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.user-dot.match { background: hsl(var(--accent)); transform: translate(-50%, -50%) scale(1.6); box-shadow: 0 0 0 3px hsl(var(--accent) / .3), var(--shadow-warm); }
.user-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: hsl(var(--primary) / .4); animation: ping 2s cubic-bezier(0,0,.2,1) infinite;
}
.user-dot.match::after { display: none; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.scan-status { display: flex; align-items: center; justify-content: center; gap: .375rem; }
.scan-progress { max-width: 18rem; margin: 0 auto; }
.scan-progress-bar { height: 6px; background: hsl(var(--muted)); border-radius: 999px; overflow: hidden; }
.scan-progress-fill { height: 100%; background: var(--gradient-warm); width: 0%; transition: width .5s; }
.match-card {
  background: hsl(var(--card)); border-radius: 1rem; padding: 1.25rem;
  box-shadow: var(--shadow-card); border: 1px solid hsl(var(--border));
  max-width: 18rem; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem;
  animation: page-enter .5s cubic-bezier(.22,1,.36,1) both;
}
.match-row { display: flex; align-items: center; gap: .75rem; text-align: left; }
.match-pic {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-warm); display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary-foreground));
}
.match-btn {
  width: 100%; padding: .75rem; border-radius: .75rem;
  background: var(--gradient-warm); color: hsl(var(--primary-foreground));
  font-weight: 600; box-shadow: var(--shadow-warm);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: transform .15s;
}
.match-btn:hover { transform: scale(1.02); }

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: hsl(var(--card)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: .75rem;
  padding: .75rem 1rem; box-shadow: var(--shadow-card);
  z-index: 100; max-width: 90vw; font-size: .875rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s;
  opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { color: hsl(0 84% 60%); }
.toast.success { color: hsl(var(--primary)); }

/* Spinner for face scanning */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid hsl(var(--muted));
  border-top-color: hsl(var(--primary));
  animation: lm-spin .8s linear infinite;
}
@keyframes lm-spin { to { transform: rotate(360deg); } }
.avatar-drop.scanning { border-color: hsl(var(--primary)); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }