/*
Theme Name: LoveVoy
Theme URI: https://lovevoy.com
Author: LoveVoy
Description: Global dating site: profiles, discovery, likes, matches, private messages and safety tools.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lovevoy
*/

/* ---------- Tokens ---------- */
:root {
	--rose: #e8475f;
	--rose-600: #d23a52;
	--rose-700: #b62f45;
	--rose-50: #fff0f2;
	--rose-100: #ffe1e6;
	--navy: #1b2140;
	--navy-2: #262d52;
	--ink: #1e2233;
	--text: #2b3045;
	--muted: #6b7185;
	--faint: #9aa0b2;
	--line: #ebe5e8;
	--line-2: #ddd5da;
	--bg: #fffaf8;
	--sand: #fbf1ec;
	--surface: #ffffff;
	--gold: #f4b860;
	--teal: #22b39f;
	--ok: #1f9d6c;
	--warn: #c27a12;
	--danger: #c8323f;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(27, 33, 64, .06), 0 8px 24px rgba(27, 33, 64, .07);
	--shadow-lg: 0 20px 60px rgba(27, 33, 64, .16);
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--rose-600); text-decoration: none; }
a:hover { color: var(--rose-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(232, 71, 95, .45); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--rose); color: #fff; box-shadow: 0 6px 18px rgba(232, 71, 95, .28); }
.btn--primary:hover { background: var(--rose-600); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--rose); color: var(--rose-600); }
.btn--soft { background: var(--rose-50); color: var(--rose-600); }
.btn--soft:hover { background: var(--rose-100); color: var(--rose-700); }
.btn--danger { background: #fff; color: var(--danger); border-color: #f0c9cd; }
.btn--danger:hover { background: #fff3f4; color: var(--danger); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; position: relative; }
.icon-btn:hover { border-color: var(--rose); color: var(--rose-600); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 248, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(235, 229, 232, .8); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 23px; letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--ink); }
.brand b { color: var(--rose); font-weight: 800; }
.brand__mark { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 15px; }
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a.is-current { background: var(--rose-50); color: var(--rose-600); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; }
.badge[data-count="0"] { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--sand); flex: none; }
.avatar--sm { width: 32px; height: 32px; }
.avatar--lg { width: 56px; height: 56px; }
.avatar-ph { display: inline-grid; place-items: center; color: var(--rose-600); font-weight: 800; background: var(--rose-50); }
.menu { position: relative; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 60; }
.menu__panel a, .menu__panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14.5px; background: none; border: 0; cursor: pointer; text-align: left; }
.menu__panel a:hover, .menu__panel button:hover { background: var(--sand); color: var(--ink); }
.menu__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-toggle { display: none; }

/* Mobile tab bar (members) */
.tabbar { display: none; }

/* ---------- Landing ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
	radial-gradient(900px 480px at 85% 10%, rgba(232, 71, 95, .14), transparent 60%),
	radial-gradient(700px 420px at 0% 100%, rgba(244, 184, 96, .16), transparent 60%),
	var(--bg); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--rose-600); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.hero h1 { font-family: var(--serif); font-size: clamp(40px, 5.4vw, 66px); font-weight: 700; letter-spacing: -.02em; margin: 18px 0 16px; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero__lede { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.search-card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 560px; }
.search-card__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.search-card__row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.search-card .btn { margin-top: 6px; }
.search-card__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(27, 33, 64, .12)); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: var(--ok); }

.section { padding: 88px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #d8dbea; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.015em; }
.section-head p { color: var(--muted); font-size: 18px; }
.section--navy .section-head p { color: #b9bed6; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 32px 28px 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 28px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #fff; font-weight: 800; box-shadow: 0 6px 16px rgba(232, 71, 95, .35); }
.step h3 { font-size: 20px; margin-top: 6px; }
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.feature { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--rose-50); color: var(--rose-600); }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }
.safety-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.safety-list li { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.safety-list .icon { color: var(--gold); width: 22px; height: 22px; margin-top: 2px; }
.safety-list strong { color: #fff; display: block; margin-bottom: 2px; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--rose); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 12px; }
.cta-band { border-radius: 28px; padding: 56px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 20% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--rose) 0%, #c93a6c 100%); box-shadow: 0 24px 60px rgba(232, 71, 95, .3); }
.cta-band h2 { color: #fff; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); }
.cta-band p { color: rgba(255, 255, 255, .88); font-size: 18px; }
.cta-band .btn { background: #fff; color: var(--rose-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9bed6; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #d8dbea; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 320px; font-size: 14.5px; }
.footer-col h2 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13.5px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
.field__label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field__hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font-size: 15.5px; transition: border-color .15s, box-shadow .15s; }
.textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7185' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(232, 71, 95, .12); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rose); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .12s; }
.chip-opt input:checked + span { background: var(--rose-50); border-color: var(--rose); color: var(--rose-700); }
.chip-opt input:focus-visible + span { outline: 3px solid rgba(232, 71, 95, .45); outline-offset: 2px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.notice { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; border: 1px solid; }
.notice--error { background: #fff4f4; border-color: #f2c7cb; color: #9c2430; }
.notice--ok { background: #f0faf5; border-color: #bfe6d3; color: #1c6b4b; }
.notice--info { background: #f4f6ff; border-color: #d3d9f5; color: #2c3770; }
.hp { position: absolute !important; left: -9999px !important; }

/* ---------- Auth pages ---------- */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth__side { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, #2b2557 60%, #7d2e5c 100%); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth__side h2 { color: #fff; font-family: var(--serif); font-size: 38px; }
.auth__side p { color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 440px; }
.auth__side svg { position: absolute; top: 40px; right: -60px; width: 520px; opacity: .9; }
.auth__main { display: grid; place-items: center; padding: 48px 24px; }
.auth__card { width: 100%; max-width: 460px; }
.auth__card h1 { font-family: var(--serif); font-size: 34px; margin-bottom: 6px; }
.auth__card .lead { color: var(--muted); margin-bottom: 26px; }
.auth__alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; }
.legal-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- App shell ---------- */
.app { padding: 32px 0 80px; min-height: calc(100vh - 72px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-family: var(--serif); font-size: 34px; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card--pad { padding: 24px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 12px 16px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.is-current { color: var(--rose-600); border-color: var(--rose); }
.empty { text-align: center; padding: 64px 24px; }
.empty svg { width: 180px; margin: 0 auto 18px; }
.empty h2 { font-family: var(--serif); font-size: 26px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }

/* Filters */
.filters { padding: 18px; margin-bottom: 24px; }
.filters__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.filters__more { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.filters .field__label { font-size: 12.5px; }
.ages { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }

/* Member cards */
.grid-members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mcard { position: relative; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mcard__photo { position: relative; aspect-ratio: 4 / 5; background: var(--sand); display: block; }
.mcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.mcard__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 20, 36, .72) 100%); }
.mcard__info { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; }
.mcard__name { font-size: 18px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 6px; }
.mcard__meta { font-size: 13.5px; color: rgba(255, 255, 255, .88); display: flex; align-items: center; gap: 6px; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px #fff; display: inline-block; flex: none; }
.mcard__like { position: absolute; top: 12px; right: 12px; z-index: 2; }
.like-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .95); color: var(--rose); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); transition: transform .12s; }
.like-btn:hover { transform: scale(1.08); }
.like-btn .icon { width: 22px; height: 22px; }
.like-btn.is-on { background: var(--rose); color: #fff; }
.like-btn.is-on .icon path { fill: currentColor; }
.mcard__tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--rose-700); font-size: 12px; font-weight: 800; }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }

/* Profile */
.profile { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--sand); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--sand); }
.gallery__thumbs button.is-current { border-color: var(--rose); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.profile__name { font-family: var(--serif); font-size: 40px; margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.profile__age { color: var(--muted); font-weight: 500; }
.profile__loc { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.profile__headline { font-size: 19px; color: var(--ink); font-weight: 600; margin: 18px 0 10px; }
.profile__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; align-items: center; }
.profile__about { white-space: pre-line; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.details div { padding: 12px 14px; border-radius: 12px; background: var(--sand); }
.details dt { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.details dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.block-title { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; }
.match-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--rose-50), #fff4e6); border: 1px solid var(--rose-100); color: var(--rose-700); font-weight: 700; }

/* Messages */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 72px - 64px); min-height: 520px; overflow: hidden; }
.inbox__list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox__list h1 { font-family: var(--serif); font-size: 26px; padding: 20px 20px 10px; margin: 0; }
.thread-item { display: flex; gap: 12px; align-items: center; padding: 14px 20px; color: var(--text); border-left: 3px solid transparent; }
.thread-item:hover { background: var(--sand); color: var(--text); }
.thread-item.is-current { background: var(--rose-50); border-left-color: var(--rose); }
.thread-item__body { min-width: 0; flex: 1; }
.thread-item__top { display: flex; justify-content: space-between; gap: 8px; }
.thread-item__name { font-weight: 800; color: var(--ink); }
.thread-item__time { font-size: 12.5px; color: var(--faint); flex: none; }
.thread-item__last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item.is-unread .thread-item__last { color: var(--ink); font-weight: 700; }
.convo { display: flex; flex-direction: column; min-width: 0; }
.convo__head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.convo__head a.name { font-weight: 800; color: var(--ink); }
.convo__head .muted { font-size: 13px; }
.convo__safety { margin: 14px 20px 0; padding: 10px 14px; border-radius: 12px; background: #fff8eb; border: 1px solid #f3dfb6; color: #7a5410; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.convo__safety .icon { color: var(--warn); margin-top: 2px; width: 18px; height: 18px; }
.convo__msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 18px; background: var(--sand); color: var(--ink); white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.bubble--me { align-self: flex-end; background: var(--rose); color: #fff; border-bottom-right-radius: 6px; }
.bubble--them { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble__time { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.day-sep { align-self: center; font-size: 12px; color: var(--faint); font-weight: 700; padding: 6px 0; }
.composer { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { flex: 1; min-height: 48px; max-height: 160px; resize: none; padding: 12px 16px; border-radius: 22px; border: 1.5px solid var(--line-2); }
.composer textarea:focus { outline: none; border-color: var(--rose); }
.composer .btn { min-height: 48px; }
.convo__empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }

/* Account / onboarding */
.split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.side-nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.side-nav a { padding: 11px 14px; border-radius: 12px; font-weight: 700; color: var(--text); }
.side-nav a:hover { background: var(--sand); }
.side-nav a.is-current { background: var(--rose-50); color: var(--rose-600); }
.form-section + .form-section { margin-top: 24px; }
.form-section h2 { font-size: 20px; margin-bottom: 4px; }
.form-section > p { color: var(--muted); margin-bottom: 18px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.photo { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--sand); border: 1.5px dashed var(--line-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__main { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 800; }
.photo__tools { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; justify-content: center; }
.photo__tools button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.photo__tools button:hover { color: var(--rose-600); }
.photo__tools .icon { width: 16px; height: 16px; }
.photo--add { display: grid; place-items: center; cursor: pointer; color: var(--rose-600); font-weight: 700; text-align: center; padding: 12px; }
.photo--add:hover { background: var(--rose-50); border-color: var(--rose); }
.photo--add .icon { width: 30px; height: 30px; margin: 0 auto 6px; }
.photo--add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), #f08a5d); border-radius: inherit; }
.stepper { display: flex; gap: 8px; margin-bottom: 24px; }
.stepper span { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.stepper span.is-done { background: var(--rose); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(18, 20, 36, .55); }
.modal__card { width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); }
.modal__card h2 { font-size: 22px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); font-size: 14.5px; }
.match-pop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: rgba(27, 33, 64, .72); padding: 20px; }
.match-pop__card { background: #fff; border-radius: 26px; padding: 34px 28px; max-width: 420px; text-align: center; }
.match-pop__card h2 { font-family: var(--serif); font-size: 36px; color: var(--rose); }
.match-pop__pics { display: flex; justify-content: center; margin: 10px 0 18px; }
.match-pop__pics img, .match-pop__pics span { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); background: var(--rose-50); }
.match-pop__pics > :last-child { margin-left: -18px; }

/* Content pages */
.prose-page { padding: 56px 0 88px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-family: var(--serif); font-size: 42px; }
.prose h2 { font-size: 24px; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.grid-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.filters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__art { max-width: 520px; margin: 0 auto; order: -1; }
	.safety-grid { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.nav, .header-actions .hide-m { display: none; }
	.steps, .features { grid-template-columns: minmax(0, 1fr); }
	.auth { grid-template-columns: minmax(0, 1fr); }
	.auth__side { display: none; }
	.profile, .split { grid-template-columns: minmax(0, 1fr); }
	.side-nav { position: static; display: flex; overflow-x: auto; }
	.inbox { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 72px - 64px - 64px); }
	.inbox.has-thread .inbox__list { display: none; }
	.inbox:not(.has-thread) .convo { display: none; }
	.is-member .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
	.tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; position: relative; }
	.tabbar a.is-current { color: var(--rose-600); }
	.tabbar .icon { width: 22px; height: 22px; }
	.tabbar .badge { position: absolute; top: 0; left: 55%; min-width: 18px; height: 18px; font-size: 10.5px; }
	.is-member .app { padding-bottom: 110px; }
	.is-member .site-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.site-header__inner { height: 64px; }
	.brand { font-size: 20px; }
	.brand__mark { width: 32px; height: 32px; }
	.hero { padding: 28px 0 48px; }
	.hero__lede { font-size: 17px; }
	.search-card { padding: 16px; border-radius: 18px; }
	.search-card__row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.search-card__row--3 > :last-child { grid-column: 1 / -1; }
	.section { padding: 64px 0; }
	.grid-members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mcard__name { font-size: 16px; }
	.filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cta-band { padding: 36px 22px; border-radius: 22px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.details { grid-template-columns: minmax(0, 1fr); }
	.bubble { max-width: 86%; }
	.profile__name { font-size: 32px; }
	.row-3 { grid-template-columns: minmax(0, 1fr); }
	.inbox { height: calc(100vh - 64px - 64px - 40px); }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Additions ---------- */
.mcard__ph { width: 100%; height: 100%; border-radius: 0; font-size: 64px; font-family: var(--serif); display: grid; place-items: center; }
.mcard__foot { padding: 10px; }
.mcard__foot .btn .icon { width: 16px; height: 16px; }
.gallery__main .mcard__ph { font-size: 120px; }
.convo__back { display: none; }
.small .icon, p .icon.icon { display: inline-block; vertical-align: -4px; width: 17px; height: 17px; }
.profile__loc .icon { width: 18px; height: 18px; }
.eyebrow .icon { width: 16px; height: 16px; }
.btn .icon { width: 18px; height: 18px; }
.btn--lg .icon { width: 20px; height: 20px; }
.convo__msgs .bubble a { color: inherit; text-decoration: underline; }
.bubble.is-pending { opacity: .6; }
.chips.is-full .chip-opt input:not(:checked) + span { opacity: .45; cursor: not-allowed; }
.counter-ok { color: var(--ok); }
.photo__tools button[disabled] { opacity: .35; pointer-events: none; }
.photo.is-busy { display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 14px; }
.filters .btn { min-height: 48px; }
.notice a { font-weight: 700; }
@media (max-width: 860px) {
	.convo__back { display: inline-grid; }
	.app-messages .app { padding-top: 0 !important; }
	.app-messages .app > .container { padding: 0; }
	.app-messages .inbox { border-radius: 0; border-left: 0; border-right: 0; }
}

.search-card__row > .field, .row-2 > .field, .row-3 > .field, .filters__grid > .field { margin-top: 0; }
.ages .select { padding-left: 12px; padding-right: 28px; background-position: right 8px center; }
@media (max-width: 860px) {
	.side-nav { align-items: center; gap: 6px; scrollbar-width: none; }
	.side-nav::-webkit-scrollbar { display: none; }
	.side-nav a { flex: none; white-space: nowrap; }
	.app-messages .inbox { height: calc(100vh - 72px - 62px); height: calc(100dvh - 72px - 62px - env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
	.filters__grid > .field--ages { grid-column: 1 / -1; }
	.app-messages .inbox { height: calc(100vh - 64px - 62px); height: calc(100dvh - 64px - 62px - env(safe-area-inset-bottom)); }
}

/* ---------- Sign-up wizard ---------- */
.wizard { min-height: calc(100vh - 72px); padding: 28px 0 72px; background: radial-gradient(700px 380px at 90% 0%, rgba(232, 71, 95, .10), transparent 60%), var(--bg); }
.wizard__inner { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.wizard__bar { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.wizard__back { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; flex: none; }
.wizard__back:hover { border-color: var(--rose); color: var(--rose-600); }
.wizard__progress { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wizard__progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #f08a5d); transition: width .35s ease; }
.wizard__count { font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.wstep + .wstep { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.is-wizard .wstep { display: none; }
.is-wizard .wstep + .wstep { margin-top: 0; padding-top: 0; border-top: 0; }
.is-wizard .wstep.is-current { display: block; animation: lvIn .28s ease; }
@keyframes lvIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wstep__eyebrow { color: var(--rose-600); font-weight: 800; font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; }
.wstep h1 { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 42px); letter-spacing: -.01em; margin-bottom: 8px; }
.wstep__lead { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.wstep h1 + .wopts, .wstep h1 + .field, .wstep h1 + .ages { margin-top: 24px; }
.wopts { display: grid; gap: 12px; }
.wopt { position: relative; display: block; }
.wopt input { position: absolute; opacity: 0; pointer-events: none; }
.wopt span { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 22px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #fff; font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.wopt span::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; transition: all .12s; }
.wopt--check span::after { border-radius: 7px; }
.wopt span:hover { border-color: var(--rose); box-shadow: 0 4px 14px rgba(232, 71, 95, .10); }
.wopt input:checked + span { border-color: var(--rose); background: var(--rose-50); color: var(--rose-700); }
.wopt input:checked + span::after { border-color: var(--rose); background: var(--rose); box-shadow: inset 0 0 0 4px #fff; }
.wopt input:focus-visible + span { outline: 3px solid rgba(232, 71, 95, .45); outline-offset: 2px; }
.wstep__next { margin-top: 28px; }
.wstep__error { margin: 18px 0 0; color: #9c2430; background: #fff4f4; border: 1px solid #f2c7cb; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; font-weight: 600; }
.ages--big { max-width: 360px; }
.ages--big .select { min-height: 56px; font-size: 18px; }
.input--big { min-height: 60px; font-size: 20px; }
.wizard .auth__alt { margin-top: 32px; }
.wizard .notice { margin-bottom: 20px; }

/* Home start card */
.start-card .field + .field { margin-top: 18px; }
.chips--big .chip-opt span { min-height: 48px; padding: 0 20px; font-size: 16px; }
.start-card .btn { margin-top: 22px; }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.lang-switch .icon { width: 18px; height: 18px; opacity: .8; }
.lang-switch select { appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px 14px; color: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.lang-switch select option { color: #1e2233; }
.lang-switch--light select { border-color: var(--line-2); }

@media (max-width: 1080px) {
	.hero__art { order: 1; max-width: 420px; }
}
@media (max-width: 640px) {
	.hero__art { display: none; }
	.hero h1 { margin-top: 12px; }
	.wizard { padding-top: 18px; }
	.wizard__bar { margin-bottom: 26px; }
	.wopt span { min-height: 58px; font-size: 17px; }
	.wstep .row-3 { grid-template-columns: 1.3fr .8fr 1fr; }
}

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] .menu__panel { right: auto; left: 0; }
[dir="rtl"] .menu__panel a, [dir="rtl"] .menu__panel button { text-align: right; }
[dir="rtl"] .step::before { left: auto; right: 28px; }
[dir="rtl"] .mcard__like { right: auto; left: 12px; }
[dir="rtl"] .mcard__tag { left: auto; right: 12px; }
[dir="rtl"] .photo__main { left: auto; right: 10px; }
[dir="rtl"] .select { padding-right: 14px; padding-left: 38px; background-position: left 12px center; }
[dir="rtl"] .ages .select { padding-right: 12px; padding-left: 28px; background-position: left 8px center; }
[dir="rtl"] .thread-item { border-left: 0; border-right: 3px solid transparent; }
[dir="rtl"] .thread-item.is-current { border-right-color: var(--rose); }
[dir="rtl"] .inbox__list { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .bubble--me { border-bottom-right-radius: 18px; border-bottom-left-radius: 6px; }
[dir="rtl"] .bubble--them { border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
[dir="rtl"] .header-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .icon-left, [dir="rtl"] .wizard__back .icon, [dir="rtl"] .convo__back .icon, [dir="rtl"] .pager .icon, [dir="rtl"] .composer .icon { transform: scaleX(-1); }
[dir="rtl"] .match-pop__pics > :last-child { margin-left: 0; margin-right: -18px; }
[dir="rtl"] .tabbar .badge { left: auto; right: 55%; }
