/* =====================================================================
   ClickRishta — Premium Design System v2
   Brand: pink #C2185B · teal #054A4D · soft gold #C9A24A · warm ivory
   Mobile-first. Breakpoints: 640 / 960 / 1200
   ===================================================================== */

:root {
  --pink: #C2185B;
  --pink-700: #9C1249;
  --pink-100: #F9D9E6;
  --pink-50: #FDF2F7;
  --teal: #054A4D;
  --teal-800: #033537;
  --teal-600: #0A6B6F;
  --teal-100: #D3E9E9;
  --teal-50: #EEF6F6;
  --gold: #C9A24A;
  --gold-50: #FBF5E6;
  --ink: #1A1F2B;
  --muted: #5B6472;
  --soft: #8A919C;
  --line: #ECE5E8;
  --bg: #FBF8F6;
  --white: #FFFFFF;
  --ok: #15803D;
  --warn: #B45309;
  --err: #B91C1C;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(26, 31, 43, .05), 0 2px 8px rgba(5, 74, 77, .05);
  --sh-2: 0 8px 28px rgba(5, 74, 77, .10);
  --sh-3: 0 22px 60px rgba(194, 24, 91, .16);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--teal); }
h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.urdu { font-family: var(--font-urdu); direction: rtl; line-height: 2.1; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--white { background: var(--white); }
.section--tint { background: linear-gradient(180deg, var(--pink-50), var(--bg)); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .97rem; line-height: 1; white-space: nowrap; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--pink-700)); color: #fff; box-shadow: 0 8px 22px rgba(194, 24, 91, .28); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(194, 24, 91, .36); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-800); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--teal); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal-50); color: var(--teal); }
.btn-gold { background: linear-gradient(135deg, #D9B864, var(--gold)); color: var(--teal-800); }
.btn-gold:hover { color: var(--teal-800); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { color: var(--pink); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  display: inline-grid; place-items: center; color: var(--teal); transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--teal-50); border-color: var(--teal-100); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.is-on { background: var(--pink-50); color: var(--pink); border-color: var(--pink-100); }

/* ---------- Preview banner ---------- */
.preview-bar {
  background: var(--teal-800); color: #E5F1F1; font-size: .82rem; text-align: center; padding: 8px var(--gutter);
}
.preview-bar strong { color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(251, 248, 246, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 800; font-size: 1.28rem; letter-spacing: -.01em; }
.brand:hover { color: var(--teal); }
.brand img { width: 38px; height: 38px; }
.brand b { color: var(--pink); font-weight: 800; }
.nav { display: none; gap: 4px; margin-left: 20px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .94rem; padding: 10px 14px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--pink); background: var(--pink-50); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header__actions .btn { min-height: 42px; padding: 10px 16px; font-size: .9rem; }
.header__login { display: none; }
.menu-btn { display: inline-grid; }
@media (min-width: 640px) { .header__login { display: inline-flex; } }
@media (min-width: 1024px) { .nav { display: flex; } .menu-btn { display: none; } }

.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; }
.user-chip:hover { color: var(--ink); border-color: var(--teal-100); }
.user-chip .mono { width: 34px; height: 34px; font-size: .85rem; }
.user-chip span.name { display: none; }
@media (min-width: 640px) { .user-chip span.name { display: inline; } }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(3, 53, 55, .45); z-index: 80; opacity: 0; visibility: hidden; transition: opacity .25s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 90; background: #fff;
  transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; padding: 18px 20px 24px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .15);
}
.drawer.is-open { transform: none; }
.drawer.is-open + .drawer-backdrop, .drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.drawer nav a svg { width: 20px; height: 20px; color: var(--teal-600); }
.drawer__cta { margin-top: auto; display: grid; gap: 10px; padding-top: 20px; }

/* ---------- Monogram avatar ---------- */
.mono {
  --c1: var(--teal); --c2: var(--teal-600);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--c1), var(--c2)); color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem;
}
.mono--f { --c1: #B0184F; --c2: #D94E86; }
.mono--m { --c1: var(--teal); --c2: #12817F; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 88px) 0 clamp(88px, 11vw, 140px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(800px 480px at 88% 8%, rgba(194, 24, 91, .14), transparent 62%),
    radial-gradient(760px 520px at 0% 100%, rgba(5, 74, 77, .14), transparent 60%),
    linear-gradient(180deg, #FFF6FA 0%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: url("../img/pattern.svg") center / 160px repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__copy { text-align: center; }
.hero__copy h1 em { font-style: italic; color: var(--pink); }
.hero__urdu { font-size: 1.25rem; color: var(--teal-600); margin: -4px 0 14px; }
.hero__copy .lead { max-width: 560px; margin: 0 auto 26px; }
.hero__ctas { display: grid; gap: 12px; max-width: 420px; margin: 0 auto 26px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.trust-row span { display: inline-flex; gap: 7px; align-items: center; }
.trust-row svg { width: 17px; height: 17px; color: var(--teal-600); }
@media (min-width: 640px) { .hero__ctas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero__copy { text-align: left; }
  .hero__copy .lead { margin-left: 0; }
  .hero__ctas { margin-left: 0; }
  .trust-row { justify-content: flex-start; }
}

/* Hero art: Mughal arch frame */
.arch-wrap { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px var(--r-xl) var(--r-xl); overflow: hidden;
  background: linear-gradient(170deg, var(--teal) 0%, var(--teal-800) 58%, #5B0F35 120%);
  box-shadow: var(--sh-3); border: 6px solid #fff; outline: 1px solid var(--gold); outline-offset: -14px;
}
.arch > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; z-index: 2; background: #fff; border-radius: var(--r); box-shadow: var(--sh-2);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: .86rem; max-width: 240px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--teal); font-size: .92rem; line-height: 1.3; }
.float-card small { color: var(--muted); }
.float-card .mono { width: 40px; height: 40px; font-size: .95rem; }
.float-card--a { top: 14%; left: -6%; }
.float-card--b { bottom: 18%; right: -6%; animation-delay: -3s; }
.float-card--c { bottom: -4%; left: 10%; animation-delay: -1.5s; }
.match-ring { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .78rem; color: var(--teal);
  background: conic-gradient(var(--pink) calc(var(--p, 80) * 1%), var(--pink-50) 0); position: relative; flex: 0 0 auto; }
.match-ring::before { content: ""; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }
.match-ring span { position: relative; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .float-card--a { left: -2%; } .float-card--b { right: -2%; } .float-card { max-width: 200px; font-size: .8rem; } }

/* ---------- Quick search card ---------- */
.qsearch { position: relative; z-index: 5; margin-top: clamp(-96px, -8vw, -56px); }
.qsearch__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--teal-50); gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--teal); min-height: 42px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--pink); box-shadow: var(--sh-1); }
.qsearch__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qsearch__grid .btn { grid-column: 1 / -1; }
@media (min-width: 960px) { .qsearch__grid { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } .qsearch__grid .btn { grid-column: auto; } }

/* ---------- Forms ---------- */
.field { display: block; }
.field > label, .label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s; color: var(--ink);
}
.select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23054A4D' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(10, 107, 111, .12); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--err); }
.hint { font-size: .8rem; color: var(--soft); margin-top: 6px; }
.err-msg { font-size: .82rem; color: var(--err); margin-top: 6px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 12px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 600; color: var(--teal); background: #fff; transition: all .2s;
}
.choice input:checked + span { border-color: var(--pink); background: var(--pink-50); color: var(--pink); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); flex: 0 0 auto; }

/* Switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch strong { display: block; color: var(--ink); font-size: .96rem; }
.switch small { color: var(--muted); }
.toggle { position: relative; width: 50px; height: 30px; flex: 0 0 auto; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; background: #D7D2D5; border-radius: 999px; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.toggle input:checked + i { background: var(--teal-600); }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); }
.card--hover { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--pink-100); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.feat-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; color: var(--pink);
  background: linear-gradient(135deg, var(--pink-50), var(--teal-50)); border: 1px solid #F3E4EB; }
.feat-icon svg { width: 26px; height: 26px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.pill svg { width: 14px; height: 14px; }
.pill--teal { background: var(--teal-50); color: var(--teal); }
.pill--pink { background: var(--pink-50); color: var(--pink); }
.pill--gold { background: var(--gold-50); color: #8A6A1E; }
.pill--ok { background: #ECFDF3; color: var(--ok); }
.pill--line { border: 1px solid var(--line); color: var(--muted); background: #fff; }

/* Stats strip */
.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust-strip .card { padding: 18px; text-align: center; }
.trust-strip strong { display: block; font-family: var(--font-serif); color: var(--pink); font-size: 1.35rem; }
.trust-strip span { font-size: .86rem; color: var(--muted); }
@media (min-width: 960px) { .trust-strip { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* Steps */
.steps { display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 26px 22px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--pink-100); display: block; line-height: 1; margin-bottom: 12px; }

/* Split feature (image + list) */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--rev > :first-child { order: 2; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.ticks li svg { width: 22px; height: 22px; color: var(--teal-600); flex: 0 0 auto; margin-top: 1px; }
.ticks li strong { color: var(--ink); display: block; }
.showcase { background: linear-gradient(160deg, var(--teal-50), var(--pink-50)); border-radius: var(--r-xl); padding: clamp(18px, 4vw, 36px); border: 1px solid var(--line); }

/* ---------- Profile card ---------- */
.profiles-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .profiles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .profiles-grid { grid-template-columns: repeat(3, 1fr); } }
.profiles-grid--4 { }
@media (min-width: 1200px) { .profiles-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pcard__media { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, var(--teal-50), var(--pink-50)); }
.pcard__media .mono { width: 96px; height: 96px; font-size: 2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); border: 4px solid #fff; }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") center / 120px; opacity: .35; pointer-events: none; }
.pcard__lock { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 1; background: rgba(255, 255, 255, .92); border-radius: 999px;
  padding: 5px 11px; font-size: .78rem; font-weight: 600; color: var(--teal); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.pcard__lock svg { width: 13px; height: 13px; }
.pcard__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 1; gap: 6px; }
.pcard__badges .pill { background: rgba(255, 255, 255, .95); }
.pcard__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__title h3 { margin: 0; font-size: 1.08rem; color: var(--ink); }
.pcard__title h3 a { color: inherit; }
.pcard__title h3 a:hover { color: var(--pink); }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--muted); }
.pcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.pcard__meta svg { width: 15px; height: 15px; color: var(--soft); }
.pcard__actions { display: flex; gap: 8px; margin-top: auto; }
.pcard__actions .btn { flex: 1; min-height: 42px; padding: 9px 12px; font-size: .86rem; }
.active-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; display: inline-block; box-shadow: 0 0 0 3px #DCFCE7; }

/* ---------- Search layout ---------- */
.page-head { padding: clamp(24px, 4vw, 40px) 0 clamp(18px, 3vw, 28px); }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 6px; }
.search-layout { display: grid; gap: 24px; padding-bottom: 80px; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 300px 1fr; align-items: start; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; } }
.filters h2 { font-family: var(--font-sans); font-size: 1.05rem; margin: 0; }
.filters .field + .field, .filters fieldset + .field, .filters .field + fieldset { margin-top: 14px; }
.filters fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.filters legend { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.range2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--teal); padding: 8px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; min-height: 36px; }
.chip button { border: 0; background: none; padding: 0 0 0 2px; color: var(--soft); font-size: 1rem; line-height: 1; }
.chip--toggle[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.results-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.results-bar .select { width: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.filters-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filters-toggle { display: none; } }
@media (max-width: 1023px) {
  .filters { position: fixed; inset: auto 0 0 0; z-index: 95; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 88vh; overflow: auto;
    transform: translateY(105%); transition: transform .3s var(--ease); box-shadow: 0 -20px 60px rgba(0, 0, 0, .2); padding-bottom: 96px; }
  .filters.is-open { transform: none; }
  .filters__apply { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; }
}
@media (min-width: 1024px) { .filters__apply .btn-teal { display: none; } .filters__apply { margin-top: 16px; } }

/* ---------- Profile detail ---------- */
.profile-hero { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-800) 70%, #4A0D2C 140%); color: #fff; border-radius: var(--r-xl); padding: clamp(22px, 4vw, 36px); position: relative; overflow: hidden; }
.profile-hero::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern-light.svg") center / 150px; opacity: .14; pointer-events: none; }
.profile-hero > * { position: relative; z-index: 1; }
.profile-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 6px; }
.profile-hero p { color: rgba(255, 255, 255, .82); margin: 0; }
.profile-hero__top { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .profile-hero__top { grid-template-columns: auto 1fr auto; } }
.profile-hero .mono { width: 112px; height: 112px; font-size: 2.4rem; border: 4px solid rgba(255, 255, 255, .85); }
.profile-hero .pill { background: rgba(255, 255, 255, .14); color: #fff; }
.profile-hero .pill--gold { background: rgba(201, 162, 74, .25); color: #F6E3B4; }
.big-ring { --p: 80; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .16) 0); }
.big-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--teal-800); }
.big-ring div { position: relative; text-align: center; line-height: 1.1; }
.big-ring strong { display: block; font-size: 1.6rem; font-family: var(--font-serif); color: #fff; }
.big-ring small { font-size: .68rem; color: rgba(255, 255, 255, .75); text-transform: uppercase; letter-spacing: .08em; }
.profile-layout { display: grid; gap: 20px; margin-top: 20px; padding-bottom: 96px; }
@media (min-width: 1024px) { .profile-layout { grid-template-columns: 1fr 340px; align-items: start; } }
.dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
@media (min-width: 640px) { .dl { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); font-size: .93rem; }
.card h2.card-title { font-family: var(--font-sans); font-size: 1.08rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title svg { width: 20px; height: 20px; color: var(--pink); }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reasons li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.reasons li .yes { color: var(--ok); } .reasons li .no { color: var(--soft); }
.sticky-actions { position: sticky; top: calc(var(--header-h) + 16px); }
.mobile-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.mobile-actions .btn { flex: 1; }
@media (min-width: 1024px) { .mobile-actions { display: none; } }

/* ---------- Dashboard ---------- */
.app-shell { padding-bottom: 96px; }
@media (min-width: 1024px) { .app-shell { padding-bottom: 48px; } }
.welcome { display: grid; gap: 16px; background: linear-gradient(135deg, #fff 0%, var(--pink-50) 100%); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 32px); }
@media (min-width: 900px) { .welcome { grid-template-columns: 1fr 320px; align-items: center; } }
.welcome h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 6px; }
.meter { height: 10px; border-radius: 99px; background: var(--teal-50); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-600), var(--pink)); border-radius: 99px; transition: width .6s var(--ease); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.stat-card:hover { border-color: var(--pink-100); color: var(--ink); }
.stat-card strong { font-family: var(--font-serif); font-size: 1.6rem; color: var(--teal); line-height: 1.1; }
.stat-card span { font-size: .85rem; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 2.5px solid transparent; margin-bottom: -1px; font-size: .92rem; min-height: 46px; }
.tabs button[aria-selected="true"] { color: var(--pink); border-bottom-color: var(--pink); }
.tabs .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--pink-50); color: var(--pink); font-size: .72rem; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.list-item + .list-item { margin-top: 10px; }
.list-item__body { flex: 1; min-width: 0; }
.list-item__body strong { display: block; color: var(--ink); }
.list-item__body small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .list-item { flex-wrap: wrap; } .list-item__actions { width: 100%; } .list-item__actions .btn { flex: 1; } }
.empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed #DCCFD5; border-radius: var(--r-lg); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--pink-100); }
.empty h3 { color: var(--ink); }
.lock-card { position: relative; overflow: hidden; }
.lock-card__blur { filter: blur(6px); pointer-events: none; user-select: none; }
.lock-card__over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: rgba(255, 255, 255, .6); }

/* ---------- App bottom nav (mobile) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: .68rem; font-weight: 600; color: var(--soft); position: relative; min-height: 48px; justify-content: center; }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--pink); }
.bottom-nav .dot { position: absolute; top: 4px; right: calc(50% - 18px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .62rem; display: grid; place-items: center; }
@media (min-width: 1024px) { .bottom-nav { display: none; } }
body.has-bottom-nav .mobile-actions { bottom: 64px; }

/* ---------- Messages ---------- */
.chat { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: calc(100vh - var(--header-h) - 150px); min-height: 460px; }
@media (min-width: 900px) { .chat { grid-template-columns: 320px 1fr; height: calc(100vh - var(--header-h) - 120px); } }
.chat__list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat__list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.chat__list button:hover, .chat__list button[aria-current="true"] { background: var(--pink-50); }
.chat__list strong { display: block; color: var(--ink); font-size: .95rem; }
.chat__list small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.chat__pane { display: flex; flex-direction: column; min-height: 0; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat__head strong { display: block; color: var(--ink); }
.chat__head small { color: var(--muted); }
.chat__body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg) url("../img/pattern.svg") center / 140px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.45; box-shadow: var(--sh-1); word-wrap: break-word; }
.bubble time { display: block; font-size: .68rem; margin-top: 4px; opacity: .7; }
.bubble--me { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.bubble--them { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.sys-note { align-self: center; font-size: .78rem; color: var(--muted); background: rgba(255, 255, 255, .9); padding: 6px 12px; border-radius: 99px; text-align: center; max-width: 92%; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat__form .input { border-radius: 999px; }
.chat__form .btn { min-width: 48px; padding: 0 16px; }
@media (max-width: 899px) {
  .chat.is-thread .chat__list { display: none; }
  .chat:not(.is-thread) .chat__pane { display: none; }
}
.chat__back { display: inline-grid; }
@media (min-width: 900px) { .chat__back { display: none; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 960px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px 26px; box-shadow: var(--sh-1); }
.plan--hot { border: 2px solid var(--pink); box-shadow: var(--sh-3); }
.plan--hot .plan__tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; font-size: .74rem; font-weight: 700; padding: 6px 14px; border-radius: 99px; letter-spacing: .04em; }
.plan--gold { background: linear-gradient(170deg, var(--teal) 0%, var(--teal-800) 100%); border: 0; color: #fff; }
.plan--gold h3, .plan--gold .plan__price { color: #fff; }
.plan--gold p, .plan--gold li { color: rgba(255, 255, 255, .82) !important; }
.plan--gold li::before { color: var(--gold) !important; }
.plan h3 { font-size: 1.2rem; }
.plan__price { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 700; color: var(--teal); margin: 6px 0 4px; line-height: 1.1; }
.plan__price small { font-family: var(--font-sans); font-size: .9rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 11px; flex: 1; }
.plan li { position: relative; padding-left: 28px; color: var(--muted); font-size: .94rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-600); font-weight: 800; }
.plan li.off { opacity: .5; } .plan li.off::before { content: "–"; }
.pay-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--pink-100); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; color: var(--teal); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--pink); transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 6vw, 64px) clamp(22px, 5vw, 56px); text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-800) 55%, #6A1238 130%); box-shadow: var(--sh-3); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern-light.svg") center / 150px; opacity: .12; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 560px; margin: 0 auto 26px; }
.cta-band .row { justify-content: center; }

/* ---------- Auth / wizard ---------- */
.auth { padding: clamp(28px, 6vw, 64px) 0 80px; }
.auth__wrap { display: grid; gap: 28px; align-items: start; max-width: 1060px; margin: 0 auto; }
@media (min-width: 960px) { .auth__wrap { grid-template-columns: .85fr 1.15fr; } .auth__wrap--narrow { grid-template-columns: 1fr; max-width: 460px; } }
.auth__aside { display: none; border-radius: var(--r-xl); overflow: hidden; position: relative; min-height: 560px;
  background: linear-gradient(170deg, var(--teal) 0%, var(--teal-800) 65%, #5B0F35 130%); color: #fff; padding: 36px; }
.auth__aside::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern-light.svg") center / 150px; opacity: .12; }
.auth__aside > * { position: relative; z-index: 1; }
.auth__aside h2 { color: #fff; }
.auth__aside p, .auth__aside li { color: rgba(255, 255, 255, .85); }
.auth__aside .ticks li svg { color: var(--gold); }
.auth__aside .ticks li strong { color: #fff; }
@media (min-width: 960px) { .auth__aside { display: block; } }
.auth__box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: clamp(22px, 4vw, 40px); }
.auth__box h1 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-bottom: 6px; }
.stepper { display: flex; gap: 6px; margin: 18px 0 26px; }
.stepper span { flex: 1; height: 6px; border-radius: 99px; background: var(--teal-50); transition: background .3s; }
.stepper span.is-done { background: var(--teal-600); }
.stepper span.is-on { background: var(--pink); }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: fadeUp .35s var(--ease); }
.wizard-step h2 { font-family: var(--font-sans); font-size: 1.15rem; margin-bottom: 4px; }
.wizard-nav { display: flex; gap: 10px; margin-top: 26px; }
.wizard-nav .btn { flex: 1; }
.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: .9rem; margin-top: 14px; }
.alert--err { background: #FEF2F2; color: var(--err); border: 1px solid #FECACA; }
.alert--ok { background: #F0FDF4; color: var(--ok); border: 1px solid #BBF7D0; }
.alert--info { background: var(--teal-50); color: var(--teal); border: 1px solid var(--teal-100); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Content pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul { color: var(--muted); padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.note { background: var(--gold-50); border: 1px solid #F0E0B5; color: #6B5317; border-radius: var(--r); padding: 14px 16px; font-size: .9rem; }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-end; justify-content: center; padding: 0; background: rgba(3, 53, 55, .5); }
.modal.is-open { display: flex; animation: fadeIn .2s; }
.modal__box { width: 100%; max-width: 520px; background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; animation: slideUp .3s var(--ease); }
@media (min-width: 640px) { .modal { align-items: center; padding: 20px; } .modal__box { border-radius: var(--r-xl); } }
.modal__box h2 { font-family: var(--font-sans); font-size: 1.2rem; }
.modal__actions { display: flex; gap: 10px; margin-top: 20px; }
.modal__actions .btn { flex: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.toasts { position: fixed; z-index: 130; left: 50%; transform: translateX(-50%); bottom: 88px; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 1024px) { .toasts { bottom: 24px; } }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: .9rem; box-shadow: var(--sh-2); display: flex; gap: 10px; align-items: center; animation: slideUp .3s var(--ease); }
.toast svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-800); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-light.svg") center / 160px; opacity: .05; }
.footer > * { position: relative; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer__about { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer__about { grid-column: auto; } }
.footer .brand { color: #fff; }
.footer .brand b { color: var(--gold); }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { display: block; color: rgba(255, 255, 255, .78); padding: 5px 0; font-size: .93rem; }
.footer a:hover { color: var(--gold); }
.footer p { color: rgba(255, 255, 255, .66); font-size: .92rem; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
.footer__bottom a { display: inline; }
body.has-bottom-nav .footer { padding-bottom: 96px; }
@media (min-width: 1024px) { body.has-bottom-nav .footer { padding-bottom: 28px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Tweaks ---------- */
.pb-short { display: inline; }
.pb-long { display: none; }
@media (min-width: 760px) { .pb-short { display: none; } .pb-long { display: inline; } }
.hero::before {
  background:
    radial-gradient(800px 480px at 88% 8%, rgba(194, 24, 91, .14), transparent 62%),
    radial-gradient(620px 420px at 0% 72%, rgba(5, 74, 77, .10), transparent 65%),
    linear-gradient(180deg, #FFF6FA 0%, var(--bg) 100%);
}
.choice span svg { width: 20px; height: 20px; flex: 0 0 auto; }
.drawer { visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
.drawer.is-open { visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
.drawer nav a svg, .drawer__cta svg { width: 20px; height: 20px; }
.feat-icon svg, .empty svg, .card-title svg, .pill svg, .chip svg, .ticks svg, .trust-row svg { flex: 0 0 auto; }
.lock-card__over svg { width: 28px; height: 28px; margin: 0 auto; color: var(--pink); }
.alert svg, .sys-note svg { width: 18px; height: 18px; }
.chip svg { width: 15px; height: 15px; }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-1); }
.post-card__link { position: absolute; inset: 0; z-index: 1; }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.1rem; line-height: 1.35; margin: 0; color: var(--ink); }
.post-card h3 a { color: inherit; }
.post-card:hover h3 a { color: var(--pink); }
.post-card p { font-size: .92rem; margin: 0; flex: 1; }
.post-card__more { font-weight: 700; font-size: .88rem; color: var(--pink); margin-top: 6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--soft); font-weight: 600; }
.post-meta span + span::before { content: "·"; margin-right: 14px; }
.cover { position: relative; aspect-ratio: 16 / 7; display: grid; place-items: center; overflow: hidden; color: #fff; }
.cover::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern-light.svg") center / 110px; opacity: .14; }
.cover svg { width: 46px; height: 46px; position: relative; z-index: 1; opacity: .95; }
.cover--big { border-radius: var(--r-xl); aspect-ratio: 16 / 6; margin: 8px 0 32px; box-shadow: var(--sh-2); }
.cover--big svg { width: 72px; height: 72px; }
.cover--c1 { background: linear-gradient(135deg, var(--teal), var(--teal-800)); }
.cover--c2 { background: linear-gradient(135deg, var(--pink), #6A1238); }
.cover--c3 { background: linear-gradient(135deg, #0A6B6F, #2E1A47); }
.cover--c4 { background: linear-gradient(135deg, #B98A2E, #6A1238); }
.cover--c5 { background: linear-gradient(135deg, #2E4F4F, var(--pink-700)); }
.post-head { padding: clamp(28px, 5vw, 56px) 0 8px; background: linear-gradient(180deg, var(--pink-50), var(--bg)); }
.post-container { max-width: 780px; }
.post-head h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: 14px 0 12px; }
.post-head .lead { margin-bottom: 16px; }
.crumbs { color: var(--soft); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.post-body { font-size: 1.06rem; line-height: 1.8; }
.post-body p, .post-body li { color: #3A4250; }
.post-body h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 1.8em 0 .6em; }
.post-body h3 { font-size: 1.12rem; margin: 1.5em 0 .4em; color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.post-body li { margin: 8px 0; }
.post-body li::marker { color: var(--pink); font-weight: 700; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pink-100); }
.post-body blockquote { margin: 1.4em 0; padding: 18px 22px; background: #fff; border-left: 4px solid var(--gold); border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--sh-1); }
.post-body blockquote p { margin: 0 0 .6em; font-style: italic; }
.post-body blockquote p:last-child { margin: 0; }
.post-cta { display: grid; gap: 14px; align-items: center; margin: 40px 0 20px; padding: 22px 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--teal-50), var(--pink-50)); border: 1px solid var(--line); }
.post-cta strong { color: var(--teal); font-size: 1.1rem; }
.post-cta p { margin: 4px 0 0; }
@media (min-width: 640px) { .post-cta { grid-template-columns: 1fr auto; } }
.post-share { display: flex; flex-wrap: wrap; gap: 14px; padding: 18px 0 48px; color: var(--muted); }
.post-share a { font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 22px; margin: 22px 0 28px; }
.legal-toc strong { color: var(--teal); font-size: .95rem; }
.legal-toc ol { margin: 10px 0 0; padding-left: 1.3em; columns: 2; column-gap: 28px; font-size: .92rem; }
.legal-toc li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal .prose h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal .prose p, .legal .prose li { color: #3A4250; line-height: 1.75; }
.urdu-box { background: linear-gradient(135deg, var(--teal-50), var(--pink-50)); border: 1px solid var(--line); border-right: 4px solid var(--gold); border-radius: var(--r-lg); padding: 18px 22px; margin: 0 0 8px; text-align: right; }
.urdu-box h2 { margin: 0 0 6px !important; font-size: 1.35rem; color: var(--teal); }
.urdu-box p { font-size: 1.08rem; margin: 0 0 8px; color: var(--ink) !important; line-height: 2.2 !important; }
.footer__notice { margin: 36px 0 0; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); font-size: .85rem; color: rgba(255,255,255,.75); }
.footer__notice a { display: inline; color: var(--gold); padding: 0; }

/* ---------- Real member photos, uploads (v3) ---------- */
img.mono { object-fit: cover; background: var(--teal-50); padding: 0; }
.pcard__media .pcard__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__media:has(.pcard__photo)::after { display: none; }
.pill--sample { background: #fff; color: var(--muted); border: 1px dashed #C9C2C6; }
.alert--warn { background: #FFFBEB; color: var(--warn); border: 1px solid #FDE68A; }
.status-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; }
.status-note svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.status-note .btn { margin-top: 8px; }
.upload-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .upload-grid--2 { grid-template-columns: 1fr 1fr; } }
.upload-grid .full { grid-column: 1 / -1; }
.upload { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px dashed #D8CFD3; border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.upload:hover, .upload:focus-within { border-color: var(--pink); background: var(--pink-50); }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload[aria-invalid="true"], .upload:has(input[aria-invalid="true"]) { border-color: var(--err); background: #FEF2F2; }
.upload strong { display: block; color: var(--ink); font-size: .95rem; }
.upload small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.upload__preview { width: 68px; height: 68px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); overflow: hidden; }
.upload__preview svg { width: 26px; height: 26px; }
.upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo-tile { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--teal-50); aspect-ratio: 4 / 5; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile .pill { position: absolute; top: 8px; left: 8px; }
.photo-tile__actions { position: absolute; inset: auto 0 0 0; display: flex; gap: 6px; padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.photo-tile__actions button { flex: 1; min-height: 32px; font-size: .72rem; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 600; cursor: pointer; }
.gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery img { width: 150px; height: 190px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); flex: 0 0 auto; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Safety warning under a chat message that mentions money (v4) */
.bubble-warn { align-self: flex-start; max-width: 85%; display: flex; gap: 8px; align-items: flex-start; margin: -2px 0 6px; padding: 9px 12px; border-radius: 12px;
  background: #FFFBEB; border: 1px solid #FDE68A; color: #7C4A03; font-size: .8rem; line-height: 1.45; }
.bubble-warn svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.bubble-warn a { color: #7C4A03; font-weight: 700; }

/* City & biradari hubs (v4) */
.hub-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 22px 0 8px; }
.hub-tile { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; transition: border-color .2s, transform .2s; }
.hub-tile:hover { border-color: var(--pink); transform: translateY(-2px); }
.hub-tile strong { display: block; color: var(--teal); font-size: 1.02rem; }
.hub-tile span { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; }
.prose .chips a.chip { text-decoration: none; }
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hub-tile { padding: 11px 12px; }
  .hub-tile strong { font-size: .92rem; }
  .hub-tile span { display: none; }
}

/* Membership payment modal */
.paybox{display:flex;gap:14px;align-items:flex-start;border:1px solid var(--line,#E6DDE1);border-radius:16px;padding:14px 16px;margin-top:12px;background:#fff}
.paybox__step{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--pink,#C2185B);color:#fff;font-weight:800;display:grid;place-items:center;font-size:.9rem}
.paybox__body{flex:1;min-width:0}
.paybox__lead{margin:2px 0 8px;font-weight:600}
.paybox__num{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--teal-50,#E6F2F1);border-radius:12px;padding:10px 12px}
.paybox__num span{font-size:1.45rem;font-weight:800;letter-spacing:.03em;color:var(--teal,#054A4D)}
#cr-modal .modal__box{max-height:92vh;overflow:auto}
.pay-safe svg{width:16px;height:16px;vertical-align:-3px;margin-right:4px}
.pkgs{display:grid;gap:8px;margin-top:4px}
.pkg{display:flex;align-items:center;gap:10px;border:1.5px solid var(--line,#E6DDE1);border-radius:14px;padding:11px 14px;cursor:pointer;background:#fff}
.pkg input{accent-color:#C2185B;width:18px;height:18px;flex:0 0 auto}
.pkg__name{flex:1;font-weight:600;font-size:.95rem}
.pkg__name em{font-style:normal;font-size:.72rem;font-weight:700;background:#FDF0F5;color:#A3134F;border-radius:999px;padding:2px 8px;margin-left:4px;white-space:nowrap}
.pkg strong{white-space:nowrap;color:var(--teal,#054A4D)}
.pkg.is-on{border-color:#C2185B;background:#FFF8FB}
.pkg.is-off{opacity:.5;cursor:not-allowed}
.plan-opts{display:grid;gap:10px;margin-top:6px}
.plan-opt{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:1.5px solid var(--line,#E6DDE1);background:#fff;border-radius:14px;padding:12px 16px;font:inherit;cursor:pointer;text-align:left;color:var(--ink,#1A1F2B)}
.plan-opt:hover{border-color:#C2185B}
.plan-opt span{font-weight:600}
.plan-opt em{display:block;font-style:normal;font-size:.75rem;font-weight:700;color:#A3134F}
.plan-opt strong{font-size:1.05rem;color:var(--teal,#054A4D);white-space:nowrap}
.plan-opt.is-pop{border-color:#C2185B;background:#FFF8FB}
/* Bilingual blog: Urdu articles */
.lang-switch{margin:6px 0 10px}
.lang-switch a{display:inline-block;font-weight:700;font-size:.92rem;padding:6px 14px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--teal)}
.lang-switch a.urdu{font-size:1.02rem;padding:2px 16px 8px}
.urdu-head{text-align:right}
.urdu-head h1{font-family:var(--font-urdu);font-weight:600;line-height:2;font-size:clamp(1.6rem,4.4vw,2.4rem)}
.urdu-head .lead{line-height:2.1}
.urdu-article{font-family:var(--font-urdu);direction:rtl;text-align:right;font-size:1.12rem;line-height:2.35}
.urdu-article h2,.urdu-article h3{font-family:var(--font-urdu);font-weight:600;line-height:2;margin-top:1.4em}
.urdu-article ul,.urdu-article ol{padding-right:1.4em;padding-left:0}
.urdu-article li{margin-bottom:.35em}
.ur-related{margin:28px 0 8px;text-align:right}
.ur-related h2{font-size:1.3rem}
.ur-related ul{line-height:2.2;padding-right:1.2em}
.ur-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.ur-card a{display:block;height:100%;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:18px 20px;color:var(--ink);text-align:right;font-family:var(--font-urdu)}
.ur-card a:hover{border-color:var(--pink)}
.ur-card h2{font-family:var(--font-urdu);font-size:1.2rem;line-height:2;color:var(--teal);margin:8px 0 4px}
.ur-card p{line-height:2.1;color:var(--muted);font-size:.98rem}
.ur-more{color:var(--pink);font-weight:600}
.post--ur .post-cta .urdu p{line-height:2.1}
