/* Mangalya Vivah — premium layer (Phase 1 building blocks).
   Loaded LAST on every member, public and sign-up page, after mv.css / signup.css and the page's own sheet, so it only
   refines what is already there: look and spacing only, no markup the code depends on. Removing this one file brings
   back the previous look.
   Rules every page follows:
     ivory page · soft white cards with depth (no outlines) · ONE deep plum card per screen · kumkum only for what you tap
     · gold only as fine lines, the verified tick and small marks · red soil (--mati) for the Kokan signature and warnings
     · nothing smaller than 13-14px · tap areas of 44px or more · one thin line-icon style. */

:root {
  --rice: #FAF7F2;                 /* ivory page (was #FCFAF7) */
  --cream: #FAF7F2;
  --line: rgba(43, 18, 48, .09);   /* hairlines between rows */
  --hair: rgba(199, 154, 59, .35); /* gold hairline: bars, dividers */
  --haldi-deep: #8A6418;           /* gold that is readable as text or an icon on white */
  --mati: #B5432A;                 /* Kokan red soil */
  --mati-soft: #FCF0EC;
  --lift: 0 1px 2px rgba(43, 18, 48, .06), 0 12px 28px -18px rgba(90, 30, 50, .35);
  --lift-lg: 0 2px 4px rgba(43, 18, 48, .06), 0 22px 44px -24px rgba(90, 30, 50, .5);
  --plum-card: inset 0 0 0 1px rgba(199, 154, 59, .55), 0 16px 34px -20px rgba(43, 18, 48, .8);
  /* sign-up uses its own names for the same colours */
  --bg: #FAF7F2;
  --card: #FFFFFF;
}

/* ---------- Top bar: soft, see-through, gold hairline ---------- */
.mv-header { background: rgba(250, 247, 242, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--hair); }
.mv-langs { background: transparent; box-shadow: inset 0 0 0 1.5px var(--plum); border-radius: 999px; padding: 2px; }
.mv-lang { border-radius: 999px; min-height: 34px; display: inline-flex; align-items: center; padding: 6px 12px; }
@media (max-width: 380px) { .mv-lang { padding: 6px 9px; } }

/* ---------- Buttons ---------- */
.mv-btn { box-shadow: 0 8px 18px -10px rgba(163, 25, 91, .55); }
.mv-btn-ghost, .mv-btn-light { box-shadow: inset 0 0 0 1.5px var(--kumkum), 0 8px 18px -14px rgba(90, 30, 50, .4); background: var(--paper); }
.mv-btn-ghost:hover { background: var(--paper); filter: brightness(.98); }
.mv-btn-sm { min-height: 44px; }

/* ---------- Bottom menu: colour shows where you are, no pill ---------- */
.mv-tabbar { background: rgba(255, 255, 255, .92); border-top: 1px solid var(--hair); }
.mv-tabbar a[aria-current] .mv-tab-ico { background: transparent; }
.mv-tabbar a[aria-current] { font-weight: 600; }
.mv-tabbar a { min-height: 52px; }

/* ---------- WhatsApp button: smaller, clear of the text and the menu ---------- */
.mv-wa { width: 46px; height: 46px; right: 14px; bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); }
.mv-wa svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .mv-wa { bottom: 24px; right: 24px; } }

/* ---------- Messages ("Saved", errors) as soft cards ---------- */
.mv-flash { background: var(--paper); color: var(--ink); box-shadow: inset 3px 0 0 var(--paithani), var(--lift); border-radius: 14px; }

/* ---------- Cards and lists: depth instead of outlines ---------- */
.mb-card, .ch-list, .mb-similar a, .mb-more-box, .sr-near-head, .sr-card { box-shadow: var(--lift); border: 0; }
.mb-card { border-radius: 18px; }
.ch-list { border-radius: 18px; }
.ch-list li + li { border-top-color: var(--line); }
.ch-row-side small { font-size: 13px; }
.mb-dl div { border-top-color: var(--line); }

/* Welcome checklist and "add a photo" invitation: white cards, gold only as the fine edge of the frame */
.dc-welcome { border: 0; box-shadow: var(--lift); border-radius: 18px; }
.dc-nudge { background: var(--paper); box-shadow: var(--lift); }

/* Chips and tags: small white pills with depth */
.dc-chip, .sr-chip:not(.sr-chip-main):not(.sr-chip-swipe) { background: var(--paper); box-shadow: 0 1px 2px rgba(43, 18, 48, .08), 0 6px 14px -10px rgba(90, 30, 50, .4); }
.sr-chip.is-set { background: var(--kumkum-soft); box-shadow: inset 0 0 0 1.5px var(--kumkum); }
.dc-act { box-shadow: var(--lift); }

/* Verified badge: white with a gold tick (gold = verified), not green */
.mb-badge { background: var(--paper); color: var(--plum); box-shadow: 0 1px 2px rgba(43, 18, 48, .08), 0 6px 14px -10px rgba(90, 30, 50, .45); font-weight: 600; padding: 4px 11px 4px 6px; }
.mb-badge::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--haldi); color: #fff; font-size: 11px; }

/* Tabs inside a page (Interests: received / sent / accepted / saved): phone-style segmented switch */
.mb-tabs { background: rgba(43, 18, 48, .06); border-radius: 14px; padding: 3px; gap: 2px; }
.mb-tabs a { border-radius: 11px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted) !important; }
.mb-tabs a[aria-current] { background: var(--paper); color: var(--plum) !important; font-weight: 600; box-shadow: 0 2px 6px rgba(43, 18, 48, .12); }

/* Search box, sort switch and saved searches */
.sr-box { border: 0; box-shadow: var(--lift); }
.sr-box:focus-within { box-shadow: 0 0 0 2px var(--kumkum), var(--lift); }
.sr-sort { background: rgba(43, 18, 48, .06); box-shadow: none; }
.sr-saved li { box-shadow: var(--lift); }

/* ---------- Chat: your messages in plum, theirs white ---------- */
.ch-msg { box-shadow: var(--lift); border-radius: 6px 18px 18px 18px; }
.ch-msg.is-mine { background: var(--plum); color: #F6EFE6; border-radius: 18px 6px 18px 18px; box-shadow: 0 10px 22px -14px rgba(43, 18, 48, .8); }
.ch-msg.is-mine time { color: rgba(246, 239, 230, .72); }
.ch-msg time { font-size: 12px; }

/* ---------- Forms (My account) ---------- */
.me-form :is(select, input, textarea) { border-color: rgba(43, 18, 48, .15); }
.me-radio-list label:has(input:checked) { background: var(--paper); }

/* ---------- Sign-up pages: same parts ---------- */
.su-btn { box-shadow: 0 8px 18px -10px rgba(163, 25, 91, .55); }
.su-btn-ghost { box-shadow: inset 0 0 0 1.5px var(--brand); border: 0; }
.su-hint, .su-fine, .su-err, .su-stepnote { font-size: 14px; }
.su-lock { font-size: 13px; }
body.su input[type=text], body.su input[type=tel], body.su input[type=email], body.su input[type=password], body.su input[type=date], body.su select { border-color: rgba(43, 18, 48, .15); border-radius: 14px; }

/* ---------- Shared parts for pages that add them ---------- */
/* One deep plum card per screen: the single most important thing */
.pm-plum { background: var(--plum); color: #F6EFE6; border-radius: 20px; padding: 18px 20px; box-shadow: var(--plum-card); }
.pm-plum h2, .pm-plum h3 { color: var(--haldi) !important; font: 400 21px/1.25 var(--display); margin: 0 0 10px; }
.pm-plum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-plum li { display: flex; gap: 10px; }
.pm-plum li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .62em; transform: rotate(45deg); background: var(--haldi); }
.pm-plum a { color: #fff; }
/* Careful (red-soil edge) and tip (gold icon) cards */
.pm-warn, .pm-tip { background: var(--paper); border-radius: 18px; padding: 16px 18px; box-shadow: var(--lift); }
.pm-warn { box-shadow: inset 3px 0 0 var(--mati), var(--lift); }
.pm-warn h2, .pm-warn h3 { color: var(--mati) !important; font: 600 17px/1.35 var(--body); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.pm-tip h2, .pm-tip h3 { color: var(--plum) !important; font: 600 17px/1.35 var(--body); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.pm-warn svg, .pm-tip svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm-tip svg { color: var(--haldi-deep); }
.pm-warn p, .pm-tip p, .pm-warn ul, .pm-tip ul { margin: 0; color: #4A3D4D; }
.pm-warn ul, .pm-tip ul { padding-left: 20px; display: grid; gap: 4px; }
/* Short red-soil line under a page title */
.pm-rule { display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--mati); margin: 10px 0 8px; }

/* WhatsApp on phones: not floating over the text of policy pages (the Help tab and the Contact page reach us instead) */
@media (max-width: 899px) {
  body:has(.pl-tabs) .mv-wa { display: none; }
  body:has(.pl-tabs a[aria-current][href$="/contact"]) .mv-wa { display: grid; }
}

/* Homepage questions: the same tap-to-open cards as the Questions page */
.mv-faq details { border: 0; background: var(--paper); border-radius: 18px; margin: 0 0 10px; box-shadow: var(--lift); }
.mv-faq summary { padding: 15px 52px 15px 18px; min-height: 56px; color: var(--plum); }
.mv-faq summary::after { content: "+"; border: 1.5px solid var(--haldi-deep); color: var(--haldi-deep); width: 26px; height: 26px; border-radius: 50%; right: 16px; transform: translateY(-50%); display: grid; place-items: center; font-size: 18px; font-weight: 500; line-height: 1; }
.mv-faq details[open] summary::after { content: "–"; transform: translateY(-50%); background: var(--plum); border-color: var(--plum); color: #fff; }
.mv-faq details p { padding: 0 18px 16px; margin: 0; color: #4A3D4D; }
.mv-faq details[open] p { animation: pl-open .28s ease-out; }
@keyframes pl-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* "Add your photo" invitation: a white card with depth; gold stays only as the dashed frame */
.pp, .pp-big { background: var(--paper); border: 0; box-shadow: var(--lift); border-radius: 20px; }
.pp-plus { box-shadow: 0 0 0 3px var(--paper); }
.pp h2 { color: var(--plum); }
.pp .pp-safe { font-size: 14px; }
/* Small lightly tinted notes keep a quiet ivory instead of pink */
.ch-closed, .mb-guna-note { background: var(--rice); box-shadow: inset 0 0 0 1px var(--line); }
.mv-bell[aria-current] { background: transparent; }

/* Search: the Filters chip stays plum and "swipe these results" stays kumkum (white text on them) */
.sr-chip-main, .sr-chip-swipe { box-shadow: 0 8px 18px -10px rgba(43, 18, 48, .55); }

/* Sign-up: notes in the gold "good to know" style instead of blue; language switch as a plum outline */
.su-note { background: var(--card); color: var(--ink); border: 0; box-shadow: inset 3px 0 0 #C79A3B, 0 1px 2px rgba(43, 18, 48, .06), 0 12px 28px -18px rgba(90, 30, 50, .35); border-radius: 14px; }
.su-langs { background: transparent; box-shadow: inset 0 0 0 1.5px #2B1230; }

/* ================= Phase 3: app feel ================= */

/* Smooth page changes: each new page's content eases in, while the top bar and bottom menu stay put. (Browsers
   already keep the old page on screen until the new one is ready, so there is no white flash.) The full browser
   "view transition" was tried and left out: it logs errors on pages that leave the site (DigiLocker, payment). */
main { animation: mv-page-in .22s ease-out; }   /* opacity only: a moving transform would shift fixed sheets and bars */
@keyframes mv-page-in { from { opacity: 0; } }

/* One "Saved" message everywhere: plum, with a gold edge */
.dc-toast { background: var(--plum); color: #F6EFE6; box-shadow: inset 3px 0 0 var(--haldi), 0 16px 34px -16px rgba(23, 10, 25, .7); border-radius: 16px; }
.dc-toast button { color: var(--haldi); }
.mb-notice { background: var(--plum); color: #F6EFE6; box-shadow: inset 3px 0 0 var(--haldi), 0 14px 30px -18px rgba(23, 10, 25, .7); border-radius: 16px; padding: 12px 16px; animation: mv-pop .28s ease-out; }
.mb-notice a { color: var(--haldi); }
@keyframes mv-pop { from { opacity: 0; transform: translateY(-6px); } }

/* One slide-up sheet for every choice (filters, search filters, photo crop, decline reasons) */
.dc-sheet { border-radius: 26px 26px 0 0; box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .45); }
.dc-sheet::backdrop, .py-fake::backdrop, .cs-dialog::backdrop { background: rgba(23, 10, 25, .42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dc-sheet[open] { animation: mv-sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
.dc-sheet-head { padding-top: 22px; position: relative; }
.dc-sheet-head::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(43, 18, 48, .18); }
.dc-sheet-head h2 { color: var(--plum); }
.dc-sheet-foot { border-top-color: var(--hair); }
@keyframes mv-sheet-up { from { transform: translateY(40px); opacity: .4; } }
.mb-decline[open]::before { background: rgba(23, 10, 25, .42); }
.mb-decline-box { border-radius: 26px; padding: 22px 18px 18px; box-shadow: 0 -10px 50px -12px rgba(23, 10, 25, .55); animation: mv-sheet-up-c .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes mv-sheet-up-c { from { transform: translate(-50%, 40px); opacity: .4; } }   /* this box is centred with translateX(-50%) */
.mb-decline-box::before { content: ""; justify-self: center; width: 40px; height: 5px; margin: -10px 0 4px; border-radius: 3px; background: rgba(43, 18, 48, .18); }
.mb-decline-t { font: 400 20px/1.3 var(--display); color: var(--plum); }
.mb-radio { padding: 12px 14px; border-radius: 14px; background: var(--rice); align-items: center; min-height: 48px; cursor: pointer; }
.mb-radio:has(input:checked) { background: var(--paper); box-shadow: inset 0 0 0 2px var(--kumkum); }
.mb-radio input { margin-top: 0; accent-color: var(--kumkum); width: 18px; height: 18px; }
.py-fake, .cs-dialog { border-radius: 24px; }

/* My profile: the progress card is the one plum card on the screen */
.mb-progress { background: var(--plum); color: #F6EFE6; box-shadow: var(--plum-card); border-radius: 20px; }
.mb-progress h2 { color: var(--haldi) !important; font: 400 21px/1.25 var(--display); }
.mb-progress p { color: rgba(246, 239, 230, .85); }
.mb-progress .mb-ring { background: conic-gradient(var(--haldi) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); }
.mb-progress .mb-ring span { background: var(--plum); color: #fff; }
.mb-progress .mb-todo a { background: rgba(255, 255, 255, .08); color: #F6EFE6 !important; box-shadow: inset 0 0 0 1px rgba(199, 154, 59, .35); }
.mb-progress .mb-todo a::after { color: var(--haldi); }
.mb-progress .mb-todo b { color: var(--haldi); }
.mb-progress a:focus-visible { outline-color: var(--haldi); }

/* Plans: the longest plan (best value, shown last) is the one plum card; the others are white cards */
.py-h1 { color: var(--plum); }
.py-now { background: var(--paper); box-shadow: var(--lift); border-radius: 18px; }
.py-now.is-on { background: var(--paper); box-shadow: inset 3px 0 0 var(--paithani), var(--lift); }
.py-plan { border: 0; box-shadow: var(--lift); border-radius: 22px; }
.py-plans:not(.py-plans-c1) .py-plan:last-child { background: var(--plum); color: #F6EFE6; box-shadow: var(--plum-card); }
.py-plans:not(.py-plans-c1) .py-plan:last-child h2 { color: var(--haldi); }
.py-plans:not(.py-plans-c1) .py-plan:last-child .py-once, .py-plans:not(.py-plans-c1) .py-plan:last-child .py-desc, .py-plans:not(.py-plans-c1) .py-plan:last-child .py-price small { color: rgba(246, 239, 230, .78); }
.py-history li { border-bottom-color: var(--line); }

/* Loading placeholder on Discover: a soft shimmering arch instead of a spinner */
#dc-loading { inset: 0 0 auto 0; height: 100%; border-radius: 999px 999px 22px 22px; place-content: end center; padding-bottom: 28px;
  background: linear-gradient(100deg, #EFE8EB 30%, #F8F3F5 50%, #EFE8EB 70%); background-size: 300% 100%; animation: mv-shimmer 1.4s linear infinite; }
#dc-loading .dc-spin { display: none; }
@keyframes mv-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
