:root {
  --emerald-900: #0b3d2e;
  --emerald-700: #14543f;
  --emerald-600: #1a6b50;
  --emerald-500: #228a67;
  --gold: #c9a24b;
  --gold-soft: #e7d4a0;
  --cream: #f7f3ea;
  --ink: #1d2420;
  --muted: #6b7770;
  --line: #e2ddd0;
  --white: #ffffff;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(11, 61, 46, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Karla", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(201,162,75,0.10), transparent),
    var(--cream);
  line-height: 1.55;
}

h1, h2, h3, .brand-mark {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--emerald-600); }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: var(--emerald-900);
  color: var(--cream);
}
.brand-mark { font-size: 1.5rem; color: var(--cream); text-decoration: none; }
.brand-mark span { color: var(--gold); }
.topbar nav { display: flex; align-items: center; gap: 10px; }
.topbar nav a {
  position: relative; color: rgba(247,243,234,0.92); text-decoration: none;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(247,243,234,0.06);
  border: 1px solid rgba(247,243,234,0.12);
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}
.topbar nav a:hover {
  color: #fff; background: rgba(216,179,90,0.16);
  border-color: rgba(216,179,90,0.55); transform: translateY(-1px);
}
/* "Sign out" gets a quieter look so it doesn't compete */
.topbar nav a.nav-signout {
  background: transparent; border-color: rgba(247,243,234,0.16);
  color: rgba(247,243,234,0.72);
}
.topbar nav a.nav-signout:hover {
  background: rgba(247,243,234,0.08); color: #fff; border-color: rgba(247,243,234,0.3);
}
@media (max-width: 640px) {
  .topbar nav { flex-wrap: wrap; gap: 6px; }
  .topbar nav a { padding: 7px 12px; font-size: .85rem; }
}

/* ---------- shell ---------- */
.shell { max-width: 860px; margin: 40px auto; padding: 0 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
}

/* ---------- stepper ---------- */
.stepper { display: flex; gap: 8px; margin-bottom: 30px; }
.step-pill {
  flex: 1; text-align: center; font-size: .8rem; padding: 10px 6px;
  border-radius: 999px; background: #eee7d7; color: var(--muted);
  border: 1px solid transparent; transition: .25s;
}
.step-pill.active { background: var(--emerald-700); color: var(--cream); }
.step-pill.done { background: var(--gold-soft); color: var(--emerald-900); border-color: var(--gold); }

.step-head { margin: 0 0 4px; font-size: 1.6rem; color: var(--emerald-900); }
.step-sub { margin: 0 0 26px; color: var(--muted); }

/* ---------- form ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 620px){ .grid { grid-template-columns: 1fr; } }

label.field { display: block; }
label.field > span { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--emerald-700); }

input[type=text], input[type=number], input[type=date], input[type=tel],
select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fcfbf7; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(34,138,103,0.15);
}
textarea { min-height: 96px; resize: vertical; }

.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--emerald-600); }

.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 5px; display: block; }

.caste-box {
  grid-column: 1 / -1;
  background: #f3f7f4; border: 1px dashed var(--emerald-500);
  border-radius: 12px; padding: 16px 18px;
}
.caste-box .tag { display:inline-block; font-size:.72rem; font-weight:700; color: var(--emerald-700);
  background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- actions ---------- */
.actions { display: flex; justify-content: space-between; margin-top: 30px; }
.btn {
  border: none; cursor: pointer; font: inherit; font-weight: 700;
  padding: 12px 26px; border-radius: 10px; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--emerald-700); color: var(--cream); }
.btn-primary:hover { background: var(--emerald-900); }
.btn-ghost { background: transparent; color: var(--emerald-700); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--emerald-500); }
.btn-gold { background: var(--gold); color: var(--emerald-900); }
.btn-gold:hover { background: #b8923f; }

/* ---------- toast / summary ---------- */
.toast { background: var(--emerald-700); color: var(--cream); padding: 14px 18px;
  border-radius: 10px; margin-bottom: 22px; }
.summary-row { display:flex; justify-content:space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-row span:first-child { color: var(--muted); }
.badge-review { background: var(--gold-soft); color: var(--emerald-900); padding: 4px 12px; border-radius: 999px; font-size:.8rem; font-weight:700; }

/* ============ SEARCH & BROWSE ============ */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 820px){ .search-layout { grid-template-columns: 1fr; } }

.filter-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; align-self: start; position: sticky; top: 20px;
}
.filter-card .field { margin-bottom: 14px; }

.results-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 18px; }
.results-head select { padding: 8px 12px; border-radius: 8px; border:1px solid var(--line); font:inherit; background:#fcfbf7; }

.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

.match-card {
  display:block; text-decoration:none; color:inherit; background:var(--white);
  border:1px solid var(--line); border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.match-card:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(11,61,46,0.16); }

.match-photo {
  position:relative; height:180px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-900));
}
.match-photo.locked { background: linear-gradient(135deg, #cfc7b3, #a99e82); }
.match-photo .initials { font-family:"Fraunces",serif; font-size:3rem; color: var(--gold-soft); }
.lock-label { color: #fff; font-size:.8rem; font-weight:700; opacity:.9; }
.score-chip {
  position:absolute; top:10px; right:10px; background: var(--gold); color: var(--emerald-900);
  font-size:.72rem; font-weight:700; padding:4px 9px; border-radius:999px;
}
.match-body { padding: 14px 16px; }
.match-name { margin:0 0 4px; font-size:1.1rem; color:var(--emerald-900); }
.match-meta { margin:1px 0; font-size:.82rem; color:var(--muted); }

.pager { display:flex; gap:6px; justify-content:center; margin-top: 26px; }
.page-link { padding:8px 13px; border:1px solid var(--line); border-radius:8px; text-decoration:none; color:var(--emerald-700); background:var(--white); }
.page-link.current { background: var(--emerald-700); color: var(--cream); border-color: var(--emerald-700); }

/* ---------- detail ---------- */
.detail-layout { display:grid; grid-template-columns: 1fr 300px; gap: 24px; max-width:1000px; margin:0 auto; }
@media (max-width: 820px){ .detail-layout { grid-template-columns: 1fr; } }
.detail-header { display:flex; gap:22px; margin-bottom: 10px; }
.detail-photo {
  width:150px; height:150px; flex:none; border-radius:14px; display:flex;
  align-items:center; justify-content:center; text-align:center; padding:8px;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-900));
}
.detail-photo.locked { background: linear-gradient(135deg, #cfc7b3, #a99e82); }
.initials-lg { font-family:"Fraunces",serif; font-size:3.4rem; color: var(--gold-soft); }
.score-chip-lg { display:inline-block; margin-top:10px; background:var(--gold); color:var(--emerald-900); font-weight:700; font-size:.82rem; padding:5px 12px; border-radius:999px; }
.sec-title { color:var(--emerald-700); font-size:1.05rem; margin: 24px 0 8px; border-bottom:1px solid var(--line); padding-bottom:6px; }
.fact-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; }
.fact-grid > div span { display:block; font-size:.75rem; color:var(--muted); }
.fact-grid > div strong { color:var(--ink); }
.detail-side { align-self:start; position:sticky; top:20px; }

/* ===================================================================
   FULL-SCREEN LANDING HERO  (no vertical scroll)
   =================================================================== */
.hero-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;               /* allow vertical scroll; no horizontal */
  background: #06241b;
  font-family: "Karla", system-ui, sans-serif;
}

/* floating glassy nav */
.floating-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  background: linear-gradient(to bottom, rgba(4,32,26,0.65), rgba(4,32,26,0));
}
.floating-nav .brand-mark {
  font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 600;
  color: var(--cream); text-decoration: none; letter-spacing: -.01em;
}
.floating-nav .brand-mark span { color: var(--gold); }
.floating-nav nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); }

/* plain text links: subtle glass pill at rest, gold glow on hover */
.floating-nav nav a:not(.nav-cta):not(.nav-signin) {
  position: relative; color: rgba(247,243,234,0.92); text-decoration: none;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(247,243,234,0.06);
  border: 1px solid rgba(247,243,234,0.12);
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}
.floating-nav nav a:not(.nav-cta):not(.nav-signin):hover {
  color: #fff; background: rgba(216,179,90,0.16);
  border-color: rgba(216,179,90,0.55); transform: translateY(-1px);
}

/* "Sign in": subtle glassy outlined pill */
.floating-nav .nav-signin {
  border: 1px solid rgba(247,243,234,0.28);
  background: rgba(247,243,234,0.06);
  padding: 9px 20px; border-radius: 999px;
  backdrop-filter: blur(4px); transition: all .25s ease;
}
.floating-nav .nav-signin:hover {
  background: rgba(247,243,234,0.14); border-color: rgba(247,243,234,0.5); color:#fff;
  transform: translateY(-1px);
}

/* "Join free" / primary CTA: warm gold gradient that pops */
.floating-nav .nav-cta {
  border: none; color: var(--emerald-900); font-weight: 700;
  background: linear-gradient(135deg, #f3e6bd, #d8b35a 55%, #c9a24b);
  padding: 10px 22px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(201,162,75,0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.floating-nav .nav-cta:hover {
  transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 0 7px 22px rgba(201,162,75,0.5);
}
.floating-nav .nav-cta:active { transform: translateY(0); }


/* hero shell */
.hero { position: relative; height: 100vh; width: 100%; display: flex; align-items: center; overflow-x: hidden; }

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: slowZoom 18s ease-out forwards;
}
@keyframes slowZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* readability vignette, darker on the left where text sits */
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,32,26,0.88) 0%, rgba(4,32,26,0.58) 32%, rgba(4,32,26,0.12) 56%, rgba(4,32,26,0) 74%),
    linear-gradient(0deg, rgba(4,32,26,0.5), rgba(4,32,26,0) 42%);
}
/* subtle film grain for depth */
.hero-grain {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* thin gold corner brackets, luxe framing */
.hero-corner { position: absolute; width: 46px; height: 46px; z-index: 5; border-color: rgba(216,179,90,0.55); }
.hero-corner.tl { top: 84px; left: 40px; border-top: 1px solid; border-left: 1px solid; }
.hero-corner.tr { top: 84px; right: 40px; border-top: 1px solid; border-right: 1px solid; }
.hero-corner.bl { bottom: 40px; left: 40px; border-bottom: 1px solid; border-left: 1px solid; }
.hero-corner.br { bottom: 40px; right: 40px; border-bottom: 1px solid; border-right: 1px solid; }
@media (max-width: 700px){ .hero-corner { display:none; } }

/* content */
.hero-inner {
  position: relative; z-index: 6;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 0 clamp(28px, 6vw, 72px);
}
.hero-copy { max-width: 620px; color: var(--cream); }

@font-face {
  font-family: "Amiri";
  src: url("/fonts/Amiri-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

.hero-ayah {
  font-family: "Amiri", "Traditional Arabic", serif;
  color: var(--gold-soft); font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.9; margin: 0 0 10px; direction: rtl;
  opacity: 0; animation: fadeUp .8s ease forwards .1s;
}
.hero-ayah-tr {
  color: var(--cream); font-style: italic; font-size: .92rem;
  line-height: 1.45; margin: 0 0 22px; max-width: 34rem; opacity: .92;
  opacity: 0; animation: fadeUp .8s ease forwards .22s;
}
.hero-ayah-ref { color: var(--gold); font-style: normal; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

.hero-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1.0;
  margin: 0 0 22px; color: var(--cream);
}
.hero-title em { font-style: italic; color: var(--gold); position: relative; }
.hero-title .reveal { display: block; overflow: hidden; }
.hero-title .reveal { opacity: 0; transform: translateY(28px); }
.reveal.r1 { animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) forwards .25s; }
.reveal.r2 { animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) forwards .42s; }
.reveal.r3 { animation: fadeUp .9s ease forwards .62s; }
.reveal.r4 { animation: fadeUp .9s ease forwards .78s; }
.reveal.r5 { animation: fadeUp .9s ease forwards .95s; }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.6;
  color: #dfe8e1; max-width: 50ch; margin: 0 0 34px;
  opacity: 0; transform: translateY(28px);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; opacity: 0; transform: translateY(28px); }
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #f3e6bd, #d8b35a);
  color: #06241b; font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 12px 34px rgba(216,179,90,0.32); transition: transform .25s, box-shadow .25s;
}
.btn-cta .arr { transition: transform .25s; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(216,179,90,0.45); }
.btn-cta:hover .arr { transform: translateX(5px); }
.btn-line {
  color: var(--cream); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 15px 22px; border-radius: 999px; border: 1px solid rgba(247,243,234,0.28);
  transition: border-color .25s, background .25s;
}
.btn-line:hover { border-color: var(--gold-soft); background: rgba(247,243,234,0.06); }

.hero-trust {
  display: flex; gap: 22px; flex-wrap: wrap; margin: 30px 0 0;
  font-size: .85rem; color: rgba(231,212,160,0.85); opacity: 0; transform: translateY(28px);
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* mobile: stack + keep within one screen */
@media (max-width: 640px){
  .hero-inner { padding: 0 26px; }
  .hero-trust { gap: 10px 18px; }
  .btn-cta, .btn-line { padding: 13px 22px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce){
  .hero-media img, .hero-ayah, .hero-ayah-tr, .reveal, .hero-sub, .hero-actions, .hero-trust { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============ BRAND LOGO LOCKUP (nav) ============ */
.brand-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-img { width: 42px; height: 42px; display: block; }
.brand-text {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.5rem;
  letter-spacing: -0.01em; line-height: 1;
}
/* hero (dark) nav */
.floating-nav .brand-text { color: var(--cream); }
.floating-nav .brand-text span { color: var(--gold); }
/* emerald topbar */
.topbar .brand-text { color: var(--cream); }
.topbar .brand-text span { color: var(--gold); }
.topbar .brand-img { width: 38px; height: 38px; }

@media (max-width: 520px){
  .brand-text { font-size: 1.25rem; }
  .brand-img { width: 34px; height: 34px; }
}

/* ---------- photo upload (wizard step 4) ---------- */
.photo-upload { grid-column: 1 / -1; margin-top: 6px; }
.upload-title { display: block; font-size: .85rem; font-weight: 700; color: var(--emerald-700); margin-bottom: 6px; }
.upload-opt { font-weight: 400; color: var(--muted); }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px; border: 2px dashed var(--emerald-500); border-radius: 12px;
  background: #f3f7f4; cursor: pointer; transition: background .2s, border-color .2s; text-align: center;
}
.dropzone:hover { background: #eaf2ec; border-color: var(--emerald-700); }
.dz-icon { font-size: 1.6rem; color: var(--emerald-600); }
.dz-text { font-weight: 700; color: var(--emerald-700); }
.dz-files { font-size: .85rem; color: var(--muted); }

/* photos on the profile summary page */
.my-photos { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.my-photos .ph {
  width: 110px; height: 110px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); position: relative; background: #ece7da;
}
.my-photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.my-photos .ph .badge {
  position: absolute; bottom: 6px; left: 6px; font-size: .65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}
.my-photos .ph .badge.pending { background: #fdf3dd; color: #9a7320; }
.my-photos .ph .badge.live { background: #e3f3ea; color: #1a6b50; }

/* ============ CONNECT / INTERESTS ============ */
.connect-wrap { max-width: 760px; margin: 0 auto; }
.connect-title { font-family:"Fraunces",serif; color:var(--emerald-900); margin:0 0 20px; }
.connect-section { margin-bottom: 34px; }
.connect-section h2 { font-family:"Fraunces",serif; color:var(--emerald-700); font-size:1.25rem; display:flex; align-items:center; gap:10px; margin:0 0 14px; }
.connect-section h2 .count { background:var(--gold-soft); color:var(--emerald-900); font-size:.8rem; font-weight:700; padding:2px 10px; border-radius:999px; font-family:"Karla",sans-serif; }
.connect-empty { color:var(--muted); background:#fff; border:1px dashed var(--line); border-radius:12px; padding:20px; }
.connect-list { display:flex; flex-direction:column; gap:10px; }
.connect-card { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px 16px; box-shadow:0 6px 22px rgba(11,61,46,0.05); text-decoration:none; color:inherit; }
.connect-card.link:hover { border-color:var(--emerald-500); }
.cc-avatar { width:48px; height:48px; flex:none; border-radius:50%; background:linear-gradient(135deg,var(--emerald-600),var(--emerald-900)); color:var(--gold-soft); display:flex; align-items:center; justify-content:center; font-family:"Fraunces",serif; font-size:1.3rem; }
.cc-avatar.muted { background:#cfc7b3; color:#fff; }
.cc-body { flex:1; }
.cc-name { font-weight:700; color:var(--emerald-900); text-decoration:none; }
a.cc-name:hover { text-decoration:underline; }
.cc-meta { margin:2px 0 0; font-size:.85rem; color:var(--muted); }
.cc-msg { margin:6px 0 0; font-size:.88rem; color:var(--ink); font-style:italic; }
.cc-actions form { display:flex; gap:6px; }
.cc-chevron { font-size:1.6rem; color:var(--muted); }
.btn-pill { border:none; cursor:pointer; font:inherit; font-weight:700; font-size:.85rem; padding:8px 16px; border-radius:999px; }
.btn-pill.ok { background:var(--emerald-700); color:var(--cream); }
.btn-pill.ok:hover { background:var(--emerald-900); }
.btn-pill.ghost { background:#fff; color:var(--muted); border:1px solid var(--line); }
.pill-status { font-size:.78rem; font-weight:700; padding:5px 12px; border-radius:999px; text-decoration:none; }
.pill-status.pending { background:#fdf3dd; color:#9a7320; }
.pill-status.ok { background:#e3f3ea; color:#1a6b50; }
.pill-status.declined { background:#f0ede6; color:var(--muted); }

/* chat */
.chat-wrap { max-width:680px; margin:0 auto; display:flex; flex-direction:column; height:calc(100vh - 160px); }
.chat-head { display:flex; align-items:center; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.chat-back { font-size:1.5rem; color:var(--emerald-700); text-decoration:none; }
.chat-peer { display:flex; align-items:center; gap:10px; text-decoration:none; }
.chat-avatar { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,var(--emerald-600),var(--emerald-900)); color:var(--gold-soft); display:flex; align-items:center; justify-content:center; font-family:"Fraunces",serif; }
.chat-peer-name { font-weight:700; color:var(--emerald-900); }
.chat-stream { flex:1; overflow-y:auto; padding:18px 4px; display:flex; flex-direction:column; gap:10px; }
.chat-empty { color:var(--muted); text-align:center; margin:auto; max-width:36ch; }
.bubble-row { display:flex; }
.bubble-row.mine { justify-content:flex-end; }
.bubble { max-width:70%; padding:10px 14px; border-radius:16px; font-size:.95rem; line-height:1.45; position:relative; }
.bubble-row.theirs .bubble { background:#fff; border:1px solid var(--line); border-bottom-left-radius:4px; color:var(--ink); }
.bubble-row.mine .bubble { background:var(--emerald-700); color:var(--cream); border-bottom-right-radius:4px; }
.bubble-time { display:block; font-size:.68rem; opacity:.6; margin-top:4px; }
.chat-compose { display:flex; gap:8px; padding-top:12px; border-top:1px solid var(--line); }
.chat-compose input { flex:1; padding:12px 14px; border:1px solid var(--line); border-radius:999px; font:inherit; background:#fcfbf7; }
.chat-compose input:focus { outline:none; border-color:var(--emerald-500); }
.chat-send { border:none; cursor:pointer; font:inherit; font-weight:700; padding:12px 24px; border-radius:999px; background:var(--emerald-700); color:var(--cream); }
.chat-send:hover { background:var(--emerald-900); }
.chat-safety { font-size:.75rem; color:var(--muted); text-align:center; margin:10px 0 0; }

/* ---------- detailed family section (wizard) ---------- */
.family-details { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 0; background: #fcfbf7; margin-top: 4px; }
.family-details summary { cursor: pointer; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.family-details summary::-webkit-details-marker { display: none; }
.family-details summary::after { content: "＋ tap to expand"; position: absolute; right: 18px; font-size: .78rem; color: var(--emerald-600); font-weight: 700; }
.family-details[open] summary::after { content: "− collapse"; }
.family-details summary { position: relative; }
.fd-title { font-weight: 700; color: var(--emerald-700); font-size: 1rem; }
.fd-opt { font-size: .8rem; color: var(--muted); }
.family-details > .hint, .family-details > .grid, .family-details > .fd-group { margin-left: 18px; margin-right: 18px; }
.family-details > .grid { margin-bottom: 14px; }
.fd-group { color: var(--emerald-900); font-family: "Fraunces", serif; font-size: 1rem; margin: 16px 18px 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.family-details .grid { padding-bottom: 4px; }

/* ---------- family block on profile detail ---------- */
.fam-section { margin-top: 8px; }

/* ---------- field info icons + tooltips ---------- */
.wizard-form .field > span { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.info-i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; color: var(--emerald-600, #2e7d5b); cursor: help; opacity: .65; transition: opacity .15s; }
.info-i:hover, .info-i:focus { opacity: 1; outline: none; }
.info-i::after {
  content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 8px); z-index: 30;
  width: max-content; max-width: 280px; white-space: normal;
  background: var(--emerald-900, #0b3d2e); color: #f7f3ea; font-size: .76rem; font-weight: 400; line-height: 1.4;
  padding: 8px 11px; border-radius: 8px; box-shadow: 0 8px 24px rgba(11,61,46,.25);
  opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .16s, transform .16s;
}
.info-i:hover::after, .info-i:focus::after { opacity: 1; transform: translateY(0); }

/* ---------- featured "Detailed family information" panel ---------- */
.family-details.featured { border: 2px solid var(--gold, #d8b35a); background: linear-gradient(180deg, #fdf9ef, #fbf9f3); box-shadow: 0 6px 24px rgba(216,179,90,.15); }
.family-details.featured summary { padding: 18px 18px 14px; }
.fd-head { display: flex; align-items: center; gap: 10px; }
.fd-badge { background: var(--gold, #d8b35a); color: #3a2a06; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.family-details.featured .fd-title { font-size: 1.08rem; color: var(--emerald-900, #0b3d2e); }
.family-details.featured .fd-opt { display: block; margin-top: 6px; color: #8a6d22; font-size: .85rem; font-weight: 600; }

/* ---------- draft button + actions ---------- */
.actions-right { display: flex; gap: 10px; align-items: center; }
.btn-draft { background: #fff; color: var(--emerald-700, #14543f); border: 1px dashed var(--emerald-500, #2e7d5b); }
.btn-draft:hover { background: #f0f5f2; border-style: solid; }
.draft-hint { text-align: center; font-size: .8rem; color: var(--muted, #6b7a72); margin: 14px 0 0; }

/* ---------- clickable stepper ---------- */
button.step-pill { font: inherit; cursor: pointer; border: 1px solid transparent; }
.step-pill.clickable { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.step-pill.clickable:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(11,61,46,.12); }
.step-pill.done.clickable { background: #e3f3ea; color: #1a6b50; }
.step-pill.locked { opacity: .5; cursor: not-allowed; }

/* ---------- support / contact admin ---------- */
.support-thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 24px; }
.support-msg { border-radius: 12px; padding: 12px 14px; max-width: 80%; border: 1px solid var(--line, #e2ddd0); }
.support-msg.from-me { align-self: flex-end; background: #f0f5f2; border-color: #d6e6dd; }
.support-msg.from-admin { align-self: flex-start; background: #fdf9ef; border-color: #ecd9a8; }
.support-meta { display: flex; justify-content: space-between; gap: 14px; font-size: .76rem; color: var(--muted, #6b7a72); margin-bottom: 4px; }
.support-subject { font-weight: 700; color: var(--emerald-900, #0b3d2e); font-size: .92rem; }
.support-body { white-space: pre-wrap; font-size: .9rem; margin-top: 2px; }
.support-form .field { margin-bottom: 12px; }
.support-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line, #e2ddd0); border-radius: 10px; font: inherit; background: #fcfbf7; resize: vertical; }
.actions-left { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* small line button (used on profile + support pages) */
.btn-line-sm { display: inline-block; background: transparent; border: 1px solid var(--line, #e2ddd0); color: var(--emerald-700, #14543f); padding: 9px 16px; border-radius: 9px; text-decoration: none; font-size: .9rem; cursor: pointer; }
.btn-line-sm:hover { border-color: var(--emerald-500, #2e7d5b); background: #f6f9f7; }

/* ---------- photo thumbnails (wizard) ---------- */
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.photo-thumb { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, #e2ddd0); background: #f3f7f4; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-badge { position: absolute; left: 6px; bottom: 6px; background: var(--emerald-900, #0b3d2e); color: #fff; font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; letter-spacing: .02em; }
.thumb-badge.pending { background: #9a6b00; left: auto; right: 6px; }
.thumb-badge.new { background: var(--gold, #d8b35a); color: #3a2a06; }
.thumb-del { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(11,61,46,.85); color: #fff; font-size: .8rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumb-del:hover { background: #b3261e; }

/* inline optional/secondary label inside a field <span> (e.g. "Nationality (passport)") */
.field > span .opt, span.opt { font-weight: 400; color: var(--muted, #6b7a72); font-size: .82em; }

/* ============================================================
   RESPONSIVE, user-facing views (phones & small tablets)
   Consolidated breakpoints so every public page works on mobile.
   ============================================================ */

/* Never allow horizontal scroll anywhere */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

/* ---- Tablet / small laptop ---- */
@media (max-width: 900px) {
  .shell { margin: 24px auto; padding: 0 16px; }
  .detail-header { gap: 16px; }
  .floating-nav { padding: 16px clamp(16px, 4vw, 32px); }
}

/* ---- Phones (<= 640px) ---- */
@media (max-width: 640px) {
  /* Top navigation: keep inline but shrink; wrap if needed */
  .floating-nav { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .floating-nav .brand-mark, .floating-nav .brand-text { font-size: 1.25rem; }
  .floating-nav nav { gap: 12px; }
  .floating-nav nav a { font-size: .88rem; }
  .floating-nav .nav-cta { padding: 7px 14px; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 6px; }
  .topbar nav { display: flex; flex-wrap: wrap; }
  .topbar nav a { margin-left: 0; margin-right: 16px; font-size: .9rem; }
  .brand-mark { font-size: 1.3rem; }

  /* App-style hero on mobile: no background photo (it looks muddy on narrow screens).
     Instead a clean emerald gradient, content-driven height, top-aligned. */
  /* Release the single-viewport lock from the landing body so there's no dead space and
     the page can scroll naturally like an app screen. Size to content (no forced height). */
  .hero-body { height: auto; min-height: 0; overflow: visible; }
  .hero {
    height: auto; min-height: 0; align-items: flex-start;
    padding: 92px 22px 48px;
    background:
      radial-gradient(120% 60% at 85% 0%, rgba(216,179,90,0.14), transparent 60%),
      linear-gradient(165deg, #0d4533 0%, #0b3d2e 45%, #06241b 100%);
  }
  /* Remove the illustration & its overlays entirely on mobile */
  .hero-media, .hero-vignette, .hero-grain, .hero-corner { display: none; }

  .hero-inner { padding: 0; width: 100%; }
  .hero-copy { max-width: 100%; }
  .hero-actions { gap: 10px; margin-top: 4px; }
  .hero-actions .btn-cta, .hero-actions .btn-line { width: 100%; justify-content: center; }
  .hero-trust { gap: 9px; font-size: .82rem; flex-direction: column; margin-top: 24px; }

  /* Tighten vertical rhythm so it reads like an app screen */
  .hero-ayah { font-size: 1.25rem; line-height: 1.8; margin-bottom: 8px; }
  .hero-ayah-tr { font-size: .85rem; margin-bottom: 20px; }
  .hero-title { font-size: 2.6rem; margin-bottom: 16px; }
  .hero-sub { font-size: 1rem; margin-bottom: 26px; }

  /* Wizard: single column, compact stepper */
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .stepper { gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .step-pill { white-space: nowrap; font-size: .8rem; padding: 7px 12px; }
  .actions { flex-direction: column-reverse; gap: 12px; }
  .actions > * { width: 100%; }
  .actions button, .actions .btn-cta, .actions a { width: 100%; justify-content: center; text-align: center; }

  /* Search: stack sidebar above results; results single/double column */
  .search-layout { grid-template-columns: 1fr; gap: 18px; }
  .result-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .results-head { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Detail page: stack, photo centered, facts single column */
  .detail-layout { grid-template-columns: 1fr; gap: 18px; }
  .detail-header { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .detail-photo { width: 160px; height: 160px; }
  .fact-grid { grid-template-columns: 1fr; gap: 8px 0; }

  /* My profile */
  .summary-row { font-size: .92rem; }
  .my-photos img, .my-photo { width: 90px; height: 90px; }

  /* Connections list */
  .connect-wrap { padding: 0 16px; }
  .connect-card { flex-wrap: wrap; }
  .cc-actions { width: 100%; margin-top: 10px; }
  .cc-actions .btn-pill { flex: 1; text-align: center; }

  /* Chat */
  .chat-wrap { padding: 0; height: 100svh; display: flex; flex-direction: column; }
  .chat-stream { flex: 1; }
  .bubble { max-width: 82%; }
  .chat-compose { position: sticky; bottom: 0; }

  /* Support thread */
  .support-thread .bubble { max-width: 85%; }

  /* Generic: forms full width, comfy tap targets */
  input, select, textarea, button { font-size: 16px; }  /* prevents iOS zoom-on-focus */
}

/* ---- Small phones (<= 400px) ---- */
@media (max-width: 400px) {
  .result-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
  .floating-nav nav { width: 100%; justify-content: flex-end; }
}

/* Wizard validation summary, prominent, easy to spot on re-render */
.wizard-errors {
    background: #fbe7e6;
    border: 1px solid #f0c4c1;
    border-left: 4px solid var(--danger);
    color: #8f1d17;
    border-radius: 10px;
    padding: 13px 16px;
    margin: 0 0 20px;
    font-size: .9rem;
}
.wizard-errors strong { display: block; margin-bottom: 4px; color: var(--danger); }
.wizard-errors ul { margin: 4px 0 0; padding-left: 18px; }
.wizard-errors li { margin: 2px 0; }
/* Hide the empty <ul> ASP.NET emits when there are no model-level errors */
.wizard-errors ul:empty { display: none; }
.wizard-errors.validation-summary-valid { display: none; }

/* Disabled "Browse matches" while a profile is under review */
.btn.btn-disabled {
    background: #cdd6d0;
    color: #fff;
    cursor: not-allowed;
    opacity: .85;
    pointer-events: none;
}

/* ---------- Pending-interest notifications (nav badge + alert bar) ---------- */
.nav-with-badge { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--gold); color: #2a2310;
    font-size: .72rem; font-weight: 700; line-height: 1;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(201,162,75,.6);
    animation: badgePulse 1.8s ease-out infinite;
}
@keyframes badgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(201,162,75,.55); }
    70%  { box-shadow: 0 0 0 7px rgba(201,162,75,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,162,75,0); }
}
@media (prefers-reduced-motion: reduce) { .nav-badge { animation: none; } }

/* full-width alert bar under the topbar */
.interest-alert {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(90deg, #14543f, #0b3d2e);
    color: var(--cream);
    padding: 11px 22px;
    font-size: .93rem;
}
.interest-alert .ia-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
    flex: none; animation: badgePulse 1.6s ease-out infinite;
}
.interest-alert .ia-text { flex: 1; }
.interest-alert .ia-text strong { color: #f4e2b4; }
.interest-alert .ia-cta {
    color: #fff; font-weight: 700; text-decoration: none;
    border: 1px solid rgba(247,243,234,.5); padding: 6px 14px; border-radius: 8px;
    white-space: nowrap;
}
.interest-alert .ia-cta:hover { background: rgba(247,243,234,.12); }
.interest-alert .ia-close {
    background: none; border: none; color: rgba(247,243,234,.7);
    font-size: 1rem; cursor: pointer; padding: 4px 6px; line-height: 1;
}
.interest-alert .ia-close:hover { color: #fff; }
@media (max-width: 560px) {
    .interest-alert { flex-wrap: wrap; font-size: .88rem; padding: 10px 16px; }
    .interest-alert .ia-text { flex-basis: 100%; }
}

/* ---------- Unread-message cues on connection cards ---------- */
.connect-card.has-unread { border-color: var(--emerald-500); background: #f3f9f5; }
.cc-meta.cc-new { color: var(--emerald-600); font-weight: 700; }
.cc-unread {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 7px; margin-right: 6px;
    background: var(--emerald-600); color: #fff;
    font-size: .76rem; font-weight: 700; border-radius: 999px;
}

/* ---------- Legal pages (Privacy / Terms) ---------- */
.legal-page {
    max-width: 760px; margin: 0 auto; padding: 8px 4px 48px;
    line-height: 1.7; color: #2a332e;
}
.legal-page h1 {
    font-family: "Fraunces", serif; color: var(--emerald-900);
    font-size: 2rem; margin: 8px 0 4px;
}
.legal-updated { color: var(--muted, #6b7a72); font-size: .85rem; margin: 0 0 22px; }
.legal-page h2 {
    font-family: "Fraunces", serif; color: var(--emerald-700);
    font-size: 1.2rem; margin: 28px 0 8px;
}
.legal-page p { margin: 0 0 12px; }
.legal-page ul { margin: 0 0 14px; padding-left: 20px; }
.legal-page li { margin: 4px 0; }
.legal-page a { color: var(--emerald-600); }
.legal-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line, #e2ddd0); font-weight: 700; }

/* ---------- Site footer (branded) ---------- */
.site-footer {
    margin-top: 60px;
    background: linear-gradient(160deg, #14543f, #0b3d2e);
    color: #d7e3dc;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 44px 28px 28px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand { max-width: 340px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 12px; }
.footer-logo img { height: 34px; width: auto; }
.footer-name { font-family: "Fraunces", serif; font-size: 1.4rem; font-weight: 600; color: #fff; }
.footer-name span { color: var(--gold); }
.footer-tag { font-size: .88rem; line-height: 1.6; color: #b9cabf; margin: 0; }
.footer-col h4 {
    font-family: "Fraunces", serif; font-size: .82rem; text-transform: uppercase;
    letter-spacing: .08em; color: var(--gold-soft); margin: 4px 0 14px; font-weight: 600;
}
.footer-col a {
    display: block; color: #cdddd4; text-decoration: none; font-size: .9rem;
    margin-bottom: 9px; transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(247,243,234,.14);
    max-width: 1100px; margin: 0 auto; padding: 18px 28px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-size: .82rem; color: #9fb3a8;
}
.footer-bismillah { color: var(--gold-soft); font-family: "Amiri", "Fraunces", serif; }
@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* legal links on the landing hero */
.hero-legal { margin-top: 8px; font-size: .82rem; }
.hero-legal a { color: inherit; opacity: .8; text-decoration: underline; }
.hero-legal a:hover { opacity: 1; }
.hero-legal span { margin: 0 8px; opacity: .5; }

/* ---------- Landing: sections below the hero ---------- */
.lp-section { background: var(--cream); padding: 76px 24px; }
.lp-section.lp-steps { background: #fff; }
.lp-section.lp-cta { background: linear-gradient(160deg, #14543f, #0b3d2e); }
.lp-wrap { max-width: 1080px; margin: 0 auto; }
.lp-wrap.center, .center { text-align: center; }
.lp-eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.lp-h2 {
    font-family: "Fraunces", serif; font-size: 2rem; line-height: 1.15;
    color: var(--emerald-900); margin: 0 0 14px; font-weight: 600;
}
.lp-section.lp-cta .lp-h2 { color: #fff; }
.lp-lead { font-size: 1.1rem; line-height: 1.7; color: #3a443e; max-width: 760px; }
.lp-sub { font-size: 1rem; color: var(--muted); margin: 0 0 36px; }
.lp-section.lp-cta .lp-sub { color: #bcd0c6; }

/* steps */
.lp-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.lp-step {
    background: var(--cream); border: 1px solid var(--line); border-radius: 16px;
    padding: 26px 22px; position: relative;
}
.lp-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--emerald-700); color: var(--gold-soft);
    font-family: "Fraunces", serif; font-weight: 600; font-size: 1.1rem; margin-bottom: 14px;
}
.lp-step h3 { font-family: "Fraunces", serif; color: var(--emerald-900); font-size: 1.1rem; margin: 0 0 8px; }
.lp-step p { font-size: .92rem; line-height: 1.6; color: #4a5550; margin: 0; }

/* values */
.lp-value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.lp-value { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px; }
.lp-value h3 { font-family: "Fraunces", serif; color: var(--emerald-900); font-size: 1.15rem; margin: 0 0 8px; }
.lp-value p { font-size: .95rem; line-height: 1.6; color: #4a5550; margin: 0; }

/* cta strip */
.lp-cta-btn { margin-top: 8px; }

@media (max-width: 900px) {
    .lp-step-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .lp-section { padding: 54px 18px; }
    .lp-h2 { font-size: 1.6rem; }
    .lp-step-grid, .lp-value-grid { grid-template-columns: 1fr; }
}

/* ---------- About page extras ---------- */
.about-page .about-steps { padding-left: 20px; }
.about-page .about-steps li { margin: 10px 0; line-height: 1.6; }
.about-cta { margin: 30px 0 10px; }

/* ---------- Help / FAQ page ---------- */
.faq-page { max-width: 820px; margin: 0 auto; padding: 16px 20px 60px; }
.faq-head { text-align: center; margin: 12px 0 40px; }
.faq-head h1 { font-family: "Fraunces", serif; color: var(--emerald-900); font-size: 2.2rem; margin: 10px 0 12px; }
.faq-head p { color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.faq-head a { color: var(--emerald-600); }

.faq-group { margin-bottom: 34px; }
.faq-group-title {
    font-family: "Fraunces", serif; color: var(--emerald-700); font-size: 1.25rem;
    margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold-soft);
}
.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    margin-bottom: 10px; overflow: hidden; transition: box-shadow .15s ease;
}
.faq-item[open] { box-shadow: 0 6px 22px rgba(11,61,46,.08); border-color: #cfe0d6; }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 17px 48px 17px 20px; position: relative;
    font-weight: 700; color: var(--emerald-900); font-size: 1rem; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 400; color: var(--gold); transition: transform .2s ease;
    line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--emerald-700); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; color: #46514a; line-height: 1.65; font-size: .96rem; }
.faq-a a { color: var(--emerald-600); }

.faq-contact {
    text-align: center; margin-top: 44px; padding: 36px 24px;
    background: var(--cream); border: 1px solid var(--line); border-radius: 16px;
}
.faq-contact h2 { font-family: "Fraunces", serif; color: var(--emerald-900); font-size: 1.4rem; margin: 0 0 8px; }
.faq-contact p { color: var(--muted); margin: 0 0 20px; }

/* small 'optional' hint on form labels */
.optional { font-weight: 400; color: var(--muted, #8a9a90); font-size: .82em; }

/* Shortlist page extras */
.connect-sub { color: var(--muted, #6b7a72); margin: -6px 0 22px; font-size: .95rem; }
.pill-status.remove { background:#faf0ec; color:#b3614b; border:none; cursor:pointer; font-family:inherit; }
.pill-status.remove:hover { background:#f3e0d8; }
.cc-status { display:flex; gap:8px; align-items:center; }

/* subtle informational count pill in nav (distinct from the gold 'new' alert badge) */
.nav-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 19px; height: 19px; padding: 0 6px;
    background: rgba(247,243,234,.18); color: #f7f3ea;
    font-size: .72rem; font-weight: 700; line-height: 1;
    border-radius: 999px;
}

/* live height conversion hint in the wizard */
.height-hint {
    display: block; margin-top: 5px; font-size: .85rem; font-weight: 700;
    color: var(--emerald-600, #1a6b50);
}
