/* ================================================================
   HOTMEET — styles.css
   Premium US Dating Platform
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── CSS VARIABLES ── */
:root {
  --flame:        #FF3C5F;
  --flame-dark:   #D62B4B;
  --flame-light:  #FF6B87;
  --gold:         #FFB347;
  --gold-dark:    #E8962A;
  --coal:         #1A1A2E;
  --ink:          #16213E;
  --slate:        #0F3460;
  --smoke:        #E8ECF0;
  --white:        #FFFFFF;
  --gray-100:     #F8F9FC;
  --gray-200:     #EEF0F5;
  --gray-400:     #9BA3B2;
  --gray-600:     #5A6375;
  --success:      #22C55E;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.18);
  --shadow-flame: 0 8px 30px rgba(255,60,95,0.35);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-full:  9999px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-100);
  color: var(--coal);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.page-wrapper { padding-top: 64px; min-height: 100vh; }
.container    { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
}

/* Logo */
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--flame), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-flame);
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--flame), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav links */
.navbar-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  border: none; background: none;
  color: var(--gray-600); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; position: relative;
  font-family: 'DM Sans', sans-serif;
}
.nav-link:hover  { background: var(--gray-100); color: var(--coal); }
.nav-link.active { color: var(--flame); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--flame);
}
.nav-icon  { font-size: 20px; }
.nav-label { font-size: 11px; }
.nav-badge {
  position: absolute; top: 4px; right: 8px;
  background: var(--flame); color: white;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* Navbar right */
.navbar-right { display: flex; align-items: center; gap: 10px; }
.online-indicator { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--gray-600); font-weight: 500; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px white; display: inline-block; }

/* Premium button */
.btn-premium {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white; border: none; border-radius: var(--radius-full);
  padding: 8px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255,179,71,0.4);
  display: flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.btn-premium:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,179,71,0.5); }

/* ================================================================
   BUTTONS  (reusable)
   ================================================================ */
.btn {
  border: none; border-radius: var(--radius-full); cursor: pointer;
  font-weight: 600; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--flame), var(--flame-dark));
  color: white; padding: 12px 28px; font-size: 15px;
  box-shadow: var(--shadow-flame);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(255,60,95,0.45); }

.btn-outline {
  background: transparent; color: var(--flame);
  border: 2px solid var(--flame); padding: 10px 24px; font-size: 15px;
}
.btn-outline:hover { background: var(--flame); color: white; }

.btn-ghost {
  background: var(--gray-200); color: var(--gray-600);
  padding: 10px 20px; font-size: 14px;
}
.btn-ghost:hover { background: var(--smoke); color: var(--coal); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-full { width: 100%; padding: 14px; }

/* Circle action buttons (Discovery card) */
.btn-icon-lg {
  width: 64px; height: 64px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; cursor: pointer; transition: all 0.2s;
  box-shadow: var(--shadow-md); font-family: 'DM Sans', sans-serif;
}
.btn-skip { background: white; color: var(--gray-400); }
.btn-skip:hover { background: var(--gray-100); transform: scale(1.1); }
.btn-like { background: linear-gradient(135deg, var(--flame), var(--flame-dark)); color: white; box-shadow: var(--shadow-flame); }
.btn-like:hover { transform: scale(1.12); box-shadow: 0 12px 35px rgba(255,60,95,0.5); }
.btn-msg-card { background: white; color: var(--slate); border: 1px solid var(--gray-200); }
.btn-msg-card:hover { background: var(--gray-100); }

/* Send button */
.btn-send {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--flame), var(--flame-dark));
  color: white; border: none; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-flame); transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-send:hover { transform: scale(1.08); }

/* Text link */
.link {
  color: var(--flame); font-weight: 600; cursor: pointer;
  background: none; border: none; font-family: 'DM Sans', sans-serif; font-size: inherit;
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

/* Badges */
.premium-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white; border-radius: var(--radius-full);
  padding: 3px 10px; font-size: 11px; font-weight: 700;
}

/* ================================================================
   HERO / HOME
   ================================================================ */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  background: linear-gradient(160deg, #FFF5F7 0%, #FFF8F0 50%, #F0F8FF 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(255,60,95,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,179,71,0.06) 0%, transparent 50%);
}
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1; padding: 60px 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,60,95,0.1); border-radius: var(--radius-full);
  padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--flame);
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 62px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1px; color: var(--coal); margin-bottom: 20px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--flame), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 18px; color: var(--gray-600); line-height: 1.7; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-val   { font-size: 22px; font-weight: 700; color: var(--coal); }
.stat-label { font-size: 12px; color: var(--gray-400); font-weight: 500; }

/* Card stack visual */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; height: 520px;
}
.hero-card-stack { position: relative; width: 300px; height: 420px; }
.hero-card {
  position: absolute; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-card img   { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card-main  { width: 280px; height: 380px; top: 20px; left: 10px; z-index: 3; }
.hero-card-back  { width: 250px; height: 340px; top: 10px; left: 40px; z-index: 2; transform: rotate(6deg); }
.hero-card-far   { width: 220px; height: 300px; top: 0;    left: 60px; z-index: 1; transform: rotate(12deg); }
.card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 24px 16px 16px; color: white;
}
.card-overlay-name { font-size: 20px; font-weight: 700; }
.card-overlay-city { font-size: 13px; opacity: 0.85; }

/* Floating badges */
.floating-badge {
  position: absolute; background: white; border-radius: var(--radius-sm);
  padding: 8px 14px; box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  animation: float 3s ease-in-out infinite;
}
.floating-match { top: 60px;  right: -20px; color: var(--flame); animation-delay: 0s; }
.floating-like  { bottom: 80px; right: -30px; color: var(--gold);  animation-delay: 1.5s; }
@keyframes float {
  0%,100% { transform: translateY(0);    }
  50%      { transform: translateY(-8px); }
}

/* ================================================================
   SECTION HEADERS  (shared)
   ================================================================ */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 800; color: var(--coal); margin-bottom: 6px;
}
.section-sub { font-size: 15px; color: var(--gray-400); margin-bottom: 28px; }

/* ================================================================
   DISCOVERY PAGE
   ================================================================ */
.discovery-page { padding: 30px 0 80px; }
.discover-header { text-align: center; margin-bottom: 28px; }
.discover-header h1 {
  font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 800;
  color: var(--coal); margin-bottom: 6px;
}
.discover-header p { color: var(--gray-400); font-size: 15px; }

/* Filters bar */
.filters-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: center; margin-bottom: 30px;
}
.filter-select, .filter-input {
  padding: 9px 16px; border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-200); background: white;
  font-size: 14px; font-weight: 500; color: var(--coal);
  outline: none; box-shadow: var(--shadow-sm); transition: border 0.2s;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.filter-select:focus, .filter-input:focus { border-color: var(--flame); }
.filter-input { min-width: 170px; cursor: text; }

.likes-counter {
  font-size: 14px; color: var(--gray-600); background: white;
  border-radius: var(--radius-full); padding: 8px 20px;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm);
}

/* Ad banner */
.ad-banner {
  background: linear-gradient(135deg, var(--ink), var(--coal));
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 24px; color: white;
}
.ad-banner-text .ad-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.ad-banner-text .ad-sub   { color: rgba(255,255,255,0.6); font-size: 12px; }
.ad-video {
  width: 160px; height: 90px; background: rgba(255,255,255,0.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}

/* Card stack */
.cards-stack {
  display: flex; justify-content: center; align-items: center;
  position: relative; height: 530px; margin-bottom: 20px;
}
.profile-card {
  position: absolute; width: 340px; border-radius: 24px; overflow: hidden;
  background: white; box-shadow: var(--shadow-lg);
  transition: transform 0.38s cubic-bezier(.3,1.3,.5,1), opacity 0.38s ease;
  cursor: grab; user-select: none;
}
.profile-card:active { cursor: grabbing; }
.profile-card.swiping-right { transform: translateX(140%) rotate(20deg); opacity: 0; }
.profile-card.swiping-left  { transform: translateX(-140%) rotate(-20deg); opacity: 0; }
.profile-card-behind { transform: scale(0.94) translateY(18px); z-index: 1; opacity: 0.65; }
.profile-card-front  { z-index: 2; }

/* Photo slider */
.photo-slider { position: relative; height: 380px; overflow: hidden; }
.photo-slider img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-dots {
  position: absolute; top: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 4px; padding: 0 16px;
}
.photo-dot {
  height: 3px; border-radius: 2px; background: rgba(255,255,255,0.5);
  transition: all 0.2s; flex: 1; max-width: 40px;
}
.photo-dot.active { background: white; }
.photo-nav { position: absolute; top: 0; bottom: 0; width: 40%; cursor: pointer; }
.photo-nav-left  { left: 0; }
.photo-nav-right { right: 0; }

/* Card info */
.card-info { padding: 16px 20px 8px; }
.card-info-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.card-info-name { font-size: 22px; font-weight: 700; color: var(--coal); }
.card-info-age  { font-size: 18px; font-weight: 500; color: var(--gray-600); margin-left: 6px; }
.card-info-loc  { font-size: 13px; color: var(--gray-400); margin-bottom: 7px; }
.card-info-bio  { font-size: 14px; color: var(--gray-600); line-height: 1.5; }
.card-actions {
  display: flex; justify-content: center; gap: 20px; align-items: center;
  padding: 14px 0 18px;
}

/* Empty state */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon  { font-size: 64px; margin-bottom: 16px; }
.empty-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--coal); }
.empty-sub   { color: var(--gray-400); margin-bottom: 24px; }

/* ================================================================
   MATCHES PAGE
   ================================================================ */
.matches-page { padding: 30px 0 80px; }
.matches-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px;
}
.match-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.22s; cursor: pointer; position: relative;
}
.match-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.match-img   { width: 100%; height: 200px; object-fit: cover; display: block; }
.match-info  { padding: 12px; }
.match-name  { font-size: 15px; font-weight: 700; color: var(--coal); margin-bottom: 2px; }
.match-city  { font-size: 12px; color: var(--gray-400); margin-bottom: 10px; }
.match-online-badge {
  position: absolute; top: 10px; right: 10px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--success); border: 2px solid white;
}

/* Who Liked Me */
.who-liked-section { margin-top: 48px; }
.liked-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
.liked-card { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.liked-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.liked-card.blurred img { filter: blur(14px); transform: scale(1.05); }
.liked-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.liked-lock { font-size: 28px; }
.liked-text { color: white; font-size: 12px; font-weight: 600; text-align: center; padding: 0 10px; }
.liked-name { position: absolute; bottom: 8px; left: 10px; color: white; font-weight: 700; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

/* ================================================================
   USERS PAGE
   ================================================================ */
.users-page { padding: 30px 0 80px; }
.profiles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.profile-grid-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.22s;
}
.profile-grid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.profile-grid-img  { width: 100%; height: 230px; object-fit: cover; display: block; }
.profile-grid-body { padding: 16px; }
.profile-grid-name { font-size: 16px; font-weight: 700; color: var(--coal); }
.profile-grid-age  { font-size: 15px; color: var(--gray-600); margin-left: 5px; }
.profile-grid-loc  { font-size: 13px; color: var(--gray-400); margin: 3px 0 12px; }
.profile-grid-actions { display: flex; gap: 8px; }

/* ================================================================
   MESSAGES / CHAT PAGE
   ================================================================ */
.chat-layout {
  display: grid; grid-template-columns: 340px 1fr;
  height: calc(100vh - 64px); overflow: hidden;
}

/* Sidebar */
.chat-sidebar {
  background: white; border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-sidebar-header { padding: 20px; border-bottom: 1px solid var(--gray-200); }
.chat-sidebar-title  { font-size: 20px; font-weight: 700; color: var(--coal); margin-bottom: 12px; }
.chat-search {
  width: 100%; padding: 9px 14px; border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-200); background: var(--gray-100);
  font-size: 14px; outline: none; font-family: 'DM Sans', sans-serif;
}
.chat-search:focus { border-color: var(--flame); }

.conversations-list { flex: 1; overflow-y: auto; }
.convo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; cursor: pointer; transition: background 0.15s; position: relative;
}
.convo-item:hover  { background: var(--gray-100); }
.convo-item.active { background: rgba(255,60,95,0.06); }
.convo-avatar-wrap { position: relative; flex-shrink: 0; }
.convo-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; }
.convo-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--success); border: 2px solid white;
}
.convo-meta    { flex: 1; min-width: 0; }
.convo-name    { font-size: 14px; font-weight: 600; color: var(--coal); margin-bottom: 2px; }
.convo-preview { font-size: 13px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-time    { font-size: 11px; color: var(--gray-400); white-space: nowrap; }

/* Chat main */
.chat-main { display: flex; flex-direction: column; background: var(--gray-100); overflow: hidden; }
.chat-header {
  background: white; border-bottom: 1px solid var(--gray-200);
  padding: 14px 24px; display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.chat-header-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-header-name   { font-size: 17px; font-weight: 700; color: var(--coal); line-height: 1.2; }
.chat-header-status { font-size: 13px; color: var(--success); }
.chat-header-actions { margin-left: auto; display: flex; gap: 8px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }

.msg      { max-width: 68%; display: flex; flex-direction: column; }
.msg-me   { align-self: flex-end;   align-items: flex-end; }
.msg-them { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
  padding: 11px 16px; border-radius: 18px;
  font-size: 15px; line-height: 1.5; word-break: break-word;
}
.msg-me   .msg-bubble {
  background: linear-gradient(135deg, var(--flame), var(--flame-dark));
  color: white; border-bottom-right-radius: 4px;
}
.msg-them .msg-bubble {
  background: white; color: var(--coal);
  box-shadow: var(--shadow-sm); border-bottom-left-radius: 4px;
}
.msg-time { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

.msg-limit-banner {
  background: rgba(255,60,95,0.07); border: 1px solid rgba(255,60,95,0.2);
  border-radius: var(--radius-sm); padding: 10px 16px;
  margin: 0 20px 10px; font-size: 13px; color: var(--flame); font-weight: 500;
  text-align: center; flex-shrink: 0;
}
.chat-input-bar {
  background: white; border-top: 1px solid var(--gray-200);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.chat-input {
  flex: 1; padding: 11px 18px; border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-200); font-size: 15px; outline: none;
  background: var(--gray-100); transition: border 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.chat-input:focus { border-color: var(--flame); background: white; }

.no-chat-selected {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--gray-400); gap: 12px;
}
.no-chat-icon { font-size: 60px; }

/* ================================================================
   PROFILE / MY ACCOUNT
   ================================================================ */
.profile-page   { padding: 30px 0 80px; }
.profile-card-main {
  background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; max-width: 820px; margin: 0 auto;
}
.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--flame) 0%, var(--gold) 100%);
  position: relative;
}
.profile-avatar-wrap { position: absolute; bottom: -42px; left: 32px; }
.profile-avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 4px solid white; box-shadow: var(--shadow-md); display: block;
}
.profile-body { padding: 58px 32px 36px; }
.profile-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 800; color: var(--coal); margin-bottom: 4px;
}
.profile-loc  { font-size: 14px; color: var(--gray-400); }
.profile-bio  { color: var(--gray-600); font-size: 15px; line-height: 1.7; margin-top: 4px; }
.profile-bio-textarea {
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); font-size: 14px; line-height: 1.6;
  min-height: 80px; outline: none; resize: vertical;
  font-family: 'DM Sans', sans-serif; display: none;
}
.profile-bio-textarea:focus { border-color: var(--flame); }

.photos-section { margin: 24px 0; }
.photos-label { font-size: 14px; font-weight: 700; color: var(--coal); margin-bottom: 10px; }
.photos-label span { color: var(--gray-400); font-weight: 400; }
.profile-photos-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.profile-photo-slot {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--gray-200); cursor: pointer;
}
.profile-photo-slot img   { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-add {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 30px;
}

/* Settings */
.settings-section { margin-top: 32px; border-top: 1px solid var(--gray-200); padding-top: 28px; }
.settings-title   { font-size: 18px; font-weight: 700; color: var(--coal); margin-bottom: 18px; }
.settings-actions { display: flex; flex-direction: column; gap: 12px; }
.settings-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--gray-100);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background 0.15s; border: none; width: 100%;
  text-align: left; font-family: 'DM Sans', sans-serif;
}
.settings-btn:hover       { background: var(--gray-200); }
.settings-btn.s-upgrade   { background: linear-gradient(135deg,rgba(255,179,71,0.12),rgba(255,60,95,0.08)); }
.settings-btn.s-danger    { background: rgba(255,60,95,0.05); }
.settings-btn-icon  { font-size: 20px; flex-shrink: 0; }
.settings-btn-label { font-size: 15px; font-weight: 600; color: var(--coal); display: block; }
.settings-btn-sub   { font-size: 12px; color: var(--gray-400); display: block; margin-top: 1px; }
.settings-btn-arrow { margin-left: auto; color: var(--gray-400); font-size: 18px; }

/* ================================================================
   MODALS
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: white; border-radius: 28px; padding: 40px;
  width: 100%; max-width: 450px; box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
.modal-wide { max-width: 490px; text-align: center; }

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.modal-title {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 800;
  color: var(--coal); text-align: center; margin-bottom: 6px;
}
.modal-sub { font-size: 14px; color: var(--gray-400); text-align: center; margin-bottom: 28px; }

/* Auth tabs */
.auth-tabs {
  display: flex; background: var(--gray-100); border-radius: var(--radius-sm);
  padding: 4px; margin-bottom: 24px; gap: 0;
}
.auth-tab {
  flex: 1; padding: 9px; border: none; border-radius: 8px;
  cursor: pointer; font-weight: 600; font-size: 14px;
  transition: all 0.2s; background: transparent; color: var(--gray-400);
  font-family: 'DM Sans', sans-serif;
}
.auth-tab.active { background: white; color: var(--coal); box-shadow: var(--shadow-sm); }

/* Form elements */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--coal); margin-bottom: 6px;
}
.form-input, .form-select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); font-size: 15px; outline: none;
  transition: border 0.2s; background: var(--gray-100);
  font-family: 'DM Sans', sans-serif;
}
.form-input:focus, .form-select:focus { border-color: var(--flame); background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray-600); }
.modal-legal  { font-size: 12px; color: var(--gray-400); text-align: center; margin-top: 12px; }

/* Email confirmation box */
.confirm-box {
  background: linear-gradient(135deg,rgba(255,60,95,0.05),rgba(255,179,71,0.05));
  border: 1.5px solid rgba(255,60,95,0.15);
  border-radius: var(--radius-sm); padding: 20px; text-align: center;
}
.confirm-icon  { font-size: 40px; margin-bottom: 10px; }
.confirm-title { font-weight: 700; font-size: 18px; color: var(--coal); margin-bottom: 8px; }
.confirm-sub   { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* Premium modal */
.premium-badge-big {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white; border-radius: var(--radius-full);
  padding: 8px 22px; font-size: 14px; font-weight: 700; margin-bottom: 20px;
}
.premium-title {
  font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 800;
  color: var(--coal); margin-bottom: 12px;
}
.premium-price { font-size: 42px; font-weight: 800; color: var(--flame); margin-bottom: 4px; }
.premium-price span { font-size: 18px; color: var(--gray-400); font-weight: 400; }
.premium-perks {
  list-style: none; text-align: left; margin: 24px 0;
  display: flex; flex-direction: column; gap: 11px;
}
.perk-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--coal); }
.perk-check { color: var(--success); font-size: 18px; flex-shrink: 0; font-weight: 700; }
.premium-note { font-size: 12px; color: var(--gray-400); margin-top: 14px; }

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--coal); color: white;
  padding: 12px 26px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 9999; white-space: nowrap;
  display: flex; align-items: center; gap: 8px; pointer-events: none;
  animation: toastIn 0.3s ease forwards;
}
.toast.hide { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateX(-50%) translateY(20px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; } }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--coal); color: rgba(255,255,255,0.65);
  padding: 44px 0 28px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 800;
  background: linear-gradient(135deg, var(--flame), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
}
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.45); }
.footer-col-title {
  font-size: 12px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px;
}
.footer-link {
  display: block; font-size: 14px; color: rgba(255,255,255,0.5);
  margin-bottom: 8px; cursor: pointer; transition: color 0.2s;
  text-decoration: none; background: none; border: none;
  font-family: 'DM Sans', sans-serif;
}
.footer-link:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.35);
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ================================================================
   RESPONSIVE — MOBILE FIRST
   ================================================================ */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-label { display: none; }
  .btn-premium .premium-label { display: none; }
  .navbar { padding: 0 14px; }

  /* Hero */
  .hero-content { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-cta    { justify-content: center; }
  .hero-stats  { justify-content: center; }
  .hero-visual { height: 320px; }
  .hero-card-main { width: 200px; height: 280px; top: 20px; left: 20px; }
  .hero-card-back { width: 170px; height: 240px; top: 12px; left: 45px; }
  .hero-card-far  { width: 145px; height: 205px; top: 4px;  left: 65px; }
  .floating-badge { display: none; }

  /* Discovery */
  .profile-card { width: 300px; }

  /* Matches */
  .matches-grid { grid-template-columns: repeat(2, 1fr); }

  /* Chat — hide sidebar, full screen */
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; position: fixed; inset: 64px 0 0 0; z-index: 500; }
  .chat-sidebar.show { display: flex; }

  /* Profile photos */
  .profile-photos-grid { grid-template-columns: repeat(2,1fr); }
  .profile-body { padding: 52px 20px 28px; }

  /* Modal */
  .modal { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .profiles-grid { grid-template-columns: 1fr; }
  .liked-grid { grid-template-columns: repeat(2,1fr); }
}
