/* =====================================================
   TROPHY WIFE CONNECTION — Theme
   Brand palette:
   Noir #0D0D0F · Wine #5B0F2A · Gold #D4AF37 ·
   Ivory #F7F3EE · Gray #6B6B6B
   Headlines: Playfair Display · Body: Montserrat
   Love. Luxury. Loyalty.
   ===================================================== */
:root {
  --romance: #D4AF37;          /* primary accent = gold */
  --romance-dark: #B8942E;
  --wine: #5B0F2A;             /* deep burgundy */
  --wine-soft: #7A1638;
  --blush: #2A2419;            /* warm borders / soft fills on dark */
  --sand: #3A3327;             /* input borders */
  --sage: #C9A24B;             /* secondary gold */
  --gold: #D4AF37;
  --gold-light: #F0DC9A;
  --navy: #F7F3EE;             /* primary text (ivory on noir) */
  --muted: #B8B2A8;            /* warm light gray */
  --faint: #6B6B6B;            /* brand gray */
  --ivory: #0D0D0F;            /* page background (noir) */
  --deep: #08080A;             /* darker section background */
  --white: #17141A;            /* card / panel background */
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--navy);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.2; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; }

.accent { color: var(--gold); }
.gold { color: var(--gold); }
.script { font-family: 'Playfair Display', serif; font-style: italic; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid #221d16;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo img, .logo svg { width: 38px; height: 38px; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 21px; letter-spacing: 3px; color: #fff; text-transform: uppercase; font-weight: 600; }
.logo-text em { font-style: normal; color: var(--gold); }
.logo-text .tld { color: var(--gold); font-style: normal; }
.logo-sub { display: block; font-family: 'Montserrat', sans-serif; font-size: 8.5px; letter-spacing: 5px; color: var(--gold); text-transform: uppercase; font-weight: 500; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #E7E1D6; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.nav-links a:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 4px;
  background: linear-gradient(180deg, #E9CD73 0%, #C69B34 100%);
  color: #1A1206 !important; border: 0;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 1.8px; text-transform: uppercase; cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { background: linear-gradient(180deg, #F4DE93 0%, #D4AF37 100%); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(212, 175, 55, 0.28); }
.btn-outline { background: transparent; color: var(--gold) !important; border: 1.5px solid var(--gold); }
.btn-outline:hover { background: rgba(212,175,55,0.10); border-color: var(--gold-light); color: var(--gold-light) !important; box-shadow: none; }
.btn-sm { padding: 8px 18px; font-size: 11px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 90% at 85% 10%, #3a0a1c 0%, #1a0710 42%, #0D0D0F 100%);
  color: var(--navy);
  padding: 0; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(340px, 46%) 1fr; align-items: center; min-height: 560px; }
.hero-inner { padding: 70px 0 70px; position: relative; z-index: 3; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); margin: 0 0 20px; color: #fff; font-weight: 600; }
.hero h1 .gold { color: var(--gold); }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p.lead { font-size: 16.5px; color: #CFC8BC; margin-bottom: 32px; max-width: 460px; line-height: 1.75; }
.hero .btn { padding: 14px 26px; }
.hero .btn-outline { padding: 13px 24px; }
.hero-photo { position: relative; height: 100%; min-height: 560px; }
.hero-photo img.couple {
  position: absolute; right: 0; top: 0; height: 100%; width: 100%;
  object-fit: cover; object-position: center;
}
.hero-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #0D0D0F 0%, rgba(13,13,15,0.7) 20%, rgba(13,13,15,0) 55%),
              linear-gradient(0deg, #0D0D0F 0%, rgba(13,13,15,0) 20%),
              linear-gradient(180deg, #140407 0%, rgba(20,4,7,0) 14%);
}
.play-tri { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; margin-right: 9px; vertical-align: -1px; }

/* ---------- Value bar (hero footer strip) ---------- */
.value-bar { background: rgba(8,8,10,0.75); border-top: 1px solid #221d16; position: relative; z-index: 4; }
.value-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 20px; padding-bottom: 20px; }
.value-item { display: flex; gap: 12px; align-items: flex-start; }
.value-item .vi-ic { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.value-item h4 { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; margin: 0 0 3px; color: #fff; letter-spacing: .3px; }
.value-item p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Score card (hero overlay) ---------- */
.score-card {
  position: absolute; right: 28px; bottom: 26px; z-index: 4;
  background: rgba(8, 6, 8, 0.92); border: 1px solid #35301f;
  border-radius: 14px; padding: 22px 26px; width: 392px; max-width: calc(100% - 40px);
  box-shadow: var(--shadow); backdrop-filter: blur(4px);
}
.score-card .sc-title { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: #EDE7DE; margin-bottom: 16px; }
.score-flex { display: flex; gap: 22px; align-items: center; }
.ring { --pct: 95; width: 108px; height: 108px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 220deg, #D4AF37 calc(var(--pct) * 1%), #2a2419 0);
  display: flex; align-items: center; justify-content: center; position: relative; }
.ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #0b0a0c; }
.ring span { position: relative; font-family: 'Playfair Display', serif; font-size: 27px; color: #fff; }
.sc-rows { flex: 1; }
.sc-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #EDE7DE; padding: 4.5px 0; white-space: nowrap; }
.sc-row .ic { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #6b5a2e; color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.sc-row .pct { margin-left: auto; color: #fff; font-weight: 700; }
.sc-total { display: flex; border-top: 1px solid #2a2419; margin-top: 12px; padding-top: 12px;
  font-size: 14.5px; color: var(--gold); font-weight: 700; }
.sc-total .pct { margin-left: auto; }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section-alt { background: var(--deep); }
.eyebrow {
  color: var(--gold); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 10px;
}
.section h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 14px; color: #fff; }
.section-title-center { text-align: center; letter-spacing: 3px; text-transform: uppercase; font-family: 'Montserrat', sans-serif; font-size: 14px !important; font-weight: 500; color: #EDE7DE !important; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 46px; }
.feature { padding: 0 26px; text-align: center; border-right: 1px solid #221d16; }
.feature:last-child { border-right: 0; }
.feature .f-icon {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(180deg, #1c1710 0%, #141117 100%); border: 1px solid #4a3a1e;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 30px;
}
.feature h3 { font-family: 'Montserrat', sans-serif; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; font-weight: 700; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }

/* ---------- How it works / testimonial ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: stretch; margin-top: 10px; }
.how-card { background: #16131A; border: 1px solid #262119; border-radius: 16px; padding: 34px 36px; }
.how-card .hc-title { text-align: center; color: var(--gold); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 26px; }
.how-step { display: flex; gap: 18px; position: relative; padding-bottom: 26px; }
.how-step:last-child { padding-bottom: 0; }
.how-step::before { content: ''; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 1px; background: #2b2620; }
.how-step:last-child::before { display: none; }
.how-step .num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: #1e0a15; border: 1px solid #6b5a2e; color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 18px; position: relative; z-index: 1;
}
.how-step h3 { font-family: 'Montserrat', sans-serif; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin: 4px 0 6px; font-weight: 700; }
.how-step p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.65; }
.testimonial { border-radius: 16px; overflow: hidden; border: 1px solid #262119; min-height: 340px; background: #16131A; }
.testimonial img { width: 100%; height: 100%; object-fit: cover; display: block; }
.success-quote {
  background: radial-gradient(120% 120% at 15% 0%, #5B0F2A 0%, #2a0a16 45%, #16131A 100%);
  border: 1px solid #4a3a1e; display: flex; flex-direction: column; justify-content: center;
  padding: 44px 48px;
}
.success-quote .sq-mark { font-family: 'Playfair Display', serif; font-size: 78px; line-height: .5; color: var(--gold); opacity: .55; margin-bottom: 6px; }
.success-quote .sq-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 24px; line-height: 1.45; color: #F7F3EE; margin: 0 0 26px; }
.success-quote .sq-attrib { display: flex; flex-direction: column; gap: 3px; }
.success-quote .sq-name { font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; }
.success-quote .sq-meta { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.success-quote .sq-stars { color: var(--gold); font-size: 16px; letter-spacing: 3px; margin-top: 6px; }

/* ---------- Big CTA ---------- */
.big-cta { text-align: center; padding: 80px 0 40px; }
.big-cta h2 { font-size: clamp(28px, 3.8vw, 44px); margin: 0; color: #fff; }
.big-cta h2 .gold { color: var(--gold); }
.big-cta .sub-caps { font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--faint); margin-top: 26px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--blush);
  border-radius: 14px; padding: 38px; max-width: 460px; margin: 50px auto;
  box-shadow: var(--shadow);
}
.form-card h1 { font-size: 26px; margin: 0 0 4px; color: #fff; }
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; color: #EDE7DE; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--sand);
  border-radius: 6px; font-family: 'Montserrat', sans-serif; font-size: 15px;
  background: #100E12; color: var(--navy);
}
input::placeholder, textarea::placeholder { color: #6f6a60; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(212,175,55,0.35); border-color: var(--gold); }
.alert { padding: 13px 16px; border-radius: 6px; margin: 14px 0; font-size: 14px; }
.alert-error { background: rgba(91,15,42,0.35); border: 1px solid var(--wine-soft); color: #F3D6DE; }
.alert-ok { background: rgba(212,175,55,0.12); border: 1px solid var(--gold); color: #EFE3C4; }

.check-inline { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; margin: 16px 0 0; color: var(--muted); }
.check-inline input { width: auto; margin-top: 4px; accent-color: var(--gold); }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 640px; margin: 46px auto 80px; }
.quiz-card { background: var(--white); border: 1px solid var(--blush); border-radius: 14px; padding: 40px; box-shadow: var(--shadow); }
.quiz-progress { height: 6px; background: #100E12; border-radius: 99px; margin-bottom: 30px; overflow: hidden; border: 1px solid var(--blush); }
.quiz-progress > div { height: 100%; background: linear-gradient(90deg, var(--wine), var(--gold)); border-radius: 99px; transition: width .35s ease; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-step h2 { font-size: 23px; margin: 0 0 6px; color: #fff; }
.quiz-cat { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.quiz-help { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.choice {
  border: 1.5px solid var(--sand); border-radius: 8px; padding: 13px 16px;
  cursor: pointer; font-size: 14.5px; background: #100E12; color: #EDE7DE;
  transition: all .15s ease; display: flex; align-items: center; gap: 10px; user-select: none;
}
.choice:hover { border-color: var(--gold); }
.choice input { accent-color: var(--gold); margin: 0; }
.choice.selected { border-color: var(--gold); background: rgba(91,15,42,0.35); font-weight: 700; color: #fff; }
.scale-row { display: flex; gap: 8px; justify-content: space-between; }
.scale-row .choice { flex-direction: column; text-align: center; flex: 1; padding: 12px 6px; font-size: 12px; gap: 6px; }
.scale-row .choice b { font-size: 18px; font-family: 'Playfair Display', serif; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 30px; gap: 12px; }

/* ---------- Invite code box ---------- */
.code-box {
  background: #100E12; border: 2px dashed var(--gold); border-radius: 12px;
  padding: 22px; text-align: center; margin: 20px 0;
}
.code-box .code {
  font-family: monospace; font-size: 34px; letter-spacing: 8px; font-weight: 700;
  color: var(--gold-light);
}
.code-box .link { font-family: monospace; font-size: 12px; color: var(--muted); word-break: break-all; }

/* ---------- Report ---------- */
.result-wrap { max-width: 760px; margin: 46px auto 90px; }
.result-card { background: var(--white); border: 1px solid var(--blush); border-radius: 14px; padding: 48px; box-shadow: var(--shadow); }
.result-card h2 { border-bottom: 1px solid var(--blush); padding-bottom: 8px; margin-top: 34px; color: #fff; }
.gauge-wrap { text-align: center; padding: 10px 0 4px; }
.gauge-score { font-family: 'Playfair Display', serif; font-size: 74px; line-height: 1; }
.gauge-score small { font-size: 26px; color: var(--faint); }
.gauge-label { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.score-row { margin: 18px 0; }
.score-row .score-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; color: #EDE7DE; }
.score-row .score-head .num { font-family: 'Playfair Display', serif; font-size: 22px; }
.score-track { height: 12px; background: #100E12; border: 1px solid var(--sand); border-radius: 99px; margin: 7px 0 6px; overflow: hidden; }
.score-track > div { height: 100%; border-radius: 99px; }
.score-row p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.privacy-note {
  background: #100E12; border: 1px solid var(--sand); border-radius: 10px;
  padding: 14px 16px; font-size: 13px; color: var(--muted); margin-top: 26px;
}

/* ---------- Community ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 26px; }
.member-card { background: var(--white); border: 1px solid var(--blush); border-radius: 12px; padding: 22px; text-align: center; }
.member-card .avatar {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--wine), var(--gold)); color: #1A1206;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 24px;
}
.member-card h3 { margin: 0 0 4px; font-size: 18px; color: #fff; }
.member-card p { font-size: 13px; color: var(--muted); margin: 0 0 14px; min-height: 20px; }

/* ---------- Nav badges / banner ---------- */
.nav-badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 99px;
  background: var(--wine); color: #fff; font-size: 10.5px; font-weight: 700; text-align: center; }
.search-banner { background: var(--wine); color: #fff; font-size: 14px; padding: 9px 0; }
.search-banner a { color: var(--gold-light); }

/* ---------- Member grid (search) ---------- */
.filter-bar { background: var(--white); border: 1px solid var(--blush); border-radius: 12px;
  padding: 18px 20px; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filter-bar .fgroup { display: flex; flex-direction: column; gap: 4px; }
.filter-bar label { margin: 0; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.filter-bar input, .filter-bar select { padding: 9px 12px; font-size: 14px; min-width: 110px; }
.filter-bar .fcheck { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-bottom: 10px; }
.filter-bar .fcheck input { width: auto; accent-color: var(--gold); }

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; margin: 10px 0 60px; }
.mcard { display: block; border-radius: 12px; overflow: hidden; background: var(--white);
  border: 1px solid var(--blush); transition: transform .15s ease, box-shadow .15s ease; position: relative; color: var(--navy); }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); border-color: #4a3a1e; }
.mcard-photo { position: relative; aspect-ratio: 3 / 3.4; background: #100E12; }
.mcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 64px; color: #3a352e;
  background: linear-gradient(160deg, #17141A, #100E12); }
.photo-count { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 12px; padding: 2px 9px; border-radius: 6px; }
.badge-slot { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.card-badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.badge-gold { background: linear-gradient(180deg, #E9CD73, #C69B34); color: #1A1206; }
.badge-diamond { background: linear-gradient(180deg, #F7F3EE, #CFC9BE); color: #0D0D0F; }
.badge-new { background: rgba(247,243,238,.92); color: #1A1206; }
.badge-boost { background: var(--wine); color: #fff; }
.mcard-info { padding: 12px 16px 14px; }
.mcard-info h3 { margin: 0; font-size: 21px; color: #fff; display: flex; align-items: center; gap: 7px; }
.verified { color: #1A1206; background: var(--gold); border-radius: 50%; width: 17px; height: 17px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; display: inline-block; }
.mcard-meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Profile page ---------- */
.profile-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; margin: 40px 0 70px; align-items: start; }
.profile-photos .main-ph { border-radius: 12px; overflow: hidden; background: #100E12; border: 1px solid var(--blush); aspect-ratio: 3/3.4; }
.profile-photos .main-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.thumb-row .th { border-radius: 8px; overflow: hidden; aspect-ratio: 1; border: 1.5px solid var(--blush); cursor: pointer; background: #100E12; }
.thumb-row .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-row .th.locked { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 18px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.chip-btn { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--sand); background: #100E12;
  color: #EDE7DE; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.chip-btn:hover { border-color: var(--gold); color: #fff; }
.chip-btn.active { border-color: var(--gold); background: rgba(91,15,42,0.4); color: #fff; }

/* ---------- Messages ---------- */
.msg-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; margin: 36px 0 70px;
  border: 1px solid var(--blush); border-radius: 14px; overflow: hidden; min-height: 480px; background: var(--white); }
.msg-list { border-right: 1px solid var(--blush); overflow-y: auto; max-height: 640px; }
.msg-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #221d16; color: var(--navy); align-items: center; }
.msg-item:hover, .msg-item.active { background: #120F14; color: var(--navy); }
.msg-item .av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--wine), var(--gold)); display: flex; align-items: center; justify-content: center;
  color: #1A1206; font-family: 'Playfair Display', serif; font-size: 19px; }
.msg-item .av img { width: 100%; height: 100%; object-fit: cover; }
.msg-item .who { font-weight: 700; font-size: 14.5px; color: #fff; }
.msg-item .prev { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.msg-thread { display: flex; flex-direction: column; }
.msg-scroll { flex: 1; padding: 22px; overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 72%; padding: 10px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.bubble.mine { align-self: flex-end; background: var(--wine); color: #fff; border-bottom-right-radius: 5px; }
.bubble.theirs { align-self: flex-start; background: #100E12; border: 1px solid var(--blush); color: #EDE7DE; border-bottom-left-radius: 5px; }
.bubble .t { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; }
.msg-compose { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--blush); }
.msg-compose textarea { flex: 1; resize: none; height: 52px; }

/* ---------- Interests tabs ---------- */
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.tab-row a { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--sand); color: var(--muted); font-size: 13px; font-weight: 600; }
.tab-row a.active { border-color: var(--gold); background: rgba(91,15,42,0.4); color: #fff; }

/* ---------- Photo manager ---------- */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 14px; }
.pm-item { position: relative; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--blush); aspect-ratio: 1; background: #100E12; }
.pm-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-item .pm-tags { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.pm-item .pm-actions { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.7);
  display: flex; justify-content: space-around; padding: 5px 4px; }
.pm-item .pm-actions button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 11.5px; font-family: inherit; }
.pm-item .pm-actions button:hover { color: var(--gold-light); }

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-list { max-height: 220px; }
}

/* ---------- Loading heart ---------- */
.loading-screen { text-align: center; padding: 80px 20px; }
.heart-beat { font-size: 60px; color: var(--gold); animation: beat 1.1s infinite; display: inline-block; }
@keyframes beat { 0%,100% { transform: scale(1); } 25% { transform: scale(1.18); } 40% { transform: scale(1); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); border-top: 1px solid #221d16; padding: 44px 0 30px; margin-top: 40px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: center; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 28px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.footer-badges span { display: flex; align-items: center; gap: 10px; }
.footer-badges svg { color: var(--gold); }
.footer-script { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); font-size: 17px; }
.footer-copy { font-size: 12px; color: var(--faint); margin-top: 26px; text-align: center; }

/* ===================================================
   ADMIN (same framework, noir + gold)
   =================================================== */
.admin-layout { display: flex; min-height: 100vh; background: var(--ivory); }
.admin-side {
  width: 220px; background: var(--deep); border-right: 1px solid #221d16;
  padding: 24px 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .logo { padding: 0 22px 20px; border-bottom: 1px solid #221d16; margin-bottom: 14px; }
.admin-side nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 22px;
  color: #E7E1D6; font-size: 14px; border-left: 3px solid transparent;
}
.admin-side nav a.active, .admin-side nav a:hover { background: #17141A; border-left-color: var(--gold); color: #fff; }
.admin-side nav a .uic { color: var(--gold); opacity: .85; }
.admin-side nav a.active .uic, .admin-side nav a:hover .uic { opacity: 1; }
.admin-main { flex: 1; padding: 30px 36px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 14px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 26px; color: #fff; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat {
  background: var(--white); border: 1px solid var(--blush); border-radius: 10px; padding: 18px 20px;
}
.stat .n { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--gold); }
.stat .l { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

.panel { background: var(--white); border: 1px solid var(--blush); border-radius: 10px; padding: 22px 24px; margin-bottom: 24px; overflow-x: auto; }
.panel h2 { font-size: 18px; margin: 0 0 14px; color: #fff; }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; color: #EDE7DE; }
table.data th {
  text-align: left; padding: 9px 12px; border-bottom: 2px solid var(--blush);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
table.data td { padding: 9px 12px; border-bottom: 1px solid #221d16; vertical-align: top; }
table.data tr:hover td { background: #120F14; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.tag-rose { background: rgba(91,15,42,0.4); color: #E9A9BC; }
.tag-sage { background: rgba(201,162,75,0.2); color: #E8C87A; }
.tag-navy { background: #ffffff14; color: #EDE7DE; }
.tag-gold { background: rgba(212,175,55,0.16); color: #E8C87A; }
.mono { font-family: monospace; font-size: 12px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; color: #EDE7DE; }
.bar-row .bar { height: 10px; background: var(--gold); border-radius: 99px; min-width: 2px; }
.bar-row .bar.sage { background: var(--wine); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { min-height: 520px; }
  .split { grid-template-columns: 1fr; }
  .value-bar .container { grid-template-columns: 1fr 1fr; gap: 18px; }
  .feature { border-right: 0; border-bottom: 1px solid #221d16; padding-bottom: 26px; }
  .feature:last-child { border-bottom: 0; }
  .score-card { right: 12px; bottom: 12px; }
}
@media (max-width: 800px) {
  .admin-layout { flex-direction: column; }
  .admin-side {
    width: 100%; max-width: 100%; height: auto; position: static;
    display: block; overflow-x: hidden; padding: 8px 0;
  }
  .admin-side .logo { border: 0; padding: 6px 16px 10px; margin: 0; }
  /* Wrap the admin nav to multiple rows so it never runs off-screen */
  .admin-side nav { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 0 8px; }
  .admin-side nav a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .admin-side nav a.active { border-bottom-color: var(--gold); }
  .admin-main { padding: 22px 16px; }
  /* Member header: wrap instead of overflowing on small screens */
  .nav { flex-wrap: wrap; row-gap: 6px; }
  .nav-links { flex-wrap: wrap; gap: 10px 16px; justify-content: flex-start; }
  .nav-links .hide-m { display: none; }
  .scale-row { flex-wrap: wrap; }
  .value-bar .container { grid-template-columns: 1fr; }
}

/* =====================================================
   LUXURY EDITORIAL LAYER — Trophy Wife Connection
   Photography-led composition, depth, restrained motion
   ===================================================== */

/* Film-grain + vignette utility for cinematic depth */
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Scroll-reveal — progressive enhancement: only hides when JS is present.
   Without JS (or reduced motion) content is fully visible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16,.7,.3,1), transform .8s cubic-bezier(.16,.7,.3,1); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

.gold-rule { width: 64px; height: 2px; border: 0; margin: 0 0 22px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 55%, var(--gold) 80%, transparent); }
.gold-rule.center { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.kicker { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }
.section-lux { position: relative; padding: 110px 0; overflow: hidden; }
.section-lux .container { position: relative; z-index: 2; }
.bg-glow-wine { background:
  radial-gradient(90% 70% at 12% 0%, rgba(91,15,42,0.5) 0%, rgba(91,15,42,0) 55%),
  radial-gradient(70% 60% at 100% 100%, rgba(91,15,42,0.32) 0%, rgba(91,15,42,0) 55%),
  #0B0B0D; }
.bg-charcoal { background: linear-gradient(180deg, #0B0B0D 0%, #101012 50%, #0B0B0D 100%); }

/* Hero refinements — cinematic couple, softened seam, floating instrument card */
.hero { border-bottom: 1px solid #1c1810; }
.hero-photo img.couple { filter: saturate(1.03) contrast(1.02); }
.hero-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 100% at 70% 40%, transparent 40%, rgba(8,8,10,0.5) 100%);
}
.hero .eyebrow.kicker { margin-bottom: 18px; }

/* Editorial full-bleed statement band (photography-led) */
.editorial-band { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; }
.editorial-band .eb-photo { position: absolute; inset: 0; z-index: 0; }
.editorial-band .eb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.editorial-band .eb-photo::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,9,11,0.92) 0%, rgba(9,9,11,0.7) 42%, rgba(30,8,16,0.45) 100%),
              linear-gradient(0deg, rgba(9,9,11,0.85) 0%, rgba(9,9,11,0) 40%); }
.editorial-band .container { position: relative; z-index: 2; }
.editorial-band .eb-inner { max-width: 640px; padding: 70px 0; }
.editorial-band h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; margin: 0 0 18px; color: #fff; font-weight: 600; }
.editorial-band h2 em { color: var(--gold); font-style: italic; }
.editorial-band p { font-size: 17px; color: #D8D2C7; max-width: 500px; line-height: 1.7; margin: 0 0 28px; }

/* The Method — numbered editorial timeline */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.method-steps { display: flex; flex-direction: column; }
.mstep { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid #241f16; position: relative; }
.mstep:first-child { border-top: 0; }
.mstep .mnum { font-family: 'Playfair Display', serif; font-size: 46px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); letter-spacing: 1px; min-width: 66px; }
.mstep .mbody h3 { font-family: 'Montserrat', sans-serif; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin: 4px 0 8px; font-weight: 700; }
.mstep .mbody p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.65; max-width: 380px; }
.mstep .mbody .mic { color: var(--gold); margin-bottom: 8px; display: inline-flex; }
.method-photo { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); border: 1px solid #2b2620; }
.method-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.method-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,9,11,0.5) 0%, rgba(9,9,11,0) 45%); }
.method-photo .mp-tag { position: absolute; left: 22px; bottom: 20px; z-index: 2; color: #fff; font-family: 'Playfair Display', serif; font-style: italic; font-size: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }

/* Success Story — cinematic split */
.success-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid #2b2620; border-radius: 6px; overflow: hidden; background: #100E12; }
.success-split .ss-photo { position: relative; min-height: 520px; }
.success-split .ss-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.success-split .ss-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,9,11,0) 60%, rgba(16,14,18,0.9) 100%); }
.success-split .ss-body { padding: 60px 56px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 120% at 100% 0%, rgba(91,15,42,0.35) 0%, rgba(16,14,18,0) 55%), #100E12; }
.success-split .ss-quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; color: #F7F3EE; margin: 20px 0 30px; }
.success-split .ss-quote .qm { font-size: 60px; color: var(--gold); opacity: .5; line-height: 0; display: block; height: 26px; }
.success-split .ss-name { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; }
.success-split .ss-meta { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.success-split .ss-stars { color: var(--gold); letter-spacing: 4px; margin-top: 12px; font-size: 15px; }
.ss-sample { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: #5f5a50; margin-top: 20px; }

/* Compatibility preview — "show the product" */
.compat-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.compat-instrument { background: linear-gradient(180deg, rgba(23,20,26,0.9), rgba(11,10,12,0.9)); border: 1px solid #35301f;
  border-radius: 10px; padding: 40px 42px; box-shadow: var(--shadow); position: relative; }
.compat-instrument::before { content: ''; position: absolute; inset: 0; border-radius: 10px; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(212,175,55,0.18); }
.ci-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.ci-big { font-family: 'Playfair Display', serif; font-size: 68px; line-height: .9; color: var(--gold); }
.ci-big small { font-size: 22px; color: var(--muted); }
.ci-label { text-align: right; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.ci-metric { margin: 15px 0; }
.ci-metric .cm-head { display: flex; justify-content: space-between; font-size: 13px; color: #EDE7DE; margin-bottom: 6px; letter-spacing: .3px; }
.ci-metric .cm-head b { color: var(--gold); font-weight: 700; }
.ci-track { height: 6px; background: #211d15; border-radius: 99px; overflow: hidden; }
.ci-track > i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--wine), var(--gold)); transition: width 1.3s cubic-bezier(.2,.7,.2,1); }
.ci-why { margin-top: 26px; border-top: 1px solid #2b2620; padding-top: 20px; }
.ci-why .cw-k { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.ci-why p { margin: 0; font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; line-height: 1.5; color: #E7E1D6; }

/* Refined feature section (Built for Intentional Connections) */
.section-alt.section-lux .features { margin-top: 54px; }
.feature { transition: transform .3s ease; }
.feature:hover { transform: translateY(-4px); }
.feature:hover .f-icon { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.06); }
.f-icon { transition: border-color .3s ease, box-shadow .3s ease; }

/* Brand-moment CTA over atmosphere */
.brand-moment { position: relative; overflow: hidden; text-align: center; padding: 120px 0; }
.brand-moment .bm-photo { position: absolute; inset: 0; z-index: 0; }
.brand-moment .bm-photo img { width: 100%; height: 100%; object-fit: cover; }
.brand-moment .bm-photo::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 90% at 50% 40%, rgba(9,9,11,0.72) 0%, rgba(9,9,11,0.94) 70%),
              linear-gradient(0deg, rgba(30,8,16,0.5), rgba(9,9,11,0.2)); }
.brand-moment .container { position: relative; z-index: 2; }
.brand-moment h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 0 0 10px; color: #fff; line-height: 1.12; }
.brand-moment h2 .gold { color: var(--gold); font-style: italic; }
.brand-moment p.bm-sub { max-width: 540px; margin: 18px auto 34px; color: #D8D2C7; font-size: 16px; line-height: 1.7; }

@media (max-width: 900px) {
  .section-lux { padding: 72px 0; }
  .method-grid, .compat-preview { grid-template-columns: 1fr; gap: 40px; }
  .method-photo { aspect-ratio: 16/11; max-height: 360px; order: -1; }
  .success-split { grid-template-columns: 1fr; }
  .success-split .ss-photo { min-height: 320px; }
  .success-split .ss-photo::after { background: linear-gradient(0deg, rgba(16,14,18,0.95) 0%, rgba(9,9,11,0) 55%); }
  .success-split .ss-body { padding: 40px 30px; }
  .editorial-band .eb-inner { padding: 56px 0; }
  .compat-instrument { padding: 30px 26px; }
  .ci-big { font-size: 54px; }
}
@media (max-width: 560px) {
  .mstep { grid-template-columns: 1fr; gap: 6px; }
  .mstep .mnum { font-size: 38px; }
  .section-lux { padding: 56px 0; }
}
