/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --coral:       #EF6562;
  --crimson:     #dc0c08;
  --gold:        #C49A3C;
  --gold-light:  #F0D98A;
  --near-black:  #1C1917;
  --warm-mid:    #57534E;
  --warm-soft:   #A8A29E;
  --warm-pale:   #F5EFEE;
  --surface:     #FFFFFF;
  --surface-alt: #FFF9F9;
  --border:      #EDE0DF;

  --text-strong: var(--near-black);
  --text-body:   var(--warm-mid);
  --text-muted:  var(--warm-soft);
  --bg:          var(--surface);
  --bg-alt:      var(--surface-alt);
  --card-bg:     var(--surface);
  --card-border: var(--border);
  --nav-bg:      rgba(255,255,255,0.97);
  --footer-bg:   #1C1412;
  --sidebar-bg:  #FFF9F9;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --shadow-sm:  0 1px 4px rgba(28,20,18,.07);
  --shadow-md:  0 4px 20px rgba(28,20,18,.10);
  --shadow-lg:  0 12px 40px rgba(28,20,18,.13);

  --nav-h: 68px;
}
[data-theme="dark"], @media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --near-black:  #F5F0EE; --warm-mid: #C4B8B4; --warm-soft: #6B5F5B;
    --surface:     #1A1210; --surface-alt: #221816; --border: #3A2A27;
    --text-strong: #F5F0EE; --text-body: #C4B8B4; --text-muted: #6B5F5B;
    --bg: #1A1210; --bg-alt: #221816; --card-bg: #221816; --card-border: #3A2A27;
    --nav-bg: rgba(26,18,16,0.97); --sidebar-bg: #1e1513;
  }
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Container ─────────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 520px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.display { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,3.4rem); font-weight: 700; line-height: 1.14; color: var(--text-strong); }
.section-label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700; color: var(--text-strong); line-height: 1.2; margin-top: 8px; }
.page-title { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem,3vw,2rem); font-weight: 700; color: var(--text-strong); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--crimson), var(--coral));
  color: #fff; font-size: .9rem; font-weight: 600; border: none;
  box-shadow: 0 2px 10px rgba(239,101,98,.3);
  transition: opacity .15s, transform .1s;
  cursor: pointer;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-primary.btn-lg { padding: 13px 28px; font-size: 1rem; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--card-border); font-size: .9rem; font-weight: 500;
  color: var(--text-strong); background: transparent;
  transition: border-color .15s, color .15s; cursor: pointer;
}
.btn-outline:hover { border-color: var(--coral); color: var(--coral); }
.btn-outline.btn-sm { padding: 6px 13px; font-size: .8rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
  background: transparent; border: none;
  transition: color .15s, background .15s; cursor: pointer;
}
.btn-ghost:hover { color: var(--coral); background: rgba(239,101,98,.06); }

.btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: var(--radius-sm);
  background: transparent; border: 1.5px solid #ef4444;
  color: #ef4444; font-size: .9rem; font-weight: 500;
  transition: background .15s; cursor: pointer;
}
.btn-danger:hover { background: rgba(239,68,68,.07); }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,var(--crimson),var(--coral)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--text-strong); line-height: 1.15; }
.nav-logo-text span { display: block; font-size: .6rem; font-family: 'DM Sans', sans-serif; font-weight: 400; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; list-style: none; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--text-body); transition: color .15s; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--coral); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Avatar + dropdown */
.nav-avatar-wrap { position: relative; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--card-border);
  overflow: hidden; cursor: pointer; position: relative;
  background: linear-gradient(135deg,var(--crimson),var(--coral));
  transition: border-color .15s;
  display: flex; align-items: center; justify-content: center;
}
.nav-avatar:hover { border-color: var(--coral); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar-initial { color: #fff; font-weight: 700; font-size: .9rem; }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 200px; z-index: 300; overflow: hidden;
}
.nav-dropdown.open { display: block; }
.nav-dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--card-border); }
.nav-dropdown-header strong { display: block; font-size: .9rem; color: var(--text-strong); }
.nav-dropdown-header small { font-size: .75rem; color: var(--text-muted); }
.nav-dropdown-items a { display: block; padding: 10px 16px; font-size: .88rem; color: var(--text-body); transition: background .12s, color .12s; }
.nav-dropdown-items a:hover { background: var(--bg-alt); color: var(--coral); }
.nav-dropdown-items a.danger { color: #ef4444; }
.nav-dropdown-items a.danger:hover { background: rgba(239,68,68,.06); }
.nav-dropdown-divider { height: 1px; background: var(--card-border); margin: 4px 0; }

.status-badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; letter-spacing: .02em; }
.status-pending { background: rgba(251,146,60,.12); color: #c2590a; }
.status-active  { background: rgba(34,197,94,.12);  color: #15803d; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-strong); border-radius: 2px; }

.mobile-menu { display: none; position: fixed; inset: 0; z-index: 199; background: var(--nav-bg); backdrop-filter: blur(16px); flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.2rem; font-weight: 600; color: var(--text-strong); }
.mobile-menu a.danger { color: #ef4444; }
.mobile-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.8rem; color: var(--text-strong); cursor: pointer; }

/* ── Main content offset ──────────────────────────────────────────────────── */
.main-content { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--text-strong); }
.form-label .req { color: var(--coral); margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--card-border);
  background: var(--bg); color: var(--text-strong);
  font-size: .95rem; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(239,101,98,.12); }
.form-control.error { border-color: #ef4444; }
.form-hint { font-size: .78rem; color: var(--text-muted); }
.form-error { font-size: .78rem; color: #ef4444; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section { display: flex; flex-direction: column; gap: 18px; }
.form-divider { height: 1px; background: var(--card-border); margin: 4px 0; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); }
.card-body { padding: 24px; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--card-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header-title { font-weight: 700; color: var(--text-strong); font-size: .95rem; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--card-border); }

/* ── Profile cards (grid of members) ─────────────────────────────────────── */
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
/* Page number chips */
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-body);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  line-height: 1;
}
.page-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(239,101,98,.07);
  box-shadow: 0 2px 8px rgba(239,101,98,.12);
}
/* Active page */
.page-btn-active {
  background: linear-gradient(135deg, var(--crimson), var(--coral));
  border-color: transparent;
  color: #fff !important;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 3px 10px rgba(220,12,8,.25);
}
/* Disabled Prev/Next */
.page-btn-disabled {
  opacity: .3;
  cursor: not-allowed;
  pointer-events: none;
}
/* Prev / Next nav buttons — wider with arrows */
.page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-body);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.page-nav-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(239,101,98,.07);
  box-shadow: 0 2px 8px rgba(239,101,98,.12);
}
.page-nav-btn svg { flex-shrink: 0; }
.page-ellipsis { color: var(--text-muted); font-size: .9rem; padding: 0 2px; line-height: 40px; }

.profile-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.profile-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.profile-card-photo {
  width: 100%; aspect-ratio: 1/1.1; background: var(--warm-pale);
  position: relative; overflow: hidden;
}
.profile-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-card-photo-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--crimson), var(--coral));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700; color: rgba(255,255,255,.8);
}
.profile-card-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: #3A2700;
  font-size: .65rem; font-weight: 700; padding: 3px 8px;
  border-radius: 50px; letter-spacing: .03em;
}
.profile-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.profile-card-name { font-weight: 700; color: var(--text-strong); font-size: 1rem; }
.profile-card-meta { font-size: .82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.profile-card-meta span::before { content: '·'; margin-right: 6px; }
.profile-card-meta span:first-child::before { display: none; }
.profile-card-score { margin-top: auto; padding-top: 10px; }
.match-bar { height: 4px; border-radius: 2px; background: var(--card-border); margin-top: 4px; overflow: hidden; }
.match-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--crimson), var(--coral)); }
.match-pct { font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.profile-card-actions { padding: 12px 16px; border-top: 1px solid var(--card-border); display: flex; gap: 8px; }
.profile-card-actions .btn-primary,
.profile-card-actions .btn-outline { flex: 1; justify-content: center; }

/* ── Interest / list cards (horizontal) ──────────────────────────────────── */
.list-cards { display: flex; flex-direction: column; gap: 12px; }
.list-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: box-shadow .15s;
}
.list-card:hover { box-shadow: var(--shadow-sm); }
.list-card-avatar {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: linear-gradient(135deg,var(--crimson),var(--coral));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1.2rem;
}
.list-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.list-card-info { flex: 1; min-width: 0; }
.list-card-name { font-weight: 700; color: var(--text-strong); font-size: .95rem; }
.list-card-meta { font-size: .82rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-card-time { font-size: .75rem; color: var(--text-muted); flex-shrink: 0; }
.list-card-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Page layout (sidebar + content) ─────────────────────────────────────── */
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 36px 0 60px; }
.page-content-only { padding: 36px 0 60px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--sidebar-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); overflow: hidden; }
.sidebar-card-header { padding: 14px 16px; border-bottom: 1px solid var(--card-border); font-weight: 700; font-size: .85rem; color: var(--text-strong); }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: .88rem; color: var(--text-body); transition: background .12s, color .12s; border-left: 3px solid transparent; }
.sidebar-nav a:hover { background: var(--card-bg); color: var(--coral); }
.sidebar-nav a.active { border-left-color: var(--coral); background: var(--card-bg); color: var(--coral); font-weight: 600; }
.sidebar-nav a .icon { font-size: 1rem; width: 20px; text-align: center; }
/* Disabled sidebar nav rows (same height/padding as active <a> rows) */
.sidebar-nav-disabled {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: .88rem;
  color: var(--text-muted);
  opacity: .45;
  cursor: not-allowed;
  border-left: 3px solid transparent;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}
.sidebar-nav-disabled .icon { font-size: 1rem; width: 20px; text-align: center; }

/* ── Auth pages (login / register) ───────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 32px) 24px 48px; }
.auth-box { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg,var(--crimson),var(--coral)); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; margin: 0 auto 12px; }
.auth-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--text-strong); text-align: center; }
.auth-sub { font-size: .9rem; color: var(--text-muted); text-align: center; margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--text-muted); }
.auth-footer a { color: var(--coral); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Alert boxes ──────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; display: flex; align-items: flex-start; gap: 10px; }
.alert-error   { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.2);  color: #b91c1c; }
.alert-success { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.2);  color: #15803d; }
.alert-info    { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); color: #1d4ed8; }
.alert-warning { background: rgba(251,146,60,.08); border: 1px solid rgba(251,146,60,.2); color: #c2590a; }
.alert-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--card-border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn { padding: 10px 18px; font-size: .88rem; font-weight: 600; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s, border-color .15s; white-space: nowrap; margin-bottom: -2px; }
.tab-btn:hover { color: var(--text-strong); }
.tab-btn.active { color: var(--coral); border-bottom-color: var(--coral); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Profile detail page ──────────────────────────────────────────────────── */
.profile-detail-header { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.profile-detail-photos { display: flex; flex-direction: column; gap: 12px; }
.profile-main-photo { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; background: var(--warm-pale); }
.profile-main-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-main-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,var(--crimson),var(--coral)); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 5rem; color: rgba(255,255,255,.7); font-weight: 700; }

.profile-detail-info { display: flex; flex-direction: column; gap: 20px; }
.profile-name-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.profile-display-name { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--text-strong); }
.profile-ffid { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; letter-spacing: .02em; }
.badge-verified   { background: rgba(34,197,94,.1);  color: #15803d; }
.badge-unverified { background: rgba(156,163,175,.15); color: #6b7280; }
.badge-first-gen  { background: rgba(239,101,98,.1);  color: var(--crimson); }
.badge-pending    { background: rgba(251,146,60,.1);  color: #c2590a; }

.profile-quick-facts { display: flex; flex-wrap: wrap; gap: 16px; }
.quick-fact { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--text-body); }
.quick-fact-icon { color: var(--coral); font-size: .95rem; }

.profile-section-title { font-weight: 700; color: var(--text-strong); font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; font-size: .72rem; margin-bottom: 12px; }
.profile-details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.detail-item { display: flex; flex-direction: column; gap: 3px; }
.detail-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.detail-value { font-size: .9rem; color: var(--text-strong); font-weight: 500; }

/* ── Stats / counters ─────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.stat-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.stat-card-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--coral); line-height: 1; }
.stat-card-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.progress-bar { height: 8px; border-radius: 4px; background: var(--card-border); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,var(--crimson),var(--coral)); transition: width .4s; }
.progress-label { display: flex; justify-content: space-between; font-size: .78rem; }

/* ── Search form ──────────────────────────────────────────────────────────── */
.search-bar { display: flex; gap: 12px; margin-bottom: 28px; }
.search-bar .form-control { flex: 1; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-row .form-control { flex: 1; min-width: 140px; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty-state { padding: 60px 24px; text-align: center; }
.empty-state-icon { font-size: 3rem; margin-bottom: 14px; opacity: .5; }
.empty-state-title { font-weight: 700; color: var(--text-strong); font-size: 1.05rem; margin-bottom: 6px; }
.empty-state-desc { font-size: .9rem; color: var(--text-muted); }

/* ── Spinner ──────────────────────────────────────────────────────────────── */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--card-border); border-top-color: var(--coral); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; justify-content: center; padding: 48px; }

/* ── Page header strip ────────────────────────────────────────────────────── */
.page-header { background: var(--bg-alt); border-bottom: 1px solid var(--card-border); padding: 28px 0; margin-bottom: 0; }
.page-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-header-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--text-strong); }
.page-header-sub { font-size: .9rem; color: var(--text-muted); margin-top: 2px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--coral); }
.breadcrumb-sep { opacity: .4; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.55); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-tagline { font-size: .85rem; line-height: 1.6; max-width: 220px; }
.footer-col-title { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .85rem; transition: color .15s; }
.footer-links a:hover { color: var(--coral); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .78rem; }
.footer-bottom a:hover { color: var(--coral); }
.footer-logo-img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 12px; display: block; }
.footer-social { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  transition: transform .15s, opacity .15s;
  flex-shrink: 0;
  text-decoration: none;
}
.social-btn:hover { transform: translateY(-2px); opacity: .88; }
/* Brand colours */
.social-btn-wa    { background: #25D366; }
.social-btn-play  { background: #01875f; }
.social-btn-apple { background: #555; }
.social-btn-fb    { background: #1877F2; }
.social-btn-ig    { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }

/* ── OTP input ────────────────────────────────────────────────────────────── */
.otp-group { display: flex; gap: 10px; }
.otp-input { width: 48px; height: 54px; text-align: center; font-size: 1.3rem; font-weight: 700; border-radius: var(--radius-sm); border: 1.5px solid var(--card-border); background: var(--bg); color: var(--text-strong); outline: none; transition: border-color .15s; }
.otp-input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(239,101,98,.12); }

/* ── Tooltip chip ─────────────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; background: var(--warm-pale); color: var(--text-body); }
.chip-coral { background: rgba(239,101,98,.1); color: var(--crimson); }
.chip-gold  { background: rgba(196,154,60,.12); color: #7A5500; }
.chip-green { background: rgba(34,197,94,.1);   color: #15803d; }
.chip-grey  { background: rgba(168,162,158,.15); color: var(--text-muted); }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--card-border); }
.divider-label { display: flex; align-items: center; gap: 14px; font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }

/* ── Reveal animation ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Phone field (country code + number) ─────────────────────────────────── */
.phone-field {
  display: flex;
  width: 100%;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.phone-field:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(239,101,98,.12);
}
.phone-field select {
  border: none;
  border-right: 1.5px solid var(--card-border);
  border-radius: 0;
  background: var(--bg-alt);
  color: var(--text-strong);
  font-weight: 600;
  font-size: .88rem;
  padding: 11px 10px;
  min-width: 84px;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.phone-field input {
  border: none;
  outline: none;
  background: var(--bg);
  color: var(--text-strong);
  font-size: .95rem;
  padding: 11px 14px;
  width: 100%;
  font-family: inherit;
}
.phone-field select:focus,
.phone-field input:focus { box-shadow: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .profile-detail-header { grid-template-columns: 1fr; }
  .profile-detail-photos { flex-direction: row; overflow-x: auto; }
  .profile-main-photo { min-width: 240px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .profiles-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .list-card-actions { display: none; }
  .auth-box { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .profiles-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
