/* =====================
   DESIGN SYSTEM - Light Professional Theme
   ===================== */
:root {
  --bg: #f8f9fb;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --text: #1a1d26;
  --text-secondary: #5c6370;
  --muted: #8b919d;
  --primary: #4f6ef7;
  --primary-hover: #3d5bd9;
  --primary-light: #eef1fe;
  --danger: #e5484d;
  --danger-light: #feecec;
  --success: #30a46c;
  --success-light: #e9f9f1;
  --border: #e4e7ec;
  --border-hover: #c5cad3;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* =====================
   LAYOUT
   ===================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 24px;
  }
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

@media (min-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

/* =====================
   CARD
   ===================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .card {
    padding: 28px;
  }
}

/* =====================
   LEGAL PAGES
   ===================== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-page .updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-page h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-page p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text);
}

.legal-page ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
}

.legal-page a {
  color: var(--primary);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.contact-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.contact-info h3 {
  margin-top: 16px;
  font-size: 16px;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-note {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px;
  margin-top: 32px;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .legal-page {
    padding: 24px 20px;
  }

  .legal-page h1 {
    font-size: 26px;
  }

  .legal-page h2 {
    font-size: 20px;
  }
}

/* =====================
   ALERTS
   ===================== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(229, 72, 77, 0.2);
}

.alert-ok {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(48, 164, 108, 0.2);
}

/* =====================
   GRID & PANELS
   ===================== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.panel h3 {
  margin-bottom: 4px;
}

.panel h4 {
  margin: 16px 0 8px;
  color: var(--text-secondary);
}

/* =====================
   FORMS
   ===================== */
label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6370' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
}

/* Form spacing in wizards and panels */
.wizard-form label,
.panel label {
  margin-top: 16px;
}

.wizard-form label:first-of-type,
.panel label:first-of-type {
  margin-top: 0;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-hover);
  background: var(--bg);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #d13438;
  border-color: #d13438;
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #2b9460;
  border-color: #2b9460;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-google {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
}

.btn-google:hover {
  background: var(--bg);
  border-color: var(--border-hover);
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

.btn-glow {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 110, 247, 0.35);
}

.btn-glow:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(79, 110, 247, 0.4);
  transform: translateY(-1px);
}

/* =====================
   NAVIGATION
   ===================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand .logo-svg {
  width: 32px;
  height: 32px;
}

.logo-svg {
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  width: 110px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chip:hover {
  background: var(--bg);
  color: var(--text);
}

.chip.active {
  background: var(--primary-light);
  color: var(--primary);
}

@media (min-width: 640px) {
  .chip {
    display: inline-flex;
  }
}

.nav-messages {
  position: relative;
}

.badge {
  position: absolute;
  top: 2px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: var(--danger);
  border-radius: 9px;
  line-height: 1;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  background: var(--bg);
}

.me {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =====================
   PROFILE CARD (Swipe)
   ===================== */
.filter-panel {
  max-width: 640px;
  margin: 0 auto 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.filter-toggle {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: background 0.15s ease;
}

.filter-toggle:hover {
  background: var(--bg);
}

.filter-form {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-range input {
  flex: 1;
  min-width: 0;
}

.filter-range span {
  color: var(--text-secondary);
  font-weight: 500;
}

.filter-form button {
  grid-column: 1 / -1;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-form button {
    grid-column: 1;
  }
}

.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 20px;
}

.profile-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.photo {
  height: 380px;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 480px) {
  .photo {
    height: 440px;
  }
}

.photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 30%, rgba(0,0,0,0.4) 100%);
}

.photo-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.photo-controls .btn {
  background: rgba(255,255,255,0.9);
  border: none;
  color: var(--text);
  padding: 8px 14px;
}

.photo-controls .btn:hover {
  background: #fff;
}

.profile-body {
  padding: 20px;
}

.profile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-title h2 {
  font-size: 24px;
}

.pill {
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: 20px;
}

.profile-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.bio {
  margin: 16px 0 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 12px;
}

.actions .btn {
  flex: 1;
  padding: 14px;
  font-size: 15px;
}

/* =====================
   MATCHES
   ===================== */
.list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .list {
    grid-template-columns: 1fr 1fr;
  }
}

.match {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.match:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.match img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}

.match .meta {
  flex: 1;
  min-width: 0;
}

.match .name {
  font-weight: 600;
  color: var(--text);
}

.match .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* =====================
   MATCHES GRID (New Design)
   ===================== */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
  background: var(--bg);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.matches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .matches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .matches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.match-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.match-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.match-photo {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}

.match-content {
  padding: 16px;
}

.match-header {
  margin-bottom: 10px;
}

.match-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.match-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.match-location svg {
  flex-shrink: 0;
}

.match-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.match-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--muted);
}

.match-tag svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.match-actions {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.match-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.match-actions .btn svg {
  flex-shrink: 0;
}

/* =====================
   THUMBS (Profile Edit)
   ===================== */
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 480px) {
  .thumbs {
    grid-template-columns: repeat(6, 1fr);
  }
}

.thumb {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-actions {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}

.thumb-actions .btn {
  flex: 1;
  padding: 4px 6px;
  font-size: 11px;
}

/* =====================
   LOGIN PAGE
   ===================== */
.login-wrap {
  min-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-logo {
  margin-bottom: 24px;
}

.login-logo .logo-svg {
  width: 72px;
  height: 72px;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.login-subtitle {
  color: var(--muted);
  margin-bottom: 32px;
  text-align: center;
  font-size: 16px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
}

@media (min-width: 480px) {
  .login-card {
    padding: 40px;
  }
}

.login-card .btn-google {
  margin-bottom: 8px;
}

.google-hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Login Tabs */
.login-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.login-tab {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-tab:hover {
  color: var(--text-secondary);
}

.login-tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.login-tab-content {
  display: none;
}

.login-tab-content.active {
  display: block;
}

/* Login Form */
.form-login label {
  margin: 16px 0 6px;
  font-size: 14px;
}

.form-login label:first-of-type {
  margin-top: 0;
}

.form-login input {
  padding: 12px 14px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
  margin-top: 20px;
  padding: 12px 18px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =====================
   LANDING PAGE
   ===================== */
.landing {
  min-height: 100vh;
  background: var(--bg);
}

/* Landing Header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.landing-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}

.landing-brand .logo-svg {
  width: 36px;
  height: 36px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Section */
.hero-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr 1fr;
    padding: 80px 20px 100px;
    gap: 64px;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 900px) {
  .hero-content {
    text-align: left;
  }
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 42px;
  }
}

@media (min-width: 900px) {
  .hero-title {
    font-size: 48px;
  }
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
}

@media (min-width: 900px) {
  .hero-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 899px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg);
  color: var(--text);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-trust {
    justify-content: flex-start;
  }
}

.hero-trust svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Hero Visual - Profile Cards */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hero-cards {
  position: relative;
  width: 280px;
  height: 320px;
}

@media (min-width: 640px) {
  .hero-cards {
    width: 320px;
    height: 360px;
  }
}

.hero-card {
  position: absolute;
  width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease;
}

@media (min-width: 640px) {
  .hero-card {
    width: 220px;
    padding: 24px;
  }
}

.hero-card-1 {
  top: 0;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}

.hero-card-2 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(3deg);
  z-index: 3;
}

.hero-card-3 {
  bottom: 0;
  right: 0;
  transform: rotate(8deg);
  z-index: 2;
}

.hero-card:hover {
  transform: scale(1.02) rotate(0deg);
  z-index: 10;
}

.hero-card-2:hover {
  transform: translate(-50%, -50%) scale(1.02) rotate(0deg);
}

.hero-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.hero-card-info {
  min-width: 0;
}

.hero-card-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.hero-card-loc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Features Section */
.features-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .section-header h2 {
    font-size: 32px;
  }
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius);
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

@media (min-width: 640px) {
  .stat-number {
    font-size: 32px;
  }
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* CTA Section */
.cta-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 20px;
}

.cta-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .cta-content h2 {
    font-size: 32px;
  }
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

/* Footer */
.landing-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.footer-brand .logo-svg,
.landing-brand .logo-svg {
  width: 36px;
  height: 36px;
}

.footer-brand .logo-svg {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* =====================
   ONBOARDING WIZARD
   ===================== */
.wizard-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  background: var(--bg);
}

.wizard-header {
  width: 100%;
  max-width: 560px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 8px;
}

.wizard-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.wizard-step.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 110, 247, 0.3);
}

.wizard-step.completed {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.wizard-step.completed .step-num::after {
  content: '\2713';
}

.wizard-step.completed .step-num {
  font-size: 0;
}

.wizard-line {
  width: 24px;
  height: 2px;
  background: var(--border);
  transition: background 0.2s ease;
}

@media (min-width: 480px) {
  .wizard-line {
    width: 36px;
  }
}

.wizard-line.completed {
  background: var(--success);
}

.wizard-card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .wizard-card {
    padding: 32px;
  }
}

.wizard-card h2 {
  margin-bottom: 6px;
}

.wizard-card > .muted {
  margin-bottom: 24px;
  font-size: 15px;
}

.wizard-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.wizard-actions .btn {
  flex: 1;
  padding: 12px 20px;
}

.wizard-skip {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.wizard-skip:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* =====================
   PHOTO GALLERY (Onboarding)
   ===================== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .photo-gallery {
    grid-template-columns: repeat(6, 1fr);
  }
}

.photo-slot {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.photo-slot.filled {
  border-style: solid;
  cursor: grab;
}

.photo-slot.filled:active {
  cursor: grabbing;
}

.photo-slot.empty:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-pos {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.photo-add {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.photo-slot.filled:hover .photo-overlay {
  opacity: 1;
}

.btn-photo-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-photo-action:hover {
  background: #fff;
  transform: scale(1.05);
}

.btn-photo-action.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-photo-action.btn-danger:hover {
  background: #d13438;
}

/* Drag states */
.photo-slot.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.photo-slot.drag-over {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.2);
}

/* Upload dropzone */
.photo-upload-area {
  margin-top: 12px;
}

.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-dropzone svg {
  color: var(--muted);
  margin-bottom: 8px;
}

.upload-dropzone p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.upload-dropzone .link {
  color: var(--primary);
  font-weight: 500;
}

.upload-dropzone .muted {
  font-size: 13px;
}

.upload-dropzone.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* =====================
   OPTION CARDS (Step 4)
   ===================== */
.option-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 480px) {
  .option-cards {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  cursor: pointer;
  transition: all 0.15s ease;
}

.option-card:hover {
  border-color: var(--border-hover);
  background: var(--bg);
}

.option-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.option-card input {
  display: none;
}

.option-label {
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  color: var(--text);
}

/* =====================
   INTERESTS (Step 5)
   ===================== */
.interests-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 12px;
}

.interest-category h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.interest-chip:hover {
  border-color: var(--border-hover);
  background: var(--bg);
}

.interest-chip.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.interest-chip input {
  display: none;
}

/* =====================
   PROFILE PREVIEW (Step 6)
   ===================== */
.profile-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}

.preview-photo {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 480px) {
  .preview-photo {
    height: 280px;
  }
}

.preview-info {
  padding: 18px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-header h2 {
  font-size: 22px;
}

.preview-location {
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}

.preview-bio {
  margin: 14px 0;
  line-height: 1.5;
  color: var(--text-secondary);
}

.preview-looking {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.preview-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.preview-interest-chip {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-alt);
}

/* =====================
   SCROLLBAR
   ===================== */
.interests-grid::-webkit-scrollbar {
  width: 6px;
}

.interests-grid::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.interests-grid::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.interests-grid::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* =====================
   UTILITY: HR
   ===================== */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* =====================
   CHAT SYSTEM
   ===================== */
.chat-layout {
  display: flex;
  height: calc(100vh - 80px);
  max-width: 1080px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Chat Sidebar */
.chat-sidebar {
  width: 320px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.chat-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.chat-sidebar-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.chat-conversations {
  flex: 1;
  overflow-y: auto;
}

.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.chat-conv-item:hover {
  background: var(--bg-alt);
}

.chat-conv-item.active {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
}

.chat-conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  flex-shrink: 0;
}

.chat-conv-info {
  flex: 1;
  min-width: 0;
}

.chat-conv-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-preview {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-item.has-unread .chat-conv-name {
  color: var(--primary);
}

.chat-conv-item.has-unread .chat-conv-preview {
  color: var(--text);
  font-weight: 500;
}

.chat-unread-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.chat-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.chat-empty a {
  color: var(--primary);
}

/* Chat Main Area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  min-width: 0;
}

.chat-main-empty {
  justify-content: center;
  align-items: center;
}

.chat-placeholder {
  text-align: center;
  color: var(--muted);
}

.chat-placeholder svg {
  opacity: 0.3;
  margin-bottom: 16px;
}

.chat-placeholder p {
  margin: 0;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.chat-back-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
}

.chat-back-btn:hover {
  background: var(--bg-alt);
}

.chat-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  flex-shrink: 0;
}

.chat-header-info {
  flex: 1;
  min-width: 0;
}

.chat-header-name {
  font-weight: 600;
  font-size: 16px;
}

.chat-header-status {
  font-size: 13px;
  color: var(--muted);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-welcome {
  text-align: center;
  padding: 60px 20px;
  margin: auto;
}

.chat-welcome-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  margin: 0 auto 16px;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow);
}

.chat-welcome h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.chat-welcome p {
  margin: 0;
  color: var(--muted);
}

.chat-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.chat-date-divider span {
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
}

.chat-message {
  display: flex;
  max-width: 70%;
}

.chat-message.mine {
  align-self: flex-end;
}

.chat-message.theirs {
  align-self: flex-start;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 100%;
  word-wrap: break-word;
}

.chat-message.mine .chat-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.theirs .chat-bubble {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-text {
  font-size: 15px;
  line-height: 1.4;
}

.chat-time {
  font-size: 11px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.chat-message.mine .chat-time {
  color: rgba(255, 255, 255, 0.7);
}

.chat-message.theirs .chat-time {
  color: var(--muted);
}

/* Chat Input */
.chat-input-area {
  padding: 16px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.chat-form {
  display: flex;
  gap: 12px;
}

.chat-input-wrapper {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 8px 8px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.chat-input-wrapper textarea {
  flex: 1;
  border: none;
  background: none;
  resize: none;
  font-size: 15px;
  line-height: 1.4;
  padding: 6px 0;
  max-height: 120px;
  font-family: inherit;
  color: var(--text);
}

.chat-input-wrapper textarea::placeholder {
  color: var(--muted);
}

.chat-input-wrapper textarea:focus {
  outline: none;
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Nav badge for unread messages */
.nav-badge {
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-layout {
    height: calc(100vh - 70px);
    border-radius: var(--radius-lg);
    margin: 0;
    border: 1px solid var(--border);
  }

  .chat-sidebar {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    transition: transform 0.3s ease;
  }

  .chat-main:not(.chat-main-empty) ~ .chat-sidebar,
  .chat-main[data-conversation-id] ~ .chat-sidebar {
    display: none;
  }

  .chat-main-empty {
    display: none;
  }

  .chat-back-btn {
    display: flex;
  }

  .chat-message {
    max-width: 85%;
  }
}

/* Scrollbar for chat */
.chat-messages::-webkit-scrollbar,
.chat-conversations::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.chat-conversations::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.chat-conversations::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.chat-conversations::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* =====================
   GLOBAL CHAT
   ===================== */
.gchat-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gchat-header {
  padding: 16px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.gchat-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.gchat-header .muted {
  font-size: 13px;
  margin-top: 2px;
}

.gchat-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.gchat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
  flex-shrink: 0;
}

.gchat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.gchat-guest-cta {
  padding: 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gchat-guest-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.gchat-layout .chat-message {
  max-width: 80%;
}

.gchat-layout .chat-message.theirs {
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .gchat-layout {
    height: calc(100vh - 100px);
    margin: 0;
  }

  .gchat-layout .chat-message {
    max-width: 90%;
  }
}

/* =====================
   PROFILE VIEW PAGE
   ===================== */
.profile-view-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .profile-view-container {
    grid-template-columns: 400px 1fr;
    align-items: start;
  }
}

.profile-view-photos {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.profile-view-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}

.profile-photo-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.photo-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s ease, transform 0.15s ease;
}

.photo-nav-btn:hover {
  background: white;
  transform: scale(1.1);
}

.photo-counter {
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.profile-view-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.profile-view-header {
  margin-bottom: 20px;
}

.profile-view-name {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.profile-view-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.profile-view-location svg {
  flex-shrink: 0;
}

.profile-view-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-view-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-view-section {
  margin-bottom: 24px;
}

.profile-view-section:last-child {
  margin-bottom: 0;
}

.profile-view-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.profile-view-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.profile-view-details {
  display: grid;
  gap: 12px;
}

.profile-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.profile-detail-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-detail-label {
  font-size: 13px;
  color: var(--muted);
  min-width: 80px;
}

.profile-detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.profile-view-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
