:root {
  --ink: #222333;
  --muted: #75758a;
  --line: #ecebf4;
  --surface: #ffffff;
  --paper: #faf9fd;
  --purple: #7659f4;
  --purple-dark: #5d42d4;
  --purple-soft: #f0edff;
  --rose: #ef769c;
  --gold: #e0a84d;
  --mint: #dff5ee;
  --shadow: 0 22px 60px rgba(50, 43, 91, .10);
  --shadow-small: 0 8px 24px rgba(50, 43, 91, .08);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Tajawal", system-ui, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.leaflet-container img.leaflet-tile,
.leaflet-tile-container img,
.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  box-sizing: content-box !important;
}
.site-header, .app-header { height: 80px; display: flex; align-items: center; gap: 24px; padding: 0 clamp(20px, 5vw, 76px); background: rgba(255,255,255,.86); border-bottom: 1px solid rgba(236,235,244,.8); position: relative; z-index: 5; }
.site-header { justify-content: space-between; backdrop-filter: blur(16px); position: sticky; top: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 13px; color: #fff; background: transparent; overflow: hidden; }
.brand-logo { width: 36px; height: 36px; border-radius: 0; object-fit: contain; display: block; background: transparent; box-shadow: none; }
.home-logo.brand-logo, img.home-logo { width: 96px; height: 96px; border-radius: 0; margin: 0 auto 18px; background: transparent; box-shadow: none; }
.main-nav, .app-nav, .header-actions, .app-header-actions { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); }
.main-nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.main-nav a:hover, .footer-links a:hover { color: var(--purple); }
.header-actions { gap: 12px; flex-shrink: 0; }
.home-simple { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 48px 22px 72px; }
.home-simple-card { text-align: center; max-width: 460px; }
.home-logo { width: 64px; height: 64px; border-radius: 22px; font-size: 32px; margin: 0 auto 18px; }
.home-simple h1 { margin: 0 0 10px; font-size: clamp(40px, 8vw, 64px); letter-spacing: -.05em; }
.home-simple p { color: var(--muted); margin: 0 auto 28px; font-size: 18px; }
.home-simple .hero-actions { justify-content: center; flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto 0; }
.home-simple .hero-actions .button { width: 100%; }
.auth-simple { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 32px 18px 56px; }
.auth-simple-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px 26px; box-shadow: var(--shadow-small); }
.auth-simple-card .brand { margin-bottom: 28px; }
.auth-simple-card h2 { font-size: 28px; letter-spacing: -.04em; margin: 0 0 6px; }
.auth-simple-card > p { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 0 16px; padding:4px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.auth-tab { display:grid; place-items:center; min-height:42px; border-radius:10px; color:var(--muted); font-weight:800; cursor:pointer; position:relative; }
.auth-tab input { position:absolute; opacity:0; pointer-events:none; }
.auth-tab span { display:grid; place-items:center; width:100%; height:100%; border-radius:10px; }
.auth-tab:has(input:checked) span { background:#fff; color:var(--ink); box-shadow:var(--shadow-small); }
form:has(input[name="auth_method"][value="phone"]:checked) [data-auth-pane="email"] { display:none; }
form:has(input[name="auth_method"][value="email"]:checked) [data-auth-pane="phone"] { display:none; }
.phone-row { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:8px; align-items:start; }
.phone-dial { display:grid; gap:8px; min-width:0; }
.phone-dial select { min-width:0; max-width:100%; }
.dial-custom, .dial-hint { display:none; }
.phone-dial:has(select option[value="custom"]:checked) .dial-custom,
.phone-dial:has(select option[value="custom"]:checked) .dial-hint { display:block; }
.dial-hint { color:var(--muted); font-size:12px; }
.phone-row select, .phone-row input, .field input, .field select, .field textarea { width:100%; min-width:0; max-width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.interest-picker { display:grid; gap:12px; }
.interest-group small { display:block; margin:0 0 6px; color:var(--muted); font-weight:800; }
.interest-chips { display:flex; flex-wrap:wrap; gap:8px; }
.interest-chip { display:inline-flex; align-items:center; cursor:pointer; }
.interest-chip input { position:absolute; opacity:0; pointer-events:none; }
.interest-chip span { display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border:1px solid var(--line); border-radius:999px; background:#fff; font-size:13px; font-weight:700; }
.interest-chip input:checked + span { border-color:var(--purple); background:var(--purple-soft); color:var(--purple-dark); }
.interest-read { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 12px; }
.interest-read span { display:inline-flex; align-items:center; min-height:30px; padding:0 10px; border-radius:999px; background:var(--purple-soft); color:var(--purple-dark); font-size:12px; font-weight:800; }
.lang-switch { color: var(--muted); font-size: 13px; font-weight: 700; }
.button { border: 0; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 10px 22px rgba(118,89,244,.24); }
.button-primary:hover { background: var(--purple-dark); }
.button-secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.button-small { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.demo-banner { background: #fff5d8; color: #80611f; border-bottom: 1px solid #f1df9f; text-align: center; padding: 8px 18px; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.demo-banner a { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 11px; border-radius: 9px; background: #fff; border: 1px solid #ead488; color: #6d521a; font-weight: 800; }
.hero { position: relative; overflow: hidden; min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: 6vw; padding: 90px clamp(24px, 8vw, 130px) 100px; background: radial-gradient(circle at 75% 22%, #f4edff 0, transparent 28%), linear-gradient(145deg, #fff 0%, #faf7ff 55%, #fdf7f8 100%); }
.hero:after { content: ""; width: 420px; height: 420px; position: absolute; left: -180px; bottom: -190px; border-radius: 50%; background: #f7e9f2; opacity: .55; }
.hero-copy { position: relative; z-index: 1; max-width: 635px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--purple-dark); background: var(--purple-soft); border-radius: 50px; padding: 7px 13px; font-size: 13px; font-weight: 700; }
.eyebrow:before { content: "✦"; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 22px 0 18px; font-size: clamp(43px, 5.6vw, 75px); line-height: 1.07; letter-spacing: -.055em; max-width: 670px; }
.hero p { max-width: 555px; margin-bottom: 28px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: var(--muted); font-size: 13px; }
.avatar-stack { display: flex; direction: ltr; }
.avatar-stack .avatar { margin-left: -9px; border: 3px solid #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar, .avatar img { border-radius: 50%; overflow: hidden; }
.avatar { width: 38px; height: 38px; background: var(--purple-soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-small { width: 34px; height: 34px; }
.hero-visual { position: relative; min-height: 485px; z-index: 1; }
.hero-orbit { position: absolute; width: min(38vw, 420px); height: min(38vw, 420px); min-width: 320px; min-height: 320px; border: 1px solid #e8defc; border-radius: 50%; top: 35px; left: 50%; transform: translateX(-50%); }
.hero-orbit:before, .hero-orbit:after { content: ""; position: absolute; border-radius: 50%; border: 1px solid #eadff4; inset: 42px; }
.hero-orbit:after { inset: 88px; border-color: #f4dce8; }
.profile-float { position: absolute; width: 175px; padding: 10px; border-radius: 19px; background: #fff; box-shadow: var(--shadow); }
.profile-float img { height: 180px; width: 100%; object-fit: cover; border-radius: 13px; }
.profile-float strong { display: block; margin: 8px 3px 0; font-size: 14px; }
.profile-float small { color: var(--muted); display: block; margin: 0 3px 3px; font-size: 11px; }
.profile-float.one { top: 45px; left: 8%; transform: rotate(-8deg); }
.profile-float.two { right: 3%; top: 145px; transform: rotate(7deg); }
.profile-float.three { bottom: 12px; left: 29%; transform: rotate(-2deg); }
.match-bubble { position: absolute; top: 5px; right: 23%; width: 76px; height: 76px; display: grid; place-items: center; color: #fff; font-size: 28px; background: linear-gradient(135deg, var(--rose), var(--purple)); border-radius: 28px 28px 28px 7px; box-shadow: var(--shadow-small); transform: rotate(10deg); }
.section { padding: 105px clamp(24px, 8vw, 130px); }
.section-heading { max-width: 670px; margin-bottom: 44px; }
.section-heading h2 { margin: 13px 0 12px; font-size: clamp(31px, 4vw, 48px); line-height: 1.15; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); max-width: 530px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 25px; background: #fff; text-align: center; }
.stat strong { display: block; font-size: 28px; letter-spacing: -.05em; }
.stat span { color: var(--muted); font-size: 13px; }
.steps { background: #fff; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #fff, #fcfbff); }
.step-number { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--purple); background: var(--purple-soft); border-radius: 14px; font-weight: 800; }
.step-card h3 { margin: 28px 0 7px; font-size: 20px; }
.step-card p { color: var(--muted); margin-bottom: 0; font-size: 14px; }
.safety-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 8vw; background: #f8f4ff; }
.safety-art { min-height: 335px; background: linear-gradient(140deg, #8064f4, #f184a5); border-radius: 34px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.safety-art:before, .safety-art:after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.safety-art:before { width: 360px; height: 360px; top: -130px; left: -100px; }
.safety-art:after { width: 250px; height: 250px; bottom: -90px; right: -40px; }
.shield { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 112px; height: 138px; display: grid; place-items: center; color: #fff; font-size: 53px; background: rgba(255,255,255,.22); clip-path: polygon(50% 0, 92% 15%, 85% 67%, 50% 100%, 15% 67%, 8% 15%); }
.feature-list { display: grid; gap: 16px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--purple); background: #fff; font-size: 20px; }
.feature-item h3 { margin: 0 0 3px; font-size: 16px; }
.feature-item p { color: var(--muted); margin: 0; font-size: 13px; }
.pricing { background: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.plan.featured { border-color: #d0c5ff; box-shadow: var(--shadow-small); background: linear-gradient(145deg, #fff, #f9f6ff); }
.plan-tag { position: absolute; top: 19px; right: 20px; color: var(--purple-dark); font-size: 11px; font-weight: 800; }
.plan h3 { margin: 0 0 5px; font-size: 20px; }
.plan p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.price { font-size: 37px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.price small { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 20px 0 25px; border-top: 1px solid var(--line); }
.plan li { margin: 10px 0; font-size: 13px; color: var(--muted); }
.plan li:before { content: "✓"; color: #4ab48e; margin-inline-end: 9px; font-weight: 800; }
.cta-section { padding: 80px 24px; text-align: center; background: linear-gradient(130deg, #6f53e9, #bb67a0); color: #fff; }
.cta-section h2 { font-size: clamp(31px, 4vw, 48px); margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,.78); margin-bottom: 24px; }
.site-footer { display: grid; grid-template-columns: 1.2fr .8fr .7fr; gap: 30px; align-items: end; padding: 48px clamp(24px, 8vw, 130px); background: #fff; border-top: 1px solid var(--line); }
.site-footer p, .footer-copy { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
#footer-logo, [data-admin-url], .site-footer .brand, .app-mini-footer .brand { cursor: pointer; user-select: none; }
.app-mini-footer { display: flex; justify-content: center; padding: 18px 12px calc(18px + env(safe-area-inset-bottom)); }
.app-body .app-mini-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.app-mini-footer .brand { opacity: .55; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-copy { text-align: end; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-art { display: flex; flex-direction: column; justify-content: space-between; padding: 46px clamp(25px, 6vw, 85px); background: linear-gradient(145deg, #f2edff, #fff6fa); }
.auth-art .auth-quote { max-width: 440px; margin: auto 0; }
.auth-quote h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.1; letter-spacing: -.05em; }
.auth-quote p { color: var(--muted); }
.auth-mini-card { margin-top: 38px; max-width: 330px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-small); }
.auth-mini-card span { color: var(--muted); font-size: 12px; }
.auth-form-wrap { max-width: 490px; width: 100%; margin: auto; padding: 40px 25px; }
.auth-form-wrap .brand { margin-bottom: 55px; }
.auth-form-wrap h2 { font-size: 32px; letter-spacing: -.04em; margin-bottom: 5px; }
.auth-form-wrap > p { color: var(--muted); margin-bottom: 30px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.field { margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; outline: none; color: var(--ink); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; color: var(--muted); font-size: 12px; }
.check-row input { margin-top: 5px; accent-color: var(--purple); }
.auth-bottom { text-align: center; color: var(--muted); margin-top: 24px; font-size: 13px; }
.auth-bottom a { color: var(--purple); font-weight: 700; }
.alert { padding: 11px 14px; border-radius: 11px; margin-bottom: 17px; font-size: 13px; }
.alert-error { background: #fff0f1; border: 1px solid #ffd7dc; color: #b44254; }
.alert-success { background: #ebfaf5; border: 1px solid #ccefe2; color: #287b61; }
.app-body { background: #f7f6fb; }
.app-header { position: sticky; top: 0; justify-content: space-between; height: 78px; box-shadow: 0 5px 20px rgba(35,30,70,.04); }
.app-header .brand { margin-inline-end: 20px; }
.app-nav { flex: 1; justify-content: center; align-self: stretch; gap: 6px; }
.app-nav { display: none !important; }
.app-nav a { display: none; }
.app-nav a.active { color: var(--purple); border-color: var(--purple); }
.app-nav .nav-ico { font-size: 17px; line-height: 1; }
.app-nav .nav-txt { font-size: 12px; font-weight: 800; }
.app-header-actions { gap: 16px; }
.app-header .app-nav { display: none !important; }
.app-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.app-body .mobile-bottom-nav,
.mobile-bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: stretch;
  justify-content: space-around;
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(35,30,70,.08);
}
.mobile-bottom-nav a {
  min-width: 0;
  min-height: 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  color: var(--muted);
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  position: relative;
  padding: 8px 2px 18px;
}
.mobile-bottom-nav a.active { color: var(--purple); background: var(--purple-soft); }
.mobile-bottom-nav .nav-ico { font-size: 18px; line-height: 1; }
.mobile-bottom-nav .nav-txt { font-size: 11px; }
.discover-grid { grid-template-columns: repeat(var(--home-cols-m, 1), minmax(0, 1fr)); }
.app-main { max-width: 1230px; margin: auto; padding: 16px 12px 28px; }
.page-intro-compact { margin-bottom: 16px; }
.page-intro-compact h1 { font-size: clamp(26px, 6vw, 36px); }
.gps-consent.compact { padding: 12px 14px; margin-bottom: 16px; }
.round-action.message { color: var(--purple); background: var(--purple-soft); border-color: #dfd9ff; }
.round-action.liked { color: #fff; background: var(--rose); border-color: var(--rose); }
.message-sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: end center; background: rgba(20,16,40,.42); padding: 16px 16px calc(88px + env(safe-area-inset-bottom)); }
.message-sheet[hidden] { display: none; }
.message-sheet-card { width: min(100%, 520px); background: #fff; border-radius: 20px; padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.message-sheet-card textarea { min-height: 90px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.message-sheet-actions { display: flex; gap: 8px; justify-content: flex-end; }
.message-sheet-note { margin: 0; color: var(--muted); font-size: 12px; }
.conversation-copy { min-width: 0; }
.mobile-list { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.back-link { display: inline-flex; margin-bottom: 12px; color: var(--purple); font-weight: 700; font-size: 13px; }
.chat-thread { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-height: 58vh; }
.chat-scroll { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-bubble { max-width: 80%; padding: 10px 13px; border-radius: 14px; background: var(--paper); align-self: flex-start; }
.chat-bubble.is-mine { align-self: flex-end; background: var(--purple); color: #fff; }
.chat-bubble small { display: block; opacity: .65; font-size: 10px; margin-top: 4px; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; }
.profile-page { max-width: 100%; overflow-x: hidden; padding-bottom: 24px; }
.profile-page .form-grid,
.profile-page .profile-grid { grid-template-columns: 1fr; }
.profile-page .phone-row { grid-template-columns: 1fr; }
.profile-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 14px; }
.profile-hero-photo { width: 112px; height: 112px; border-radius: 28px; overflow: hidden; flex: 0 0 auto; background: var(--purple-soft); }
.profile-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-copy { min-width: 0; flex: 1; }
.profile-hero-copy h1 { margin: 0; font-size: 22px; }
.profile-hero-copy p { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.profile-hero .verified { color: #4ab48e; font-size: 15px; }
.photo-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.photo-upload { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed #d5cef3; border-radius: 12px; background: var(--purple-soft); font-size: 13px; font-weight: 700; color: var(--purple-dark); }
.photo-upload input { max-width: 160px; }
.profile-edit-form .button { width: 100%; }
.profile-links { display: flex; gap: 12px; margin-top: 18px; }
.profile-links a { color: var(--purple); font-weight: 700; font-size: 13px; }
.profile-bio { color: var(--muted); }
.match-card-body { flex: 1; min-width: 0; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-intro h1 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 43px); letter-spacing: -.05em; }
.page-intro p { color: var(--muted); margin: 0; font-size: 14px; }
.filter-bar { display: flex; align-items: center; gap: 9px; overflow: auto; padding-bottom: 6px; margin-bottom: 25px; }
.filter-chip { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 50px; padding: 8px 14px; color: var(--muted); font-size: 12px; }
.filter-chip.active { color: var(--purple); border-color: #cec4ff; background: var(--purple-soft); font-weight: 700; }
.search-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; position: relative; z-index: 6; flex-wrap: nowrap; }
.search-bar .search-q { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: var(--paper); border-radius: 12px; }
.search-bar .search-submit { min-width: 72px; width: auto; flex: 0 0 auto; padding: 10px 16px; border-radius: 12px; }
.search-adv { flex: 0 0 auto; color: var(--purple); font-weight: 800; font-size: 13px; padding: 0 6px; white-space: nowrap; }
.cat-drop { position: relative; flex: 0 0 auto; }
.cat-drop > summary { list-style: none; cursor: pointer; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 800; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--paper); }
.cat-drop > summary::-webkit-details-marker { display: none; }
.cat-drop-list { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 8px; box-shadow: var(--shadow-small); z-index: 8; }
.cat-drop-list label, .cat-checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.cat-checks { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search-full h1 { margin: 0 0 6px; font-size: 28px; }
.search-full-copy { color: var(--muted); margin: 0 0 18px; }
.search-page-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: #1f9d6d; box-shadow: 0 0 0 3px rgba(31,157,109,.25); display: inline-block; }
.discover-grid { display: grid; grid-template-columns: repeat(var(--home-cols-m, 1), minmax(0, 1fr)); gap: 12px; }
.discover-grid .person-card { border-radius: 14px; }
.discover-grid .person-photo { height: clamp(180px, calc(88vw / var(--home-cols, 4)), 320px); }
.person-card.is-compact:hover { transform: none; }
.person-card.is-compact .person-photo { height: clamp(150px, calc(78vw / var(--home-cols, 4)), 230px); }
.person-card.is-compact .person-overlay { bottom: 54px; inset-inline: 8px; }
.person-card.is-compact .person-overlay h3 { font-size: 13px; line-height: 1.25; }
.person-card.is-compact .person-badges { top: 8px; inset-inline: 8px; }
.person-card.is-compact .person-bio { display: none; }
.discover-grid .empty-state { grid-column: 1 / -1; padding: 36px 12px; }
.home-photos { padding-top: 18px; }
.back-link { display: inline-block; margin: 0 0 10px; color: var(--purple); font-weight: 800; font-size: 13px; }
.gps-consent.compact { padding: 10px 12px; margin: 0 0 12px; }
.gps-consent.compact p { font-size: 12px; margin: 2px 0 0; }
.search-card { margin: 0 0 22px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-small); }
.search-hero { display: flex; gap: 8px; align-items: stretch; margin-bottom: 14px; }
.search-q { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.search-submit { min-width: 96px; border-radius: 14px; }
.search-looking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.search-looking > span { font-size: 13px; font-weight: 800; color: var(--ink); }
.search-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.search-radio { display: inline-flex; align-items: center; gap: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 50px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.search-radio input { position: absolute; opacity: 0; pointer-events: none; }
.search-radio.is-on, .search-radio:has(input:checked) { color: var(--purple); border-color: #cec4ff; background: var(--purple-soft); }
.search-basic-grid { margin-bottom: 8px; }
.search-checks { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 10px; font-size: 13px; font-weight: 700; }
.search-checks label { display: inline-flex; align-items: center; gap: 7px; }
.search-advanced { border-top: 1px solid var(--line); padding-top: 8px; }
.search-advanced summary { cursor: pointer; padding: 10px 0; font-weight: 800; font-size: 13px; color: var(--purple-dark); list-style: none; }
.search-advanced summary::-webkit-details-marker { display: none; }
.search-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.filter-panel { margin: -10px 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.filter-panel summary { cursor: pointer; padding: 12px 16px; font-weight: 800; font-size: 13px; color: var(--purple-dark); list-style: none; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-form { padding: 0 16px 16px; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.person-traits { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.person-traits span { padding: 3px 8px; border-radius: 50px; background: var(--paper); color: var(--muted); font-size: 10px; font-weight: 700; }
.filter-panel .check-row { margin: 4px 0 0; align-items: center; }
.filter-panel .check-row label { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); }
.discover-grid { display: grid; grid-template-columns: repeat(var(--home-cols-m, 1), minmax(0, 1fr)); gap: 12px; }
.person-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 4px 15px rgba(35,30,70,.03); transition: .2s ease; }
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-small); }
.person-photo { position: relative; height: 320px; overflow: hidden; background:#eceaf3; }
.person-photo-link { display: block; width: 100%; height: 100%; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: .4s ease; }
.person-card:hover .person-photo img { transform: scale(1.04); }
.photo-gradient { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(15,12,29,.72)); pointer-events: none; }
.person-badges { position: absolute; top: 12px; inset-inline: 12px; display: flex; justify-content: space-between; gap: 6px; z-index: 3; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 50px; color: #fff; background: rgba(20,18,35,.44); backdrop-filter: blur(8px); font-size: 10px; }
.badge-verified { color: #fff; background: #4ab48e; }
.person-card.is-online { border-color: #ccefe2; }
.badge-online { background:#1f9d6d; animation: online-pulse 2.2s ease-out infinite; }
@keyframes online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,157,109,.45); }
  70% { box-shadow: 0 0 0 8px rgba(31,157,109,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,109,0); }
}
.photo-actions { position: absolute; bottom: 10px; inset-inline: 12px; z-index: 4; display: flex; justify-content: space-between; pointer-events: none; }
.photo-act { pointer-events: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 20px; line-height: 1; box-shadow: 0 8px 18px rgba(20,16,40,.28); }
.photo-act.like { color: #fff; background: var(--rose); }
.photo-act.like.liked { background: #c94b74; }
.photo-act.message { color: var(--purple); background: #fff; }
.person-overlay { position: absolute; bottom: 58px; inset-inline: 15px; color: #fff; pointer-events: none; }
.person-overlay h3 { margin: 0; font-size: 19px; }
.person-overlay span { opacity: .82; font-size: 12px; }
.interest-badge { display: inline-flex; align-items: center; margin: 0 0 6px; padding: 4px 10px; border-radius: 50px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #7c5cff, #ff5d8f); box-shadow: 0 6px 14px rgba(20,16,40,.28); }
.person-card.is-compact .interest-badge { font-size: 10px; padding: 3px 8px; margin-bottom: 4px; }
.profile-hero-copy .interest-badge { margin: 6px 0 0; }
.person-info { padding: 14px; }
.person-bio { min-height: 43px; color: var(--muted); font-size: 12px; margin: 0 0 13px; }
.interest-row { display: flex; gap: 5px; flex-wrap: wrap; }
.interest { padding: 3px 8px; color: var(--purple-dark); background: var(--purple-soft); border-radius: 50px; font-size: 10px; }
.person-actions { display: flex; gap: 8px; margin-top: 14px; }
.round-action { flex: 1; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.round-action.like { color: var(--rose); background: #fff5f8; border-color: #ffdce7; }
.round-action.like.liked { background: var(--rose); color: #fff; border-color: var(--rose); }
.round-action.message { color: var(--purple); background: var(--purple-soft); border-color: #dfd9ff; }
.round-action.super { color: var(--purple); background: var(--purple-soft); border-color: #dfd9ff; }
.profile-layout { display: grid; grid-template-columns: 310px 1fr; gap: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.profile-side { text-align: center; }
.profile-side .large-avatar { width: 130px; height: 130px; margin: 2px auto 14px; border-radius: 38px; overflow: hidden; }
.large-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-side h2 { font-size: 23px; margin: 0; }
.profile-side p { color: var(--muted); font-size: 13px; margin: 2px 0 18px; }
.profile-nav { display: grid; gap: 6px; margin-top: 25px; text-align: start; }
.profile-nav a { padding: 10px 12px; color: var(--muted); border-radius: 10px; font-size: 13px; }
.profile-nav a:hover, .profile-nav a.active { color: var(--purple); background: var(--purple-soft); font-weight: 700; }
.profile-panel h2 { margin: 0 0 19px; font-size: 22px; }
.profile-panel h3 { font-size: 15px; margin: 25px 0 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.detail { padding: 13px; background: var(--paper); border-radius: 12px; }
.detail small { color: var(--muted); display: block; font-size: 11px; }
.detail strong { display: block; margin-top: 3px; font-size: 13px; }
.matches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.match-card { display: flex; align-items: center; gap: 13px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.match-card .avatar { width: 60px; height: 60px; flex: 0 0 auto; }
.match-card h3 { margin: 0; font-size: 16px; }
.match-card p { color: var(--muted); margin: 2px 0 10px; font-size: 11px; }
.messages-layout { display: grid; grid-template-columns: 320px 1fr; min-height: 600px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.conversation-list { border-inline-end: 1px solid var(--line); }
.conversation-list h2 { padding: 22px 20px 13px; margin: 0; font-size: 20px; }
.conversation { display: flex; gap: 11px; align-items: center; padding: 13px 19px; border-top: 1px solid #f5f3f8; }
.conversation:hover, .conversation.active { background: var(--purple-soft); }
.conversation .avatar { flex: 0 0 auto; }
.conversation h3 { margin: 0; font-size: 13px; }
.conversation p { color: var(--muted); margin: 2px 0 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-empty { display: grid; place-items: center; color: var(--muted); text-align: center; padding: 25px; }
.chat-empty strong { display: block; margin-top: 10px; color: var(--ink); }
.chat-empty span { font-size: 35px; color: var(--purple); }
.settings-list { display: grid; gap: 13px; max-width: 760px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.setting-row strong { display: block; font-size: 14px; }
.setting-row span { color: var(--muted); font-size: 12px; }
.switch { width: 44px; height: 25px; appearance: none; border-radius: 50px; background: #dddbe6; position: relative; transition: .2s; }
.switch:before { content: ""; position: absolute; width: 19px; height: 19px; border-radius: 50%; top: 3px; left: 3px; background: #fff; transition: .2s; }
.switch:checked { background: var(--purple); }
.switch:checked:before { transform: translateX(19px); }
.privacy-block { max-width: 760px; margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: grid; gap: 12px; }
.privacy-block h2 { margin: 0; font-size: 17px; }
.privacy-block > p { margin: 0; color: var(--muted); font-size: 13px; }
.privacy-block .setting-row { padding: 14px; }
.privacy-block .button { justify-self: start; min-width: 120px; }
.admin-shell { background: #f4f3f8; min-height: 100vh; }
.admin-header { background: #24213a; color: #fff; height: auto; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.admin-header .brand { color: #fff; }
.admin-header .app-nav { flex-wrap: wrap; gap: 10px 16px; justify-content: flex-start; font-size: 12px; }
.admin-header .app-nav a { flex-direction: row; min-width: 0; padding: 6px 4px; border-bottom: 0; font-size: 12px; color: rgba(255,255,255,.82); }
.admin-main { max-width: 1380px; padding: 38px clamp(20px, 4vw, 50px); margin: auto; }
.admin-main .page-intro p { color: #89879e; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.admin-stat { padding: 18px; border-radius: 15px; color: #fff; background: #393550; }
.admin-stat:nth-child(2) { background: #6354c6; } .admin-stat:nth-child(3) { background: #ba6d92; } .admin-stat:nth-child(4) { background: #528b82; }
.admin-stat small { display: block; color: rgba(255,255,255,.67); font-size: 11px; }
.admin-stat strong { display: block; margin-top: 7px; font-size: 25px; }
.admin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.admin-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.admin-card h2 { margin: 0 0 18px; font-size: 17px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 13px 10px; border-bottom: 1px solid #f1eff5; text-align: start; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
td strong { font-size: 12px; }
.status { display: inline-block; padding: 4px 8px; border-radius: 50px; font-size: 10px; background: #e8f8f1; color: #287b61; }
.status.pending { background: #fff4dc; color: #99721d; }
.progress-row { margin-bottom: 18px; }
.progress-row header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.progress-row header span { color: var(--muted); }
.progress { height: 7px; overflow: hidden; border-radius: 20px; background: #f0eef5; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--purple); }
.wallet-hero { max-width: 760px; margin: 0 0 18px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, #5d42d4, #ef769c); color: #fff; }
.wallet-hero small { display: block; opacity: .85; font-size: 12px; }
.wallet-hero strong { display: block; margin: 6px 0 8px; font-size: clamp(32px, 6vw, 46px); letter-spacing: -.04em; }
.wu-box { padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.wu-box ul { margin: 8px 0 0; padding: 0 18px; }
.pay-soon { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 13px; }
.pay-soon em { font-style: normal; padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--line); background: #fff; font-weight: 800; font-size: 12px; }
.billing-plans { margin-top: 8px; }
.admin-card .setting-row { margin-bottom: 10px; }
.admin-card table input { min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; }
.gps-consent { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:0 0 22px; padding:18px 20px; border:1px solid #d9d0ff; border-radius:18px; background:linear-gradient(180deg,#f7f4ff,#fff); }
.gps-consent p { margin:6px 0 0; color:var(--muted); font-size:13px; max-width:640px; }
.gps-consent.is-on { border-color:#ccefe2; background:#f3fbf7; }
.nearest-note { color:var(--muted); font-size:13px; margin:-8px 0 18px; }
.map-card { margin-top:18px; }
.map-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.map-toggle { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:800; cursor:pointer; color:var(--ink); }
.map-toggle input { width:18px; height:18px; accent-color:var(--purple); }
.map-legend { display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-bottom:12px; color:var(--muted); font-size:13px; }
.map-counts { margin:0 0 12px; }
.map-dot, .user-pin span { width:12px; height:12px; border-radius:50%; display:inline-block; box-shadow:0 0 0 3px rgba(255,255,255,.9); }
.map-dot.male, .user-pin.male span { background:#2f6bff; }
.map-dot.female, .user-pin.female span { background:#ef769c; }
.map-dot.online, .user-pin.is-online span { box-shadow:0 0 0 4px rgba(74,180,142,.35); }
.map-dot.seed { background:#c7c3d6; box-shadow:0 0 0 3px rgba(255,255,255,.9); }
.user-pin { background:transparent; border:0; }
.user-pin.photo { position:relative; width:40px !important; height:40px !important; }
.user-pin.photo img { width:40px; height:40px; object-fit:cover; border-radius:50%; border:3px solid #ef769c; background:#fff; box-shadow:0 4px 12px rgba(20,16,40,.28); }
.user-pin.photo.male img { border-color:#2f6bff; }
.user-pin.photo.is-online img { box-shadow:0 0 0 4px rgba(31,157,109,.4), 0 4px 12px rgba(20,16,40,.28); }
.user-pin.photo.is-seed img { border-style:dashed; opacity:.92; }
.user-pin.photo.is-seed i { position:absolute; right:-2px; bottom:-2px; width:14px; height:14px; border-radius:50%; background:#8b86a3; color:#fff; font-size:9px; font-style:normal; font-weight:800; display:grid; place-items:center; }
.user-pin.photo.is-seed i:after { content:"و"; }
.world-map { height:min(68vh, 620px); min-height:420px; border-radius:18px; overflow:hidden; border:1px solid var(--line); z-index:1; direction:ltr !important; background:#cfd8dc; }
.world-map, .world-map * { direction:ltr; }
.leaflet-container { width:100%; height:100%; background:#cfd8dc; direction:ltr !important; }
.leaflet-pane, .leaflet-map-pane, .leaflet-tile-pane, .leaflet-overlay-pane, .leaflet-marker-pane, .leaflet-tooltip-pane, .leaflet-popup-pane { direction:ltr !important; }
.leaflet-tile-pane img, .leaflet-tile, img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  box-sizing: content-box !important;
}
.map-empty { display:none; color:var(--muted); font-size:13px; margin:12px 0 0; }
.map-popup { min-width:200px; text-align:center; }
.map-popup img { width:72px; height:72px; object-fit:cover; border-radius:50%; margin:0 auto 8px; }
.map-popup strong, .map-popup span, .map-popup small { display:block; }
.map-popup span, .map-popup small { color:var(--muted); font-size:12px; }
.map-popup a { display:inline-block; margin-top:8px; color:var(--purple); font-weight:800; font-size:13px; }
.map-people { display:grid; gap:8px; margin-top:14px; }
.map-person { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; text-align:start; }
.map-person img { width:42px; height:42px; border-radius:50%; object-fit:cover; }
.map-person strong { display:block; font-size:13px; }
.map-person small { color:var(--muted); font-size:11px; }
.map-person a { margin-inline-start:auto; font-size:12px; font-weight:800; color:var(--purple); white-space:nowrap; }
.map-legend-grid { margin-bottom:16px; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 65px; } .hero-copy { max-width: 720px; } .hero-visual { max-width: 580px; width: 100%; margin: auto; }
  .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .site-header { height: 68px; padding: 0 18px; } .main-nav { display: none; } .header-actions .button { padding: 7px 12px; }
  .hero { min-height: auto; padding: 65px 22px 80px; } .hero h1 { font-size: 46px; } .hero-visual { min-height: 395px; transform: scale(.9); transform-origin: top center; margin-bottom: -45px; } .profile-float { width: 145px; } .profile-float img { height: 150px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); } .section { padding: 70px 22px; } .step-grid, .plans { grid-template-columns: 1fr; }
  .safety-section { grid-template-columns: 1fr; gap: 35px; } .safety-art { min-height: 270px; } .site-footer { grid-template-columns: 1fr; padding: 40px 22px; } .footer-copy { text-align: start; }
  .auth-page { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-form-wrap { padding-top: 32px; } .auth-form-wrap .brand { margin-bottom: 45px; }
  .app-header { padding: 0 15px; height: 58px; } .app-header .brand > span:last-child { display: none; } .app-header-actions { gap: 12px; }
  .app-body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .discover-grid { grid-template-columns: repeat(var(--home-cols-m, 1), minmax(0, 1fr)); gap: 10px; } .discover-grid .person-photo, .person-card.is-compact .person-photo { height: clamp(210px, calc(78vw / var(--home-cols-m, 1)), 440px); } .app-main { padding: 12px 10px 24px; }
  .search-bar { gap: 6px; padding: 6px; }
  .search-bar .search-submit { min-width: 58px; width: auto; padding: 10px 12px; }
  .search-bar .search-q { padding: 10px 8px; font-size: 14px; }
  .cat-drop > summary { max-width: 92px; padding: 9px 8px; font-size: 12px; }
  .search-hero { flex-direction: row; }
  .search-card { padding: 12px; }
  .page-intro { align-items: start; flex-direction: column; } .profile-layout, .messages-layout { grid-template-columns: 1fr; } .profile-side { text-align: start; } .profile-side .large-avatar { margin-inline-start: 0; } .profile-nav { display: flex; overflow: auto; } .profile-nav a { white-space: nowrap; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { flex-wrap: wrap; }
  .filter-bar { margin-bottom: 14px; }
  .search-hero { flex-direction: column; }
  .search-submit { width: 100%; min-height: 48px; }
  .search-card { padding: 12px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); } .matches-grid { grid-template-columns: 1fr; } .conversation-list { border-inline-end: 0; border-bottom: 1px solid var(--line); } .messages-layout { min-height: auto; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); } .admin-grid { grid-template-columns: 1fr; }
  .button, .round-action, .filter-chip, .setting-row { min-height: 44px; } .round-action { height: 46px; }
}
@media (max-width: 420px) { .discover-grid { grid-template-columns: repeat(var(--home-cols-m, 1), minmax(0, 1fr)); } .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } }
.app-nav a, .mobile-bottom-nav a { position: relative; }
.nav-badge {
  position: absolute;
  top: auto;
  bottom: 3px;
  left: 50%;
  right: auto;
  inset-inline: auto;
  transform: translateX(-50%);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(225, 29, 72, .28);
  z-index: 2;
}
.nav-badge[hidden] { display: none !important; }
.mobile-bottom-nav .nav-badge { bottom: 4px; min-width: 16px; height: 16px; font-size: 9px; }
.message-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(20,16,40,.42); display: grid; place-items: end center; padding: 16px; }
.message-sheet[hidden] { display: none; }
.message-sheet-card { width: min(480px, 100%); background: #fff; border-radius: 20px; padding: 18px; display: grid; gap: 10px; }
.message-sheet-card textarea { min-height: 90px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; }
.message-sheet-actions { display: flex; justify-content: flex-end; gap: 8px; }
.message-sheet-note { margin: 0; color: var(--muted); font-size: 12px; }
.chat-thread { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.chat-scroll { display: grid; gap: 8px; padding: 16px; min-height: 42vh; max-height: 62vh; overflow: auto; }
.chat-bubble { max-width: 80%; padding: 10px 12px; border-radius: 16px 16px 16px 6px; background: var(--paper); font-size: 14px; }
.chat-bubble small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.chat-bubble.is-mine { margin-inline-start: auto; background: var(--purple-soft); border-radius: 16px 16px 6px 16px; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input { width: 72px; text-align: center; }
.stepper button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 18px; font-weight: 800; }
.preview-board { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-top: 18px; }
.preview-frame { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.preview-frame h2 { margin: 0 0 4px; font-size: 16px; }
.preview-hint { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.preview-desk { overflow: auto; padding: 8px; background: var(--paper); border-radius: 14px; }
.preview-phone { width: 300px; max-width: 100%; height: 560px; overflow: auto; margin: auto; padding: 10px; border: 10px solid #1f1c2e; border-radius: 28px; background: var(--paper); }
.preview-phone .discover-grid { grid-template-columns: repeat(var(--home-cols-m, 1), minmax(0, 1fr)); }
.preview-photo { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, #cbb8ff, #8a6cf0); }
.preview-card .round-action { pointer-events: none; }
@media (max-width: 1100px) { .preview-board { grid-template-columns: 1fr; } }
.person-card.is-boosted { box-shadow: 0 0 0 2px var(--gold), var(--shadow-small); }
.badge-boost { background: linear-gradient(135deg, #f3c96b, #e0a84d); color: #3a2a08; font-weight: 800; }
.gift-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.gift-chip { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--purple-soft); font-size: 16px; }
.gift-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gift-pick { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.gift-pick:hover { border-color: var(--purple); color: var(--purple); }
.profile-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.plan-expiry-banner { background: #fff6e8; border-bottom: 1px solid #f1d9a8; padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 700; }
.plan-expiry-banner a { color: #8a5a12; }
.wallet-hero { background: linear-gradient(135deg, var(--purple), var(--rose)); color: #fff; border-radius: 22px; padding: 22px; margin-bottom: 18px; }
.wallet-hero small { opacity: .85; display: block; }
.wallet-hero strong { font-size: 32px; }
.match-card.is-blurred .like-blur img { filter: blur(10px) saturate(.6); transform: scale(1.08); }
.match-card.is-blurred .like-blur { overflow: hidden; }
.photo-act.super, .round-action.super { color: var(--gold); }
.growth-alert-banner { background: #f0edff; border-bottom: 1px solid #d9d1ff; padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 700; }
.growth-alert-banner a { color: var(--purple-dark); }
.button-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #222; border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.button-google svg { width: 22px; height: 22px; flex: none; }
.button-google:hover { border-color: #dadce0; }
.auth-or { margin: 14px 0 8px; text-align: center; color: var(--muted); font-size: 13px; }
.hero-actions .button-google { width: auto; min-width: min(100%, 280px); }

/* Mobile app shell: keep every screen inside the phone width */
.app-body, .app-main, .profile-page, .panel, .profile-hero, .profile-panel {
  max-width: 100%;
  min-width: 0;
}
.photo-upload {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  cursor: pointer;
}
.photo-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  cursor: pointer;
}
.photo-form { width: 100%; }
.photo-form .button { width: 100%; }
@media (max-width: 760px) {
  .app-header, .site-header {
    width: 100%;
    max-width: 100%;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .app-header .brand, .app-header-actions { flex: 0 0 auto; }
  .app-main {
    width: 100%;
    padding: 12px max(12px, env(safe-area-inset-right)) 28px max(12px, env(safe-area-inset-left));
  }
  .form-grid, .profile-grid, .detail-grid, .matches-grid, .admin-grid {
    grid-template-columns: 1fr;
  }
  .phone-row { grid-template-columns: 1fr; }
  .profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px 12px;
  }
  .profile-hero-photo { width: 112px; height: 112px; }
  .profile-hero-copy, .profile-hero .person-actions, .profile-tools, .gift-picker, .interest-read {
    width: 100%;
  }
  .profile-hero .person-actions { flex-wrap: wrap; justify-content: center; }
  .profile-hero .person-actions .button { flex: 1 1 46%; }
  .profile-tools { flex-direction: column; align-items: stretch; }
  .profile-tools .button, .profile-tools form { width: 100%; }
  .profile-panel { padding: 16px 12px; overflow: hidden; }
  .profile-links { flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
  .photo-form { flex-direction: column; align-items: stretch; }
  .messages-layout, .profile-layout { grid-template-columns: 1fr; min-height: 0; }
  .setting-row { flex-wrap: wrap; gap: 10px; }
  .search-bar { flex-wrap: wrap; }
  .search-bar .search-submit { width: 100%; }
  .chat-compose { flex-wrap: wrap; }
  .chat-compose input { min-width: 0; width: 100%; }
  .button, input, select, textarea { max-width: 100%; }
}
.person-card .person-actions { display: none; }
.lang-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-choice .button { min-width: 72px; }
.lang-switch { font-weight: 800; letter-spacing: .02em; min-width: 36px; text-align: center; }
.header-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: block; border: 2px solid var(--line); flex: 0 0 36px; }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-profile .app-mini-footer { display: none; }
.page-profile .app-main.me-profile,
.app-main.me-profile {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 10px 10px 110px;
  overflow-x: hidden;
}
.me-profile, .me-profile * { box-sizing: border-box; min-width: 0; max-width: 100%; }
.me-id, .me-card {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin: 0 0 10px;
}
.me-id { text-align: center; }
.me-id-photo { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; margin: 0 auto 8px; display: block; background: var(--purple-soft); }
.me-id h1 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.me-id p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.me-id .verified { color: #4ab48e; }
.me-row, .me-upload, .me-form, .me-phone, .me-facts, .gift-picker {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px;
  width: 100%;
}
.me-row form { width: 100%; margin: 0; }
.me-row .button, .me-upload .button, .me-form .button { width: 100%; }
.me-card h2 { margin: 0 0 8px; font-size: 16px; }
.me-card h3 { margin: 12px 0 6px; font-size: 14px; }
.me-card p { margin: 0 0 8px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.me-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
}
.me-field input, .me-field select, .me-field textarea, .me-phone input, .me-phone select,
.me-profile .phone-dial select, .me-profile .phone-dial input {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-weight: 500;
}
.me-field textarea { min-height: 88px; resize: vertical; }
.me-file {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  border: 1px dashed #d5cef3;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 800;
}
.me-file input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.me-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin-top: 12px; }
.me-links a { color: var(--purple); font-weight: 800; font-size: 13px; }
.me-facts { display: flex !important; flex-direction: column !important; gap: 8px; }
.me-profile .interest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.me-profile .interest-picker, .me-profile .interest-group, .me-profile .phone-dial, .me-profile .phone-row {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  gap: 8px;
}
.me-profile .form-grid, .me-profile .profile-grid, .me-profile .detail-grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
}
@media (min-width: 900px) and (pointer: fine) and (hover: hover) {
  .discover-grid { grid-template-columns: repeat(var(--home-cols, 4), minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .app-main:not(.me-profile) { padding: 28px clamp(20px, 4vw, 45px) 36px; }
}