/* ============================================================
   SAATHO WEB APP - STYLES
   Premium UX — Mobile-first, Desktop-adaptive
   ============================================================ */

:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --primary-dark: #5A4BD1;
  --secondary: #FD79A8;
  --accent: #00CEC9;
  --bg: #F5F3FF;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #555;
  --text-muted: #999;
  --border: #E8E8F0;
  --error: #E74C3C;
  --success: #27AE60;
  --warning: #F39C12;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow: 0 2px 16px rgba(108,92,231,0.06);
  --shadow-lg: 0 8px 40px rgba(108,92,231,0.10);
  --header-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   DESKTOP BACKGROUND
   ============================================================ */
.app-bg {
  display: none;
}
@media (min-width: 768px) {
  .app-bg {
    display: block;
    position: fixed; inset: 0; z-index: 0;
    background:
      radial-gradient(ellipse at 20% 50%, rgba(108,92,231,0.10) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, rgba(253,121,168,0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 80%, rgba(0,206,201,0.06) 0%, transparent 50%),
      var(--bg);
    pointer-events: none;
  }
}

/* ============================================================
   APP HEADER (visible when logged in)
   ============================================================ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(108,92,231,0.08);
  position: sticky;
  top: 0;
  z-index: 200;
}
.app-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-header-logo { font-size: 24px; }
.app-header-title {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.header-signout-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.header-signout-btn:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(231,76,60,0.05);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.app-container {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  z-index: 1;
  display: flex;
}

.main-content {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
  /* Mobile: full width */
  max-width: 100%;
}

.screen {
  display: none !important;
  padding: 24px 20px 100px;
  flex: 1;
  animation: fadeIn 0.25s ease;
}
.screen.active { display: block !important; }
#screen-auth.active { display: flex !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  width: 100%;
  font-family: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(108,92,231,0.3);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(108,92,231,0.4); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover:not(:disabled) { background: rgba(108,92,231,0.06); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover:not(:disabled) { color: var(--text); }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover:not(:disabled) { background: #C0392B; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-connect { background: var(--primary); color: white; }
.btn-pass { background: transparent; color: var(--text-muted); border: 2px solid var(--border); }

/* ============================================================
   INPUTS
   ============================================================ */
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.input-group small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,92,231,0.10); }
textarea { resize: vertical; min-height: 80px; }

/* ============================================================
   CHIP SELECTOR
   ============================================================ */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip {
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  color: var(--text-secondary);
  user-select: none;
}
.chip:hover { border-color: var(--primary-light); }
.chip.selected { background: var(--primary); color: white; border-color: var(--primary); }

/* ============================================================
   PROGRESS BAR (onboarding)
   ============================================================ */
.progress-bar { display: flex; gap: 6px; margin-bottom: 32px; padding-top: 8px; }
.progress-step {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.progress-step.completed { background: var(--primary); }
.progress-step.current { background: var(--primary-light); }

/* ============================================================
   AUTH SCREENS
   ============================================================ */

/* Mobile auth: standard centered layout */
#screen-auth {
  padding: 0;
  flex-direction: column;
}
.auth-hero { display: none; } /* hidden on mobile */
.auth-form-panel {
  flex: 1;
  padding: 0 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
}

.auth-header { text-align: center; margin-bottom: 32px; padding-top: 48px; }
.auth-header .logo { font-size: 56px; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.auth-header h1 {
  font-size: 32px; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-header p { font-size: 16px; color: var(--text-secondary); line-height: 1.6; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }

/* Desktop split layout */
@media (min-width: 768px) {
  #screen-auth {
    flex-direction: row;
    min-height: 100vh;
    padding: 0;
  }

  /* Left hero panel */
  .auth-hero {
    display: flex;
    flex: 1;
    background: linear-gradient(145deg, #4A3ADB 0%, #6C5CE7 40%, #9B59B6 70%, #FD79A8 100%);
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
  }
  .auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
  }
  /* Decorative blobs */
  .auth-hero::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -80px; right: -80px;
  }
  .auth-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: left;
    max-width: 380px;
  }
  .auth-hero-logo { font-size: 52px; margin-bottom: 16px; display: block; }
  .auth-hero-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
  }
  .auth-hero-tagline {
    font-size: 18px;
    opacity: 0.88;
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .auth-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }
  .auth-hero-pill {
    padding: 6px 14px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(8px);
  }
  .auth-hero-sub {
    font-size: 14px;
    opacity: 0.72;
    line-height: 1.6;
  }

  /* Right form panel */
  .auth-form-panel {
    width: 440px;
    flex-shrink: 0;
    padding: 48px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
    overflow-y: auto;
  }
  /* Hide mobile-style auth header on desktop (hero replaces it) */
  .auth-form-panel .auth-header { display: none; }
  /* Hide the inline h3 title — ::before pseudo handles it */
  #auth-form-title { display: none; }
  /* Add a compact desktop-only heading */
  .auth-form-panel::before {
    content: 'Welcome back 👋';
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
  }
  body.signup-mode .auth-form-panel::before { content: 'Create your account ✨'; }
}

/* OTP Input */
.otp-container { display: flex; gap: 10px; justify-content: center; margin: 32px 0; }
.otp-input {
  width: 48px; height: 56px;
  text-align: center; font-size: 24px; font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  outline: none;
  font-family: inherit;
}
.otp-input:focus { border-color: var(--primary); }

/* ============================================================
   ONBOARDING
   ============================================================ */
.onboarding-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.onboarding-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.photo-slot {
  aspect-ratio: 3/4;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s;
}
.photo-slot:hover { border-color: var(--primary-light); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .add-icon { font-size: 32px; color: var(--text-muted); }
.photo-slot .remove-btn {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: white;
  border: none; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}

.range-control { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.range-control button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface);
  font-size: 20px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-family: inherit; color: var(--text);
}
.range-control button:hover { border-color: var(--primary); }
.range-control .range-value { font-size: 18px; font-weight: 600; min-width: 40px; text-align: center; }

/* ============================================================
   AI SUMMARY PREVIEW
   ============================================================ */
.ai-card {
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(253,121,168,0.08));
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.ai-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--primary); }
.ai-card p { font-size: 15px; line-height: 1.6; color: var(--text); }
.ai-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-tag {
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(108,92,231,0.12); color: var(--primary);
  font-size: 13px; font-weight: 500;
}

/* ============================================================
   TAB BAR
   ============================================================ */
.tab-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(108,92,231,0.06);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  z-index: 100;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 8px; cursor: pointer;
  color: var(--text-muted); font-size: 11px; font-weight: 500;
  background: none; border: none; font-family: inherit;
  transition: color 0.2s;
}
.tab-item.active { color: var(--primary); }
.tab-item .tab-icon { font-size: 24px; }

/* ============================================================
   MATCH CARD
   ============================================================ */
.match-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
}
.match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.match-card-photo {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.match-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.match-card-photo .initials {
  font-size: 64px; font-weight: 700; color: white; opacity: 0.8;
}
.match-score {
  position: absolute; top: 12px; right: 12px;
  background: rgba(108,92,231,0.9); color: white;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700;
}
.match-card-body { padding: 20px; }
.match-card-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.match-card-body .match-intent { font-size: 14px; color: var(--primary); font-weight: 500; margin-bottom: 12px; }
.match-card-body .match-summary { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }

.match-reasons { margin-bottom: 16px; }
.match-reasons h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.reason-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.reason-item::before { content: '💜'; font-size: 12px; }

.match-openers { margin-bottom: 20px; }
.match-openers h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.opener-chip {
  display: inline-block; padding: 8px 14px; margin: 4px;
  background: rgba(108,92,231,0.08); border-radius: var(--radius-lg);
  font-size: 13px; color: var(--primary); cursor: pointer;
}
.opener-chip:hover { background: rgba(108,92,231,0.15); }

.match-actions { display: flex; gap: 12px; }
.match-actions .btn { flex: 1; }

/* ============================================================
   CONVERSATION LIST
   ============================================================ */
.convo-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.2s;
}
.convo-item:hover { background: rgba(108,92,231,0.03); }
.convo-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.convo-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.convo-info { flex: 1; min-width: 0; }
.convo-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.convo-info p { font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* ============================================================
   CHAT
   ============================================================ */
.chat-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(108,92,231,0.06);
}
.chat-header .back-btn { background: none; border: none; font-size: 24px; cursor: pointer; padding: 4px; }
.chat-header h3 { font-size: 18px; font-weight: 600; flex: 1; }
.chat-header .more-btn { background: none; border: none; font-size: 20px; cursor: pointer; }

.chat-messages { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; min-height: calc(100vh - 140px); }
.chat-bubble {
  max-width: 75%; padding: 12px 16px;
  border-radius: 18px; font-size: 15px; line-height: 1.4;
  word-wrap: break-word;
}
.chat-bubble.sent {
  align-self: flex-end;
  background: var(--primary); color: white;
  border-bottom-right-radius: 4px;
}
.chat-bubble.received {
  align-self: flex-start;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-bubble .time { font-size: 11px; opacity: 0.7; margin-top: 4px; }

.chat-input-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; gap: 10px; padding: 12px 16px;
  background: var(--surface); border-top: 1px solid var(--border);
}
.chat-input-bar input {
  flex: 1; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-full);
  font-size: 15px; outline: none; font-family: inherit;
}
.chat-input-bar input:focus { border-color: var(--primary); }
.chat-input-bar button {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white;
  border: none; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.chat-input-bar button:disabled { opacity: 0.4; }

.ai-openers-bar {
  padding: 12px 20px; display: flex; gap: 8px;
  overflow-x: auto; background: rgba(108,92,231,0.04);
}
.ai-openers-bar .opener-chip { white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-header { text-align: center; padding-top: 20px; margin-bottom: 24px; }
.profile-avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(108,92,231,0.20);
  border: 4px solid var(--surface);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar .initials { font-size: 48px; font-weight: 700; color: white; }
.profile-header h2 { font-size: 24px; font-weight: 700; }
.profile-header .location { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.profile-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.profile-section h4 {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.profile-section p { font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.profile-info-row { display: flex; justify-content: space-between; padding: 8px 0; }
.profile-info-row .label { font-size: 14px; color: var(--text-muted); }
.profile-info-row .value { font-size: 14px; font-weight: 600; color: var(--text); }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.settings-item:hover { opacity: 0.8; }
.settings-item .settings-label { font-size: 16px; font-weight: 500; }
.settings-item .settings-icon { font-size: 20px; }
.settings-item.danger .settings-label { color: var(--error); }

/* Toggle switch */
.toggle {
  position: relative; width: 48px; height: 28px;
  background: var(--border); border-radius: 14px;
  cursor: pointer; transition: background 0.3s;
}
.toggle.active { background: var(--primary); }
.toggle::after {
  content: ''; position: absolute;
  width: 22px; height: 22px; border-radius: 50%;
  background: white; top: 3px; left: 3px;
  transition: transform 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle.active::after { transform: translateX(20px); }

/* ============================================================
   REPORT
   ============================================================ */
.report-option {
  padding: 14px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 10px;
  cursor: pointer; font-size: 15px; transition: all 0.2s;
}
.report-option:hover { border-color: var(--primary-light); }
.report-option.selected { border-color: var(--primary); background: rgba(108,92,231,0.05); }

/* ============================================================
   SCREEN HEADER
   ============================================================ */
.screen-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; padding-top: 8px;
}
.screen-header .back-btn {
  background: none; border: none; font-size: 24px;
  cursor: pointer; padding: 4px; color: var(--text);
}
.screen-header h2 { font-size: 22px; font-weight: 700; flex: 1; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 15px; line-height: 1.5; }

/* ============================================================
   LOADING / SPINNER
   ============================================================ */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}

/* ============================================================
   ALERT / TOAST
   ============================================================ */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  padding: 14px 24px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; z-index: 2000;
  box-shadow: var(--shadow-lg); animation: slideDown 0.3s ease;
  max-width: 400px;
}
.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--error); color: white; }
.toast.info { background: var(--primary); color: white; }
@keyframes slideDown { from { transform: translateX(-50%) translateY(-20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
}
.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.modal-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.modal-content p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }

/* ============================================================
   MODE SELECTION (Onboarding Step 1)
   ============================================================ */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.mode-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.mode-card:hover { border-color: var(--primary-light); }
.mode-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(253,121,168,0.05));
  box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}
.mode-icon { font-size: 32px; margin-bottom: 8px; }
.mode-label { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.mode-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ============================================================
   GROUP MATCH CARDS
   ============================================================ */
.match-card.group-match {
  border-left: 4px solid var(--accent);
}
.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.group-badge {
  background: linear-gradient(135deg, var(--accent), #00B4D8);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.group-avatars {
  display: flex;
  gap: -8px;
  margin-bottom: 12px;
}
.group-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--surface);
  margin-left: -8px;
}
.group-avatar:first-child { margin-left: 0; }
.group-avatar img { width: 100%; height: 100%; object-fit: cover; }
.group-avatar .initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: white;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   BLIND MODE
   ============================================================ */
.blind-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2D3436, #636E72);
  color: white;
  min-height: 200px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.blind-icon { font-size: 48px; margin-bottom: 8px; }
.blind-avatar .initials { font-size: 28px; font-weight: 700; opacity: 0.8; }
.blind-badge {
  display: inline-block;
  background: #2D3436;
  color: #DDD;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  margin: 8px 0;
}
.blind-notice {
  background: rgba(45,52,54,0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0;
  text-align: center;
}

.match-icebreaker {
  background: rgba(0,206,201,0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  margin: 8px 0 12px;
  color: var(--text);
}

.profile-mode-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

/* Group chat sender name */
.sender-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.group-avatar-small {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ============================================================
   DESKTOP SIDEBAR
   ============================================================ */
.desktop-sidebar {
  display: none;
  flex-direction: column;
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo { font-size: 28px; }
.sidebar-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}
.sidebar-nav-item:hover { background: rgba(108,92,231,0.06); color: var(--primary); }
.sidebar-nav-item.active {
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(253,121,168,0.06));
  color: var(--primary);
  font-weight: 600;
}
.snav-icon { font-size: 20px; flex-shrink: 0; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.sidebar-user { margin-bottom: 12px; }
.sidebar-user-name { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.sidebar-user-mode { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.sidebar-signout {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-align: left;
}
.sidebar-signout:hover { border-color: var(--error); color: var(--error); background: rgba(231,76,60,0.04); }

/* ============================================================
   RESPONSIVE — Desktop Adaptive (class-driven visibility)
   ============================================================ */

/* Default: everything hidden until JS adds body classes */
.desktop-sidebar { display: none; }
.tab-bar { display: none; }
.app-header { display: none; }

/* Mobile (<768px): header + tab bar when logged in */
@media (max-width: 767px) {
  body.logged-in .app-header { display: flex; }
  body.logged-in.main-tab .tab-bar { display: flex; }
  .desktop-sidebar { display: none !important; }
  .app-container { background: var(--surface); }
  .screen { padding: 24px 20px 90px; }
}

/* Desktop (768px+): sidebar layout */
@media (min-width: 768px) {
  body { background: var(--bg); }
  .app-bg { display: block; }
  .app-container {
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 80px rgba(108,92,231,0.08);
    flex-direction: row;
  }
  .tab-bar { display: none !important; }
  .app-header { display: none !important; }
  body.logged-in .desktop-sidebar { display: flex; }
  .main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    height: 100vh;
  }
  /* Auth screen: override main-content to be flex row full-height */
  body:not(.logged-in) .main-content {
    overflow: visible;
  }
  body:not(.logged-in) #screen-auth.active {
    min-height: 100vh;
  }
  .screen { padding: 32px 36px 60px; }
  #screen-chat { padding: 0; }
  .chat-input-bar {
    position: sticky;
    bottom: 0;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .app-container { max-width: 1200px; }
  .desktop-sidebar { width: 260px; }
  .screen { padding: 36px 48px 60px; }
}

@media (min-width: 1440px) {
  .app-container { max-width: 1300px; }
  .desktop-sidebar { width: 280px; }
  .screen { padding: 40px 56px 60px; }
}

@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; }
  input, select, textarea { min-height: 48px; }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .tab-bar { padding-bottom: env(safe-area-inset-bottom, 8px); }
}


/* ============================================================
   CONNECTION COMPOSER
   ============================================================ */
.composer { max-width: 640px; margin: 0 auto; }
.composer-hero { margin-bottom: 28px; }
.composer-greeting { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.composer-title {
  font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.composer-sub { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.composer-section { margin-bottom: 24px; }
.composer-label {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px;
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 768px) {
  .vibe-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
.vibe-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
.vibe-card:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.vibe-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(108,92,231,0.10), rgba(253,121,168,0.06));
  box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}
.vibe-icon { font-size: 28px; margin-bottom: 6px; }
.vibe-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.vibe-sub { font-size: 11px; color: var(--text-muted); }

.when-row { display: flex; gap: 10px; flex-wrap: wrap; }
.when-chip {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.when-chip:hover { border-color: var(--primary-light); }
.when-chip.selected { background: var(--primary); color: white; border-color: var(--primary); }

.composer-cta { margin-top: 8px; }
.composer-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   AI THINKING STATE
   ============================================================ */
.thinking { text-align: center; padding: 60px 20px; max-width: 480px; margin: 0 auto; }
.thinking-pulse {
  font-size: 64px; margin-bottom: 20px;
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.7; } }
.thinking h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.thinking-step { font-size: 14px; color: var(--primary); font-weight: 500; transition: opacity 0.3s; }

/* ============================================================
   CONNECTION PREVIEW
   ============================================================ */
.preview-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(253,121,168,0.05));
  border: 1px solid rgba(108,92,231,0.15);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.preview-banner-icon { font-size: 32px; }
.preview-banner-title { font-size: 15px; font-weight: 700; color: var(--text); }
.preview-banner-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.preview-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.preview-tag {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.preview-mini { font-size: 12px; color: var(--text-muted); }

.preview-persona {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.preview-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}
.preview-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.preview-vibe { font-size: 13px; color: var(--text-secondary); }

.preview-question {
  background: rgba(0,206,201,0.06);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.preview-question-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.preview-question-text { font-size: 15px; line-height: 1.5; color: var(--text); font-style: italic; }

.preview-why { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.preview-disclaimer { font-size: 11px; color: var(--text-muted); line-height: 1.5; padding-top: 12px; border-top: 1px solid var(--border); }

.preview-actions { display: flex; gap: 12px; margin-bottom: 18px; }
.preview-actions .btn { flex: 1; }

/* ============================================================
   UPSELL CARD
   ============================================================ */
.upsell-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 0.2s;
}
.upsell-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(26,26,46,0.25); }
.upsell-icon { font-size: 28px; flex-shrink: 0; }
.upsell-body { flex: 1; }
.upsell-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.upsell-sub { font-size: 13px; opacity: 0.75; line-height: 1.4; }
.upsell-arrow { font-size: 20px; opacity: 0.6; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-tagline { font-size: 16px; color: var(--text-secondary); margin-bottom: 28px; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  position: relative;
  transition: all 0.2s;
}
.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(108,92,231,0.18);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-name { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.pricing-price { font-size: 36px; font-weight: 800; color: var(--text); margin-bottom: 18px; }
.pricing-price span { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.pricing-feats { list-style: none; padding: 0; margin: 0 0 22px; }
.pricing-feats li { font-size: 14px; color: var(--text-secondary); padding: 7px 0; line-height: 1.5; border-bottom: 1px solid var(--border); }
.pricing-feats li:last-child { border-bottom: none; }
.pricing-feats li strong { color: var(--text); }
.pricing-foot { text-align: center; padding: 24px 0; font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Pricing region note */
.pricing-region { font-size: 13px; color: var(--text-muted); margin: -8px 0 20px; text-align: center; }
.pricing-region a { color: var(--primary); text-decoration: none; font-weight: 600; }
.pricing-region a:hover { text-decoration: underline; }

/* ============================================================
   RADAR / GEOFENCE UI
   ============================================================ */
.radar-header { margin-bottom: 20px; }
.radar-header h2 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.radar-sub { font-size: 14px; color: var(--text-muted); }

.radar-checkin-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.radar-checkin-card.active { border-color: var(--primary); }
.radar-checkin-info { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.radar-pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: background 0.3s; }
.radar-pulse-dot.on { background: #00b894; box-shadow: 0 0 0 0 rgba(0,184,148,0.4); animation: radarPing 1.5s infinite; }
@keyframes radarPing {
  0%   { box-shadow: 0 0 0 0 rgba(0,184,148,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(0,184,148,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,184,148,0); }
}
.radar-loc-label { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.radar-exp { font-size: 12px; color: var(--text-muted); }
.radar-actions { display: flex; gap: 8px; }
.radar-actions .btn { width: auto; }

.radar-radius-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.radar-radius-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }

.radar-scan-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 24px 0 32px; }
.radar-disc { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.radar-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(108,92,231,0.2); animation: radarExpand 3s ease-out infinite; }
.radar-ring.r1 { width: 60px;  height: 60px;  animation-delay: 0s; }
.radar-ring.r2 { width: 120px; height: 120px; animation-delay: 0.8s; }
.radar-ring.r3 { width: 180px; height: 180px; animation-delay: 1.6s; }
@keyframes radarExpand {
  0%   { opacity: 0.8; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.05); }
}
.radar-center-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px rgba(108,92,231,0.6); z-index: 2; }
.radar-count-label { position: absolute; bottom: -28px; font-size: 14px; font-weight: 700; color: var(--primary); }
.radar-scan-btn { width: 200px; }

.radar-empty-hint { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.radar-empty-icon { font-size: 56px; margin-bottom: 16px; }
.radar-empty-hint p { font-size: 15px; line-height: 1.6; }

.radar-no-results { text-align: center; color: var(--text-muted); padding: 24px 0; font-size: 14px; }
.radar-results-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.radar-cards { display: flex; flex-direction: column; gap: 12px; }
.radar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; align-items: center; gap: 14px; transition: border-color 0.2s, transform 0.15s; }
.radar-card:hover { border-color: var(--primary-light); transform: translateY(-1px); }
.radar-card-avatar { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; overflow: hidden; background: var(--bg); }
.radar-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.radar-avatar-initials { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: white; }
.radar-card-body { flex: 1; min-width: 0; }
.radar-card-name  { font-size: 15px; font-weight: 700; color: var(--text); }
.radar-card-meta  { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.radar-card-dist  { font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 4px; }
.radar-card-tags  { display: flex; flex-wrap: wrap; gap: 4px; }
.checkin-radius-chips { margin-bottom: 0 !important; }
