/* Gen Z Dating CSS System — Warm Indian Premium (Light default + Dark mode) */

:root {
  /* ===== LIGHT THEME (default) — Off-white warm per PRD ===== */
  --bg-primary: #FFF8F9;
  --bg-secondary: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-border: rgba(232, 54, 111, 0.14);
  --surface-active: rgba(232, 54, 111, 0.08);
  --surface-raised: #FFFFFF;
  --surface-sunken: #FCEEF1;
  --header-bg: rgba(255, 248, 249, 0.82);
  --nav-bg: rgba(255, 255, 255, 0.92);

  --text-primary: #1A0A0F;
  --text-secondary: #7A6070;
  --text-muted: #A88B98;

  /* Brand Colors — shared across themes */
  --accent-rose: #E8366F;
  --accent-saffron: #FF9933;
  --accent-purple: hsl(270, 80%, 55%);
  --accent-blue: hsl(195, 85%, 50%);
  --accent-green: hsl(145, 75%, 45%);
  --accent-danger: #EF4444;

  --gradient-accent: linear-gradient(135deg, #E8366F 0%, #FF9933 100%);
  --gradient-accent-hover: linear-gradient(135deg, #F04080 0%, #FFB366 100%);
  --gradient-brand: linear-gradient(135deg, #E8366F 0%, #C026D3 50%, #FF9933 100%);

  --shadow-premium: 0 12px 40px 0 rgba(232, 54, 111, 0.12);
  --shadow-glow: 0 0 24px rgba(232, 54, 111, 0.25);
  --shadow-saffron: 0 0 20px rgba(255, 153, 51, 0.2);
  --shadow-card: 0 6px 24px rgba(122, 96, 112, 0.14);

  /* Shared tokens */
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --border-radius-pill: 50px;

  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg-primary: #1A0A0F;
  --bg-secondary: #241218;
  --surface-glass: hsla(340, 30%, 15%, 0.6);
  --surface-glass-border: hsla(340, 20%, 30%, 0.25);
  --surface-active: hsla(340, 30%, 25%, 0.3);
  --surface-raised: #2C1620;
  --surface-sunken: #160810;
  --header-bg: hsla(340, 30%, 9%, 0.82);
  --nav-bg: hsla(340, 30%, 8%, 0.92);

  --text-primary: #FFF8F9;
  --text-secondary: #C9A0AD;
  --text-muted: #7A6070;

  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(232, 54, 111, 0.4);
  --shadow-saffron: 0 0 20px rgba(255, 153, 51, 0.25);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.45);
}

body { transition: background-color 0.4s ease, color 0.4s ease; }

/* Base Reset & Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

h1, h2, h3, h4, .app-title-text {
  font-family: 'Playfair Display', 'Outfit', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* App Viewport — Full responsive, not locked to phone frame */
#app-container {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
}

/* Mobile: full screen */
@media (max-width: 767px) {
  #app-container {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

/* Tablet: centered card */
@media (min-width: 768px) and (max-width: 1023px) {
  #app-container {
    max-width: 600px;
    max-height: 95vh;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--surface-glass-border);
  }
}

/* Desktop: wider layout */
@media (min-width: 1024px) {
  #app-container {
    max-width: 1180px;
    max-height: 96vh;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--surface-glass-border);
  }
}

/* View Handling */
.app-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.98);
  display: flex;
  flex-direction: column;
}

.app-view.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
  z-index: 10;
}

/* Sub-views inside Main Layout */
.subview {
  display: none;
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 110px; /* Space for navbar */
}

.subview.active {
  display: flex;
}

/* Button & UI Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', -apple-system, sans-serif;
  font-weight: 600;
  padding: 13px 22px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.25s ease, background 0.25s ease, opacity 0.2s;
  border-radius: var(--border-radius-pill);
  text-align: center;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(232, 54, 111, 0.32);
}

.btn-primary:hover {
  background: var(--gradient-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 54, 111, 0.42);
}

.btn-primary:active {
  transform: translateY(0) scale(0.985);
}

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

.btn-secondary:hover {
  background: var(--surface-active);
}

.btn-danger {
  background: hsla(0, 80%, 50%, 0.15);
  color: hsl(0, 90%, 60%);
  border: 1px solid hsla(0, 90%, 60%, 0.2);
}

.btn-danger:hover {
  background: hsla(0, 80%, 55%, 0.3);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: var(--border-radius-md);
  width: 100%;
}

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

.btn-block {
  width: 100%;
  padding: 14px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

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

.svg-icon {
  width: 24px;
  height: 24px;
}

.text-danger {
  color: hsl(0, 90%, 60%) !important;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
}

/* LANDING VIEW STYLES */
#view-landing {
  justify-content: center;
  align-items: center;
  padding: 32px;
  background: radial-gradient(circle at top right, hsla(270, 95%, 60%, 0.15), transparent 40%),
              radial-gradient(circle at bottom left, hsla(340, 95%, 60%, 0.15), transparent 40%);
}

.landing-content {
  text-align: center;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo-large {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  position: relative;
  filter: drop-shadow(0 4px 20px rgba(255, 51, 102, 0.4));
}

.heart-svg-logo {
  width: 100%;
  height: 100%;
}

.logo-pulse {
  transform-origin: center;
  animation: heart-beat 1.8s infinite ease-in-out;
}

@keyframes heart-beat {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

.landing-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.landing-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 48px;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 300px;
}

/* Floating Landing Bubbles */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.15;
  filter: blur(24px);
  z-index: 1;
}

.bubble-1 {
  width: 250px;
  height: 250px;
  top: -80px;
  right: -50px;
}

.bubble-2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -50px;
}

/* ONBOARDING VIEW STYLES */
#view-onboarding {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  background: radial-gradient(circle at center, hsla(270, 95%, 60%, 0.08) 0%, transparent 70%);
}

.onboarding-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.onboarding-header {
  margin-bottom: 28px;
}

.step-indicator {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.onboarding-card h2 {
  font-size: 1.75rem;
  margin-top: 4px;
}

/* Form Styles */
.onboarding-step {
  display: none;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.onboarding-step.active {
  display: flex;
  animation: slide-fade-in 0.4s ease-out;
}

@keyframes slide-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-sub-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -6px;
  margin-bottom: 12px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="search"],
select,
textarea {
  background: var(--surface-active);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 2px hsla(340, 95%, 60%, 0.15);
}

textarea {
  resize: none;
  height: 100px;
}

.error-msg {
  color: hsl(0, 90%, 65%);
  font-size: 0.8rem;
  min-height: 18px;
}

/* Interests Grid Setup */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px;
}

.interest-tag {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 8px 6px;
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.interest-tag:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.interest-tag.selected {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #ffffff;
}

/* Avatar Custom Picker Grid */
.avatar-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  flex: 1;
}

.avatar-option-card {
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  background: var(--surface-glass);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  transition: var(--transition-bounce);
}

.avatar-option-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.avatar-option-card:hover img {
  transform: scale(1.05);
}

.avatar-option-card.selected {
  border-color: var(--accent-rose);
  transform: scale(0.98);
  box-shadow: 0 0 15px hsla(340, 95%, 60%, 0.4);
}

.avatar-badge-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.onboarding-nav {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.onboarding-nav .btn {
  min-width: 100px;
}

.hidden {
  display: none !important;
}

/* MAIN LAYOUT HEADER */
.app-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--surface-glass-border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  position: sticky;
  top: 0;
}

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

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

.app-title-text {
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#main-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* DISCOVER/SWIPE LAYOUT */
#subview-discover {
  padding: 16px 16px 110px 16px;
  justify-content: flex-start;
}

/* Filter Panel Drawer */
#filter-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 20px;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

#filter-panel.open {
  transform: translateY(0);
}

.panel-title {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-glass-border);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-rose);
  cursor: pointer;
  transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Card Deck Container */
.card-deck-container {
  height: 380px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.deck {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
}

/* swipe-card */
.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1), box-shadow 0.3s;
  background: var(--bg-secondary);
  border: 1px solid var(--surface-glass-border);
}

.swipe-card:active {
  cursor: grabbing;
}

.card-image-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Card Gradient overlays */
.card-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}

.card-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.card-badge-status {
  position: absolute;
  top: 24px;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: rotate(-15deg);
  border: 3px solid transparent;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.card-badge-like {
  left: 24px;
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.card-badge-pass {
  right: 24px;
  border-color: var(--accent-rose);
  color: var(--accent-rose);
  transform: rotate(15deg);
}

.card-badge-super {
  left: 50%;
  transform: translateX(-50%) translateY(50px) rotate(-10deg);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Details and text overlay */
.card-details {
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-details h3 {
  font-size: 1.85rem;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.card-details h3 .card-age {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.card-details .card-compatibility {
  font-size: 0.8rem;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 12px;
  color: var(--accent-rose);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-bio {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-chip {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Empty Deck State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 16px;
  width: 100%;
}

.empty-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--surface-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-rose);
  border: 1px solid var(--surface-glass-border);
  margin-bottom: 8px;
}

.search-pulse-svg {
  width: 44px;
  height: 44px;
}

.pulse-line {
  transform-origin: center;
  animation: radar-pulse 2s infinite ease-out;
}

@keyframes radar-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.empty-state h3 {
  font-size: 1.25rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 250px;
  line-height: 1.4;
}

/* Swipe Controller Action Buttons */
.action-buttons-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
  z-index: 100;
  flex-shrink: 0;
}

.action-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--surface-glass-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--transition-bounce);
}

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

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

.pass-btn {
  color: var(--accent-rose);
  border-color: hsla(340, 95%, 60%, 0.15);
}
.pass-btn:hover {
  background: hsla(340, 95%, 60%, 0.1);
  box-shadow: 0 0 15px hsla(340, 95%, 60%, 0.2);
}

.like-btn {
  color: var(--accent-green);
  border-color: hsla(145, 80%, 50%, 0.15);
  width: 66px;
  height: 66px;
}
.like-btn:hover {
  background: hsla(145, 80%, 50%, 0.1);
  box-shadow: 0 0 15px hsla(145, 80%, 50%, 0.2);
}

.superlike-btn {
  color: var(--accent-blue);
  border-color: hsla(195, 95%, 55%, 0.15);
}
.superlike-btn:hover {
  background: hsla(195, 95%, 55%, 0.1);
  box-shadow: 0 0 15px hsla(195, 95%, 55%, 0.2);
}

/* Animations for card swipe triggers */
.swipe-card.anim-pass {
  transform: translate(-150%, 50px) rotate(-30deg) !important;
  opacity: 0;
}

.swipe-card.anim-like {
  transform: translate(150%, 50px) rotate(30deg) !important;
  opacity: 0;
}

.swipe-card.anim-super {
  transform: translate(0, -150%) scale(0.8) !important;
  opacity: 0;
}

/* MATCHES & CHATS VIEW STYLES */
.matches-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.new-matches-section, .conversations-section {
  padding: 16px 20px;
}

.new-matches-section {
  border-bottom: 1px solid var(--surface-glass-border);
}

.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.new-matches-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none; /* Firefox */
}

.new-matches-slider::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

.new-match-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  animation: popup 0.35s ease-out;
}

@keyframes popup {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.new-match-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-rose);
  padding: 2px;
  transition: var(--transition-smooth);
}

.new-match-avatar:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 12px hsla(340, 95%, 60%, 0.3);
}

.new-match-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 70px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Conversations List */
.conversations-list {
  display: flex;
  flex-direction: column;
}

.chat-row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.03);
  transition: var(--transition-smooth);
}

.chat-row-item:hover {
  transform: translateX(4px);
}

.chat-row-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.chat-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.chat-row-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.chat-row-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-row-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-row-message.unread {
  color: var(--text-primary);
  font-weight: 600;
}

/* ACTIVE CHAT AREA LAYOUT */
#subview-chat {
  padding-bottom: 0; /* Chat handles its own bottom bar */
  overflow: hidden; /* Chat viewport handles scrolling internally */
}

.chat-viewport-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-primary);
}

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

.chat-user-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}

.chat-header-name {
  font-weight: 600;
  font-size: 1rem;
}

.chat-header-status {
  font-size: 0.75rem;
  color: var(--accent-green);
  display: block;
}

/* Messages container bubble stream */
.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.925rem;
  line-height: 1.4;
  word-wrap: break-word;
  animation: bubble-fade 0.25s ease-out;
}

@keyframes bubble-fade {
  from { transform: translateY(10px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.message-bubble.incoming {
  align-self: flex-start;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message-bubble.outgoing {
  align-self: flex-end;
  background: var(--gradient-accent);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* Typing bubble logic */
.typing-indicator-container {
  align-self: flex-start;
  margin-left: 20px;
  margin-bottom: 12px;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  padding: 10px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

.typing-bubble .dot {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typing-dot 1.4s infinite ease-in-out;
}

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

@keyframes typing-dot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Chat Input Bar */
.chat-input-form {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--surface-glass-border);
  background: var(--bg-secondary);
}

.chat-input-form textarea {
  flex: 1;
  background: var(--surface-active);
  border: 1px solid var(--surface-glass-border);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text-primary);
  height: 38px;
  resize: none;
  font-size: 0.95rem;
}

.chat-send-btn {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chat-send-btn:disabled {
  background: var(--surface-glass);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* MY PROFILE VIEW STYLES */
.profile-viewport-container {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-preview-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-container {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-rose);
  box-shadow: var(--shadow-glow);
  margin-bottom: 16px;
}

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

.profile-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border-top: 1px solid var(--surface-glass-border);
  padding-top: 16px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-box:first-child {
  border-right: 1px solid var(--surface-glass-border);
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-rose);
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.edit-profile-section {
  padding: 24px;
}

.edit-profile-section h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.btn-margin-top {
  margin-top: 12px;
}

#sidebar-btn-logout {
  margin-top: 10px;
}

/* --- ADMIN DASHBOARD VIEW SYSTEM --- */
.admin-viewport-container {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.admin-title {
  font-size: 1.6rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -12px;
}
.admin-card {
  padding: 18px 16px;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--surface-glass-border);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.admin-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.admin-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-radius: var(--border-radius-md);
  text-align: center;
  border: 1px solid hsla(340, 95%, 60%, 0.1);
}
.admin-stat-card .stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-rose);
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 0 10px hsla(340, 95%, 60%, 0.2);
}
.admin-stat-card .stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.admin-logs-container {
  max-height: 150px;
  overflow-y: auto;
  background: rgba(0,0,0,0.2);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  border: 1px solid var(--surface-glass-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: monospace;
  font-size: 0.75rem;
}
.empty-log-msg {
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  padding: 20px 0;
}
.log-item {
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 4px;
  word-break: break-all;
}
.log-item-timestamp {
  color: var(--text-muted);
  margin-right: 6px;
}
.admin-profile-form {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slide-fade-in 0.3s ease-out;
}
.admin-profile-form h4 {
  font-size: 1rem;
  color: var(--accent-rose);
}
.admin-profile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}
.admin-profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: hsla(240, 15%, 8%, 0.4);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-sm);
}
.admin-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-profile-name {
  font-size: 0.9rem;
  font-weight: 700;
}
.admin-profile-details {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.admin-profile-actions {
  display: flex;
  gap: 8px;
}

/* --- PREMIUM PAYWALL SYSTEM --- */
.paywall-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  box-shadow: var(--shadow-premium);
  border-radius: var(--border-radius-lg);
  animation: slide-up-drawer 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
.paywall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.paywall-title {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.paywall-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: center;
}
.plans-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.plan-option {
  position: relative;
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  cursor: pointer;
  background: var(--surface-active);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-option:hover {
  border-color: hsla(270, 95%, 60%, 0.4);
  background: hsla(240, 15%, 6%, 0.5);
}
.plan-option.active {
  border-color: var(--accent-rose);
  background: hsla(340, 95%, 60%, 0.08);
  box-shadow: 0 0 15px hsla(340, 95%, 60%, 0.15);
}
.plan-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-glass-border);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.plan-badge.popular {
  background: var(--gradient-accent);
  color: #fff;
}
.plan-option h3 {
  font-size: 1rem;
  font-weight: 700;
}
.plan-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}
.plan-option.active .plan-price {
  color: var(--accent-rose);
}
.plan-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- MOCK PAYMENT GATEWAY --- */
.payment-card {
  width: 100%;
  max-width: 380px;
  padding: 24px 20px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  animation: slide-up-drawer 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--surface-glass-border);
  padding-bottom: 10px;
}
.checkout-details {
  display: flex;
  justify-content: space-between;
  background: rgba(0,0,0,0.2);
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid var(--surface-glass-border);
}
.checkout-details p {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkout-details strong {
  color: var(--accent-rose);
  font-size: 1rem;
}
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0,0,0,0.15);
  border-radius: var(--border-radius-sm);
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--surface-glass-border);
}
.pay-method-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
}
.pay-method-btn.active {
  background: var(--surface-active);
  color: var(--text-primary);
}
.payment-method-content {
  min-height: 160px;
  margin-bottom: 20px;
}
.method-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.method-panel.active {
  display: flex;
}
.upi-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}
.mock-qr-gfx {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}
.qr-code-box {
  background: white;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-svg {
  width: 100px;
  height: 100px;
  color: #000 !important;
}
.upi-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Loading and Success Overlays inside checkout card */
.loader-overlay, .success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(240, 15%, 8%, 0.96);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 16px;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--surface-glass-border);
  border-top-color: var(--accent-rose);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.3);
}
.success-overlay h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

/* --- PREMIUM MEETING SIMULATOR VIEW --- */
.meeting-viewport {
  width: 100%;
  max-width: 390px;
  height: 85vh;
  max-height: 750px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 14px;
  overflow: hidden;
  animation: slide-up-drawer 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
.meeting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--surface-glass-border);
  padding-bottom: 10px;
}
.meeting-title-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-rose);
  letter-spacing: 0.05em;
  animation: pulse-glow 1.5s infinite alternate;
}
@keyframes pulse-glow {
  from { opacity: 0.5; }
  to { opacity: 1; text-shadow: 0 0 8px var(--accent-rose); }
}
#meeting-partner-name {
  font-size: 1rem;
  font-weight: 700;
}
#meeting-timer {
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--text-secondary);
}
.video-grid {
  flex: 1;
  display: grid;
  grid-template-rows: 2fr 1fr;
  gap: 12px;
  position: relative;
  min-height: 250px;
}
.video-stream {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--surface-glass-border);
  overflow: hidden;
  position: relative;
  background: #000;
}
.partner-stream {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: hsla(270, 95%, 60%, 0.25);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.partner-stream img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s;
}
.partner-stream.muted img {
  filter: grayscale(0.5) blur(4px);
}
.local-stream {
  border-color: var(--surface-glass-border);
  background: hsla(240, 15%, 5%, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.local-camera-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.stream-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.meeting-partner-speaking {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.65rem;
  background: var(--accent-green);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.meeting-subtitles-container {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--surface-glass-border);
}
.meeting-subtitle-bubble {
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  color: var(--text-primary);
  animation: fade-in-tab 0.2s ease-out;
}
.meeting-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.meet-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  animation: bounce-typing 1.2s infinite;
}
.meet-dot:nth-child(2) { animation-delay: 0.2s; }
.meet-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce-typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.meeting-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--surface-glass-border);
}
.meeting-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: hsla(240, 15%, 12%, 0.8);
  border: 1px solid var(--surface-glass-border);
  color: white;
  transition: var(--transition-smooth);
}
.meeting-control-btn:hover {
  background: var(--surface-active);
  transform: scale(1.05);
}
.meeting-control-btn.active {
  background: var(--surface-glass);
}
.meeting-control-btn.active:not(.hangup) {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}
.meeting-control-btn.hangup {
  background: var(--text-danger);
  color: white;
}
.meeting-control-btn.hangup:hover {
  background: hsl(0, 95%, 55%);
}

/* APP BOTTOM NAVIGATION BAR */
.app-navigation-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--surface-glass-border);
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  gap: 4px;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--text-primary);
}

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

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-icon-container {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--accent-rose);
  color: #fff;
  font-size: 0.65rem;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 2px;
  border: 1px solid var(--bg-secondary);
}

/* MATCH OVERLAY SCREEN */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.match-overlay-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: overlay-card-zoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes overlay-card-zoom {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.match-overlay-title {
  font-size: 2.75rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(255,51,102,0.35));
}

.match-overlay-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
}

.match-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.avatar-holder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  position: relative;
}

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

.user-avatar-pulse {
  animation: left-avatar-pulse 2s infinite alternate ease-in-out;
}

.partner-avatar-pulse {
  animation: right-avatar-pulse 2s infinite alternate ease-in-out;
}

@keyframes left-avatar-pulse {
  0% { transform: scale(1) rotate(-6deg); box-shadow: 0 0 10px hsla(340, 95%, 60%, 0.3); }
  100% { transform: scale(1.15) rotate(-12deg); box-shadow: 0 0 25px hsla(340, 95%, 60%, 0.7); }
}

@keyframes right-avatar-pulse {
  0% { transform: scale(1) rotate(6deg); box-shadow: 0 0 10px hsla(270, 95%, 60%, 0.3); }
  100% { transform: scale(1.15) rotate(12deg); box-shadow: 0 0 25px hsla(270, 95%, 60%, 0.7); }
}

.overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 280px;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-glass-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Landing Page Policy Footer */
.landing-footer {
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  z-index: 10;
}
.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}
.footer-link-btn:hover {
  color: var(--text-primary);
}
.footer-sep {
  color: var(--text-muted);
}

/* Google AdSense Banners */
.adsense-banner-container {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}
.adsense-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.adsense-placeholder-gfx {
  width: 100%;
  height: 46px;
  background: var(--surface-active);
  border-radius: var(--border-radius-sm);
  border: 1px dashed var(--surface-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.ad-placeholder-svg {
  width: 18px;
  height: 18px;
}
.discover-ad-slot {
  margin: 6px 0 10px 0;
}
.matches-ad-slot {
  margin: 0 20px 14px 20px;
}

/* Profile Legal Links Row */
.profile-links-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-links-section h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}
.profile-link-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-link-row-item {
  width: 100%;
  background: var(--surface-active);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.profile-link-row-item:hover {
  border-color: var(--accent-rose);
  color: var(--text-primary);
  background: var(--surface-glass);
}
.row-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.profile-link-row-item:hover .row-arrow {
  color: var(--accent-rose);
  transform: translateX(2px);
}

/* Policies Slide-Up Modal Drawer */
.policies-modal-card {
  width: 100%;
  max-width: 390px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  box-shadow: var(--shadow-premium);
  animation: slide-up-drawer 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
@keyframes slide-up-drawer {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.policies-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--surface-glass-border);
  padding-bottom: 12px;
}
.policies-modal-header h2 {
  font-size: 1.4rem;
}
.policies-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--surface-active);
  border-radius: var(--border-radius-sm);
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--surface-glass-border);
  justify-content: center;
}
.policy-tab {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 76px;
  background: none;
  border: none;
  padding: 8px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
  font-family: inherit;
  text-align: center;
}
.policy-tab.active {
  background: var(--gradient-accent);
  color: #fff;
}
.policies-content-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}
.policy-tab-content {
  display: none;
  flex-direction: column;
  gap: 12px;
  line-height: 1.5;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.policy-tab-content.active {
  display: flex;
  animation: fade-in-tab 0.3s ease-out;
}
@keyframes fade-in-tab {
  from { opacity: 0; }
  to { opacity: 1; }
}
.policy-tab-content h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
}
.policy-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -6px;
  margin-bottom: 8px;
}
.policy-tab-content h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 2px;
}
.policy-tab-content p code {
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.policy-tab-content a {
  color: var(--accent-rose);
  text-decoration: none;
}
.policy-tab-content a:hover {
  text-decoration: underline;
}

/* SEO Content Section Styles */
.seo-content-card {
  margin: 8px 0 0;
  padding: 24px 4px 4px;
  border-top: 1px solid var(--surface-glass-border);
  background: transparent;
}

.seo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.seo-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seo-article h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.seo-article p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* App Shared Footer Styling */
.app-footer {
  margin-top: 30px;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  border-top: 1px solid var(--surface-glass-border);
  width: 100%;
}

/* SIDEBAR DRAWER STYLES */
#sidebar-drawer {
  justify-content: flex-start;
  align-items: stretch;
}

#sidebar-drawer .sidebar-content {
  width: 280px;
  height: 100%;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--surface-glass-border);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  z-index: 1000;
}

#sidebar-drawer.active .sidebar-content {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-glass-border);
}

.brand-logo-small {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 24px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.sidebar-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-align: left;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.sidebar-link-btn:hover {
  background: var(--surface-glass-border);
  color: var(--text-primary);
  transform: translateX(4px);
}





/* ============================================================
 * PRD ENHANCEMENTS — Theme toggle, Notifications, Limits,
 * Who Liked You, Boost, Paywall features
 * ============================================================ */

/* Theme toggle icon visibility */
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.svg-icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

/* Notification bell badge */
#btn-notification-bell { position: relative; }
.notif-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--accent-rose);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg-secondary);
}

/* Notification dropdown panel */
.notification-panel {
  position: absolute;
  top: 60px;
  right: 12px;
  width: min(360px, calc(100% - 24px));
  max-height: 460px;
  background: var(--surface-raised);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-premium);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notifDrop 0.22s ease;
}
@keyframes notifDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--surface-glass-border);
}
.notif-panel-header h3 { font-size: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; }
.notif-mark-read {
  background: none;
  border: none;
  color: var(--accent-rose);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.notif-list { overflow-y: auto; flex: 1; }
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--surface-glass-border);
  transition: background 0.2s ease;
}
.notif-item:hover { background: var(--surface-active); }
.notif-item.unread { background: var(--surface-active); }
.notif-item.unread::before {
  content: "";
  position: absolute;
  left: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  margin-top: 6px;
}
.notif-item { position: relative; }
.notif-item-icon { font-size: 1.3rem; flex-shrink: 0; }
.notif-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-item-title { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.notif-item-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notif-item-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.notif-empty { padding: 40px 16px; text-align: center; color: var(--text-muted); }

/* Discover meta bar (likes counter + boost) */
.discover-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px 4px;
}
.likes-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  background: var(--surface-active);
  color: var(--accent-rose);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--surface-glass-border);
}
.likes-counter-pill.premium {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
}
.likes-counter-pill.depleted { color: var(--accent-danger); }
.boost-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  background: var(--surface-active);
  color: var(--accent-saffron);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--surface-glass-border);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-smooth);
}
.boost-pill:hover { background: var(--accent-saffron); color: #fff; }
.boost-pill.active {
  background: var(--accent-saffron);
  color: #fff;
  box-shadow: var(--shadow-saffron);
}

/* Who Liked You */
.who-liked-section { margin-bottom: 20px; }
.who-liked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.who-liked-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 6px;
}
.premium-lock-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-saffron);
  background: var(--surface-active);
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
}
.who-liked-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.who-liked-slider::-webkit-scrollbar { display: none; }
.who-liked-card {
  flex: 0 0 auto;
  width: 96px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--surface-active);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.who-liked-card:hover { transform: translateY(-3px); }
.who-liked-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.who-liked-card.blurred img { filter: blur(10px) brightness(0.85); }
.who-liked-card.blurred::after {
  content: "🔒";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-size: 1.4rem;
}
.who-liked-name {
  display: block;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Paywall feature list + Razorpay badge + period */
.plan-period { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); }
.paywall-features {
  list-style: none;
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--surface-active);
  border-radius: var(--border-radius-md);
}
.paywall-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 0;
}
.razorpay-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.razorpay-badge .svg-icon-sm { color: var(--accent-saffron); }

/* ============================================================
   LANDING PAGE ENHANCEMENTS (premium Indian dating SaaS)
   ============================================================ */

/* Make landing view scrollable (overrides any centered/fixed height) */
#view-landing {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.landing-scroll {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

/* ---- HERO ---- */
.landing-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.landing-trustline {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

/* ---- Shared section scaffolding ---- */
.landing-section {
  width: 100%;
  text-align: center;
}

.landing-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-rose);
  margin: 0 0 8px;
}

.landing-section-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 auto 28px;
  max-width: 520px;
}

/* ---- HOW IT WORKS ---- */
.howit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.howit-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.howit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
}

.howit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-active);
  color: var(--accent-rose);
}

.howit-icon svg { width: 28px; height: 28px; }

.howit-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.howit-step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ---- TESTIMONIALS ---- */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.testi-card {
  background: var(--surface-raised);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.testi-stars {
  color: var(--accent-saffron);
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testi-star-empty { color: var(--text-muted); opacity: 0.4; }

.testi-quote {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0 0 18px;
}

.testi-meta { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  flex-shrink: 0;
}

.testi-person { display: flex; flex-direction: column; line-height: 1.3; }
.testi-name { font-weight: 700; color: var(--text-primary); font-size: 0.9rem; }
.testi-city { font-size: 0.8rem; color: var(--text-muted); }

/* ---- PRICING COMPARISON ---- */
.pricing-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.pricing-compare-card {
  position: relative;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  text-align: left;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pricing-compare-card-premium {
  border: 2px solid var(--accent-rose);
  box-shadow: var(--shadow-premium);
}

.pricing-compare-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: var(--border-radius-pill);
  white-space: nowrap;
}

.pricing-compare-head {
  text-align: center;
  border-bottom: 1px solid var(--surface-glass-border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.pricing-compare-tier {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.pricing-compare-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-compare-amount {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-rose);
}

.pricing-compare-period { font-size: 0.85rem; color: var(--text-muted); }

.pricing-compare-alt {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--accent-saffron);
  font-weight: 600;
}

.pricing-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-compare-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-compare-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.pricing-compare-yes { color: var(--text-primary); }
.pricing-compare-yes::before { content: "✓"; color: var(--accent-rose); }
.pricing-compare-no::before { content: "✕"; color: var(--text-muted); opacity: 0.6; }
.pricing-compare-no { opacity: 0.7; }

.pricing-compare-cta { width: 100%; margin-top: 22px; }

/* ---- RESPONSIVE: desktop ≥768px ---- */
@media (min-width: 768px) {
  .landing-scroll { padding: 64px 24px 40px; gap: 88px; }
  .landing-section-title { font-size: 2.1rem; }
  .howit-grid,
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-compare-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
  .pricing-compare-card-premium { transform: scale(1.03); }
}

/* ===== Onboarding: Lifestyle fields + Completion bar ===== */
.completion-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
}
.completion-bar-track {
  flex: 1;
  height: 8px;
  background: var(--surface-active);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-pill);
  overflow: hidden;
}
.completion-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-pill);
  transition: width var(--transition-smooth);
}
.completion-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.onboarding-section-hint { margin-bottom: 16px; color: var(--text-muted); }

.onboarding-step select,
.onboarding-step input[type="date"],
.onboarding-step input[type="email"] {
  width: 100%;
  color: var(--text-primary);
}

.profile-completion { margin: 14px 0; }
.profile-completion .completion-bar-label { color: var(--text-secondary); }

@media (max-width: 480px) {
  .completion-bar { flex-wrap: wrap; gap: 6px; }
  .completion-bar-label { font-size: 0.72rem; }
  .onboarding-step .form-group-row { flex-direction: column; gap: 0; }
}

[data-theme="dark"] .completion-bar-track {
  background: var(--surface-active);
  border-color: var(--surface-glass-border);
}

/* ============================================================
   ADMIN DASHBOARD V2  (namespaced under #subview-admin / .admin-)
   ============================================================ */
#subview-admin.subview.active { display: block; padding: 0; }

.admin-shell {
  display: flex;
  min-height: 100%;
  gap: 0;
  background: var(--bg-primary);
}

.admin-sidebar {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--surface-glass-border);
}
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; }
.admin-brand-logo { font-size: 1.7rem; }
.admin-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.admin-brand-text strong { color: var(--text-primary); font-size: 1rem; }
.admin-brand-text span { color: var(--text-muted); font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase; }

.admin-tabs { display: flex; flex-direction: column; gap: 4px; }
.admin-tab {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 14px;
  background: transparent; border: none; cursor: pointer;
  border-radius: var(--border-radius-md);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
  text-align: left; transition: var(--transition-smooth);
  font-family: inherit;
}
.admin-tab:hover { background: var(--surface-glass); color: var(--text-primary); }
.admin-tab.active { background: var(--gradient-accent); color: #fff; box-shadow: var(--shadow-card); }
.admin-tab-ico { font-size: 1.05rem; width: 22px; text-align: center; }

.admin-sidebar-foot { margin-top: auto; }
.admin-bypass-row { display: flex; flex-direction: column; gap: 8px; }
.admin-bypass-row .btn { width: 100%; }

.admin-content { flex: 1 1 auto; padding: 26px 30px 60px; overflow-y: auto; min-width: 0; }
.admin-panel { display: none; animation: adminFade .25s ease; }
.admin-panel.active { display: block; }
@keyframes adminFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.admin-panel-head { margin-bottom: 22px; }
.admin-h2 { color: var(--text-primary); font-size: 1.5rem; margin: 0 0 4px; }
.admin-h3 { color: var(--text-primary); font-size: 1rem; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.admin-sub { color: var(--text-muted); font-size: 0.86rem; margin: 0; }

.admin-card {
  background: var(--surface-raised);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.admin-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 22px; }
.admin-kpi-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.admin-kpi {
  background: var(--surface-raised);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.admin-kpi::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gradient-accent); }
.admin-kpi-ico { font-size: 1.3rem; margin-bottom: 8px; display: block; }
.admin-kpi-val { color: var(--text-primary); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.admin-kpi-lbl { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.admin-kpi-trend { font-size: 0.72rem; font-weight: 700; margin-top: 6px; color: var(--accent-saffron); }

.admin-chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-chart-wide { grid-column: 1 / -1; }
.admin-canvas-wrap { position: relative; height: 260px; }
.admin-canvas-wrap canvas { max-height: 260px; }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.admin-input {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  padding: 10px 14px; font-size: 0.88rem; outline: none;
  transition: var(--transition-smooth);
  font-family: inherit;
}
.admin-input:focus { border-color: var(--accent-rose); }
.admin-input::placeholder { color: var(--text-muted); }
#admin-user-search { flex: 1 1 240px; }
.admin-input-sm { flex: 0 0 auto; min-width: 130px; }

.admin-table-wrap {
  background: var(--surface-raised);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin-table thead th {
  text-align: left; padding: 14px 16px;
  color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--surface-glass-border);
  white-space: nowrap;
}
.admin-table tbody td { padding: 12px 16px; color: var(--text-secondary); border-bottom: 1px solid var(--surface-glass-border); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--surface-glass); }
.admin-th-actions { text-align: right; }
.admin-user-cell { display: flex; align-items: center; gap: 10px; }
.admin-user-avatar { width: 34px; height: 34px; border-radius: var(--border-radius-pill); object-fit: cover; background: var(--surface-active); color: var(--accent-rose); font-weight: 700; }
.admin-user-name { color: var(--text-primary); font-weight: 700; }
.admin-user-meta { color: var(--text-muted); font-size: 0.74rem; }

.admin-pill { display: inline-block; padding: 3px 10px; border-radius: var(--border-radius-pill); font-size: 0.72rem; font-weight: 700; }
.admin-pill-free { background: var(--surface-active); color: var(--text-secondary); }
.admin-pill-premium { background: var(--gradient-accent); color: #fff; }
.admin-pill-active { background: rgba(40,180,120,.15); color: #1c9d6a; }
.admin-pill-banned { background: rgba(232,54,111,.15); color: var(--accent-rose); }

.admin-row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.admin-act-btn {
  border: 1px solid var(--surface-glass-border);
  background: var(--surface-glass);
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  padding: 5px 10px; font-size: 0.74rem; font-weight: 600; cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
}
.admin-act-btn:hover { color: var(--text-primary); border-color: var(--accent-rose); }
.admin-act-btn.danger:hover { color: var(--accent-danger); border-color: var(--accent-danger); }
.admin-act-btn.gold:hover { color: var(--accent-saffron); border-color: var(--accent-saffron); }
.admin-empty { text-align: center; color: var(--text-muted); padding: 26px; font-size: 0.86rem; }

.admin-mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-badge { background: var(--accent-rose); color: #fff; border-radius: var(--border-radius-pill); font-size: 0.7rem; padding: 1px 8px; font-weight: 700; }
.admin-queue { display: flex; flex-direction: column; gap: 10px; }
.admin-queue-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--border-radius-md);
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
}
.admin-queue-body { flex: 1 1 auto; min-width: 0; }
.admin-queue-title { color: var(--text-primary); font-weight: 700; font-size: 0.88rem; }
.admin-queue-reason { color: var(--text-muted); font-size: 0.76rem; }
.admin-queue-actions { display: flex; gap: 6px; }

.admin-photo-queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.admin-photo-tile { border-radius: var(--border-radius-md); overflow: hidden; border: 1px solid var(--surface-glass-border); background: var(--surface-glass); }
.admin-photo-tile img { width: 100%; height: 110px; object-fit: cover; display: block; }
.admin-photo-cap { font-size: 0.74rem; color: var(--text-secondary); padding: 6px 8px 2px; }
.admin-photo-acts { display: flex; gap: 6px; padding: 6px 8px 8px; }
.admin-photo-acts .admin-act-btn { flex: 1; text-align: center; }

.admin-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.admin-plan-card { text-align: center; }
.admin-plan-card.featured { border-color: var(--accent-rose); }
.admin-plan-name { color: var(--text-primary); font-size: 1.1rem; font-weight: 800; }
.admin-plan-price { font-size: 1.9rem; font-weight: 800; margin: 8px 0; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.admin-plan-price small { font-size: 0.8rem; -webkit-text-fill-color: var(--text-muted); }
.admin-plan-subs { color: var(--text-secondary); font-size: 0.84rem; margin-top: 6px; }
.admin-plan-subs strong { color: var(--text-primary); font-size: 1.1rem; }

.admin-settings-form { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.admin-settings-form .form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.admin-settings-form .form-group label { color: var(--text-secondary); font-size: 0.78rem; font-weight: 600; }
.admin-settings-form .form-row { display: flex; gap: 14px; }
.admin-settings-platform { align-items: flex-end; }
.admin-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; padding-bottom: 8px; }
.admin-toggle input { display: none; }
.admin-toggle-track { width: 44px; height: 24px; border-radius: var(--border-radius-pill); background: var(--surface-active); position: relative; transition: var(--transition-smooth); flex: 0 0 auto; }
.admin-toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: var(--transition-smooth); }
.admin-toggle input:checked + .admin-toggle-track { background: var(--gradient-accent); }
.admin-toggle input:checked + .admin-toggle-track::after { transform: translateX(20px); }
.admin-toggle-label { color: var(--text-secondary); font-size: 0.84rem; font-weight: 600; }
.admin-save-flash { color: #1c9d6a; font-weight: 700; align-self: center; }

#subview-admin .admin-profile-form {
  background: var(--surface-raised);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-card);
}
#subview-admin .admin-profile-form.hidden { display: none; }

@media (max-width: 880px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { flex: none; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--surface-glass-border); }
  .admin-tabs { flex-direction: row; flex-wrap: wrap; }
  .admin-tab span:not(.admin-tab-ico) { display: none; }
  .admin-sidebar-foot { margin: 0; }
  .admin-bypass-row { flex-direction: row; }
  .admin-chart-row, .admin-mod-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 18px 14px 50px; }
}

/* ============================================================
   DESIGN POLISH PASS — cleaner hierarchy, less card-clutter,
   proper light/dark behaviour. Loaded last to win the cascade.
   ============================================================ */

/* 1. Small UI labels/headings should be clean Poppins sans, NOT the
   Playfair serif reserved for big display headlines. */
.section-title,
.admin-h2, .admin-h3,
.admin-brand-text strong,
.chat-partner-name,
.onboarding-header h2,
.paywall-title,
.policies-modal-header h2,
.admin-kpi-val,
.profile-name-display,
.profile-links-section h3,
.seo-article h3,
h3.section-title, h4 {
  font-family: 'Poppins', -apple-system, sans-serif;
  letter-spacing: 0;
}

/* Keep section labels quiet and modern */
.section-title {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 2. Fix Who-Liked-You section bleeding to the screen edge */
.who-liked-section { padding: 16px 20px 0; }

/* 3. Soften the "card everywhere" feel — lighter borders, gentler shadows.
   Glass panels become subtle surfaces, not heavy outlined boxes. */
.glass-panel { box-shadow: none; }
.seo-content-card .seo-title { font-size: 1.1rem; }

/* The sponsored/native ad slots: keep them low-key, never a loud card */
.adsense-banner-container {
  background: transparent;
  border: 1px dashed var(--surface-glass-border);
  opacity: 0.75;
}
.adsense-lbl { opacity: 0.7; }

/* 4. Admin: fix mobile tabs stacking vertically (width:100% bug),
   make them compact pills that wrap in a row. */
@media (max-width: 880px) {
  .admin-sidebar { gap: 12px; padding: 14px; }
  .admin-tabs { gap: 6px; }
  .admin-tab {
    width: auto;
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: var(--border-radius-pill);
    background: var(--surface-active);
  }
  .admin-tab.active { background: var(--gradient-accent); }
  .admin-tab span:not(.admin-tab-ico) { display: inline; font-size: 0.8rem; }
  .admin-brand { width: 100%; }
}

/* 5. Header: tighten the logo lockup, ensure icon buttons read in both themes */
.icon-btn { color: var(--text-secondary); }
.icon-btn:hover { color: var(--accent-rose); }

/* 6. Bottom nav: a touch more breathing room + clean top divider already set */
.app-navigation-bar { padding-bottom: env(safe-area-inset-bottom, 0); }

/* 7. Inputs/selects: consistent themed fields (some used dark assumptions) */
.onboarding-step input,
.onboarding-step select,
.onboarding-step textarea,
#form-edit-profile input,
#form-edit-profile select,
#form-edit-profile textarea {
  background: var(--surface-active);
  border: 1px solid var(--surface-glass-border);
  color: var(--text-primary);
}

/* 8. Section divider between matches blocks should be hairline, not boxy */
.new-matches-section { border-bottom: 1px solid var(--surface-glass-border); }
.conversations-section { padding-top: 18px; }

/* ============================================================
   AUTH — Login modal + ghost/link buttons (real backend mode)
   ============================================================ */
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--accent-rose); }
.btn-skip-guest { font-size: 0.85rem; padding: 8px; }

.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--accent-rose); font-weight: 600; font-family: inherit; font-size: inherit;
  padding: 0;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px;
  margin: auto;
  background: var(--surface-raised);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
}
.login-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.login-header h2 { font-size: 1.4rem; }
#form-login .form-group { margin-bottom: 14px; }
.login-foot { text-align: center; margin-top: 16px; font-size: 0.88rem; color: var(--text-secondary); }
#login-error { display: block; min-height: 18px; margin-bottom: 8px; }

/* ============================================================
   GUEST REGISTRATION WALL
   ============================================================ */
#guestwall-overlay { z-index: 400; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.guestwall-card {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 36px 28px 28px;
  text-align: center;
  background: var(--surface-raised);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  animation: wall-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes wall-pop { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: none; } }
.guestwall-art { width: 72px; height: 72px; margin: 0 auto 18px; }
.guestwall-heart { width: 100%; height: 100%; filter: drop-shadow(0 6px 16px rgba(232,54,111,0.4)); animation: wall-beat 1.6s ease-in-out infinite; }
@keyframes wall-beat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.guestwall-title { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-primary); }
.guestwall-sub { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 24px; }
.guestwall-actions { display: flex; flex-direction: column; gap: 10px; }
.guestwall-foot { margin-top: 16px; font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   SWIPE CARD POLISH — clean, high-quality, responsive (mobile + PC)
   ============================================================ */
/* Centre the discover column and cap width so cards stay a crisp portrait on PC */
#subview-discover .card-deck-container,
#subview-discover .discover-meta-bar,
#subview-discover .action-buttons-bar {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.card-deck-container {
  height: clamp(440px, 56vh, 600px);
}

.swipe-card {
  box-shadow: var(--shadow-premium), 0 2px 8px rgba(0,0,0,0.10);
  border: none;
  border-radius: 22px;
}
[data-theme="dark"] .swipe-card { box-shadow: 0 16px 40px rgba(0,0,0,0.55); }

/* Crisper image rendering + gentle zoom-in feel */
.card-image-wrapper img {
  transition: transform 6s ease-out;
  transform: scale(1.02);
}
.swipe-card:first-child .card-image-wrapper img { transform: scale(1.08); }

/* Richer, smoother bottom gradient for text legibility */
.card-overlay-bottom {
  height: 65%;
  background: linear-gradient(to top,
              rgba(10,2,6,0.92) 0%,
              rgba(10,2,6,0.55) 38%,
              rgba(10,2,6,0.12) 65%,
              transparent 100%);
  padding: 26px;
}
.card-details h3 { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }

/* Desktop: larger, premium card + a touch more presence */
@media (min-width: 1024px) {
  #subview-discover .card-deck-container,
  #subview-discover .discover-meta-bar,
  #subview-discover .action-buttons-bar { max-width: 480px; }
  .card-deck-container { height: clamp(520px, 62vh, 660px); }
  .card-details h3 { font-size: 2.2rem; }
}

/* Tablet centring */
@media (min-width: 768px) and (max-width: 1023px) {
  #subview-discover .card-deck-container,
  #subview-discover .discover-meta-bar,
  #subview-discover .action-buttons-bar { max-width: 460px; }
}

/* Smoother action buttons */
.action-btn { transition: transform 0.18s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.2s, background 0.2s; }
.action-btn:hover { transform: translateY(-2px) scale(1.05); }
.action-btn:active { transform: scale(0.92); }

/* ============================================================
   PRO POLISH PASS — premium, finished-product feel
   (loaded last; wins the cascade)
   ============================================================ */

/* 1) Remove placeholder clutter; ad slots appear only when a real published ad is injected */
.seo-content-card { display: none !important; }
.adsense-banner-container:not(.has-ad) { display: none !important; }
.adsense-banner-container.has-ad .adsense-placeholder-gfx,
.adsense-banner-container.has-ad .adsense-lbl { display: none; }
.adsense-banner-container.has-ad {
  background: transparent; border: none; opacity: 1; padding: 0; margin: 10px auto; max-width: 480px;
}

/* 2) Refined header wordmark + icon buttons */
.app-title-text { font-size: clamp(1.05rem, 4vw, 1.35rem); letter-spacing: -0.01em; }
.header-logo-svg { filter: drop-shadow(0 3px 8px rgba(232,54,111,0.35)); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s, transform 0.15s; }
.icon-btn:hover { background: var(--surface-active); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.92); }

/* 3) Micro-interactions: lift interactive surfaces on hover (desktop) */
@media (hover: hover) {
  .new-match-avatar, .who-liked-card, .chat-row-item, .plan-option,
  .profile-link-row-item, .stat-box, .testi-card, .howit-card {
    transition: transform 0.22s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.22s ease, border-color 0.22s ease;
  }
  .chat-row-item:hover, .plan-option:hover, .profile-link-row-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
  }
  .new-match-avatar:hover, .who-liked-card:hover { transform: translateY(-4px) scale(1.02); }
}

/* 4) Conversation rows -> clean list cards */
.chat-row-item {
  padding: 12px 14px;
  border-radius: var(--border-radius-md);
  background: var(--surface-raised);
  border: 1px solid transparent;
  margin-bottom: 8px;
}
.chat-row-item:hover { border-color: var(--surface-glass-border); }

/* 5) Chat bubbles — softer, premium */
.message-bubble, .chat-message, #chat-messages-container > div {
  box-shadow: 0 2px 10px rgba(122,96,112,0.10);
}
[data-theme="dark"] .message-bubble, [data-theme="dark"] #chat-messages-container > div {
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 6) Profile preview — premium card with richer content */
.profile-preview-card { padding: 28px 24px; text-align: center; }
.profile-premium-badge {
  display: inline-block;
  background: var(--gradient-accent);
  color: #fff; font-weight: 700; font-size: 0.74rem;
  padding: 5px 14px; border-radius: var(--border-radius-pill);
  margin-bottom: 10px; box-shadow: 0 4px 12px rgba(232,54,111,0.3);
}
.profile-location { color: var(--text-secondary); font-size: 0.9rem; margin-top: 2px; }
.profile-bio {
  color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55;
  margin: 12px auto 4px; max-width: 460px;
}
.profile-interests { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 4px; }
.profile-interest-chip {
  background: var(--surface-active); color: var(--accent-rose);
  font-size: 0.78rem; font-weight: 600;
  padding: 6px 14px; border-radius: var(--border-radius-pill);
  border: 1px solid var(--surface-glass-border);
}
.profile-stats { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--surface-glass-border); }
.stat-box { padding: 6px 14px; border-radius: var(--border-radius-md); }
.stat-val { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.my-avatar-img { box-shadow: 0 8px 24px rgba(232,54,111,0.25); }

/* 7) Section headings — confident, tracked */
.profile-links-section h3, .edit-profile-section h3 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); font-weight: 700; margin-bottom: 12px;
}

/* 8) Empty states — centered, soft */
#deck-empty-state h3 { font-size: 1.15rem; margin-bottom: 6px; }
#deck-empty-state p { color: var(--text-muted); }

/* 9) Polished scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--surface-glass-border) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--surface-glass-border); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* 10) Smooth view/subview cross-fade with slight rise */
.subview { transition: opacity 0.32s ease, transform 0.32s ease; }
.subview:not(.active) { transform: translateY(8px); }

/* 11) Discover card entrance */
@keyframes card-rise { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.swipe-card:first-child { animation: card-rise 0.4s cubic-bezier(0.25,0.8,0.25,1); }

/* 12) Bottom nav — refined active state */
.nav-item { position: relative; }
.nav-item.active::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-rose);
}
.nav-item .svg-icon, .nav-item svg { transition: transform 0.2s; }
.nav-item.active .svg-icon, .nav-item.active svg { transform: scale(1.12); }

/* 13) Login / modal inputs — comfortable height */
#form-login input, #form-onboarding input, #form-edit-profile input { padding: 13px 16px; }
.login-card { padding: 30px 26px; }
.login-header h2, .guestwall-title { letter-spacing: -0.01em; }

/* 14) Who-liked blurred cards — cleaner lock treatment */
.who-liked-card.blurred::after { font-size: 1.2rem; opacity: 0.9; }
.who-liked-card { box-shadow: var(--shadow-card); }

/* ============================================================
   ADMIN CONSOLE PAGE (admin.html) — full-page layout overrides
   ============================================================ */
body.admin-body {
  display: block;
  overflow: auto;
  height: auto;
  min-height: 100vh;
  align-items: stretch;
  justify-content: flex-start;
}
.admin-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-body #admin-app .admin-shell { min-height: 100vh; }
.admin-body .admin-content { max-height: 100vh; }
.admin-body code { background: var(--surface-active); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }
.hidden { display: none !important; }

/* Photo upload row (admin create/edit + user profile edit) */
.nu-photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nu-photo-preview {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--surface-glass-border); background: var(--surface-active);
}

/* Logo home button */
.home-logo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.home-logo-btn:hover { background: var(--surface-active); }
.home-logo-btn:active { transform: scale(0.96); }
