/* ═══════════════════════════════════════════════════════════════════════════
   Murudo Dating Web App — Complete Design System
   Colors derived from mobile/src/theme.ts (plum/aubergine luxury)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Light theme (default) ───────────────────────────────────────────── */
:root,
[data-theme="light"] {
  --bg:               #FFFFFF;
  --bg-warm:          #FAF8F6;
  --bg-hover:         #F3EFED;
  --surface:          #F5F2F0;
  --surface-elevated: #EDE9E6;
  --surface-accent:   rgba(139, 58, 139, 0.08);
  --text:             #1A0A1A;
  --text-secondary:   #6B3A6B;
  --text-tertiary:    #9A5A9A;
  --accent:           #8B3A8B;
  --accent-hover:     #9A4A9A;
  --accent-light:     #B366B3;
  --accent-soft:      rgba(139, 58, 139, 0.10);
  --accent-glow:      rgba(139, 58, 139, 0.15);
  --gold:             #9A780A;
  --gold-soft:        rgba(154, 120, 10, 0.10);
  --border:           #E0DBDA;
  --border-light:     #EDE8E6;
  --input-bg:         #F5F2F0;
  --danger:           #C42828;
  --danger-soft:      rgba(196, 40, 40, 0.08);
  --success:          #2E6B3C;
  --success-soft:     rgba(46, 107, 60, 0.08);
  --info:             #8B3A8B;
  --shadow-xs:        0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow:           0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg:        0 8px 28px rgba(0, 0, 0, 0.09);
  --shadow-xl:        0 20px 50px rgba(0, 0, 0, 0.11);
  --nav-bg:           rgba(255, 255, 255, 0.92);
  --modal-backdrop:   rgba(50, 30, 50, 0.40);
  --gradient-accent:  linear-gradient(135deg, #C07AC0 0%, #8B3A8B 50%, #6B1E6B 100%);
  --gradient-gold:    linear-gradient(135deg, #C4A018 0%, #9A780A 100%);
  --ease:             cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-xs:        6px;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        20px;
  --radius-2xl:       24px;
  --radius-full:      9999px;
  --sidebar-w:        260px;
  --topbar-h:         84px;
  --bottom-bar-h:     68px;
  color-scheme:       light;
}

/* ─── Dark theme ──────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:               #050505;
  --bg-warm:          #100C14;
  --bg-hover:         #1C1628;
  --surface:          #151020;
  --surface-elevated: #1C1628;
  --surface-accent:   rgba(179, 102, 179, 0.12);
  --text:             #F8F6F8;
  --text-secondary:   #9A8A9A;
  --text-tertiary:    #C8B8C8;
  --accent:           #B366B3;
  --accent-hover:     #C888C8;
  --accent-light:     #D4A0D4;
  --accent-soft:      rgba(179, 102, 179, 0.20);
  --accent-glow:      rgba(179, 102, 179, 0.22);
  --gold:             #D4AF37;
  --gold-soft:        rgba(212, 175, 55, 0.15);
  --border:           #2A2034;
  --border-light:     #1C1628;
  --input-bg:         #151020;
  --danger:           #E04545;
  --danger-soft:      rgba(224, 69, 69, 0.12);
  --success:          #5B9A6A;
  --success-soft:     rgba(91, 154, 106, 0.12);
  --info:             #B366B3;
  --shadow-xs:        0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow:           0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:        0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-xl:        0 20px 50px rgba(0, 0, 0, 0.5);
  --nav-bg:           rgba(5, 5, 5, 0.88);
  --modal-backdrop:   rgba(0, 0, 0, 0.7);
  --gradient-accent:  linear-gradient(135deg, #D4A0D4 0%, #B366B3 50%, #9A579A 100%);
  --gradient-gold:    linear-gradient(135deg, #D4AF37 0%, #C69A30 100%);
  color-scheme:       dark;
}

/* ═══════ Reset & Base ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow: hidden;
  height: 100%;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ═══════ App Layout ════════════════════════════════════════════════════ */

.app {
  display: flex;
  flex-direction: row;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ═══════ Sidebar ═══════════════════════════════════════════════════════ */

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 20px 12px;
  z-index: 20;
  transition: width 0.25s var(--ease-out);
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar-header {
  margin-bottom: 12px;
  padding: 0 4px;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--text);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}

.sidebar-logo:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.sidebar-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 0;
  object-fit: contain;
}

.sidebar-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--accent-light);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  position: relative;
  width: 100%;
  min-height: 48px;
  white-space: nowrap;
  text-align: left;
}

.sidebar-item:hover {
  background: var(--surface-accent);
  color: var(--text);
}

.sidebar-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  position: relative;
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Icon-only sidebar: badge as dot */
.sidebar-item .sidebar-badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border-radius: 50%;
  display: none;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
  width: 100%;
  height: 44px;
}

.sidebar-theme-toggle:hover {
  background: var(--surface-accent);
  color: var(--text);
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-accent);
  color: var(--text);
  box-shadow: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  width: 100%;
}

.account-trigger:hover,
.account-menu.open .account-trigger,
.account-trigger.active {
  background: var(--surface-accent);
  border-color: var(--accent-light);
}

.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.account-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.account-name {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.account-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.account-menu.open .account-chevron {
  transform: rotate(180deg);
  color: var(--text);
}

.account-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 240px;
  padding: 10px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
}

[data-theme="light"] .account-panel {
  background: var(--surface);
}

.account-panel-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.account-panel-item:hover {
  background: var(--surface-accent);
}

.account-panel-item.danger {
  color: #ff8e8e;
}

.account-panel-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.account-panel-icon svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* ═══════ Main Content ═════════════════════════════════════════════════ */

.main {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

body:not(.app-mode) .sidebar,
body:not(.app-mode) .bottom-bar {
  display: none !important;
}

@media (max-width: 1280px) {
  .sidebar {
    width: 72px;
    padding: 16px 8px;
    align-items: center;
  }

  .sidebar-header {
    padding: 0;
    margin-bottom: 8px;
  }

  .sidebar-logo-text {
    display: none;
  }

  .sidebar-logo {
    padding: 8px;
    justify-content: center;
  }

  .sidebar-nav {
    align-items: center;
  }

  .sidebar-item {
    justify-content: center;
    padding: 12px;
    gap: 0;
    border-radius: var(--radius-lg);
  }

  .sidebar-item.active::before {
    display: none;
  }

  .sidebar-item span {
    display: none;
  }

  .sidebar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    padding: 0 4px;
  }

  .sidebar-footer {
    align-items: center;
  }

  .sidebar-theme-toggle {
    width: 44px;
  }

  .account-menu {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .account-copy {
    display: none;
  }

  .account-chevron {
    display: none;
  }

  .account-trigger {
    padding: 6px;
    border: none;
    background: transparent;
    justify-content: center;
    min-height: auto;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
  }

  .account-trigger:hover {
    background: var(--surface-accent);
  }

  .account-panel {
    position: fixed;
    left: 84px;
    bottom: 16px;
    width: 240px;
    z-index: 30;
  }
}

/* ═══════ Views ════════════════════════════════════════════════════════ */

.view {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.view.active {
  display: flex;
  flex-direction: column;
}

.view-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ═══════ Bottom Bar (mobile) ════════════════════════════════════════ */

.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-bar {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
}

.bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

.bottom-item svg {
  width: 24px;
  height: 24px;
}

.bottom-item.active {
  color: var(--accent);
}

.bottom-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(14px);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ═══════ Buttons ═════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-accent:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}

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

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-accent);
  color: var(--text);
}

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

.btn-danger:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-block { width: 100%; }

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-accent);
  color: var(--text);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.back-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--surface-accent);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.back-btn svg {
  width: 22px;
  height: 22px;
}

/* ═══════ Forms ══════════════════════════════════════════════════════ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

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

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.password-field {
  position: relative;
}

.password-field .form-input {
  padding-right: 72px;
  margin-bottom: 0;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 999px;
}

.password-toggle:hover {
  color: var(--accent-hover);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A5A6A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  min-height: 18px;
}

.social-auth-block {
  margin-top: 12px;
}

.social-auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 12px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.google-auth-slot {
  position: relative;
  width: 100%;
  min-height: 44px;
}

.google-auth-slot > div {
  width: 100%;
}

.google-auth-slot iframe {
  display: block;
  border: 0;
}

.google-auth-visual {
  display: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius-full);
  background: #202124;
  color: #f5f7f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 1;
}

.google-auth-visual-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-auth-visual-logo svg {
  width: 18px;
  height: 18px;
  display: block;
}

.google-auth-visual-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .google-auth-slot iframe {
  display: block;
  border: 0;
}

[data-theme="dark"] .google-auth-slot {
  min-height: 52px;
  overflow: hidden;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .google-auth-slot .google-auth-hitbox {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  z-index: 2;
}

[data-theme="dark"] .google-auth-slot .google-auth-hitbox iframe {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

[data-theme="dark"] .google-auth-slot .google-auth-visual {
  display: flex;
}

.form-link {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
}

.form-link a {
  color: var(--accent);
  font-weight: 500;
}

.form-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.form-hint a {
  color: var(--accent);
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.form-actions-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.text-danger { color: var(--danger) !important; }

/* ─── Toggle ─── */

.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  left: 3px;
  top: 3px;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ─── Range inputs ─── */

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--surface);
}

/* ═══════ Spinner ═════════════════════════════════════════════════════ */

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-transition-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(10, 8, 14, 0.72), rgba(10, 8, 14, 0.84)),
    radial-gradient(circle at top, var(--accent-glow), transparent 55%);
  backdrop-filter: blur(12px);
}

.auth-transition-overlay.visible {
  display: flex;
}

.auth-transition-card {
  width: min(100%, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 32px 28px;
  text-align: center;
}

.auth-transition-logo {
  width: 132px;
  height: auto;
  margin: 0 auto 20px;
}

.auth-transition-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-transition-subtitle {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}

.auth-transition-spinner {
  margin: 22px auto 0;
}

/* ═══════ Auth View ══════════════════════════════════════════════════ */

.view-auth {
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 132px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  margin: 0 auto 18px;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.auth-tabs {
  display: flex;
  gap: 2px;
  background: var(--input-bg);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

/* ═══════ Onboarding View ════════════════════════════════════════════ */

.view-onboarding {
  align-items: stretch;
  justify-content: flex-start;
  background: var(--bg);
  padding: 32px 0 40px;
}

.onboarding-container {
  width: 100%;
  max-width: 560px;
  padding: 32px 24px 40px;
  margin: 0 auto;
  transition: max-width 0.25s var(--ease-out);
}

.onboarding-container--wide {
  max-width: 980px;
}

.onboarding-card {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.onboarding-card--wide {
  padding: 36px;
}

.onboarding-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.onboarding-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease-out);
  width: 0%;
}

.onboarding-step-content {
  flex: 1 1 auto;
  min-height: 280px;
}

.onboarding-step-content--interests {
  min-height: auto;
}

.onboarding-step-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

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

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.onboarding-exit-btn {
  color: var(--text-secondary);
}

.onboarding-exit-btn:hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-soft);
}

.onboarding-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 20px;
  margin-top: 8px;
}

.onboarding-input {
  margin-top: 8px;
}

.ob-location-card {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface));
}

.ob-location-status,
.ob-location-help {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ob-location-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.ob-location-card .btn {
  justify-content: center;
  width: 100%;
}

.onboarding-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: -4px;
  margin-bottom: 16px;
}

.ob-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ob-prompt-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 12px;
}

.ob-prompt-select {
  width: 100%;
  margin-bottom: 8px;
  font-size: 13px;
}

.ob-prompt-answer {
  width: 100%;
  font-size: 14px;
  resize: vertical;
}

.ob-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.ob-review-label {
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-right: 12px;
}

/* ─── Chips ─── */

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

.onboarding-interest-shell {
  display: grid;
  gap: 18px;
}

.onboarding-interest-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface-accent), transparent);
}

.onboarding-interest-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #FFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.onboarding-interest-note {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.onboarding-interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.onboarding-interest-grid .chip {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.chip:hover {
  border-color: var(--accent-light);
}

.chip.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.chip.selected-gold {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.chips-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-removable {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
}

.chip-remove {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  color: var(--accent);
  font-size: 11px;
  cursor: pointer;
}

.chip-locked {
  cursor: default;
  opacity: 0.7;
}

.chips-locked {
  pointer-events: none;
  opacity: 0.7;
}

/* ─── Locked field styles ─── */

.form-input-locked {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface-accent);
}

.locked-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-accent);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.locked-hint {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
  font-style: italic;
}

/* ─── Interest suggestions ─── */

.interest-suggest-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 16px;
  margin-bottom: 8px;
}

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

.interest-suggest-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.interest-suggest-chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-glow);
}

@media (max-width: 960px) {
  .onboarding-container--wide {
    max-width: 760px;
  }

  .onboarding-interest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ─── Photo grid (onboarding + edit) ─── */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-slot {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
  background: var(--input-bg);
}

.photo-slot:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.photo-slot.filled {
  border-style: solid;
  border-color: transparent;
}

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

.photo-slot .photo-add-icon {
  color: var(--text-secondary);
}

.photo-slot .photo-add-icon svg {
  width: 28px;
  height: 28px;
}

.photo-slot .photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.photo-slot:hover .photo-remove {
  opacity: 1;
}

.photo-remove svg {
  width: 14px;
  height: 14px;
}

.photo-slot .photo-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* ═══════ Suspended View ═════════════════════════════════════════════ */

.view-suspended {
  align-items: center;
  justify-content: center;
}

.suspended-container {
  max-width: 440px;
  padding: 24px;
  width: 100%;
}

.suspended-card {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.suspended-icon {
  color: var(--danger);
  margin-bottom: 16px;
}

.suspended-icon svg {
  width: 56px;
  height: 56px;
}

.suspended-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.suspended-reason {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.suspended-appeal {
  text-align: left;
  margin-bottom: 16px;
}

/* ═══════ Discover View ═════════════════════════════════════════════ */

.view-discover {
  padding: 24px;
  align-items: center;
}

.discover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  margin-bottom: 16px;
  padding: 4px 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.verified-inline-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.verified-inline-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(154, 120, 10, 0.16);
  flex-shrink: 0;
}

.verified-inline-badge svg {
  width: 12px;
  height: 12px;
}

[data-theme="dark"] .verified-inline-badge {
  border-color: rgba(212, 175, 55, 0.24);
}

.discover-header-actions {
  display: flex;
  gap: 8px;
}

.discover-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 480px;
}

.discover-location-reminder {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(122, 85, 64, 0.22);
  background: linear-gradient(135deg, rgba(122, 85, 64, 0.18) 0%, rgba(198, 167, 94, 0.10) 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
  flex-shrink: 0;
}

.discover-location-reminder-copy {
  min-width: 0;
}

.discover-location-reminder-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.discover-location-reminder-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.discover-location-reminder-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.discover-location-reminder-btn,
.discover-location-reminder-dismiss {
  border: none;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.discover-location-reminder-btn {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(122, 85, 64, 0.22);
}

.discover-location-reminder-dismiss {
  padding: 8px 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.discover-location-reminder-btn:hover,
.discover-location-reminder-dismiss:hover {
  transform: translateY(-1px);
}

.discover-location-reminder-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

@media (max-width: 720px) {
  .discover-location-reminder {
    flex-direction: column;
    align-items: stretch;
  }

  .discover-location-reminder-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  .view-discover {
    padding: 28px 32px 24px;
    background: var(--bg);
  }

  .discover-header {
    max-width: 480px;
    margin: 0 auto 20px;
    padding: 4px 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .discover-header .view-title {
    font-size: 28px;
    font-weight: 800;
  }

  .discover-content {
    max-width: 420px;
  }

  .card-stack {
    min-height: clamp(560px, calc(100vh - 248px), 720px);
    max-height: clamp(560px, calc(100vh - 248px), 720px);
  }

  .profile-card {
    border-radius: 16px;
  }

  .card-photo-dots {
    display: flex;
  }

  .card-photo-strip {
    display: none;
  }

  .card-info {
    padding: 80px 20px 20px;
  }

  .card-section-panel {
    display: none;
  }

  .card-name {
    font-size: 30px;
  }

  .card-details {
    font-size: 15px;
  }

  .card-bio {
    font-size: 16px;
  }

  .discover-actions {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(31, 24, 20, 0.76);
    border-radius: 40px;
    border: 1px solid rgba(198, 167, 94, 0.16);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
  }

  .action-pass {
    width: 52px;
    height: 52px;
  }

  .action-like {
    width: 52px;
    height: 52px;
  }

  .action-like svg {
    width: 26px;
    height: 26px;
  }

  .action-undo {
    width: 44px;
    height: 44px;
  }
}

/* ─── Card Stack ─── */

.card-stack {
  width: 100%;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.card-loading,
.card-empty,
.likes-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  color: var(--text-secondary);
  padding: 40px;
}

.card-empty .empty-icon svg,
.matches-empty .empty-icon svg,
.likes-empty .empty-icon svg {
  width: 56px;
  height: 56px;
  color: var(--accent-light);
  opacity: 0.5;
}

.card-empty h3,
.matches-empty h3,
.likes-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.card-empty p,
.matches-empty p,
.likes-empty p {
  font-size: 14px;
  color: var(--text-secondary);
}

.card-empty-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.empty-cta-btn {
  margin-top: 8px;
  min-width: 240px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.empty-cta-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.empty-cta-btn:active {
  transform: translateY(0);
}

.empty-cta-btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.empty-cta-btn-secondary:hover {
  background: var(--surface-accent);
}

/* ─── Profile Card (Discovery — Tinder-style) ─── */

.profile-card {
  width: 100%;
  background: #000;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease-out;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.profile-card.is-entering {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.profile-card.is-entering.is-entering-from-left {
  transform: translateX(-22px) scale(0.985);
}

.profile-card.is-entering.is-entering-from-right {
  transform: translateX(22px) scale(0.985);
}

.profile-card.swiping-left {
  transform: translateX(-108%) rotate(-11deg) scale(0.985);
  opacity: 0;
}

.profile-card.swiping-right {
  transform: translateX(108%) rotate(11deg) scale(0.985);
  opacity: 0;
}

.profile-card-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ─── Swipe Stamp Overlays ─── */

.swipe-stamp {
  position: absolute;
  top: 80px;
  z-index: 10;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 8px 20px;
  border-radius: 8px;
  border: 4px solid;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-20deg);
  transition: opacity 0.15s;
}

.swipe-stamp-like {
  right: 24px;
  color: #4CD964;
  border-color: #4CD964;
  transform: rotate(-20deg);
}

.swipe-stamp-nope {
  left: 24px;
  color: #FF3B5C;
  border-color: #FF3B5C;
  transform: rotate(20deg);
}

.profile-card.dragging-right .swipe-stamp-like { opacity: 1; }
.profile-card.dragging-left .swipe-stamp-nope { opacity: 1; }

/* ─── Card Photos (full-bleed Tinder-style) ─── */

.card-photos {
  flex: 1;
  position: relative;
  min-height: 0;
}

.card-photo-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--input-bg);
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.card-photo-placeholder svg {
  width: 64px;
  height: 64px;
}

.card-photo-strip {
  display: none;
}

.card-photo-thumb {
  appearance: none;
}

/* Tinder-style progress bars at top */
.card-photo-dots {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 5;
}

.photo-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  transition: background 0.2s;
}

.photo-dot.active {
  background: #fff;
  box-shadow: none;
}

/* Tap zones for left/right photo navigation */
.card-photo-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  color: transparent;
}

.card-photo-nav svg {
  display: none;
}

.card-photos:hover .card-photo-nav {
  opacity: 1;
}

.card-photo-prev { left: 0; }
.card-photo-next { right: 0; left: auto; }

/* ─── Card Info overlay on bottom of photo ─── */

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  color: #fff;
  z-index: 4;
  cursor: pointer;
}

.card-panel + .card-panel {
  margin-top: 0;
}

.card-section-label {
  display: none;
}

/* Hide sections that are below the fold in Tinder style */
.card-section-panel {
  display: none;
}

.card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.card-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.card-verified {
  flex-shrink: 0;
}

.card-verified path { fill: #4FC3F7; }

.card-boosted {
  flex-shrink: 0;
}

.card-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

.card-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.card-detail svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
}

.card-bio {
  margin: 6px 0 0;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-interests {
  display: none;
}

.card-prompts {
  display: none;
}

.card-prompt {
  padding: 16px 18px;
  background: var(--surface-accent);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.card-intent {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(179, 102, 179, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0;
}

.card-extended {
  display: none;
}

.ext-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

.ext-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

.ext-value {
  color: var(--text-secondary);
}

.interest-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  background: var(--surface-accent);
  color: var(--text-secondary);
  margin: 2px;
}

.prompt-answer {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  white-space: pre-wrap;
  letter-spacing: -0.2px;
}

/* ─── Avatar Placeholder ─── */

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-accent);
  border-radius: 50%;
  color: var(--text-secondary);
}

.avatar-placeholder svg {
  width: 24px;
  height: 24px;
}

/* ─── Chat States ─── */

.chat-error {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--danger);
  padding: 24px;
  font-size: 14px;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  padding: 24px;
  gap: 8px;
}

/* ─── Hinge-style blocks ─── */

.hinge-photo-block {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--input-bg);
}

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

.hinge-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  pointer-events: none;
  z-index: 2;
}

.hinge-hero-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hinge-hero-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.hinge-hero-verified {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hinge-hero-location {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hinge-hero-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hinge-hero-active {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hinge-hero-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5B8C6A;
  flex-shrink: 0;
}

.hinge-name-age {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hinge-location {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hinge-location svg {
  width: 14px;
  height: 14px;
}

.hinge-bio-card,
.hinge-prompt-card,
.hinge-details-card {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.hinge-bio-card h4,
.hinge-details-card h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.hinge-bio-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.hinge-prompt-card {
  background: var(--surface-accent);
}

.hinge-prompt-question {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.hinge-prompt-answer {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.hinge-details-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
}

.hinge-details-row svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.hinge-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.hinge-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}

.hinge-pill.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

/* ─── Discover Actions ─── */

.discover-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(31, 24, 20, 0.76);
  border-radius: 40px;
  border: 1px solid rgba(198, 167, 94, 0.16);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.action-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-spring);
  border: none;
  cursor: pointer;
}

.action-btn:hover {
  transform: scale(1.08);
}

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

.action-btn svg {
  width: 26px;
  height: 26px;
}

.action-pass {
  background: rgba(130, 88, 88, 0.82);
  color: #FFFFFF;
}

.action-pass:hover {
  background: rgba(130, 88, 88, 0.95);
}

.action-like {
  background: rgba(111, 78, 55, 0.9);
  color: #FFFFFF;
}

.action-like svg {
  width: 26px;
  height: 26px;
}

.action-like:hover {
  background: rgba(111, 78, 55, 1);
}

.action-undo {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
}

.action-undo svg {
  width: 20px;
  height: 20px;
}

.action-undo.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Light theme button overrides */
[data-theme="light"] .action-pass {
  background: rgba(137, 92, 89, 0.86);
}
[data-theme="light"] .action-pass:hover {
  background: rgba(137, 92, 89, 1);
}
[data-theme="light"] .action-like {
  background: rgba(122, 85, 64, 0.92);
}
[data-theme="light"] .action-like:hover {
  background: rgba(122, 85, 64, 1);
}
[data-theme="light"] .action-undo {
  background: rgba(0,0,0,0.06);
}
[data-theme="light"] .discover-actions {
  background: rgba(255, 255, 255, 0.95);
  border-color: #e0d8d8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.discover-remaining {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.discover-remaining span {
  font-weight: 700;
  color: var(--accent);
}

/* ═══════ Likes View ════════════════════════════════════════════════ */

.view-likes {
  padding: 24px;
}

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

.likes-content {
  flex: 1;
}

.likes-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.likes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.like-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

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

.like-card.is-blurred:hover {
  transform: none;
}

.like-card-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

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

.like-card-photo.blurred img {
  filter: blur(22px);
  transform: scale(1.12);
}

.like-card-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  color: var(--text-secondary);
}

.like-card-photo-fallback svg {
  width: 42px;
  height: 42px;
}

.like-card-lock-pill {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(26, 15, 26, 0.58);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.like-card-lock-pill svg {
  width: 14px;
  height: 14px;
}

.like-card-info {
  padding: 12px 14px;
}

.like-card-name {
  font-size: 15px;
  font-weight: 700;
}

.like-card-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.like-card-action {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #C44040;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.like-card-action:hover {
  transform: scale(1.1);
}

.like-card-action svg {
  width: 18px;
  height: 18px;
}

.like-card-action:disabled {
  opacity: 0.6;
  transform: none;
}

.likes-upgrade {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.upgrade-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 380px;
}

.upgrade-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.upgrade-icon svg {
  width: 48px;
  height: 48px;
}

.upgrade-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.upgrade-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ═══════ Matches + Chat View ══════════════════════════════════════ */

.view-matches {
  flex-direction: row !important;
}

.matches-panel {
  width: 360px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

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

.matches-header-copy {
  min-width: 0;
}

.matches-header .view-title {
  margin: 0;
}

.matches-summary {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.matches-list {
  flex: 1;
  overflow-y: auto;
}

.matches-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.matches-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 12px;
  text-align: center;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  box-sizing: border-box;
}

.match-item:hover {
  background: var(--surface-accent);
}

.match-item.active {
  background: var(--accent-soft);
}

.match-item.unread .match-name {
  font-weight: 700;
}

.match-item.unread .match-preview {
  font-weight: 600;
  color: var(--text);
}

.match-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--input-bg);
  position: relative;
}

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

.match-online {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2.5px solid var(--surface);
}

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

.match-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-preview {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  flex: 1;
  min-width: 0;
}

.match-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.match-time {
  font-size: 11px;
  color: var(--text-secondary);
}

.match-unread-dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.match-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.match-new {
  font-style: italic;
  color: var(--accent);
}

.match-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  flex-shrink: 0;
}

/* ─── Chat Panel ─── */

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
}

[data-theme="dark"] .chat-panel {
  background: #000;
}

.chat-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--text-secondary);
}

.chat-placeholder .empty-icon svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.chat-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-theme="dark"] .chat-active {
  background: #000;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.chat-back {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.chat-back svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.chat-header-actions {
  display: none;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--input-bg);
  flex-shrink: 0;
}

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

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

.chat-header-status {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ─── Chat Messages ─── */

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #F8F6F8;
}

[data-theme="dark"] .chat-messages {
  background: #000;
}

[data-theme="dark"] .chat-header,
[data-theme="dark"] .chat-composer {
  background: #000;
}

.msg {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
}

.msg:not(.msg-system):not(.msg-image-message) {
  padding-right: 42px;
}

.msg-image-message {
  padding: 6px;
  border-radius: 24px;
}

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

.msg-new {
  animation: msgIn 0.25s var(--ease-out);
}

.msg-sent {
  align-self: flex-end;
  background: #8B3A8B;
  color: #FFF;
  border-bottom-right-radius: 6px;
}

.msg-sent.msg-image-message {
  background: rgba(139, 58, 139, 0.14);
  border-bottom-right-radius: 18px;
}

[data-theme="dark"] .msg-sent {
  background: #9A4A9A;
}

[data-theme="dark"] .msg-sent.msg-image-message {
  background: rgba(179, 102, 179, 0.22);
}

.msg-received {
  align-self: flex-start;
  background: #F0ECF0;
  color: #1A0F1A;
  border-bottom-left-radius: 6px;
  border: none;
}

.msg-received.msg-image-message {
  background: rgba(26, 15, 26, 0.05);
  border-bottom-left-radius: 18px;
}

[data-theme="dark"] .msg-received {
  background: #2A1E34;
  color: #F8F6F8;
}

[data-theme="dark"] .msg-received.msg-image-message {
  background: rgba(255, 255, 255, 0.08);
}

.msg-time {
  font-size: 10px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.msg-status-slot {
  display: none;
}

.msg-status {
  display: none;
}

.msg-sent .msg-time {
  justify-content: flex-end;
  color: rgba(248,246,248,0.65);
}

.msg-received .msg-time {
  color: rgba(26,15,26,0.50);
}

[data-theme="dark"] .msg-received .msg-time {
  color: rgba(248,246,248,0.65);
}

.msg-read {
  color: rgba(255,255,255,0.8);
}

.msg-read svg {
  width: 12px;
  height: 12px;
}

.msg-reply {
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  border-left: 2px solid #9A579A;
  opacity: 0.85;
}

.msg-sent .msg-reply {
  background: rgba(255,255,255,0.12);
  border-left-color: #D4AF37;
}

.msg-system {
  align-self: center;
  background: var(--surface-accent);
  color: var(--text-secondary);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Failed message state */
.msg-failed {
  opacity: 0.7;
  border: 1px solid var(--danger);
}

.msg-failed-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}

.msg-failed-indicator svg {
  flex-shrink: 0;
  color: var(--danger);
}

.msg-retry-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: auto;
}

.msg-retry-btn:hover {
  background: var(--accent-soft);
}

.msg-date-divider {
  align-self: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Message Content Elements ─── */

.msg-body {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.msg-image-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  line-height: 0;
}

[data-theme="dark"] .msg-image-shell {
  background: rgba(255,255,255,0.04);
}

.msg-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 18px;
  display: block;
  cursor: pointer;
  object-fit: cover;
}

.msg-image-time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  margin-top: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff !important;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.msg-system-text {
  font-size: 13px;
}

.msg-reply-preview {
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  border-left: 2px solid #9A579A;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  border-top: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
  color: inherit;
  font: inherit;
}

.msg-reply-preview[data-reply-to-id] {
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.msg-reply-preview[data-reply-to-id]:hover,
.msg-reply-preview[data-reply-to-id]:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(154,87,154,0.18);
}

.msg-sent .msg-reply-preview {
  background: rgba(255,255,255,0.12);
  border-left-color: #D4AF37;
}

.msg-sent .msg-reply-preview[data-reply-to-id]:hover,
.msg-sent .msg-reply-preview[data-reply-to-id]:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.24);
}

[data-theme="dark"] .msg-received .msg-reply-preview {
  background: rgba(255,255,255,0.08);
  border-left-color: #B366B3;
}

[data-theme="dark"] .msg-received .msg-reply-preview[data-reply-to-id]:hover,
[data-theme="dark"] .msg-received .msg-reply-preview[data-reply-to-id]:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(179,102,179,0.26);
}

.msg-reply-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.7;
}

.msg-reply-text {
  font-size: 12px;
  opacity: 0.9;
}

.msg-image-message .msg-reply-preview {
  margin-bottom: 6px;
  border-radius: 14px;
  padding: 8px 10px;
}

.msg-jump-target {
  box-shadow: 0 0 0 2px rgba(154,87,154,0.26), 0 18px 34px rgba(26,15,26,0.18);
}

.msg-sent.msg-jump-target {
  box-shadow: 0 0 0 2px rgba(212,175,55,0.28), 0 18px 34px rgba(26,15,26,0.2);
}

[data-theme="dark"] .msg-jump-target {
  box-shadow: 0 0 0 2px rgba(179,102,179,0.34), 0 20px 40px rgba(0,0,0,0.3);
}

.msg-more {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(26, 15, 26, 0.06);
  color: rgba(26, 15, 26, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(3px) scale(0.94);
  box-shadow: 0 10px 24px rgba(26, 15, 26, 0.12);
  transition: opacity 0.15s, transform 0.15s;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.msg-more svg {
  width: 12px;
  height: 12px;
}

.msg-image-message .msg-more {
  top: 8px;
  right: 8px;
  background: rgba(18, 18, 24, 0.58);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .msg-more {
  background: rgba(18, 18, 24, 0.9);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.msg:hover .msg-more,
.msg:focus-within .msg-more,
.msg-more:focus-visible,
.msg-more[aria-expanded="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.msg-upload-state {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

.msg-context-menu {
  position: fixed;
  z-index: 150;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(26, 15, 26, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(26, 15, 26, 0.18);
  overflow: hidden;
  min-width: 176px;
  padding: 8px;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.15s var(--ease-out), transform 0.15s var(--ease-out);
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .msg-context-menu {
  background: rgba(22, 18, 28, 0.96);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.45);
}

.msg-context-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.msg-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 12px;
}

.msg-menu-item:hover,
.msg-menu-item:focus-visible {
  background: var(--input-bg);
}

.msg-menu-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-menu-icon svg {
  width: 16px;
  height: 16px;
}

.msg-menu-item.danger {
  color: var(--danger);
}

.msg-menu-item.danger:hover {
  background: rgba(220,53,69,0.08);
}

/* ─── Typing Indicator ─── */

.chat-typing {
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typingDot 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* ─── Chat Composer ─── */

.chat-composer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.chat-reply-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
}

.reply-label {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.reply-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.reply-cancel {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
}

.reply-cancel:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.chat-image-viewer {
  background: rgba(6, 6, 10, 0.96);
  padding: 24px;
  z-index: 140;
}

.chat-image-viewer-card {
  width: min(94vw, 1040px);
  max-width: min(94vw, 1040px);
  padding: 72px 18px 18px;
  background: rgba(16, 16, 22, 0.78);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.chat-image-viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: auto;
  min-width: 92px;
  height: 46px;
  padding: 0 14px 0 12px;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 10, 14, 0.88);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  z-index: 2;
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chat-image-viewer-close svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.chat-image-viewer-close::after {
  content: "Close";
}

.chat-image-viewer-close:hover,
.chat-image-viewer-close:focus-visible {
  background: rgba(22, 22, 30, 0.94);
}

.chat-image-viewer-image {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 96px);
  width: auto;
  height: auto;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .chat-image-viewer {
    padding: 12px;
  }

  .chat-image-viewer-card {
    width: 100%;
    max-width: 100%;
    padding: 68px 12px 12px;
  }

  .chat-image-viewer-close {
    top: 12px;
    right: 12px;
    min-width: 46px;
    width: 46px;
    padding: 0;
  }

  .chat-image-viewer-close::after {
    content: none;
  }

  .chat-image-viewer-image {
    max-width: 100%;
    max-height: calc(88vh - 84px);
    border-radius: 16px;
  }
}

.reply-cancel svg {
  width: 14px;
  height: 14px;
}

.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-input {
  flex: 1;
  min-height: 44px;
  padding: 10px 18px;
  background: #FFF;
  border: 1.5px solid #C8B8C8;
  border-radius: 24px;
  font-size: 15px;
  color: var(--text);
  resize: none;
  max-height: 144px;
  overflow-y: hidden;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s;
}

[data-theme="dark"] .chat-input {
  background: #1C1628;
  border-color: #3A2A44;
}

.chat-input::placeholder {
  color: var(--text-secondary);
}

.chat-input:focus {
  border-color: var(--accent);
}

.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.send-btn:not(:disabled):hover {
  background: var(--accent-hover);
}

.send-btn svg {
  width: 20px;
  height: 20px;
}

.chat-image-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-elevated, var(--surface));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-image-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chat-image-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-image-btn.is-uploading {
  opacity: 0.72;
}

.chat-image-btn svg {
  width: 20px;
  height: 20px;
}

/* ═══════ Profile View ═════════════════════════════════════════════ */

.view-profile {
  padding: 32px;
  align-items: flex-start;
  overflow-y: auto;
}

/* Two-panel web layout */
.profile-web-layout {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  align-items: flex-start;
}

.profile-web-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-web-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* User card in left panel */
.profile-user-card {
  text-align: center;
  padding: 28px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--gold);
}

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

.profile-avatar svg {
  width: 32px;
  height: 32px;
  color: var(--accent-light);
}

.profile-verified-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--bg);
}

.profile-verified-badge svg {
  width: 16px;
  height: 16px;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.profile-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.profile-verification-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

.profile-verification-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.profile-verification-chip-icon svg {
  width: 18px;
  height: 18px;
}

.profile-verification-chip.is-approved {
  color: var(--gold);
}

.profile-verification-chip.is-pending {
  color: #5A4000;
}

.profile-verification-note {
  margin-top: 10px;
  max-width: 280px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Premium section in sidebar */
.profile-premium-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-premium-cta {
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  padding: 18px 20px 20px;
  border: 1px solid rgba(198, 154, 48, 0.22);
  box-shadow: var(--shadow);
}

.profile-premium-cta-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-premium-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-premium-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.profile-premium-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--gold);
}

.profile-premium-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-premium-subtext {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.profile-premium-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: #1A0A00;
  font-size: 14px;
  font-weight: 800;
}

.profile-subscription-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(198, 154, 48, 0.22);
}

.profile-subscription-icon {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  flex-shrink: 0;
}

.profile-subscription-icon svg {
  width: 18px;
  height: 18px;
}

.profile-subscription-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.profile-subscription-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.profile-subscription-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-subscription-manage {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

/* Web-style menu sections */
.profile-web-section {
  display: flex;
  flex-direction: column;
}

.profile-web-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 4px;
  margin-bottom: 8px;
}

.profile-web-menu {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.profile-web-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
}

.profile-web-menu-item:last-child {
  border-bottom: none;
}

.profile-web-menu-item:hover {
  background: var(--surface-accent);
}

.profile-web-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

.profile-web-menu-icon svg {
  width: 20px;
  height: 20px;
}

.profile-web-menu-label {
  flex: 1;
}

.profile-web-menu-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Boost section — web layout */
.profile-boost-web {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.profile-boost-web-info {
  flex: 1;
  min-width: 0;
}

.profile-boost-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-boost-copy {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.profile-boost-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.profile-boost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #1A0A00;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-boost-button svg {
  width: 18px;
  height: 18px;
}

.profile-boost-button:disabled,
.profile-boost-button[aria-disabled="true"] {
  cursor: default;
  opacity: 1;
}

.profile-boost-button.is-active {
  background: #2E8B57;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

/* Stack on small screens */
@media (max-width: 768px) {
  .profile-web-layout {
    flex-direction: column;
    gap: 20px;
  }
  .profile-web-sidebar {
    width: 100%;
    position: static;
  }
  .view-profile {
    padding: 16px;
  }
  .profile-boost-web {
    flex-direction: column;
    text-align: center;
  }
  .profile-boost-web-info {
    text-align: center;
  }
}

/* Legacy classes (kept for backward compat) */
.profile-action-grid { display: none; }
.profile-action-card,
.profile-settings-card { display: none; }
.profile-boost-card { display: none; }

.view-settings {
  padding: 32px 36px 40px;
  align-items: flex-start;
}

.settings-container,
.edit-profile-container {
  width: 100%;
  max-width: 560px;
}

.settings-header,
.edit-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.settings-header .view-title,
.edit-header .view-title {
  flex: 1;
  min-width: 0;
}

.settings-menu {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-accent) 100%);
  box-shadow: var(--shadow-md);
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 18px 20px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  text-align: left;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--border-light);
}

.settings-menu-item:last-child {
  border-bottom: none;
}

.settings-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settings-menu-item span:first-child {
  flex: 1;
  min-width: 0;
}

.settings-menu-item svg:last-child {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.settings-menu-item .gold-badge {
  margin-left: auto;
}

/* Back button for sub-sections */
.section-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-width: 0;
  height: 48px;
  padding: 0 16px 0 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.section-back-btn:hover {
  color: var(--accent);
}

.section-back-btn svg {
  width: 20px;
  height: 20px;
}

/* Locked prompt (paid-tier / Gold-only features) */
.locked-prompt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  color: var(--text-secondary);
}

.locked-prompt svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-muted);
}

.locked-prompt p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.settings-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.gold-badge svg {
  width: 12px;
  height: 12px;
}

.gold-badge.small {
  padding: 2px 8px;
  font-size: 10px;
}

.setting-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.setting-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.filter-chip-group {
  margin-top: 10px;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  min-width: 80px;
  text-align: right;
}

.range-dual {
  flex-wrap: wrap;
  gap: 8px;
}

.range-dual .range-input {
  flex: 1;
  min-width: 100px;
}

/* Dual-age overlay slider */
.range-dual-age {
  flex-wrap: wrap;
  gap: 8px;
}

.dual-track {
  position: relative;
  width: 100%;
  height: 28px;
}

.dual-track .range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
  margin: 0;
}

.dual-track .range-input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
}

.dual-track .range-min::-webkit-slider-runnable-track {
  background: var(--border);
}

.dual-track .range-max::-webkit-slider-runnable-track {
  background: transparent;
}

.dual-track .range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--surface);
  pointer-events: all;
  position: relative;
  z-index: 2;
  margin-top: -8px;
}

.dual-track .range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--surface);
  pointer-events: all;
}

.dual-track .range-input::-moz-range-track {
  height: 6px;
  border-radius: 3px;
}

.dual-track .range-min::-moz-range-track {
  background: var(--border);
}

.dual-track .range-max::-moz-range-track {
  background: transparent;
}

/* end dual-track slider */

.setting-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-toggle-row > div {
  flex: 1;
}

.setting-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.setting-link:hover {
  color: var(--accent);
}

.setting-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.theme-picker {
  display: flex;
  gap: 2px;
  background: var(--input-bg);
  border-radius: var(--radius-md);
  padding: 3px;
  border: 1px solid var(--border);
}

.theme-option {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  text-align: center;
}

.theme-option.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--accent-glow);
}

/* ═══════ Edit Profile View ═════════════════════════════════════════ */

.view-edit-profile { padding: 24px; align-items: center; }

.edit-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.edit-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.edit-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ─── Prompts Editor ─── */

.prompts-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-item {
  padding: 16px;
  background: var(--surface-accent);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-item .form-select {
  margin-bottom: 0;
}

.prompt-item .form-textarea {
  margin-bottom: 0;
  min-height: 60px;
}

.prompt-remove {
  align-self: flex-start;
  color: var(--danger);
  opacity: 0.8;
}

.prompt-remove:hover {
  opacity: 1;
}

.prompt-question {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

.prompt-answer-input {
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--border);
  font-size: 15px;
  color: var(--text);
  outline: none;
}

.prompt-answer-input:focus {
  border-bottom-color: var(--accent);
}

.prompt-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

/* ═══════ Preview View ══════════════════════════════════════════════ */

.view-preview { padding: 24px; align-items: center; }

.preview-container { width: 100%; max-width: 480px; }

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.preview-card-wrap {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}

/* Override absolute positioning for cards inside preview */
.preview-card-wrap .profile-card {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
}

.preview-card-wrap .card-photos {
  aspect-ratio: 4 / 5;
  flex: none;
}

.preview-card-wrap .card-info {
  position: relative;
  background: var(--surface);
  color: var(--text);
  padding: 16px 16px 20px;
}

.preview-card-wrap .card-name {
  color: var(--text);
  text-shadow: none;
}

.preview-card-wrap .card-details {
  color: var(--text-secondary);
}

.preview-card-wrap .card-detail {
  color: var(--text-secondary);
}

.preview-card-wrap .card-bio {
  color: var(--text-secondary);
  line-clamp: unset;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.preview-card-wrap .card-section-panel {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.preview-card-wrap .card-section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.preview-card-wrap .card-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-card-wrap .card-prompts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-card-wrap .swipe-stamp {
  display: none;
}

.preview-card-wrap .card-photo-nav {
  display: none;
}

/* ═══════ Full Profile View ════════════════════════════════════════ */

.view-full-profile { align-items: center; }

.full-profile-container { width: 100%; max-width: 480px; display: flex; flex-direction: column; height: 100%; }

.full-profile-header {
  padding: 12px 16px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.full-profile-header .back-btn {
  background: rgba(28, 14, 37, 0.5);
  color: #fff;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.full-profile-content {
  flex: 1;
  overflow-y: auto;
}

.full-profile-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ═══════ Match Profile View ═══════════════════════════════════════ */

.view-match-profile { align-items: center; }
.match-profile-container { width: 100%; max-width: 480px; display: flex; flex-direction: column; height: 100%; position: relative; }

.match-profile-header {
  padding: 12px 16px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--bg);
}

.match-profile-header .back-btn {
  background: var(--surface);
  color: var(--text);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.match-profile-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

/* Hero avatar circle + name */
.fp-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 20px;
  gap: 12px;
}
.fp-avatar-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-accent);
  box-shadow: 0 0 24px var(--accent-glow), 0 0 48px var(--accent-glow);
}
.fp-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg);
}
.fp-avatar-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

.fp-avatar-name-inline .verified-inline-label {
  white-space: normal;
}

/* Info cards */
.fp-card {
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 16px;
  margin: 0 12px;
}

.fp-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.fp-age {
  font-weight: 400;
  color: var(--text-secondary);
}

.fp-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--accent);
  margin-top: 4px;
}
.fp-verified svg {
  color: var(--accent);
}

.fp-details {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 6px 0 0;
  line-height: 1.5;
}

.fp-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin: 0 0 8px;
  font-weight: 600;
}

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

/* Interest chips */
.fp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fp-chip {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
}

/* Photo blocks (non-hero) */
.fp-photo-block {
  overflow: hidden;
  border-radius: 16px;
  margin: 0 12px;
  width: calc(100% - 24px);
  min-height: 380px;
  max-height: 520px;
  background: var(--surface);
  flex-shrink: 0;
}
.fp-photo {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Prompt cards */
.fp-prompt-card {
  border-left: 3px solid var(--accent);
}
.fp-prompt-q {
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 6px;
  font-style: italic;
  line-height: 1.4;
}
.fp-prompt-a {
  font-size: 16px;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* Footer actions */
.match-profile-footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px 20px 0 0;
}

.match-profile-footer .btn {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 12px;
}

.match-profile-footer .btn svg {
  width: 16px;
  height: 16px;
}

/* ═══════ Premium View ════════════════════════════════════════════ */

.view-premium { padding: 24px; align-items: center; }

.premium-container { width: 100%; max-width: 720px; }

.premium-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.premium-manage-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.premium-manage-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.premium-manage-label {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.premium-manage-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.premium-manage-note {
  max-width: 280px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}

.premium-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.view-premium[data-mode="manage"] .premium-plans {
  grid-template-columns: 1fr;
}

.view-premium[data-mode="manage"] .plan-card {
  display: none;
}

.view-premium[data-mode="manage"] .plan-card.is-current-plan {
  display: block;
}

.view-premium[data-mode="manage"] .plan-pricing {
  display: none;
}

.plan-card.is-current-plan {
  box-shadow: var(--shadow-lg);
}

.plan-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-lg);
}

.plan-gold {
  border-color: var(--gold);
}

.plan-gold:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px var(--gold-soft);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

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

.plan-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-gold .plan-name { color: var(--gold); }

.plan-tagline {
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
}

.plan-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.plan-gold .plan-features li svg {
  color: var(--gold);
}

.plan-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-price-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
}

.plan-price-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.plan-gold .plan-price-btn:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.plan-price-btn .price {
  font-size: 18px;
  font-weight: 700;
}

.plan-price-btn .period {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ═══════ Boost View ═════════════════════════════════════════════ */

.view-boost { padding: 24px; align-items: center; }

.boost-container { width: 100%; max-width: 480px; }

.boost-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.boost-info {
  text-align: center;
  margin-bottom: 32px;
}

.boost-icon-big {
  color: var(--gold);
  margin-bottom: 12px;
}

.boost-icon-big svg {
  width: 48px;
  height: 48px;
}

.boost-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.boost-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

.boost-packs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.boost-pack {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.boost-pack:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.boost-pack.popular {
  border-color: var(--gold);
}

.boost-popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 12px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.boost-qty {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.boost-label {
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

.boost-price {
  font-size: 16px;
  font-weight: 700;
  display: block;
}

/* ═══════ Insights View ═════════════════════════════════════════ */

.view-insights { padding: 24px; align-items: center; }
.insights-container { width: 100%; max-width: 480px; }

.insights-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.insights-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insights-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.insights-score-ring svg {
  transform: rotate(-90deg);
}

.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.insights-headline {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.insights-checklist {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.insight-item:last-child { border-bottom: none; }

.insight-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-check.done {
  background: var(--success-soft);
  color: var(--success);
}

.insight-check.todo {
  background: var(--border-light);
  color: var(--text-secondary);
}

.insight-check svg {
  width: 14px;
  height: 14px;
}

.insight-text {
  font-size: 14px;
}

.insight-text.done { color: var(--text-secondary); }
.insight-text.todo { color: var(--text); font-weight: 500; }

/* ═══════ Safety + SOS View ════════════════════════════════════ */

.view-safety { padding: 24px; align-items: center; }
.safety-container { width: 100%; max-width: 560px; }

.safety-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.safety-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.safety-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.safety-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.safety-tips {
  list-style: none;
}

.safety-tips li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.safety-tips li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.view-sos { padding: 24px; align-items: center; }
.sos-container { width: 100%; max-width: 480px; }

.sos-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sos-warning {
  padding: 16px;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.sos-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ═══════ Change Password / Delete Account ═══════════════════════ */

.view-change-password { padding: 24px; align-items: center; }
.change-pw-container { width: 100%; max-width: 440px; }
.change-pw-subtitle {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.change-pw-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.view-delete-account { padding: 24px; align-items: center; }
.delete-account-container { width: 100%; max-width: 480px; }

.delete-account-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.danger-card {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.danger-card svg {
  width: 40px;
  height: 40px;
  color: var(--danger);
  margin-bottom: 12px;
}

.danger-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--danger);
}

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

/* ═══════ Verification View ═════════════════════════════════════ */

.view-verification { padding: 24px; align-items: center; }
.verification-container { width: 100%; max-width: 440px; }

.verification-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

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

.verification-icon-big {
  color: var(--accent);
  margin-bottom: 16px;
}

.verification-icon-big svg {
  width: 56px;
  height: 56px;
}

.verification-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.verification-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.verification-status {
  margin-bottom: 20px;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
}

.verification-badge.pending {
  background: var(--gold-soft);
  color: var(--gold);
}

.verification-badge.verified {
  background: var(--success-soft);
  color: var(--success);
}

.verification-badge.rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

/* Camera preview */
.camera-preview-wrap {
  margin-bottom: 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
}

.camera-preview-wrap video,
.camera-preview-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

.camera-review-wrap {
  margin-bottom: 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
}

.camera-review-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.camera-preview-actions {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
}

.camera-preview-actions .btn {
  flex: 1;
}

/* ═══════ Modals ═════════════════════════════════════════════════ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalIn 0.3s var(--ease-out);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-sm {
  max-width: 360px;
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--surface-accent);
  color: var(--text);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.modal-detail {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Purchase Steps ─── */

.purchase-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.purchase-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.5;
}

.purchase-step.active { opacity: 1; color: var(--accent); font-weight: 600; }
.purchase-step.completed { opacity: 1; color: var(--success); }

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.purchase-step.active .step-num { background: var(--accent-soft); color: var(--accent); }
.purchase-step.completed .step-num { background: var(--success-soft); color: var(--success); }

/* ─── Payment Methods ─── */

.payment-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.method-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
  background: var(--surface);
}

.method-btn:hover { border-color: var(--accent-light); }
.method-btn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

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

.purchase-status {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ─── Match Alert ─── */

.modal-match {
  text-align: center;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.match-hearts svg {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.match-alert-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.match-alert-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.match-alert-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ═══════ Toast ═══════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(20px);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  max-width: 380px;
}

.toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.app-notification-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(111, 78, 55, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,244,236,0.96));
  box-shadow: 0 18px 42px rgba(26, 15, 26, 0.16);
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.22s var(--ease-out), opacity 0.22s var(--ease-out);
  max-width: 420px;
}

[data-theme="dark"] .app-notification-banner {
  background: linear-gradient(180deg, rgba(31, 24, 20, 0.96), rgba(22, 18, 15, 0.94));
  border-color: rgba(198, 167, 94, 0.2);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.app-notification-banner.visible {
  transform: translateX(0);
  opacity: 1;
}

.app-notification-banner-message {
  border-color: rgba(122, 85, 64, 0.18);
}

.app-notification-banner-match {
  border-color: rgba(198, 167, 94, 0.32);
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(249, 239, 214, 0.96));
}

[data-theme="dark"] .app-notification-banner-match {
  background: linear-gradient(180deg, rgba(49, 38, 24, 0.96), rgba(34, 27, 19, 0.94));
}

.app-notification-banner-content {
  min-width: 0;
}

button.app-notification-banner-content {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.app-notification-banner-content.is-actionable {
  cursor: pointer;
  border-radius: 14px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.app-notification-banner-content.is-actionable:hover,
.app-notification-banner-content.is-actionable:focus-visible {
  opacity: 0.96;
  transform: translateY(-1px);
}

.app-notification-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.app-notification-banner-body {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  word-break: break-word;
}

.app-notification-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-notification-banner-action,
.app-notification-banner-dismiss {
  border-radius: 999px;
  border: 1px solid rgba(111, 78, 55, 0.16);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

[data-theme="dark"] .app-notification-banner-action,
[data-theme="dark"] .app-notification-banner-dismiss {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}

.app-notification-banner-action {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.app-notification-banner-dismiss {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.app-notification-banner-dismiss svg {
  width: 16px;
  height: 16px;
}

.app-notification-banner-action:hover,
.app-notification-banner-dismiss:hover,
.app-notification-banner-action:focus-visible,
.app-notification-banner-dismiss:focus-visible {
  background: rgba(255,255,255,0.92);
  border-color: rgba(111, 78, 55, 0.28);
  transform: translateY(-1px);
}

.app-notification-banner-content.is-actionable:focus-visible,
.app-notification-banner-action:focus-visible,
.app-notification-banner-dismiss:focus-visible {
  outline: 2px solid rgba(111, 78, 55, 0.45);
  outline-offset: 2px;
}

[data-theme="dark"] .app-notification-banner-content.is-actionable:focus-visible,
[data-theme="dark"] .app-notification-banner-action:focus-visible,
[data-theme="dark"] .app-notification-banner-dismiss:focus-visible {
  outline-color: rgba(255, 233, 176, 0.6);
}

.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--surface-elevated); color: var(--text); border: 1px solid var(--border); }

/* ═══════ Responsive ═══════════════════════════════════════════════ */

/* Tablet and below */
@media (max-width: 1024px) {
  .premium-plans {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Mobile web — mirrors the React Native mobile app layout */
@media (max-width: 768px) {
  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .toast,
  .app-notification-banner {
    max-width: none;
  }

  .sidebar { display: none; }

  .bottom-bar {
    display: grid;
  }

  /* Views stop above the fixed bottom bar */
  .view {
    bottom: var(--bottom-bar-h);
  }

  body:not(.bottom-bar-visible) .view {
    bottom: 0;
  }

  /* ─── Bottom Tab Bar — matching mobile app tab bar ─── */
  .bottom-bar {
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--border-light);
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.04);
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }

  .bottom-item {
    transition: color 0.2s var(--ease), transform 0.15s var(--ease);
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
    padding: 10px 0 6px;
  }

  .bottom-item:active {
    transform: scale(0.9);
  }

  .bottom-item svg {
    width: 24px;
    height: 24px;
  }

  /* ─── Matches / Chat — mobile layout ─── */
  .view-matches {
    flex-direction: column !important;
  }

  .matches-panel {
    width: 100%;
    border-right: none;
    background: var(--bg);
  }

  .matches-header {
    padding: 16px 16px 14px;
  }

  .matches-header .view-title {
    font-size: 22px;
    font-weight: 700;
  }

  .matches-summary {
    display: block;
    margin-top: 2px;
    font-size: 12px;
  }

  .chat-panel.hidden-mobile {
    display: none;
  }

  .chat-panel.visible-mobile {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding-bottom: 0;
    background: var(--bg);
    animation: slideInRight 0.3s var(--ease-out);
    padding-top: env(safe-area-inset-top);
  }

  .chat-panel.visible-mobile .chat-header {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .matches-panel.visible-mobile {
    display: flex;
    width: 100%;
  }

  .matches-panel.hidden-mobile {
    display: none;
  }

  .chat-back {
    display: flex;
  }

  /* ─── Match Row — matching mobile app's match list ─── */
  .match-item {
    padding: 14px 12px;
    gap: 12px;
    border-radius: 14px;
    margin-bottom: 4px;
    transition: background 0.15s var(--ease), transform 0.15s var(--ease);
  }

  .match-item:active {
    transform: scale(0.97);
    opacity: 0.85;
  }

  .match-avatar {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

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

  .match-item.unread .match-name {
    font-weight: 800;
  }

  .match-preview {
    font-size: 14px;
    margin-top: 3px;
  }

  .match-item.unread .match-preview {
    font-weight: 600;
    color: var(--text);
  }

  .match-time {
    font-size: 12px;
  }

  .match-unread-badge {
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--accent);
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
  }

  /* ─── Chat Bubbles — matching mobile app's iMessage style ─── */
  .msg {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 23px;
    margin-bottom: 10px;
  }

  .msg-sent {
    border-bottom-right-radius: 6px;
    background: var(--accent);
    color: #FFF;
  }

  .msg-received {
    border-bottom-left-radius: 6px;
    background: #F0ECF0;
    color: var(--text);
    border: none;
  }

  [data-theme="dark"] .msg-sent {
    background: #9A4A9A;
    color: #FFF;
  }

  [data-theme="dark"] .msg-received {
    background: #2A1E34;
    color: #F8F6F8;
  }

  .msg-time {
    font-size: 11px;
    margin-top: 4px;
  }

  .msg-sent .msg-time {
    color: rgba(255,255,255,0.72);
  }

  .msg-received .msg-time {
    color: rgba(26,15,26,0.56);
  }

  [data-theme="dark"] .msg-received .msg-time {
    color: rgba(248,246,248,0.68);
  }

  /* ─── Chat Composer — matching mobile app ─── */
  .chat-composer {
    flex-shrink: 0;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .chat-input {
    font-size: 16px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 24px;
    border: none;
    max-height: 144px;
  }

  [data-theme="dark"] .chat-input {
    background: #4A3A4A;
    color: #F8F6F8;
  }

  .chat-input:focus {
    border: none;
    box-shadow: none;
  }

  .chat-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
  }

  .send-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 20px;
    background: var(--accent);
    box-shadow: var(--shadow-sm);
  }

  .send-btn:disabled {
    opacity: 0.38;
  }

  .send-btn svg {
    color: var(--gold);
  }

  .chat-image-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 20px;
    background: var(--surface-accent);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
  }

  .chat-header {
    padding: 12px 16px;
    background: var(--surface);
  }

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

  .chat-avatar {
    width: 36px;
    height: 36px;
  }

  /* ─── Onboarding View — mobile ─── */
  .view-onboarding {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 16px;
  }

  .onboarding-container {
    padding: 16px;
  }

  .onboarding-card {
    padding: 20px;
  }

  .onboarding-step-content {
    min-height: auto;
    max-height: none;
  }

  .onboarding-interest-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .onboarding-interest-count {
    min-width: 0;
  }

  .onboarding-interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ─── Discover View — Hinge-style scrollable card ─── */
  .view-discover.active {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .view-discover .discover-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .discover-header {
    max-width: 100%;
    margin: 0;
    padding: 14px 16px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 5, 5, 0.72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    flex-shrink: 0;
    z-index: 10;
  }

  .discover-header .view-title {
    font-size: 22px;
    font-weight: 700;
  }

  .discover-content {
    max-width: 100%;
    padding: 0;
  }

  .card-stack {
    min-height: auto;
    flex: none;
    border-radius: 0;
    overflow: visible;
    align-items: stretch;
    justify-content: flex-start;
  }

  .card-loading,
  .card-empty {
    width: 100%;
  }

  /* ─── Profile Card — Hinge-style scrollable ─── */
  .profile-card {
    position: relative;
    border-radius: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    animation: none;
    flex: none;
    min-height: auto;
    background: var(--bg);
  }

  .profile-card.swiping-left,
  .profile-card.swiping-right {
    transition-duration: 0.22s;
  }

  .profile-card-scroll {
    overflow: visible;
  }

  /* Hinge: card-photos is a fixed aspect container, not flex:1 */
  .card-photos {
    flex: none;
    aspect-ratio: 4 / 5;
    position: relative;
    min-height: 0;
  }

  .card-photo-dots {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  /* Hinge: swipe stamps hidden (use buttons instead) */
  .swipe-stamp {
    display: none;
  }

  /* Hinge: card-info is below the photo, not overlaid */
  .card-info {
    position: relative;
    background: var(--bg);
    color: var(--text);
    padding: 16px 16px 100px;
  }

  .card-name {
    font-size: 24px;
    color: var(--text);
    text-shadow: none;
  }

  .card-details {
    color: var(--text-secondary);
  }

  .card-detail {
    color: var(--text-secondary);
  }

  .card-detail svg {
    color: var(--text-secondary);
  }

  .card-bio {
    color: var(--text-secondary);
    line-clamp: unset;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  /* Hinge: show sections, interests, prompts */
  .card-section-panel {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .card-section-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .card-intent {
    color: var(--accent);
    background: var(--surface-accent);
  }

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

  .card-prompts {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .card-extended {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ─── Discover Action Buttons — floating bar above bottom bar ─── */
  .discover-actions {
    position: fixed;
    bottom: calc(var(--bottom-bar-h) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    margin: 0;
    padding: 12px 14px;
    border-radius: 40px;
    background: rgba(31, 24, 20, 0.76);
    border: 1px solid rgba(198,167,94,0.16);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    z-index: 20;
    gap: 14px;
  }

  .action-btn {
    box-shadow: none;
  }

  .action-btn:active {
    transform: scale(0.85);
  }

  .action-pass {
    width: 52px;
    height: 52px;
    background: rgba(130, 88, 88, 0.82);
    color: #FFFFFF;
  }

  .action-like {
    width: 52px;
    height: 52px;
    background: rgba(111, 78, 55, 0.9);
    color: #FFFFFF;
  }

  .action-like svg {
    width: 26px;
    height: 26px;
  }

  .action-undo {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
  }

  .action-undo.disabled {
    opacity: 0.4;
    pointer-events: none;
  }

  /* ─── Likes View — matching mobile 2-column grid ─── */
  .view-likes {
    padding: 0;
  }

  .likes-header {
    padding: 16px 16px 14px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }

  .likes-header .view-title {
    font-size: 22px;
    font-weight: 700;
  }

  .likes-content {
    padding: 12px 12px;
  }

  .likes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .like-card {
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }

  .like-card:active {
    transform: scale(0.97);
    opacity: 0.85;
  }

  .like-card-photo {
    aspect-ratio: 3/4;
  }

  .like-card-info {
    padding: 10px 12px 12px;
  }

  .like-card-name {
    font-size: 15px;
    font-weight: 700;
  }

  .like-card-detail {
    font-size: 12px;
    color: var(--text-secondary);
  }

  .like-card-action {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    bottom: 8px;
    right: 8px;
  }

  /* ─── Profile View — web two-panel stacks on mobile ─── */
  .view-profile {
    padding: 0;
    align-items: stretch;
  }

  .profile-web-layout {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .profile-web-sidebar {
    width: 100%;
    position: static;
  }

  .profile-web-main {
    width: 100%;
  }

  .profile-user-card {
    padding: 24px 16px 20px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-verification-chip {
    margin-top: 14px;
    padding: 10px 16px;
    font-size: 12px;
  }

  .profile-premium-cta {
    border-radius: 18px;
    padding: 16px;
  }

  .profile-premium-brand {
    font-size: 10px;
    letter-spacing: 1.8px;
  }

  .profile-premium-heading {
    font-size: 18px;
  }

  .profile-premium-subtext {
    font-size: 12px;
  }

  .profile-premium-button {
    padding: 13px 16px;
    font-size: 13px;
  }

  .profile-subscription-badge {
    border-radius: 16px;
    padding: 12px 14px;
  }

  .profile-web-menu-item {
    padding: 13px 14px;
    font-size: 14px;
  }

  .profile-boost-web {
    flex-direction: column;
    text-align: center;
  }

  .profile-boost-web-info {
    text-align: center;
  }

  .profile-boost-button {
    padding: 13px 16px;
    font-size: 13px;
    width: 100%;
  }

  /* ─── Settings / Edit — tighter padding ─── */
  .view-settings,
  .view-edit-profile,
  .view-preview,
  .view-premium {
    padding: 16px 12px;
  }

  .settings-container,
  .edit-profile-container,
  .premium-container {
    max-width: 100%;
  }

  /* ─── Auth ─── */
  .auth-card {
    padding: 28px 20px;
  }

  /* ─── Modals ─── */
  .modal {
    margin: 16px;
    padding: 24px;
    max-height: 85vh;
    border-radius: 28px;
  }

  .modal-backdrop.active .modal {
    animation: slideUp 0.3s var(--ease-out);
  }

  .boost-packs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ─── Full Profile overlay ─── */
  .fp-card {
    margin: 0;
    padding: 14px 16px;
  }

  .fp-photo-block {
    margin: 0;
    width: 100%;
    min-height: 300px;
    max-height: 420px;
  }

  .fp-photo {
    min-height: 300px;
    max-height: 420px;
  }

  .view-full-profile.active {
    animation: slideUp 0.3s var(--ease-out);
  }

  /* ─── Remaining count ─── */
  .discover-remaining {
    position: fixed;
    bottom: calc(var(--bottom-bar-h) + 80px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    font-size: 12px;
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20;
  }

  /* ─── Account dropdown ─── */
  .account-panel {
    right: 0;
    min-width: 180px;
  }

  /* ─── Smooth scrolling everywhere ─── */
  .view,
  .chat-messages,
  .profile-card-scroll,
  .matches-list {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* ─── Smooth view transitions ─── */
  .view.active {
    animation: fadeIn 0.2s var(--ease-out);
  }

  /* ─── Photo transitions ─── */
  .card-photo {
    transition: opacity 0.2s var(--ease);
  }

  /* ─── Toast ─── */
  .toast {
    animation: slideUp 0.3s var(--ease-out);
  }
}

/* Small phones */
@media (max-width: 380px) {
  .discover-actions { gap: 12px; }

  .action-btn {
    width: 48px;
    height: 48px;
  }

  .action-btn svg {
    width: 20px;
    height: 20px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-info {
    padding: 12px 14px;
  }

  .card-name {
    font-size: 18px;
  }

  .card-details {
    font-size: 12px;
  }

  .card-bio {
    font-size: 14px;
  }

  .fp-card {
    padding: 12px 14px;
  }

  .fp-name {
    font-size: 22px;
  }

  .fp-photo-block {
    min-height: 260px;
    max-height: 360px;
  }

  .fp-photo {
    min-height: 260px;
    max-height: 360px;
  }

  .modal {
    margin: 8px;
    padding: 18px;
  }

  .view-discover,
  .view-likes,
  .view-settings,
  .view-edit-profile {
    padding: 12px 8px;
  }

  .view-profile {
    padding: 0;
  }

  .profile-web-layout {
    padding: 12px 8px;
  }

  .bottom-item {
    font-size: 9px;
  }

  .bottom-item svg {
    width: 22px;
    height: 22px;
  }
}

/* Large desktop */
@media (min-width: 1400px) {
  .matches-panel { width: 400px; }

  .likes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════ Dark Mode Glow Accents ═══════════════════════════════════════ */

[data-theme="dark"] .btn-primary {
  box-shadow: 0 0 12px var(--accent-glow), 0 0 4px var(--accent-glow);
}
[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 16px var(--accent-glow);
}

[data-theme="dark"] .btn-accent {
  box-shadow: 0 0 8px var(--accent-glow);
}
[data-theme="dark"] .btn-accent:hover:not(:disabled) {
  box-shadow: 0 0 16px var(--accent-glow), 0 4px 12px var(--accent-glow);
}

[data-theme="dark"] .fp-card {
  border: 1px solid var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
}

[data-theme="dark"] .fp-photo-block {
  border: 1px solid var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
}

[data-theme="dark"] .fp-prompt-card {
  box-shadow: 0 0 10px var(--accent-glow);
}

[data-theme="dark"] .fp-chip {
  border-color: var(--accent-glow);
  box-shadow: 0 0 6px var(--accent-glow);
}

[data-theme="dark"] .match-profile-footer {
  border-top-color: var(--accent-glow);
  box-shadow: 0 -2px 12px var(--accent-glow);
}

[data-theme="dark"] .match-profile-footer .btn {
  border: 1px solid var(--accent-glow);
  box-shadow: 0 0 6px var(--accent-glow);
}

[data-theme="dark"] .plan-card {
  border-color: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
}

[data-theme="dark"] .icon-btn:hover {
  box-shadow: 0 0 10px var(--accent-glow);
}

[data-theme="dark"] .theme-picker {
  border-color: var(--accent-glow);
  box-shadow: 0 0 6px var(--accent-glow);
}

[data-theme="dark"] .theme-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

[data-theme="dark"] .discover-header {
  border-color: transparent;
  box-shadow: none;
}

[data-theme="dark"] .prompt-item {
  border-color: var(--accent-glow);
  box-shadow: 0 0 6px var(--accent-glow);
}

[data-theme="dark"] .interest-suggest-chip:hover {
  box-shadow: 0 0 6px var(--accent-glow);
}

/* ═══════ Hinge Discover + Preview Cards ═════════════════════════════════ */

.view-discover {
  padding: 24px 16px 20px;
}

.discover-header,
.discover-content,
.preview-container {
  width: 100%;
  max-width: 560px;
}

.view-discover .card-stack {
  min-height: clamp(520px, calc(100dvh - 248px), 820px);
  max-height: clamp(520px, calc(100dvh - 248px), 820px);
}

.profile-card.hinge-profile-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  touch-action: pan-y;
  user-select: text;
  -webkit-user-select: text;
}

.profile-card.hinge-profile-card .profile-card-scroll {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px calc(var(--bottom-bar-h) + 40px);
  background: transparent;
  overscroll-behavior: contain;
}

.view-discover .hinge-surface-card {
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .view-discover .hinge-surface-card {
  background: #fff;
  border-color: #e0d8d8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .view-discover .hinge-prompt-card {
  background: #faf8fa;
  border-color: rgba(140, 100, 140, 0.12);
}

[data-theme="light"] .hinge-surface-card {
  background: #fff;
  border-color: #e0d8d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hinge-prompt-card {
  background: #faf8fa;
  border-color: rgba(140, 100, 140, 0.10);
}

[data-theme="light"] .discover-header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .discover-location-reminder {
  background: linear-gradient(135deg, rgba(122, 85, 64, 0.14) 0%, rgba(198, 167, 94, 0.12) 100%);
  border-color: rgba(122, 85, 64, 0.18);
}



.view-discover .hinge-bio-body {
  padding: 16px 18px 20px;
}

.view-discover .hinge-prompt-card {
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(179, 102, 179, 0.07) 0%, rgba(179, 102, 179, 0.03) 100%);
  border-color: rgba(179, 102, 179, 0.14);
}

.view-discover .hinge-details-card {
  padding-bottom: 8px;
}

.view-discover .hinge-detail-pills {
  margin: 16px 16px 10px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-bottom: none;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
}

.view-discover .hinge-detail-row {
  padding: 16px 18px;
}

.view-discover .hinge-detail-divider {
  margin-left: 50px;
  margin-right: 18px;
  opacity: 0.55;
}

.hinge-profile-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.hinge-profile-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 0;
}

.hinge-profile-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hinge-profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hinge-profile-name {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hinge-profile-badge {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hinge-profile-badge--verified {
  color: #4fc3f7;
}

.hinge-profile-badge--boosted {
  color: var(--gold);
}

.hinge-profile-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(91, 140, 106, 0.12);
  color: #5b8c6a;
  font-size: 12px;
  font-weight: 700;
}

.hinge-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hinge-profile-more {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  flex-shrink: 0;
}

.hinge-profile-more:hover {
  background: var(--surface-accent);
  border-color: var(--accent-light);
  color: var(--text);
  transform: translateY(-1px);
}

.hinge-profile-more svg,
.hinge-detail-icon svg,
.hinge-photo-placeholder svg {
  width: 18px;
  height: 18px;
}

.hinge-surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hinge-photo-block {
  --hinge-photo-radius: 18px;
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  border-radius: var(--hinge-photo-radius);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hinge-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  min-height: clamp(300px, 42vh, 440px);
  width: 100%;
  height: 100%;
  background: inherit;
}

.hinge-photo-block--hero .hinge-photo-frame {
  min-height: clamp(380px, 52vh, 560px);
}

.view-discover .hinge-photo-block--hero .hinge-photo-frame {
  min-height: 0;
  height: clamp(320px, 44vh, 480px);
}

.hinge-photo-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  border-radius: inherit;
  background: inherit;
}

.hinge-photo-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hinge-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  border-radius: inherit;
  overflow: hidden;
}

.hinge-photo-placeholder svg {
  width: 72px;
  height: 72px;
}

.hinge-preview-banner {
  padding: 0 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hinge-bio-card {
  overflow: hidden;
}

.hinge-bio-title {
  padding: 18px 18px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hinge-bio-body {
  padding: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.hinge-bio-card.is-placeholder .hinge-bio-body {
  color: var(--text-secondary);
  font-style: italic;
}

.hinge-interest-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 4px 4px;
}

.hinge-interest-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(154, 120, 10, 0.18);
  background: rgba(154, 120, 10, 0.08);
  color: #6a4a41;
  font-size: 13px;
  font-weight: 700;
}

.hinge-prompt-card {
  padding: 28px 20px;
}

.hinge-prompt-question {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.hinge-prompt-answer {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  white-space: pre-wrap;
}

.hinge-prompt-card.is-placeholder .hinge-prompt-answer {
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.hinge-details-card {
  overflow: hidden;
}

.hinge-detail-pills {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.hinge-detail-pills::-webkit-scrollbar {
  display: none;
}

.hinge-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  white-space: nowrap;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.hinge-pill-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}

.hinge-detail-rows {
  display: flex;
  flex-direction: column;
}

.hinge-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.hinge-detail-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.hinge-detail-row-label,
.hinge-detail-pill-label {
  color: var(--text);
}

.hinge-detail-row-label {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.hinge-detail-divider {
  height: 1px;
  margin-left: 52px;
  margin-right: 20px;
  background: var(--border);
}

.view-preview {
  padding: 24px 16px 32px;
  align-items: center;
}

.preview-card-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.preview-card-wrap .profile-card.hinge-profile-card {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  min-height: 0;
  height: auto;
}

.preview-card-wrap .profile-card.hinge-profile-card .profile-card-scroll {
  overflow: visible;
  max-height: none;
  padding: 0;
}

[data-theme="dark"] .hinge-photo-block,
[data-theme="dark"] .hinge-surface-card {
  border-color: rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .hinge-photo-block {
  background: #1a0f1a;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.1);
}

[data-theme="light"] .hinge-photo-block {
  background: #f0eded;
  border-color: #e0d8d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}



[data-theme="dark"] .hinge-interest-pill {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.18);
  color: var(--gold);
}

[data-theme="dark"] .hinge-prompt-card {
  background: #2d1f2d;
  border-color: rgba(179, 102, 179, 0.18);
}

[data-theme="dark"] .hinge-prompt-question {
  color: var(--accent-light);
}

[data-theme="dark"] .hinge-detail-pills,
[data-theme="dark"] .hinge-detail-divider,
[data-theme="dark"] .hinge-pill-divider {
  border-color: rgba(212, 175, 55, 0.14);
  background: rgba(212, 175, 55, 0.14);
}

[data-theme="dark"] .view-discover .hinge-surface-card {
  background: linear-gradient(180deg, rgba(27, 20, 39, 0.98) 0%, rgba(20, 15, 31, 0.98) 100%);
  border-color: rgba(212, 175, 55, 0.16);
}



[data-theme="dark"] .view-discover .hinge-prompt-card {
  background: linear-gradient(180deg, rgba(179, 102, 179, 0.1) 0%, rgba(179, 102, 179, 0.04) 100%);
  border-color: rgba(179, 102, 179, 0.14);
}

[data-theme="dark"] .view-discover .hinge-detail-pills {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.12);
}

[data-theme="dark"] .view-discover .hinge-detail-divider,
[data-theme="dark"] .view-discover .hinge-pill-divider {
  background: rgba(212, 175, 55, 0.14);
}

[data-theme="dark"] .hinge-detail-icon,
[data-theme="dark"] .hinge-detail-pill {
  color: var(--gold);
}

[data-theme="dark"] .hinge-profile-more {
  background: var(--surface);
  border-color: rgba(212, 175, 55, 0.18);
}

@media (min-width: 1100px) {
  .view-discover {
    padding: 28px 32px 24px;
  }

  .discover-header,
  .discover-content,
  .preview-container {
    max-width: 580px;
  }
}

@media (max-width: 767px) {
  .premium-manage-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .premium-manage-note {
    max-width: none;
    text-align: left;
  }

  .profile-card.hinge-profile-card .profile-card-scroll {
    padding: 2px 2px calc(var(--bottom-bar-h) + 24px);
  }

  .hinge-profile-topbar {
    padding: 2px 2px 0;
  }

  .hinge-photo-block--hero .hinge-photo-frame {
    min-height: 340px;
  }

  .hinge-photo-frame {
    min-height: 280px;
  }

  .hinge-prompt-card {
    padding: 24px 18px;
  }

  .hinge-prompt-answer {
    font-size: 24px;
  }

  .hinge-detail-row {
    padding: 15px 16px;
  }

  .hinge-detail-divider {
    margin-left: 48px;
    margin-right: 16px;
  }
}

/* ═══════ Mobile App-Like Animations ═══════════════════════════════════ */

/* Slide-in from right (chat panel, sub-views) */
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-30%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

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

/* (animations merged into main 768px query above) */

/* ─── Privacy / Block-Report additions ──────────────────────────────────── */

.action-shield {
  background: var(--surface) !important;
  border-color: var(--text-muted) !important;
  color: var(--text-muted);
}
.action-shield:hover {
  border-color: var(--danger) !important;
  color: var(--danger);
}

.modal-dialog {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s var(--ease-out);
  text-align: center;
}

.modal-cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-cancel:hover {
  background: var(--surface-hover);
}

.modal-cancel.block-action-btn {
  color: #E74C3C;
  border-color: #E74C3C;
}
.modal-cancel.block-action-btn:hover {
  background: rgba(231, 76, 60, 0.1);
}

.modal-cancel.report-action-btn {
  color: #B366B3;
  border-color: #B366B3;
}
.modal-cancel.report-action-btn:hover {
  background: rgba(179, 102, 179, 0.1);
}

.report-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.report-reason-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.report-reason-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.pill-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pill-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pause-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Mobile Gate — blocks phone-sized screens, shows hero image
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-gate {
  display: none;
}

.phone-ui .mobile-gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  background: url('../assets/couple-hero.png') center / cover no-repeat;
}

.phone-ui #app {
  display: none !important;
}

.mobile-gate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 10, 26, 0.55) 0%,
    rgba(26, 10, 26, 0.80) 60%,
    rgba(26, 10, 26, 0.92) 100%
  );
}

.mobile-gate-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 28px;
  max-width: 360px;
}

.mobile-gate-logo {
  width: 144px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  margin-bottom: 20px;
  box-shadow: none;
}

.mobile-gate-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.mobile-gate-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
}

.mobile-gate-link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  background: var(--gradient-accent, linear-gradient(135deg, #C07AC0, #8B3A8B));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(139, 58, 139, 0.3);
}

.mobile-gate-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(139, 58, 139, 0.4);
}
