/* Vivah Match front-end screens */
.vm-app {
	--vm-primary: #8b1e3f;
	--vm-primary-dark: #6d1631;
	--vm-gold: #c99a2e;
	--vm-ink: #2b2024;
	--vm-muted: #6f6266;
	--vm-line: #e7dcdf;
	--vm-bg: #fbf7f5;
	--vm-card: #fff;
	--vm-ok: #1f7a4d;
	--vm-ok-bg: #e6f4ec;
	--vm-warn: #8a5a00;
	--vm-warn-bg: #fdf3dc;
	--vm-bad: #a2232b;
	--vm-bad-bg: #fbe8e9;
	--vm-radius: 12px;

	color: var(--vm-ink);
	max-width: 960px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}
.vm-app *, .vm-app *::before, .vm-app *::after { box-sizing: border-box; }
.vm-app a { color: var(--vm-primary); }

.vm-card {
	background: var(--vm-card);
	border: 1px solid var(--vm-line);
	border-radius: var(--vm-radius);
	padding: clamp(1rem, 3vw, 2rem);
	margin-bottom: 1.25rem;
	box-shadow: 0 1px 3px rgba(60, 20, 30, .05);
}
.vm-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.vm-center { text-align: center; }
.vm-muted { color: var(--vm-muted); font-size: .92em; }
.vm-title { margin: 0 0 .35rem; font-size: 1.6rem; line-height: 1.25; color: var(--vm-primary-dark); }

/* Forms */
.vm-form { display: grid; gap: 1rem; }
.vm-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.vm-form legend { font-weight: 700; font-size: 1.15rem; margin-bottom: .75rem; color: var(--vm-primary-dark); }
.vm-grid-2, .vm-grid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.vm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.vm-field { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.vm-field > span, .vm-label { font-weight: 600; font-size: .9rem; }
.vm-field em { color: var(--vm-bad); font-style: normal; }
.vm-app input[type="text"], .vm-app input[type="email"], .vm-app input[type="password"],
.vm-app input[type="tel"], .vm-app input[type="date"], .vm-app input[type="time"], .vm-app select, .vm-app textarea {
	width: 100%;
	padding: .65rem .8rem;
	border: 1px solid #cdbfc3;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: inherit;
	min-height: 44px;
}
.vm-app input:focus, .vm-app input:focus-within, .vm-app select:focus, .vm-app textarea:focus {
	outline: 2px solid var(--vm-gold);
	outline-offset: 1px;
	border-color: var(--vm-gold);
}
.vm-readonly { padding: .65rem .8rem; background: var(--vm-bg); border-radius: 8px; min-height: 44px; }
.vm-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.vm-check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--vm-primary); }
.vm-row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }
.vm-range { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.vm-range .vm-label { flex-basis: 100%; }
.vm-range select { flex: 1; min-width: 0; }

/* Honeypot: off-screen, never shown to people */
.vm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Chips */
.vm-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.vm-chip { position: relative; cursor: pointer; }
.vm-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vm-chip span {
	display: inline-block;
	padding: .4rem .85rem;
	border: 1px solid #cdbfc3;
	border-radius: 999px;
	font-size: .88rem;
	background: #fff;
	transition: background .15s, border-color .15s;
}
.vm-chip input:checked + span { background: var(--vm-primary); border-color: var(--vm-primary); color: #fff; }
.vm-chip input:focus-visible + span { outline: 2px solid var(--vm-gold); outline-offset: 2px; }

/* Buttons */
.vm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: .7rem 1.3rem;
	min-height: 44px;
	border: 1px solid var(--vm-primary);
	border-radius: 999px;
	background: #fff;
	color: var(--vm-primary) !important;
	font: inherit;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
}
.vm-btn:hover { background: #f8eef1; }
.vm-btn-primary { background: var(--vm-primary); color: #fff !important; }
.vm-btn-primary:hover { background: var(--vm-primary-dark); }
.vm-btn-block { width: 100%; }
.vm-btn-sm { padding: .4rem .9rem; min-height: 38px; font-size: .9rem; }
.vm-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--vm-line); padding-top: 1rem; }

/* Notices and badges */
.vm-notice { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.vm-notice ul { margin: 0; padding-left: 1.2rem; }
.vm-notice-ok { background: var(--vm-ok-bg); color: var(--vm-ok); }
.vm-notice-bad { background: var(--vm-bad-bg); color: var(--vm-bad); }
.vm-badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-left: .35rem; vertical-align: middle; }
.vm-badge-ok { background: var(--vm-ok-bg); color: var(--vm-ok); }
.vm-badge-warn { background: var(--vm-warn-bg); color: var(--vm-warn); }
.vm-badge-bad { background: var(--vm-bad-bg); color: var(--vm-bad); }
.vm-badge-neutral { background: #eee6e8; color: var(--vm-muted); }

/* Profile header + completeness meter */
.vm-profile-head { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; align-items: center; }
.vm-meter { flex: 1 1 260px; max-width: 360px; }
.vm-meter-label { font-size: .95rem; margin-bottom: .35rem; }
.vm-meter-label strong { font-size: 1.3rem; color: var(--vm-primary); }
.vm-meter-track { height: 10px; background: #f0e6e9; border-radius: 999px; overflow: hidden; }
.vm-meter-fill { height: 100%; background: linear-gradient(90deg, var(--vm-gold), var(--vm-primary)); border-radius: inherit; transition: width .4s; }
.vm-meter-hint { margin: .4rem 0 0; font-size: .85rem; color: var(--vm-muted); }

/* Verification panel */
.vm-verify h3 { margin-top: 0; font-size: 1.1rem; }
.vm-verify-item { display: flex; flex-direction: column; gap: .5rem; }
.vm-inline { display: flex; gap: .5rem; align-items: center; }
.vm-inline input { flex: 1; min-width: 0; }
.vm-dev { background: var(--vm-warn-bg); color: var(--vm-warn); padding: .5rem .75rem; border-radius: 8px; font-size: .88rem; margin: 0; }

/* Tabs (enhanced by JS; without JS every panel is shown) */
.vm-tablist { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--vm-line); margin-bottom: 1.25rem; scrollbar-width: thin; }
.vm-tablist a {
	padding: .65rem 1rem;
	white-space: nowrap;
	text-decoration: none;
	color: var(--vm-muted) !important;
	font-weight: 600;
	border-bottom: 3px solid transparent;
}
.vm-tablist a[aria-selected="true"] { color: var(--vm-primary) !important; border-bottom-color: var(--vm-primary); }
.vm-tabs.is-enhanced fieldset[hidden] { display: none; }

.vm-upcoming .vm-title { color: var(--vm-gold); }

/* ---------- Member navigation ---------- */
/* Member menu: items wrap onto a second line instead of scrolling out of sight. */
.vm-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .25rem; margin-bottom: 1.25rem; padding: .35rem; background: var(--vm-card); border: 1px solid var(--vm-line); border-radius: 22px; }
@media (max-width: 640px) { .vm-nav { border-radius: 16px; } .vm-nav a { padding: .4rem .7rem !important; font-size: .86rem !important; } }
/* Plugin pages: the page title lines up with the app column below it (the theme's text column is narrower). */
body:has(.vm-app) .wp-block-post-title { max-width: 960px !important; margin-left: auto !important; margin-right: auto !important; }
.vm-nav a { padding: .5rem 1rem; border-radius: 999px; white-space: nowrap; text-decoration: none; color: var(--vm-ink) !important; font-weight: 600; font-size: .92rem; }
.vm-nav a:hover { background: #f8eef1; }
.vm-nav a[aria-current="page"] { background: var(--vm-primary); color: #fff !important; }
.vm-count { display: inline-block; min-width: 1.3em; padding: 0 .35em; margin-left: .2rem; border-radius: 999px; background: var(--vm-gold); color: #fff; font-size: .78rem; text-align: center; }

.vm-notice-warn { background: var(--vm-warn-bg); color: var(--vm-warn); }
.vm-small { font-size: .85rem; }
.vm-badge-gold { background: #f6ecd4; color: #7a5a12; }
.vm-btn-ghost { border-color: transparent; }
.vm-link-btn { background: none; border: 0; color: var(--vm-muted); cursor: pointer; padding: .2rem .4rem; font: inherit; }
.vm-link-btn:hover { color: var(--vm-bad); }
.vm-tablist-page { margin-bottom: 1rem; }

/* ---------- Search ---------- */
.vm-search-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .vm-search-layout { grid-template-columns: 280px minmax(0, 1fr); } }
.vm-filters { gap: .85rem; }
.vm-filter-group { border-bottom: 1px solid var(--vm-line); padding-bottom: .6rem; }
.vm-filter-group summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: .3rem 0; }
.vm-filter-group .vm-field { margin-top: .5rem; }
.vm-results { min-width: 0; }

/* ---------- Profile cards ---------- */
.vm-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .vm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vm-pcard { display: flex; gap: 1rem; margin: 0; align-items: flex-start; }
.vm-pcard-body { flex: 1; min-width: 0; }
.vm-pcard h3 { margin: 0; font-size: 1.1rem; }
.vm-pcard h3 a { text-decoration: none; color: var(--vm-ink) !important; }
.vm-pcard p { margin: .2rem 0; }
.vm-pcard-facts { font-size: .92rem; }
.vm-score { display: inline-block; margin: .3rem 0; padding: .15rem .6rem; border-radius: 999px; background: #f6ecd4; color: #7a5a12; font-weight: 700; font-size: .85rem; }
.vm-pactions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; }
.vm-inline-form { display: inline; margin: 0; }

.vm-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #b0475f, var(--vm-primary)); }
.vm-avatar-female { background: linear-gradient(135deg, #d98aa5, #a8325a); }
.vm-avatar-male { background: linear-gradient(135deg, #6f8fc0, #2f4f86); }
.vm-avatar-lg { width: 112px; height: 112px; font-size: 2.2rem; }

/* ---------- Profile view ---------- */
.vm-pv-head { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.vm-pv-main { flex: 1; min-width: 240px; }
.vm-pv-facts { font-size: 1rem; }
.vm-app h3 { margin-top: 0; font-size: 1.1rem; color: var(--vm-primary-dark); }
.vm-facts { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: .4rem 1rem; margin: 0; }
.vm-facts dt { color: var(--vm-muted); font-size: .9rem; }
.vm-facts dd { margin: 0; font-weight: 500; }
.vm-report summary { cursor: pointer; color: var(--vm-muted); font-weight: 600; }
.vm-report[open] summary { margin-bottom: 1rem; }

/* ---------- Pager / saved searches ---------- */
.vm-pager { display: flex; gap: .35rem; justify-content: center; margin: 1.25rem 0; flex-wrap: wrap; }
.vm-pager a, .vm-pager span { min-width: 40px; min-height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--vm-line); text-decoration: none; }
.vm-pager span { background: var(--vm-primary); color: #fff; border-color: var(--vm-primary); }
.vm-saved { margin-top: 1.25rem; }
.vm-saved-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.vm-saved .vm-inline { flex-wrap: wrap; }

/* ---------- Photos ---------- */
.vm-avatar-photo { position: relative; overflow: hidden; background: #eee; padding: 0; }
.vm-avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vm-avatar-photo.is-locked img { filter: saturate(.6); }
.vm-lock { position: absolute; inset: auto 4px 4px auto; font-size: .8rem; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 2px 5px; line-height: 1; }
.vm-avatar-lg .vm-lock { font-size: 1.1rem; padding: 4px 7px; }
.vm-photo-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 1rem; }
.vm-photo { margin: 0; border: 1px solid var(--vm-line); border-radius: 10px; overflow: hidden; background: var(--vm-bg); }
.vm-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.vm-photo figcaption { padding: .4rem .5rem; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; font-size: .85rem; }
.vm-photo figcaption .vm-badge { margin-left: 0; }
.vm-photo-actions { width: 100%; display: flex; gap: .25rem; }
.vm-photo-actions .vm-link-btn { font-size: .82rem; padding: .15rem .25rem; text-decoration: underline; }
.vm-upload input[type="file"] { flex: 1; min-width: 0; font: inherit; }

/* ---------- Account ---------- */
.vm-btn-danger { border-color: var(--vm-bad); color: var(--vm-bad) !important; }
.vm-btn-danger:hover { background: var(--vm-bad); color: #fff !important; }
.vm-danger-zone { border-color: #efc4c7; }
.vm-danger-zone summary { cursor: pointer; font-weight: 600; color: var(--vm-bad); }
.vm-danger-zone[open] summary { margin-bottom: .75rem; }

/* ---------- Premium ---------- */
.vm-badge-featured { background: linear-gradient(90deg, #c99a2e, #e2b950); color: #3b2a05; }
.vm-table-wrap { overflow-x: auto; }
.vm-compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.vm-compare th, .vm-compare td { padding: .6rem .75rem; border-bottom: 1px solid var(--vm-line); text-align: left; }
.vm-compare thead th { color: var(--vm-primary-dark); }
.vm-plan-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .vm-plan-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.vm-plan { position: relative; display: flex; flex-direction: column; margin: 0; }
.vm-plan.is-featured { border: 2px solid var(--vm-gold); box-shadow: 0 8px 24px rgba(201, 154, 46, .18); }
.vm-plan.is-resume { outline: 3px solid var(--vm-primary); outline-offset: 3px; scroll-margin-top: 6rem; }
.vm-plan-flag { position: absolute; top: -.75rem; right: 1rem; margin: 0; }
.vm-plan h3 { margin-bottom: .25rem; }
.vm-plan-price { font-size: 1.8rem; font-weight: 800; color: var(--vm-primary); margin: .25rem 0 .75rem; }
.vm-plan-features { list-style: none; padding: 0; margin: 0 0 1rem; flex: 1; }
.vm-plan-features li { padding: .3rem 0 .3rem 1.4rem; position: relative; }
.vm-plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--vm-ok); font-weight: 700; }
.vm-plan-buy { gap: .5rem; }
.vm-plan-buy summary { cursor: pointer; color: var(--vm-muted); }
.vm-premium-status { border: 2px solid var(--vm-gold); background: linear-gradient(180deg, #fffaf0, #fff); }
.vm-locked-list p { max-width: 420px; margin-inline: auto; }
.vm-ghost-row { display: flex; justify-content: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.vm-ghost { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #d98aa5, #6f8fc0); filter: blur(5px); opacity: .7; }

/* ---------- Chat ---------- */
.vm-chat { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .vm-chat { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 799px) {
	.vm-chat.has-thread .vm-chat-list { display: none; }
	.vm-chat:not(.has-thread) .vm-chat-thread { display: none; }
}
.vm-chat-list { margin: 0; padding: 1rem; }
.vm-chat-list ul { list-style: none; margin: 0; padding: 0; }
.vm-chat-list li a { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding: .65rem .6rem; border-radius: 8px; text-decoration: none; color: var(--vm-ink) !important; }
.vm-chat-list li a:hover, .vm-chat-list li.is-active a { background: #f8eef1; }
.vm-chat-snippet { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-chat-thread { margin: 0; display: flex; flex-direction: column; min-height: 420px; }
.vm-chat-head { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--vm-line); }
.vm-chat-head a { text-decoration: none; }
.vm-chat-back { font-size: 1.2rem; }
@media (min-width: 800px) { .vm-chat-back { display: none; } }
.vm-chat-safety { margin: .5rem 0; padding: .4rem .6rem; background: var(--vm-warn-bg); color: var(--vm-warn); border-radius: 8px; }
.vm-chat-msgs { list-style: none; margin: 0; padding: .5rem 0; flex: 1; overflow-y: auto; max-height: 55vh; display: flex; flex-direction: column; gap: .5rem; }
.vm-msg { max-width: 78%; }
.vm-msg.is-mine { align-self: flex-end; text-align: right; }
.vm-msg-body { display: inline-block; text-align: left; padding: .55rem .85rem; border-radius: 16px; background: #f1e9eb; white-space: pre-wrap; overflow-wrap: anywhere; }
.vm-msg.is-mine .vm-msg-body { background: var(--vm-primary); color: #fff; border-bottom-right-radius: 4px; }
.vm-msg.is-theirs .vm-msg-body { border-bottom-left-radius: 4px; }
.vm-msg-meta { color: var(--vm-muted); margin-top: .15rem; display: flex; gap: .4rem; justify-content: inherit; }
.vm-msg.is-mine .vm-msg-meta { justify-content: flex-end; }
.vm-chat-form { display: flex; gap: .5rem; align-items: flex-end; border-top: 1px solid var(--vm-line); padding-top: .75rem; }
.vm-chat-form textarea { flex: 1; resize: vertical; min-height: 48px; }
.vm-chat-error { color: var(--vm-bad); margin: .4rem 0 0; }
.vm-chat-locked { border-top: 1px solid var(--vm-line); padding-top: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.vm-chat-locked p { flex-basis: 100%; margin: 0; }

/* ---------- Notifications ---------- */
.vm-notes { list-style: none; padding: 0; }
.vm-notes li a { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .6rem; border-bottom: 1px solid var(--vm-line); text-decoration: none; color: var(--vm-ink) !important; }
.vm-notes li.is-unread a { background: #fdf6f8; border-left: 3px solid var(--vm-primary); }
.vm-notes li:last-child a { border-bottom: 0; }

/* My biodata: design picker */
.vm-bd-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 0; }
.vm-bd-h { margin: 0 0 .35rem; font-size: 1.15rem; color: var(--vm-primary-dark); }
.vm-bd-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.vm-bd-design { position: relative; display: block; cursor: pointer; border: 2px solid var(--vm-line); border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.vm-bd-design:hover { border-color: #cdbfc3; }
.vm-bd-design input { position: absolute; opacity: 0; pointer-events: none; }
.vm-bd-design img { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; border-bottom: 1px solid var(--vm-line); }
.vm-bd-design span { display: block; padding: .5rem .6rem; font-weight: 600; font-size: .85rem; line-height: 1.3; }
.vm-bd-design:has(input:checked) { border-color: var(--vm-primary); box-shadow: 0 0 0 3px rgba(139, 30, 63, .18); }
.vm-bd-design:has(input:focus-visible) { outline: 3px solid var(--vm-gold); outline-offset: 2px; }
.vm-bd-design:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--vm-primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
/* मनसंवाद */
.vm-olakh-h { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--vm-primary-dark); }
.vm-olakh-intro p { margin: .4rem 0; }
.vm-small { font-size: .85rem; }
.vm-olakh-pairs { list-style: none; margin: 0; padding: 0; }
.vm-olakh-pairs li { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .75rem 0; border-top: 1px solid var(--vm-line); }
.vm-olakh-pairs li:first-child { border-top: 0; }
.vm-olakh-pairs li div { display: flex; flex-direction: column; gap: .15rem; }
.vm-olakh-progress { display: grid; gap: .4rem; margin-bottom: 1.25rem; font-size: .9rem; color: var(--vm-muted); }
.vm-olakh-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vm-olakh-q legend { display: grid; gap: .35rem; margin-bottom: 1rem; padding: 0; }
.vm-olakh-theme { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vm-gold); }
.vm-olakh-text { font-size: 1.25rem; line-height: 1.45; font-weight: 600; color: var(--vm-ink); }
.vm-olakh-options { display: grid; gap: .65rem; }
.vm-olakh-opt { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 2px solid var(--vm-line); border-radius: 10px; cursor: pointer; background: #fff; line-height: 1.45; transition: border-color .15s, background-color .15s; }
.vm-olakh-opt:hover { border-color: #cdbfc3; }
.vm-olakh-opt input { margin-top: .2rem; width: 20px; height: 20px; flex: none; accent-color: var(--vm-primary); }
.vm-olakh-opt:has(input:checked) { border-color: var(--vm-primary); background: #fbf2f5; }
.vm-olakh-opt:has(input:focus-visible) { outline: 3px solid var(--vm-gold); outline-offset: 2px; }
.vm-olakh-list { margin: 0 0 1rem; padding-left: 1.4rem; display: grid; gap: .7rem; }
.vm-olakh-missing { color: var(--vm-bad); }
.vm-olakh-consent { background: var(--vm-bg); border-left: 4px solid var(--vm-gold); padding: .8rem 1rem; border-radius: 6px; line-height: 1.6; }
.vm-olakh-note { background: var(--vm-bg); }
.vm-olakh-item { padding: .9rem 0; border-top: 1px solid var(--vm-line); }
.vm-olakh-item:first-of-type { border-top: 0; padding-top: 0; }
.vm-olakh-item-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.vm-olakh-pair { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; margin: 0 0 .5rem; }
.vm-olakh-pair dt { font-weight: 600; color: var(--vm-muted); }
.vm-olakh-pair dd { margin: 0; }
.vm-olakh-talk { margin: 0; font-style: italic; color: var(--vm-primary-dark); }
.vm-olakh-invite { border-left: 4px solid var(--vm-gold); }
@media (prefers-reduced-motion: reduce) { .vm-olakh-opt, .vm-bd-design { transition: none; } }
/* मनसंवाद: entry card, anchor landing and menu link */
#mansamvad { scroll-margin-top: 110px; outline: none; }
.vm-olakh-card { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; border-left: 5px solid var(--vm-gold); }
.vm-olakh-card-body { flex: 1 1 320px; min-width: 0; }
.vm-olakh-card-body p { margin: .35rem 0; }
.vm-olakh-status { color: var(--vm-primary-dark); }
.vm-olakh-cta { flex: none; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding-left: 1.4rem; padding-right: 1.4rem; }
@media (max-width: 600px) { .vm-olakh-cta { width: 100%; } }
.vm-olakh.vm-arrived .vm-olakh-lead,
.vm-olakh.vm-arrived > .vm-card:first-of-type { animation: vm-arrive 1.8s ease-out 1; box-shadow: 0 0 0 3px var(--vm-gold); }
@keyframes vm-arrive { 0% { box-shadow: 0 0 0 0 rgba(201, 154, 46, .9); } 40% { box-shadow: 0 0 0 8px rgba(201, 154, 46, .35); } 100% { box-shadow: 0 0 0 3px var(--vm-gold); } }
@media (prefers-reduced-motion: reduce) { .vm-olakh.vm-arrived .vm-olakh-lead, .vm-olakh.vm-arrived > .vm-card:first-of-type { animation: none; } #mansamvad { scroll-behavior: auto; } }
.vt-nav a.vt-mansamvad, .vm-nav a[href*="#mansamvad"] { font-weight: 700; color: var(--vm-primary); }
/* मनसंवाद report: dimension bars, doughnut, legend */
.vm-sv { --sv-al: #2f7d5b; --sv-co: #b8892a; --sv-nd: #8b1e3f; --sv-na: #8f8487; }
.vm-sv-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .vm-sv-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.vm-sv-dim { border-top: 1px solid var(--vm-line); }
.vm-sv-dim:first-of-type { border-top: 0; }
.vm-sv-dim > summary { list-style: none; cursor: pointer; display: grid; gap: .35rem; padding: .85rem .25rem; border-radius: 8px; }
.vm-sv-dim > summary::-webkit-details-marker { display: none; }
.vm-sv-dim > summary:hover { background: var(--vm-bg); }
.vm-sv-dim > summary:focus-visible { outline: 3px solid var(--vm-gold); outline-offset: 2px; }
.vm-sv-dim-head { display: flex; flex-wrap: wrap; gap: .25rem .75rem; justify-content: space-between; align-items: baseline; }
.vm-sv-dim-name { font-weight: 700; color: var(--vm-ink); }
.vm-sv-dim-name::after { content: " ▾"; color: var(--vm-muted); font-weight: 400; }
.vm-sv-dim[open] .vm-sv-dim-name::after { content: " ▴"; }
.vm-sv-dim-band { font-size: .9rem; font-weight: 600; color: var(--vm-primary-dark); }
.vm-sv-bar { display: block; height: 12px; border-radius: 999px; background: #efe7e9; overflow: hidden; }
.vm-sv-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--vm-gold), var(--vm-primary)); min-width: 6px; }
.vm-sv-dim-body { padding: .25rem .25rem 1rem; }
.vm-sv-badge { display: inline-flex; gap: .3rem; align-items: center; font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.vm-sv-badge.vm-sv-al { color: var(--sv-al); background: #eaf5ef; }
.vm-sv-badge.vm-sv-co { color: #7a5a12; background: #fbf3e0; }
.vm-sv-badge.vm-sv-nd { color: var(--sv-nd); background: #fbecf0; }
.vm-sv-badge.vm-sv-na { color: var(--sv-na); background: #f2eff0; }
.vm-sv-dist { text-align: center; }
.vm-sv-donut { width: min(220px, 70%); height: auto; margin: .5rem auto 1rem; display: block; }
.vm-sv-seg.vm-sv-al { stroke: var(--sv-al); } .vm-sv-seg.vm-sv-co { stroke: var(--sv-co); }
.vm-sv-seg.vm-sv-nd { stroke: var(--sv-nd); } .vm-sv-seg.vm-sv-na { stroke: var(--sv-na); }
.vm-sv-donut-n { font-size: 9px; font-weight: 700; fill: var(--vm-ink); }
.vm-sv-legend { list-style: none; margin: 0 auto .75rem; padding: 0; display: grid; gap: .45rem; text-align: left; max-width: 260px; }
.vm-sv-legend li { display: flex; gap: .5rem; align-items: center; }
.vm-sv-legend strong { margin-left: auto; }
.vm-sv-key { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.vm-sv-key.vm-sv-al { background: var(--sv-al); } .vm-sv-key.vm-sv-co { background: var(--sv-co); }
.vm-sv-key.vm-sv-nd { background: var(--sv-nd); } .vm-sv-key.vm-sv-na { background: var(--sv-na); }
.vm-sv-explain h4 { margin: 1rem 0 .35rem; font-size: 1rem; color: var(--vm-primary-dark); }
.vm-sv-explain ul { margin: 0 0 .5rem; padding-left: 1.3rem; }
.vm-sv-method { margin-top: 1rem; }
.vm-sv-method summary { cursor: pointer; font-weight: 600; color: var(--vm-primary); }
@media print { .vm-sv-dim { break-inside: avoid; } .vm-sv-dim:not([open]) .vm-sv-dim-body { display: block; } }
/* ---------- Kundali matching ---------- */
.vm-kundali .vm-hint { font-size: .9rem; color: var(--vm-muted, #666); margin: .25rem 0 .75rem; }
.vm-kundali-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.vm-kundali-person { border: 1px solid var(--vm-border, #e5e0d8); border-radius: 10px; padding: 1rem; margin: 0; min-width: 0; }
.vm-kundali-person legend { font-weight: 700; padding: 0 .4rem; color: var(--vm-primary); }
.vm-kundali-person input[type=date], .vm-kundali-person input[type=time], .vm-kundali-place input[type=text] { width: 100%; box-sizing: border-box; }
.vm-kundali-acc { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem; font-size: .92rem; }
.vm-kundali-acc label, .vm-kundali-choices label { display: flex; align-items: center; gap: .35rem; cursor: pointer; }
.vm-kundali-choices { display: grid; gap: .35rem; margin: .5rem 0; padding: .6rem; background: var(--vm-warn-bg); border-radius: 8px; }
.vm-kundali-place { position: relative; }
.vm-kundali-suggest { position: absolute; z-index: 20; left: 0; right: 0; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--vm-border, #ddd); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
.vm-kundali-suggest li { padding: .55rem .75rem; cursor: pointer; }
.vm-kundali-suggest li[aria-selected=true], .vm-kundali-suggest li[role=option]:hover { background: var(--vm-ok-bg); }
.vm-kundali-suggest .vmk-empty { cursor: default; color: var(--vm-muted, #666); }
.vm-kundali-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; margin: .75rem 0; }
.vm-kundali-facts div { background: var(--vm-ok-bg); border-radius: 8px; padding: .6rem .75rem; }
.vm-kundali-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; opacity: .75; }
.vm-kundali-facts dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.1rem; }
.vm-kundali-segments { width: 100%; border-collapse: collapse; font-size: .92rem; margin: .5rem 0 1rem; }
.vm-kundali-segments th, .vm-kundali-segments td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--vm-border, #eee); }
.vm-kundali-person-result { min-width: 0; overflow-x: auto; }
.vm-kundali-score { border-left: 4px solid var(--vm-primary); }
.vm-kundali-method summary { cursor: pointer; font-weight: 600; color: var(--vm-primary); }
.vt-nav a.vt-kundali { font-weight: 600; }
.vm-kundali-total { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.vm-kundali-big { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--vm-primary); }
.vm-kundali-donut circle { fill: none; stroke-width: 12; }
.vm-kundali-donut .track { stroke: var(--vm-border, #eee); }
.vm-kundali-donut .lo { stroke: var(--vm-primary); }
.vm-kundali-donut .hi { stroke: var(--vm-primary); opacity: .35; }
.vm-kundali-donut text { font-size: 18px; font-weight: 700; fill: currentColor; }
.vm-kundali-kootas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.vm-kundali-koota-head { display: flex; justify-content: space-between; gap: 1rem; }
.vm-kundali-bar { display: flex; height: 10px; border-radius: 6px; background: var(--vm-border, #eee); overflow: hidden; margin: .35rem 0; }
.vm-kundali-bar-lo { background: var(--vm-primary); }
.vm-kundali-bar-hi { background: var(--vm-primary); opacity: .35; }
.vm-kundali-kootas p { margin: .2rem 0 0; font-size: .92rem; }
.vm-kundali-depends { color: var(--vm-warn); font-style: normal; font-weight: 600; }
.vm-kundali-score h3 { margin: 1.5rem 0 .5rem; }

/* ---------- Location relevance (Maharashtra districts) ---------- */
.vm-loc-fields { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--vm-border, #e5e0d8); }
.vm-loc-intro { grid-column: 1 / -1; margin: 0; }
.vm-loc-vis { grid-column: 1 / -1; }
.vm-loc-suggest { color: var(--vm-primary); }
.vm-link-btn { background: none; border: 0; padding: 0; color: var(--vm-primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.vm-link-btn:focus-visible { outline: 2px solid var(--vm-gold); outline-offset: 2px; }
.vm-loc-chip { display: inline-block; margin: 0 .25rem .35rem 0; padding: .2rem .6rem; border-radius: 999px; background: var(--vm-ok-bg); color: var(--vm-primary); font-size: .82rem; font-weight: 600; }
.vm-loc-prompt { border-left: 4px solid var(--vm-gold); }
.vm-loc-prompt form { display: inline; }
.vm-loc-in { margin-bottom: .5rem; }

/* ---------- Beyond the Biodata / My Story ---------- */
.vm-app .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#my-story, #story { scroll-margin-top: 90px; }
#my-story:focus { outline: none; }
.vm-story-kicker { margin: 0 0 .25rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vm-gold); }
.vm-story-hero { border-left: 5px solid var(--vm-gold); }
.vm-story-hero p { margin: .4rem 0; }
.vm-story-preview-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0 1rem; }
.vm-story-sections { list-style: none; margin: 0; padding: 0; }
.vm-story-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; }
.vm-story-row-body { flex: 1 1 260px; min-width: 0; }
.vm-story-row h3 { margin: 0 0 .2rem; font-size: 1.1rem; color: var(--vm-primary-dark); }
.vm-story-row p { margin: .2rem 0; }
.vm-story-badges .vm-badge:first-child { margin-left: 0; }
.vm-story-back { margin: 0 0 .75rem; }
.vm-story-prompt { font-weight: 700; font-size: 1.05rem; color: var(--vm-ink); }
.vm-story-edit textarea { width: 100%; }
.vm-story-cards { border: 0; padding: 0; margin: 0; min-width: 0; }
.vm-story-card-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-top: .6rem; }
.vm-story-pick { position: relative; display: block; cursor: pointer; }
.vm-story-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vm-story-pick > span { display: flex; gap: .5rem; align-items: center; min-height: 52px; padding: .65rem .85rem; border: 1.5px solid var(--vm-line); border-radius: 10px; background: #fff; font-weight: 600; }
.vm-story-pick input:checked + span { border-color: var(--vm-primary); background: #fbeef2; box-shadow: inset 0 0 0 1px var(--vm-primary); }
.vm-story-pick input:checked + span::after { content: "✓"; margin-left: auto; color: var(--vm-primary); font-weight: 700; }
.vm-story-pick input:focus-visible + span { outline: 2px solid var(--vm-gold); outline-offset: 2px; }
.vm-story-icon { font-size: 1.25rem; }
.vm-story-listfields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .75rem; }
.vm-story-vis { border: 1px solid var(--vm-line); border-radius: 10px; padding: .75rem 1rem; margin: 0; display: grid; gap: .5rem; }
.vm-story-vis legend { font-size: .95rem; padding: 0 .35rem; }
.vm-story-manage h3, .vm-story-about h3 { margin-top: 0; }
.vm-story-manage-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.vm-story-danger summary { cursor: pointer; color: var(--vm-bad); font-weight: 600; }
.vm-story-danger form { margin-top: .75rem; }
.vm-story-rules { margin: 0 0 1rem; padding-left: 1.2rem; }
.vm-story-rules li { margin: .3rem 0; }
.vm-story-caption { display: block; font-size: .85rem; margin-bottom: .25rem; overflow-wrap: anywhere; }
.vm-story-upload input[type=file] { max-width: 100%; }

/* Profile page / preview: a small magazine spread */
.vm-story { margin: 2rem 0 1.25rem; }
.vm-story-head { text-align: center; margin-bottom: 1rem; }
.vm-story-head .vm-title { font-style: italic; }
.vm-story-group { margin: 0 0 .75rem; font-size: 1.05rem; color: var(--vm-primary-dark); }
.vm-story-quick { border-top: 4px solid var(--vm-gold); }
.vm-story-intro { font-size: 1.12rem; line-height: 1.65; margin: 0 0 1rem; overflow-wrap: anywhere; }
.vm-story-chips { list-style: none; margin: .25rem 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.vm-story-chips li { padding: .3rem .75rem; border-radius: 999px; background: #f6ecd4; color: #5a4210; font-size: .9rem; font-weight: 600; }
.vm-story-chips .vm-story-chip-own { background: #eee6e8; color: var(--vm-ink); }
.vm-story-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
.vm-story-grid .vm-card { margin-bottom: 0; }
@media (min-width: 700px) { .vm-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vm-story-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.vm-story-piece h4 { margin: 0 0 .15rem; font-size: 1.05rem; color: var(--vm-primary-dark); }
.vm-story-q { margin: 0 0 .6rem; font-size: .85rem; color: var(--vm-muted); font-style: italic; }
.vm-story-piece p { overflow-wrap: anywhere; }
.vm-story-piece p:last-child { margin-bottom: 0; }
.vm-story-ol { margin: 0; padding-left: 1.3rem; }
.vm-story-ol li { margin: .25rem 0; overflow-wrap: anywhere; }
.vm-story-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.vm-story-gallery figure { margin: 0; }
.vm-story-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.vm-story-gallery figcaption { font-size: .85rem; color: var(--vm-muted); margin-top: .3rem; overflow-wrap: anywhere; }
.vm-story-jump { margin: .25rem 0 .5rem; font-weight: 600; }
.vm-story-edit-link { text-align: center; }
.vm-story-empty { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; border-left: 4px solid var(--vm-gold); }
.vm-story-empty p { margin: 0; }

/* ---------- Header menu: folds into a "Menu" button on phones and small tablets ---------- */
.vt-menu-btn, .vt-nav .vt-bell-m { display: none; }
.vt-nav-c .vt-menu { display: contents; }
.vt-nav-c .vt-menu-more { display: none; }
@media (max-width: 900px) {
	.vt-nav.vt-nav-c { position: relative; flex-wrap: nowrap; gap: .35rem; }
	.vt-nav-c .vt-bell-m { display: inline-flex; align-items: center; }
	.vt-nav-c .vt-menu-btn {
		display: inline-flex; align-items: center; gap: .4rem;
		padding: .5rem .95rem; min-height: 40px;
		border: 1px solid var(--wp--preset--color--accent-6, #eadfe2); border-radius: 999px;
		background: #fff; color: var(--wp--preset--color--contrast, #2b1d22);
		font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
	}
	.vt-nav-c .vt-menu-btn span { font-size: 1.1rem; line-height: 1; }
	.vt-nav-c.is-open .vt-menu-btn { background: var(--wp--preset--color--accent-1, #8b1e3f); border-color: transparent; color: #fff; }
	/* Logo and menu stay on one line; the logo shrinks a little on very narrow phones. */
	.wp-block-group:has(> .vt-nav-c) { flex-wrap: nowrap !important; gap: .5rem !important; }
	.wp-block-group:has(> .vt-nav-c) > p:has(.vt-logo) { min-width: 0; margin: 0; }
	/* The drop-down is placed under the button by the script (--vt-menu-top), always inside the screen. */
	.vt-nav-c .vt-menu {
		display: none; position: fixed; right: 12px; top: var(--vt-menu-top, 80px); z-index: 100000;
		width: min(calc(100vw - 24px), 320px); max-height: calc(100vh - var(--vt-menu-top, 80px) - 16px); overflow-y: auto;
		flex-direction: column; gap: .1rem; padding: .5rem;
		background: #fff; border: 1px solid var(--wp--preset--color--accent-6, #eadfe2); border-radius: 16px;
		box-shadow: 0 14px 34px rgba(60, 20, 30, .2);
	}
	.vt-nav-c.is-open .vt-menu { display: flex; }
	.vt-nav-c .vt-menu a { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem !important; border-radius: 10px; font-size: 1rem !important; }
	.vt-nav-c .vt-menu a.vt-bell { display: none; }
	.vt-nav-c .vt-menu a.vt-cta { justify-content: center; }
	.vt-nav-c .vt-menu-more { display: flex; flex-direction: column; gap: .1rem; margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--wp--preset--color--accent-6, #eadfe2); }
	.vt-nav-c .vt-menu .vt-lang { align-self: flex-start; margin: .5rem .9rem .35rem; }
	.vt-nav-c .vt-menu .vt-lang a { padding: 0 !important; }
}
@media (max-width: 400px) {
	.vt-logo .vt-logo-mark { width: 32px; height: 30px; }
	.vt-logo .vt-logo-latin { font-size: 1.2rem; }
	.vt-logo .vt-logo-deva { font-size: .75rem; }
	.vt-logo { gap: .4rem; }
	.vt-nav-c .vt-menu-btn { padding: .45rem .75rem; font-size: .9rem; }
	.vt-nav-c .vt-bell-m { padding-inline: .35rem !important; }
}

/* ---------- Phones: page menu and profile form ---------- */
@media (max-width: 640px) {
	/* The page menu repeats the header "Menu" on phones, so it is hidden there. */
	.vm-nav { display: none; }

	/* Profile form: no tabs on phones. Every section is shown, one below another, with its heading. */
	.vm-tabs .vm-tablist { display: none; }
	.vm-tabs.is-enhanced fieldset[hidden] { display: block; }
	.vm-tabs fieldset { padding-top: 1.25rem; margin-bottom: 1.25rem; border-top: 1px solid var(--vm-line); }
	.vm-tabs fieldset:first-of-type { padding-top: 0; border-top: 0; }
	.vm-tabs fieldset legend { float: left; width: 100%; margin-bottom: .75rem; }
	.vm-tabs fieldset legend + * { clear: both; }
}

/* ---------- Photos: initials behind every photo (shown if the image cannot load) ---------- */
.vm-avatar-photo { display: grid; place-items: center; color: #fff; }
.vm-avatar-photo img { position: absolute; inset: 0; }
.vm-avatar-initials { font-weight: 700; color: #fff; }
.vm-profile-me { display: flex; gap: 1rem; align-items: center; }
.vm-profile-me .vm-title { margin-bottom: .2rem; }

/* ---------- Profile view: photos at the top ---------- */
.vm-pv-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 700px) { .vm-pv-head { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.vm-pv-photos-none { display: flex; justify-content: center; }
.vm-pv-main-photo {
	position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; width: 100%;
	border-radius: 14px; overflow: hidden; text-decoration: none;
	background: linear-gradient(135deg, #b0475f, var(--vm-primary));
}
.vm-pv-main-photo .vm-avatar-initials { font-size: 3rem; }
.vm-pv-main-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
a.vm-pv-main-photo { cursor: zoom-in; }
.vm-pv-main-photo.is-locked img { filter: saturate(.6); }
.vm-pv-locked { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; padding: .45rem .6rem; border-radius: 10px; background: rgba(255, 255, 255, .92); color: var(--vm-ink); font-size: .85rem; font-weight: 600; text-align: center; }
.vm-pv-count { position: absolute; right: .6rem; bottom: .6rem; padding: .2rem .55rem; border-radius: 999px; background: rgba(20, 10, 14, .65); color: #fff; font-size: .8rem; font-weight: 700; }
.vm-pv-review { position: absolute; left: .5rem; top: .5rem; margin: 0; }
.vm-pv-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; margin-top: .5rem; }
.vm-pv-thumbs a { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--vm-bg); cursor: zoom-in; }
.vm-pv-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vm-pv-review-dot { left: 3px; top: 3px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: .7rem; line-height: 1; }
.vm-pv-review-dot .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Photo viewer (pop-up slider) ---------- */
.vm-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(20, 10, 14, .94); touch-action: pan-y; }
.vm-lb[hidden] { display: none; }
.vm-lb-img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; }
.vm-lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.vm-lb button:hover, .vm-lb button:focus-visible { background: rgba(255, 255, 255, .3); outline: none; }
.vm-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.vm-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.vm-lb-close { right: 1rem; top: 1rem; font-size: 1.4rem !important; }
.vm-lb-count { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: .95rem; background: rgba(0, 0, 0, .35); padding: .25rem .75rem; border-radius: 999px; }
.vm-lb.is-single .vm-lb-prev, .vm-lb.is-single .vm-lb-next, .vm-lb.is-single .vm-lb-count { display: none; }
@media (max-width: 640px) {
	.vm-lb-prev, .vm-lb-next { top: auto; bottom: 1rem; transform: none; width: 44px; height: 44px; }
	.vm-lb-prev { left: 1rem; }
	.vm-lb-next { right: 1rem; }
	.vm-lb-img { max-height: 76vh; }
}
body.vm-lb-open { overflow: hidden; }

/* ---------- Page tabs (Matches, Interests…): one segmented bar ---------- */
.vm-segmented {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .25rem;
	padding: .3rem; border: 1px solid var(--vm-line); border-bottom: 1px solid var(--vm-line);
	border-radius: 999px; background: var(--vm-card); overflow: visible; margin-bottom: 1rem;
}
.vm-segmented a {
	display: flex; align-items: center; justify-content: center; text-align: center;
	white-space: normal; line-height: 1.2; min-height: 40px; padding: .45rem .6rem;
	border: 0; border-radius: 999px; font-size: .92rem; color: var(--vm-muted) !important;
}
.vm-segmented a[aria-selected="true"] { background: var(--vm-primary); color: #fff !important; border: 0; }
@media (max-width: 420px) { .vm-segmented { border-radius: 16px; } .vm-segmented a { border-radius: 12px; font-size: .85rem; padding: .4rem .35rem; } }

/* ---------- Profile cards: photo on top ---------- */
.vm-pcard { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; align-items: stretch; }
.vm-pcard-body { padding: .9rem 1rem 1rem; }
.vm-pc-photo {
	position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden;
	background: linear-gradient(135deg, #b0475f, var(--vm-primary));
}
.vm-pc-photo.vm-avatar-female { background: linear-gradient(135deg, #d98aa5, #a8325a); }
.vm-pc-photo.vm-avatar-male { background: linear-gradient(135deg, #6f8fc0, #2f4f86); }
.vm-pc-photo > .vm-avatar-initials { font-size: 3rem; opacity: .9; }
.vm-pc-track {
	position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.vm-pc-track::-webkit-scrollbar { display: none; }
.vm-pc-slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.vm-pc-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.vm-pc-track > img { flex: 0 0 100%; }
.vm-pc-photo.is-locked img { filter: saturate(.6); }
.vm-pc-lock { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; padding: .4rem .5rem; border-radius: 10px; background: rgba(255, 255, 255, .92); color: var(--vm-ink); font-size: .8rem; font-weight: 600; text-align: center; }
.vm-pc-score { position: absolute; left: .6rem; top: .6rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #7a5a12; font-weight: 800; font-size: .82rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.vm-pc-nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px;
	display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85);
	color: var(--vm-ink); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.vm-pc-prev { left: .5rem; }
.vm-pc-next { right: .5rem; }
.vm-pc-nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) { .vm-pc-nav { opacity: 0; transition: opacity .15s; } .vm-pc-photo:hover .vm-pc-nav:not([disabled]), .vm-pc-nav:focus-visible { opacity: 1; } }
.vm-pc-dots { position: absolute; left: 0; right: 0; bottom: .55rem; display: flex; justify-content: center; gap: .3rem; pointer-events: none; }
.vm-pc-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .4); }
.vm-pc-dots i.is-on { background: #fff; width: 18px; border-radius: 999px; }

/* ---------- Matches: profiles in a horizontal slider ---------- */
.vm-slider { position: relative; }
.vm-cards.vm-cards-slider {
	display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 2px;
	padding: 2px 2px 1rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.vm-cards-slider > .vm-pcard { flex: 0 0 min(86%, 340px); scroll-snap-align: center; }
@media (max-width: 640px) { .vm-cards.vm-cards-slider { scroll-padding-left: 0; padding-left: 4px; padding-right: 4px; } }
@media (min-width: 900px) { .vm-cards-slider > .vm-pcard { flex-basis: calc((100% - 2rem) / 3); } }
.vm-slider-btn {
	position: absolute; top: 40%; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center;
	border: 1px solid var(--vm-line); border-radius: 50%; background: #fff; color: var(--vm-ink);
	font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(60, 20, 30, .18);
}
.vm-slider-prev { left: -10px; }
.vm-slider-next { right: -10px; }
.vm-slider-btn[disabled] { opacity: 0; pointer-events: none; }
.vm-slider-hint { text-align: center; margin: 0; }
@media (max-width: 640px) { .vm-slider-btn { display: none; } }
@media (min-width: 641px) { .vm-slider-hint { display: none; } }
.vm-seg-count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; margin-left: .35rem; padding: 0 .35em; border-radius: 999px; background: var(--vm-gold); color: #fff; font-size: .75rem; font-weight: 800; }
.vm-segmented a[aria-selected="true"] .vm-seg-count { background: #fff; color: var(--vm-primary); }
/* Lists of profiles on phones (Interests, Search, Shortlist…): two compact cards per row. */
@media (max-width: 640px) {
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pc-photo { aspect-ratio: 1; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pcard-body { padding: .6rem .65rem .7rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pcard h3 { font-size: .98rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pcard h3 .vm-badge { font-size: .65rem; padding: .05rem .4rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pcard-facts { font-size: .8rem; line-height: 1.35; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pcard .vm-small { font-size: .72rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pactions { gap: .3rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pactions .vm-btn-sm { padding: .35rem .6rem; font-size: .78rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pc-score { font-size: .7rem; padding: .15rem .45rem; left: .4rem; top: .4rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pc-lock { font-size: .68rem; left: .35rem; right: .35rem; bottom: .35rem; padding: .3rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pc-photo > .vm-avatar-initials { font-size: 2rem; }
	.vm-cards:not(.vm-cards-slider):not(.vm-cards-wide) .vm-pc-nav { display: none; }
}

/* Shortlist and Who viewed me: one full-width profile per row on phones. */
@media (max-width: 640px) {
	.vm-cards.vm-cards-wide { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.vm-cards-wide .vm-pc-photo { aspect-ratio: 4 / 5; }
}

/* Manual UPI checkout */
.vm-upi { margin-top: 1rem; display: grid; gap: .75rem; }
.vm-upi-pay { text-align: center; padding: .9rem; background: #fbf3f5; border-radius: 12px; }
.vm-upi-amount { font-size: 2rem; font-weight: 700; color: #8b1e3f; line-height: 1.1; }
.vm-upi-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .85rem; border: 1px solid #e7dcdf; border-radius: 10px; background: #fff; }
.vm-upi-row > div { min-width: 0; }
.vm-upi-id { display: block; font-size: 1.05rem; word-break: break-all; }
.vm-upi-copy { flex: none; min-width: 5.5rem; }
.vm-upi-copy.is-copied, .vm-upi-copy.is-copied:hover { background: #1f7a4d !important; border-color: #1f7a4d !important; color: #fff !important; }
.vm-upi-way h3 { font-size: 1rem; margin: .5rem 0 .4rem; }
.vm-upi-way ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
.vm-upi.is-phone .vm-upi-way-desktop, .vm-upi.is-desktop .vm-upi-way-phone { display: none; }
.vm-upi:not(.is-phone):not(.is-desktop) .vm-upi-way-desktop { display: none; }
.vm-upi-qr, .vm-upi-qr-img { display: block; width: 220px; max-width: 75%; margin: .75rem auto; background: #fff; padding: 8px; border: 1px solid #e7dcdf; border-radius: 12px; }
.vm-upi-qr svg { display: block; width: 100%; height: auto; }
.vm-upi-alt, .vm-upi-help { margin-top: .6rem; }
.vm-upi-alt summary, .vm-upi-help summary { cursor: pointer; color: #8b1e3f; font-weight: 600; }
.vm-upi-help ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.vm-upi-form { margin-top: .25rem; padding-top: .9rem; border-top: 1px solid #e7dcdf; }
.vm-upi-form input[name="utr"] { font-size: 1.15rem; letter-spacing: .08em; }
