/* =====================================================================
   Free Filipino Dating — site styles
   Dark theme is the default (html.t-dark); html.t-light is the light theme.
   Icons: Font Awesome Free 7.3.1 by @fontawesome — https://fontawesome.com — CC BY 4.0
   ===================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 600; font-display: swap; src: url(../fonts/caveat-latin-600-normal.woff2) format('woff2'); }   /* handwriting (hero note); SIL OFL */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }

/* ---------- Theme tokens ---------- */
.t-dark {
  --bg:#0F0C2E; --surface:#1A1647; --fill:#241F58; --tint:#2A2363; --tint-ink:#D9CCFF; --line:#2E2866; --line-strong:#4A4290;
  --ink:#F3F0FF; --muted:#CFC8EE; --muted2:#ADA5D6; --link:#B79BFF; --pink-text:#FF6FB8; --strong:#6B45E8; --panel:#1E1A52;
  --glass:rgba(26,22,71,0.62); --glass-line:rgba(255,255,255,0.12);
  --menu-glass:rgba(40,34,96,0.38); --menu-line:rgba(255,255,255,0.16); --menu-sep:rgba(255,255,255,0.10);
  --menu-hover:rgba(255,255,255,0.10); --menu-sel:rgba(255,255,255,0.14); --menu-hi:rgba(255,255,255,0.14);
  --sb:rgba(255,255,255,0.22); --sb-hover:rgba(255,255,255,0.38);
  /* charts (validated vs the dark panel #1A1647): series, gridline, delta text */
  --viz-1:#3987e5; --viz-2:#d95926; --viz-grid:#2E2866; --viz-up:#4ADE80; --viz-down:#F97066;
  --hdr-glow:#D65CF5;   /* header buttons' hover glow: purplish pink */
  --hero-ink:#FFFFFF; --hero-muted:#E6E1FA; --hero-accent:#FF5FB0; --hero-line:rgba(255,255,255,0.32); --hero-sep:rgba(255,255,255,0.3);
  --hero-chip:rgba(255,255,255,0.12); --hero-chip-line:rgba(255,255,255,0.18); --hdr-glass:rgba(22,16,78,0.42); --hdr-line:rgba(255,255,255,0.18);
  --bk1:rgba(255,196,120,0.95); --bk2:rgba(255,120,205,0.85); --bk3:rgba(190,150,255,0.8);
  --ok:#4ADE80; --ok-bg:rgba(22,163,74,0.16); --bad:#F97066; --bad-bg:rgba(249,112,102,0.16); --warn:#FBBF24; --warn-bg:rgba(245,158,11,0.16);
  color-scheme: dark;
}
.t-light {
  --bg:#F4FAFF; --surface:#FFFFFF; --fill:#EAF4FD; --tint:#E3F5FD; --tint-ink:#075E86; --line:#D9E8F5; --line-strong:#B9D2EA;
  --ink:#13264D; --muted:#3D4C72; --muted2:#56658C; --link:#0A72A3; --pink-text:#D6267F; --strong:#1F4B8F; --panel:#173763;
  --glass:rgba(255,255,255,0.66); --glass-line:rgba(27,22,80,0.10);
  --menu-glass:rgba(255,255,255,0.42); --menu-line:rgba(255,255,255,0.7); --menu-sep:rgba(19,38,77,0.09);
  --menu-hover:rgba(19,38,77,0.06); --menu-sel:rgba(19,38,77,0.08); --menu-hi:rgba(255,255,255,0.9);
  --sb:rgba(19,38,77,0.22); --sb-hover:rgba(19,38,77,0.4);
  /* charts (validated vs the light panel #FFFFFF) */
  --viz-1:#2a78d6; --viz-2:#eb6834; --viz-grid:#E1E8F0; --viz-up:#006300; --viz-down:#B42318;
  --hdr-glow:#13264D;   /* light mode: unchanged (the text colour) */
  --hero-ink:#13264D; --hero-muted:#2B3C63; --hero-accent:#D6267F; --hero-line:rgba(19,38,77,0.28); --hero-sep:rgba(19,38,77,0.25);
  --hero-chip:rgba(255,255,255,0.55); --hero-chip-line:rgba(255,255,255,0.85); --hdr-glass:rgba(255,255,255,0.5); --hdr-line:rgba(255,255,255,0.8);
  --bk1:rgba(255,226,150,0.95); --bk2:rgba(255,255,255,0.95); --bk3:rgba(255,170,220,0.85);
  --ok:#16A34A; --ok-bg:rgba(22,163,74,0.12); --bad:#DC2626; --bad-bg:rgba(220,38,38,0.10); --warn:#B45309; --warn-bg:rgba(245,158,11,0.14);
  color-scheme: light;
}
:root { --pink:#E8308C; --pink2:#C21C9A; --accent:#D6267F; --r:10px; --hdr-h:150px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--bg); transition: background-color .3s ease, color .3s ease; min-height: 100vh; }
[id] { scroll-margin-top: 120px; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1, h2, .display { font-family: 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -0.025em; }
/* Scripts our web fonts don't cover: Latin letters stay in Inter, the rest uses good system fonts.
   Letter-spacing is removed because it breaks joined Arabic letters and looks wrong in CJK. */
:lang(ar) { --script-font: 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Geeza Pro', 'Arial', sans-serif; }
:lang(ja) { --script-font: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', sans-serif; }
:lang(zh-Hant) { --script-font: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Heiti TC', sans-serif; }
html:lang(ar) body, html:lang(ja) body, html:lang(zh-Hant) body { font-family: Inter, var(--script-font); }
html:lang(ar) :is(h1, h2, h3, .display, .hero-h1, .join-box h2, .eyebrow, .step-pill),
html:lang(ja) :is(h1, h2, h3, .display, .hero-h1, .join-box h2, .eyebrow, .step-pill),
html:lang(zh-Hant) :is(h1, h2, h3, .display, .hero-h1, .join-box h2, .eyebrow, .step-pill) { font-family: 'Plus Jakarta Sans', Inter, var(--script-font); letter-spacing: 0; }
html:lang(ar) * { letter-spacing: 0 !important; }
html:lang(ar) .hero-note, html:lang(ja) .hero-note, html:lang(zh-Hant) .hero-note { font-family: var(--script-font); font-weight: 700; font-size: clamp(20px, 1.9vw, 25px); }
html:lang(ar) body { line-height: 1.65; }
p { margin: 0; }
a { color: var(--link); }
a:hover { color: var(--tint-ink); }
button { font: inherit; color: inherit; }
input, textarea { font: inherit; background-color: var(--surface); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted2); }
/* Thin, modern scrollbars everywhere (standard properties for Firefox/new Chrome, ::-webkit for Safari) */
* { scrollbar-width: thin; scrollbar-color: var(--sb) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sb); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
.ic { width: 1em; height: 1em; flex: none; fill: currentColor; display: inline-block; vertical-align: -0.125em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: var(--r); background: var(--surface); }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.muted { color: var(--muted); } .muted2 { color: var(--muted2); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }

/* ---------- Animated hover glow (every button and link) ---------- */
.fx-btn { max-width: 100%; text-wrap: balance; transition: transform .18s ease, box-shadow .25s ease, filter .2s ease, background-color .2s ease; }
.fx-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px var(--glow), 0 0 20px -4px var(--glow); filter: brightness(1.08); }
.fx-btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.fx-btn:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
.fx-link { text-decoration: none; transition: color .2s ease, text-shadow .25s ease, background-size .25s ease;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px; padding-bottom: 2px; }
.fx-link:hover { text-shadow: 0 0 14px var(--glow, currentColor); background-size: 100% 2px; }
.fx-link:focus-visible { outline: 2px solid var(--glow, currentColor); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .fx-btn, .fx-link { transition: none; } .fx-btn:hover { transform: none; } }

/* ---------- Buttons ---------- */
.btn { --glow: var(--strong); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px;
  border-radius: var(--r); border: 1.5px solid transparent; background: var(--strong); color: #fff; font-weight: 600; font-size: 16px;
  line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { color: #fff; }
.btn .ic { font-size: 1.05em; }
.btn-pink { --glow: var(--pink); background: linear-gradient(90deg, var(--pink), var(--pink2)); font-weight: 700; box-shadow: 0 10px 24px -10px rgba(232,48,140,.8); }
.btn-ghost { --glow: var(--ink); background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); }
.btn-hero-ghost { --glow: var(--hero-ink); background: transparent; color: var(--hero-ink); border-color: var(--hero-line); }
.btn-hero-ghost:hover { color: var(--hero-ink); }
.btn-soft { --glow: var(--link); background: var(--fill); color: var(--ink); border-color: transparent; }
.btn-soft:hover { color: var(--ink); }
.btn-danger { --glow: #EF3B3B; background: #DC2626; }
.btn-text { --glow: var(--link); background: transparent; color: var(--link); padding: 6px 4px; min-height: 44px; }
.btn-text:hover { color: var(--link); }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 16px 28px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-icon { --glow: var(--ink); width: 44px; height: 44px; min-height: 0; padding: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-icon:hover { color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.round { border-radius: 50% !important; }

/* ---------- Header (floating glass bar) ---------- */
.t-dark .only-light, .t-light .only-dark { display: none !important; }
.dd-opt { text-decoration: none; }
.site-hdr { position: sticky; top: 0; z-index: 100; height: 0; display: flow-root; padding: 0 20px; }
.hdr-bar { position: relative; z-index: 0; max-width: 1280px; margin: 0 auto; top: 12px; padding: 12px 20px 10px; display: flex; flex-direction: column; gap: 10px;
  transition: top .25s ease, padding .25s ease, gap .25s ease; color: var(--ink); }
.hdr-glass { position: absolute; inset: 0; z-index: -1; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 14px 40px -20px rgba(10,6,40,.55); }
.hdr-row1 { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; }
.hdr-left { justify-self: start; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hdr-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.hdr-logo { justify-self: center; display: flex; text-decoration: none; }
.hdr-logo img { height: 72px; width: auto; transition: height .25s ease; }
.hdr-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px; padding-top: 10px; border-top: 1px solid var(--glass-line); transition: padding .25s ease; }
.hdr-nav a { --glow: var(--ink); color: var(--ink); font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.hdr-nav a[aria-current="page"] { color: var(--pink-text); --glow: var(--pink-text); }
.hdr-btn { --glow: var(--hdr-glow); height: 44px; min-height: 44px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.hdr-btn:hover { color: var(--ink); }
.hdr-btn.square { width: 44px; padding: 0; }
.hdr-btn .ic { font-size: 18px; }
.badge-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
/* Search sits in the nav row, sized and coloured to match the links */
.hdr-search { flex: 0 1 260px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 3px 0 12px; border-radius: var(--r);
  background: var(--fill); border: 1px solid var(--glass-line); color: var(--muted2); font-size: 13px; }
.hdr-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--ink); outline: none; }
.hdr-search input::placeholder { color: var(--muted2); }
.hdr-search:focus-within { box-shadow: 0 0 0 2px var(--link); }
.hdr-go { --glow: var(--pink); flex: none; height: 26px; padding: 0 12px; border: 0; border-radius: calc(var(--r) - 3px); cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--pink2)); color: #fff; font-size: 13px; font-weight: 700; }
.page-home .hdr-search { background: transparent; border-color: var(--hdr-line); color: var(--hero-ink); }
.page-home .hdr-search input, .page-home .hdr-search input::placeholder { color: var(--hero-ink); }
.page-home .hdr-search input::placeholder { opacity: .7; }
.hdr-spacer { height: 170px; }
.is-scrolled .hdr-bar { top: 6px; padding: 6px 16px; gap: 4px; }
.is-scrolled .hdr-logo img { height: 44px; }
.is-scrolled .hdr-nav { padding-top: 4px; }
/* Home page: header sits over the hero */
.page-home .hdr-glass { background: var(--hdr-glass); border-color: var(--hdr-line); }
.page-home .hdr-bar { color: var(--hero-ink); }
.page-home .hdr-logo img { height: 84px; }
.page-home.is-scrolled .hdr-logo img { height: 48px; }
.page-home .hdr-nav { border-top-color: var(--hdr-line); }
.page-home .hdr-nav a { --glow: var(--hero-ink); color: var(--hero-ink); }
.page-home .hdr-btn { --glow: var(--hdr-glow); background: transparent; border: 1.5px solid var(--hero-line); color: var(--hero-ink); height: 48px; min-height: 48px; }
.page-home .hdr-btn.square { width: 48px; }
.page-home .hdr-btn.btn-pink { border: 0; color: #fff; background: linear-gradient(90deg, var(--pink), var(--pink2)); --glow: var(--pink); padding: 0 24px; font-weight: 700; }
.hdr-btn.btn-pink { border: 0; color: #fff; background: linear-gradient(90deg, var(--pink), var(--pink2)); --glow: var(--pink); font-weight: 700; }
.theme-ic-light { display: none; }
.t-light .theme-ic-light { display: block; } .t-light .theme-ic-dark { display: none; }
/* Mobile menu */
.m-only { display: none !important; }
.m-menu { display: none; flex-direction: column; gap: 6px; padding: 8px 2px 6px; border-top: 1px solid var(--glass-line); }
.page-home .m-menu { border-top-color: var(--hdr-line); }
.m-menu a.m-link { --glow: var(--pink); min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: var(--r); color: inherit; text-decoration: none; font-size: 16px; font-weight: 600; }
.m-menu .m-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 4px; }
.m-chip { --glow: var(--pink); min-height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-strong); color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; }
.page-home .m-chip { border-color: var(--hero-line); }
.m-chip[aria-current="true"] { background: var(--tint); }
.menu-open .m-menu { display: flex; }
.menu-open .ic-bars { display: none; } .ic-close { display: none; } .menu-open .ic-close { display: block; }
.avatar-btn { padding: 0 !important; width: 44px; overflow: hidden; border-radius: 50% !important; }
.avatar-btn .avatar { width: 100% !important; height: 100% !important; }

@media (max-width: 760px) {
  .m-only { display: flex !important; } .d-only { display: none !important; }
  .hdr-row1 { grid-template-columns: minmax(0,1fr) auto; }
  .hdr-logo { justify-self: start; } .hdr-logo img, .page-home .hdr-logo img { height: 50px; }
  .is-scrolled .hdr-logo img, .page-home.is-scrolled .hdr-logo img { height: 40px; }
  .hdr-spacer { height: 96px; }
  .wrap, .pg { padding-left: 16px !important; padding-right: 16px !important; }
  .site-hdr { padding: 0 10px; } .hdr-bar { padding: 10px 12px; }
}

/* ---------- Custom dropdown (no native selects) ---------- */
.dd { position: relative; }
.dd-btn { --glow: #7B4DFF; width: 100%; min-width: 150px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 15px; text-align: left; cursor: pointer; }
.dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-arrow { font-size: 13px; transition: transform .2s ease; }
.dd.open .dd-arrow { transform: rotate(180deg); }
/* iOS-style glass menu: heavy blur, translucent fill, hairline rows, springy open from the button's corner */
.dd-menu { position: absolute; left: 0; right: 0; min-width: 200px; top: calc(100% + 8px); z-index: 120; padding: 5px; border-radius: 14px;
  border: 0.5px solid var(--menu-line); background: var(--menu-glass);
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 var(--menu-hi), 0 24px 50px -18px rgba(10,6,40,.55), 0 2px 8px rgba(10,6,40,.12);
  display: flex; flex-direction: column; gap: 0; max-height: 340px; overflow: auto; overscroll-behavior: contain;
  animation: ddIn .28s cubic-bezier(.32,1.25,.5,1); transform-origin: top left; }
.dd-menu.right { left: auto; right: 0; transform-origin: top right; }
@keyframes ddIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
.dd-opt { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; border: 0;
  border-radius: 9px; background: transparent; color: var(--ink); font-size: 15px; text-align: left; cursor: pointer; transition: background-color .12s ease; position: relative; }
.dd-opt:hover, .dd-opt:focus-visible, .dd-opt.active { background: var(--menu-hover); outline: none; }
.dd-opt[aria-selected="true"] { background: var(--menu-sel); font-weight: 600; }
/* hairline between rows, hidden next to a highlighted row (like iOS) */
.dd-menu > * + *::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 0.5px; background: var(--menu-sep); pointer-events: none; }
.dd-menu > :hover::before, .dd-menu > :hover + *::before, .dd-menu > [aria-selected="true"]::before, .dd-menu > [aria-selected="true"] + *::before { opacity: 0; }
.dd-check { color: #D6267F; font-size: 14px; visibility: hidden; }
.dd-opt[aria-selected="true"] .dd-check { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .dd-menu { animation: none; } }
/* Multi-select: the "any" row is set apart by a slightly stronger hairline */
.dd-multi .dd-any + .dd-opt::before { background: var(--menu-line); }
.dd-multi .dd-opt[aria-selected="true"] { font-weight: 600; }
.lang-dd .dd-btn { --glow: var(--hdr-glow); min-width: 0; width: auto; height: 44px; min-height: 44px; font-weight: 600; gap: 8px; }
.lang-dd .dd-menu { left: 0; right: auto; }
.page-home .lang-dd .dd-btn { --glow: var(--hdr-glow); height: 48px; background: transparent; border: 1.5px solid var(--hero-line); color: var(--hero-ink); }
/* menus of links (account menu) */
.menu-links a, .menu-links button { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); text-decoration: none; font-size: 15px; cursor: pointer; text-align: left; position: relative; transition: background-color .12s ease; }
.menu-links a:hover, .menu-links button:hover, .menu-links a:focus-visible, .menu-links button:focus-visible { background: var(--menu-hover); color: var(--ink); outline: none; }
.menu-links > form { position: relative; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.field .hint { font-weight: 400; color: var(--muted2); font-size: 13px; }
/* Label + hint on one line, same height as a plain label, so side-by-side inputs line up exactly */
.field-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-label .hint { line-height: 1; }
/* Phones: fields stack (see .grid2 below), so let a long label wrap instead of cutting it off */
@media (max-width: 560px) { .field-label { white-space: normal; } }
.input { width: 100%; min-height: 48px; border-radius: var(--r); border: 1px solid var(--line-strong); padding: 10px 14px; font-weight: 400; font-size: 15px;
  background: var(--surface); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input-at { position: relative; } .input-at > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted2); font-weight: 600; }
.input-at .input { padding-left: 30px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #D6267F; flex: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.msg-line { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; color: var(--muted2); }
.msg-line.ok { color: var(--ok); } .msg-line.bad { color: var(--bad); }
.pw-bars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; }
.pw-bars span { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .2s ease; }
.alert { padding: 12px 14px; border-radius: var(--r); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert .ic { margin-top: 3px; }
.alert-ok { background: var(--ok-bg); } .alert-bad { background: var(--bad-bg); } .alert-warn { background: var(--warn-bg); } .alert-info { background: var(--tint); color: var(--tint-ink); }
/* inline-block so the switch keeps its size even when wrapped in a <form> (an inline span would collapse to 0px) */
.switch { position: relative; display: inline-block; vertical-align: middle; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: var(--line-strong); transition: background-color .2s ease; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.switch input:checked + span { background: #16A34A; }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.range-row { display: flex; gap: 10px; align-items: center; }

/* ---------- Cards / chips / pills ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r); background: var(--fill); font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r); font-size: 12px; font-weight: 600; background: var(--fill); color: var(--ink); white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); } .pill-bad { background: var(--bad-bg); color: var(--bad); } .pill-warn { background: var(--warn-bg); color: var(--warn); }
/* Online dot: a soft "radar ping" ring pulses out of it (not for the grey offline dot) */
.dot { --dot: #16A34A; position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
.dot.off { --dot: var(--muted2); }
.dot:not(.off)::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot); pointer-events: none; animation: dotPing 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes dotPing { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot::after { animation: none !important; display: none; } }
.verified { color: #3B9BFF; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--tint); }
.avatar-letter { display: inline-flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  color: var(--tint-ink); background: linear-gradient(135deg, var(--tint), var(--fill)); }

/* ---------- Home: hero ---------- */
.hero-bg { position: relative; overflow: hidden; color: var(--hero-ink);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 82%, var(--bg) 100%), linear-gradient(90deg, rgba(18,16,84,.55) 0%, rgba(18,16,84,.28) 42%, rgba(18,16,84,0) 68%),
    image-set(url(../img/hero-dark-2560.webp) type('image/webp'), url(../img/hero-dark.jpg) type('image/jpeg')) right bottom / cover no-repeat, #1A1A6E; }
.t-light .hero-bg { background: linear-gradient(to bottom, rgba(255,255,255,0) 82%, var(--bg) 100%), linear-gradient(90deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.32) 42%, rgba(255,255,255,0) 66%),
    image-set(url(../img/hero-light-2560.webp) type('image/webp'), url(../img/hero-light.jpg) type('image/jpeg')) right bottom / cover no-repeat, #BDE9FB; }
@media (max-width: 1280px) {
  .hero-bg { background-image: linear-gradient(to bottom, rgba(0,0,0,0) 82%, var(--bg) 100%), linear-gradient(90deg, rgba(18,16,84,.55) 0%, rgba(18,16,84,.28) 42%, rgba(18,16,84,0) 68%), image-set(url(../img/hero-dark-1280.webp) type('image/webp'), url(../img/hero-dark.jpg) type('image/jpeg')); }
  .t-light .hero-bg { background-image: linear-gradient(to bottom, rgba(255,255,255,0) 82%, var(--bg) 100%), linear-gradient(90deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.32) 42%, rgba(255,255,255,0) 66%), image-set(url(../img/hero-light-1280.webp) type('image/webp'), url(../img/hero-light.jpg) type('image/jpeg')); }
}
.hero-sec { position: relative; max-width: 1240px; margin: 0 auto; padding: 228px 32px 140px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-chip { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--r); background: var(--hero-chip); border: 1px solid var(--hero-chip-line); font-size: 15px; }
.hero-chip .ic { color: var(--hero-accent); }
.hero-h1 { font-weight: 800; font-size: clamp(30px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -0.03em; max-width: 600px; }
.hero-h1 span { color: var(--hero-accent); }
/* ---------- Hand-drawn "100% free" note above the main button ---------- */
.hero-cta { display: flex; flex-direction: column; gap: 6px; }
.hero-note { position: relative; align-self: flex-start; margin: 0 0 18px 64px; display: block; max-width: calc(100% - 64px);
  font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; font-weight: 600; font-size: clamp(26px, 2.4vw, 32px); line-height: 1;
  color: var(--hero-accent); transform: rotate(-4deg); transform-origin: left center; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.hero-note-text { display: inline; }
.hero-note-heart { display: inline-block; vertical-align: -.3em; margin-left: 6px; width: .85em; height: .85em; fill: none; stroke: var(--hero-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(14deg); }
.hero-note-arrow { position: absolute; left: -62px; top: 55%; width: 70px; height: 62px; fill: none; stroke: var(--hero-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  /* the words "write" themselves in, then the arrow draws, then the heart pops */
  /* The reveal window opens past the text on every side (negative insets): handwriting leans out of its box,
     so ending at exactly 0 would cut off the tip of the last letter or "!" */
  .hero-note-text { clip-path: inset(-40% 100% -40% -20%); animation: noteWrite 1s cubic-bezier(.5,.1,.3,1) .35s forwards; }
  .hero-note-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .hero-note-arrow .hn-shaft { animation: noteDraw .8s ease-out 1.25s forwards; }
  .hero-note-arrow .hn-head { animation: noteDraw .25s ease-out 2s forwards; }
  .hero-note-heart path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: noteDraw .5s ease-out 1.05s forwards; }
  .hero-note-heart { animation: notePop .5s cubic-bezier(.3,1.6,.5,1) 1.45s both; }
}
@keyframes noteWrite { to { clip-path: inset(-40% -20% -40% -20%); } }
@keyframes noteDraw { to { stroke-dashoffset: 0; } }
@keyframes notePop { 0% { transform: rotate(14deg) scale(.6); } 60% { transform: rotate(14deg) scale(1.25); } 100% { transform: rotate(14deg) scale(1); } }
@media (max-width: 560px) { .hero-note { margin-left: 56px; max-width: calc(100% - 56px); font-size: 24px; } .hero-note-arrow { left: -54px; width: 60px; height: 54px; } }
[dir="rtl"] .ic-dir { transform: scaleX(-1); }
/* Members' own words (messages, bios, interests) and times take their direction from their content, so an
   English message reads correctly on an Arabic page and an Arabic message on an English one. */
.bubble, .thr-last, .user-text, .chip, time[data-local], textarea.input { unicode-bidi: plaintext; }
.bubble, .user-text, textarea.input { text-align: start; }
/* Right-to-left (Arabic): the note sits on the right, its arrow comes from the right and is mirrored */
[dir="rtl"] .hero-note { margin: 0 64px 18px 0; transform: rotate(4deg); transform-origin: right center; }
[dir="rtl"] .hero-note-heart { margin: 0 6px 0 0; }
[dir="rtl"] .hero-note-arrow { left: auto; right: -62px; transform: scaleX(-1); }
[dir="rtl"] .hero-note-text { animation-name: noteWriteRtl; clip-path: inset(-40% -20% -40% 100%); }
@keyframes noteWriteRtl { to { clip-path: inset(-40% -20% -40% -20%); } }
@media (max-width: 560px) { [dir="rtl"] .hero-note { margin: 0 56px 18px 0; } [dir="rtl"] .hero-note-arrow { right: -54px; } }
@media (prefers-reduced-motion: reduce) { [dir="rtl"] .hero-note-text { clip-path: none; } }
.hero-lede { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; color: var(--hero-muted); max-width: 560px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 15px; color: var(--hero-muted); }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust .sep { width: 1px; height: 22px; background: var(--hero-sep); }
.vcard-wrap { position: relative; justify-self: center; width: min(100%, 340px); padding-bottom: 40px; }
.vcard { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); padding: 8px; background: #17153F; border: 2px solid rgba(255,140,220,.7);
  box-shadow: 0 0 0 6px rgba(190,90,230,.18), 0 0 60px rgba(230,80,200,.45); }
.vcard-in { position: relative; width: 100%; height: 100%; border-radius: var(--r); background: #3A3080; overflow: hidden; }
.vset { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.vset.on { opacity: 1; }
.vset > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.vlive { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r); background: rgba(10,8,40,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 600; }
.vlive .dot { --dot: #4ADE80; }
.vself { position: absolute; right: 12px; top: 12px; width: 28%; aspect-ratio: 9 / 16; border-radius: var(--r); background: #5E4FA8; border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.vself img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.vself span { position: relative; padding: 4px 0; background: rgba(10,8,40,.45); text-align: center; color: #fff; font-size: 12px; }
.vctrls { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 0 16px; display: flex; justify-content: center; gap: 14px; background: linear-gradient(to top, rgba(10,8,40,.65), rgba(10,8,40,0)); }
.vctrls span { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; }
.vctrls span.end { background: #EF3B3B; }
.vbadge { position: absolute; left: -36px; bottom: 0; background: #F3EEFF; color: #1B1650; border-radius: var(--r); padding: 14px 22px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 18px 40px -18px rgba(20,10,60,.6); }
.vbadge .ic { font-size: 30px; color: #3B82F6; }
.vbadge strong { font-size: 17px; display: block; } .vbadge small { font-size: 14px; color: #48426A; }
/* bokeh + sparkles */
.bokeh-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle, var(--bk) 0%, var(--bk) 22%, rgba(255,255,255,0) 70%); mix-blend-mode: screen; opacity: 0;
  will-change: transform, opacity; animation: bokehRise var(--dur) linear var(--delay) infinite; }
@keyframes bokehRise { 0% { transform: translate3d(0,0,0) scale(.85); opacity: 0; } 15% { opacity: var(--o); } 70% { opacity: calc(var(--o) * .7); }
  100% { transform: translate3d(var(--dx), -170px, 0) scale(1.15); opacity: 0; } }
.spark { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--bk) 45%, rgba(255,255,255,0) 72%); box-shadow: 0 0 6px 1px var(--bk);
  mix-blend-mode: screen; opacity: 0; will-change: transform, opacity; animation: sparkRise var(--dur) ease-in-out var(--delay) infinite; }
@keyframes sparkRise { 0% { transform: translate3d(0,0,0) scale(.7); opacity: 0; } 10% { opacity: var(--o); } 25% { transform: translate3d(var(--sw), -60px, 0) scale(1); }
  50% { transform: translate3d(calc(var(--sw) * -1), -120px, 0) scale(1.1); opacity: var(--o); } 75% { transform: translate3d(var(--sw), -180px, 0) scale(.95); opacity: calc(var(--o) * .6); }
  100% { transform: translate3d(0, -240px, 0) scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bokeh { animation: none; opacity: calc(var(--o) * .5); } .spark { animation: none; opacity: 0; } }

/* ---------- Home: sections ---------- */
.wave { position: relative; height: 100px; margin: -1px 0; }
.sec { padding: 88px 0; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.h2 { font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 48px; }
/* Steps: glowing gradient icon badge, "Step n" pill, a giant outlined number behind, and a line that joins the badges */
.step { position: relative; isolation: isolate; overflow: hidden; padding: 32px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.step::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,48,140,.18), rgba(232,48,140,0) 70%); transition: transform .4s ease; }
.step:hover { transform: translateY(-4px); border-color: rgba(232,48,140,.45); box-shadow: 0 24px 50px -24px rgba(214,38,127,.45); }
.step:hover::before { transform: scale(1.3); }
.step-big { position: absolute; z-index: -1; right: 18px; bottom: -34px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 170px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(232,48,140,.22); pointer-events: none; user-select: none; transition: -webkit-text-stroke-color .3s ease, transform .4s ease; }
.step:hover .step-big { -webkit-text-stroke-color: rgba(232,48,140,.4); transform: translateY(-6px); }
.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.step-badge { position: relative; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 24px; flex: none;
  background: linear-gradient(135deg, #FF5FB0, #C21C9A 55%, #7B4DFF); box-shadow: 0 12px 28px -10px rgba(214,38,127,.75), inset 0 1px 0 rgba(255,255,255,.35);
  transform: rotate(-6deg); transition: transform .35s cubic-bezier(.32,1.4,.5,1); }
.step:hover .step-badge { transform: rotate(0) scale(1.08); }
.step-pill { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pink-text); background: rgba(232,48,140,.1); border: 1px solid rgba(232,48,140,.25); }
.step h3 { font-size: 22px; font-weight: 600; } .step p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 34ch; }
@media (prefers-reduced-motion: reduce) { .step, .step::before, .step-big, .step-badge { transition: none; } .step:hover { transform: none; } }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.features-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.features-head p { font-size: 17px; color: var(--muted); max-width: 380px; line-height: 1.6; }
.feature { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.feature-top { display: flex; align-items: center; gap: 12px; }
.feature-top .ic { font-size: 24px; color: var(--pink-text); }
.feature h3 { font-size: 19px; font-weight: 600; } .feature p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.promise { background: var(--panel); color: #F8F6FF; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: start; }
.promise .eyebrow { color: #FF9BD0; }
.promise h2 { font-weight: 700; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; }
.promise p.lead { font-size: 18px; line-height: 1.65; color: #DDD7F5; }
.promise-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.promise-cards div { padding: 24px; border-radius: var(--r); background: #2B2470; display: flex; flex-direction: column; gap: 8px; }
.t-light .promise-cards div { background: #224A80; }
.promise-cards strong { font-size: 17px; } .promise-cards span { font-size: 15px; line-height: 1.55; color: #CFC8F0; }
.t-light .promise-cards span { color: #D5E4F7; }
/* Sign-up box: heading across the top, then the form across the full width of the pink box */
.join-box { border-radius: var(--r); background: var(--accent); color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: clamp(24px, 3.5vw, 40px); }
.join-box > .stack { text-align: center; align-items: center; }
/* "Join free" scrolls the pink box's top edge to the bottom of the (scrolled, slimmer) navbar */
#join.join-box { scroll-margin-top: 101px; }
@media (max-width: 760px) { #join.join-box { scroll-margin-top: 66px; } }
.join-box h2 { font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.join-box p { font-size: 18px; line-height: 1.6; color: #FFF1E8; }
.join-box .join-form { width: 100%; }
@media (max-width: 560px) { .join-box { padding: 28px 14px 14px; } .join-box .join-form { padding: 20px 16px; } }
/* Wide screens: fields in pairs (email | username, password | birth date); everything else spans the full width */
@media (min-width: 860px) {
  .join-box .join-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 18px; align-items: start; padding: clamp(28px, 3vw, 40px); }
  .join-box .join-form > * { grid-column: 1 / -1; }
  .join-box .join-form > .jf-half { grid-column: auto; }
  .join-box .join-form .grid2 { column-gap: 20px; }   /* line up with the paired fields below */
  .join-box .join-form .btn-google, .join-box .join-form button[type="submit"] { max-width: 520px; width: 100%; justify-self: center; }
}
.join-form { background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.small-print { font-size: 13px; color: var(--muted2); text-align: center; }
/* Password field with a show/hide eye (works left-to-right and right-to-left) */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 52px; }
.pw-eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; display: grid; place-items: center;
  border: 0; background: none; border-radius: 8px; color: var(--muted2); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
/* "Continue with Google" — Google's standard light button (white, grey outline, colour logo) in both themes */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease; }
.btn-google:hover { background: #f3f6fb; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.btn-google:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.btn-google svg { flex: none; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted2); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(127,127,127,.3)); }
.site-ftr { border-top: 1px solid var(--line); }
.site-ftr .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--muted2); }
.site-ftr nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-ftr .ftr-cities { padding-top: 0 !important; margin-top: -16px; }
.site-ftr .ftr-cities nav { gap: 8px 18px; font-size: 13px; align-items: center; }
.site-ftr .ftr-cities span { color: var(--muted2); }
.site-ftr a { --glow: var(--link); }
@media (max-width: 760px) {
  .hero-sec { padding: 118px 18px 64px; gap: 40px; }
  .vbadge { left: -6px; padding: 10px 14px; }
  .wave { height: 56px; }
  .sec { padding: 56px 0; }
}

/* ---------- Inner pages ---------- */
.pg { max-width: 1320px; margin: 0 auto; padding: 32px; }
.page-title { font-weight: 700; font-size: clamp(28px, 3vw, 36px); }
.layout-side { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
/* Filters: sticky panel. The fields scroll inside it; the footer with "Show results" is always on screen. */
.filters { flex: 1 1 260px; max-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column;
  position: sticky; top: 116px; max-height: calc(100vh - 136px); max-height: calc(100dvh - 136px); overflow: hidden; }
.filters-head { padding: 20px 24px 12px; flex: none; }
.filters-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 24px 18px; display: flex; flex-direction: column; gap: 18px; }
.filters-foot { flex: none; padding: 14px 24px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; transition: opacity .15s ease; }
/* While new results load: keep the old ones on screen, dimmed (no jump, no flash) */
.results.is-loading { opacity: .55; pointer-events: none; }
.seg { display: flex; gap: 6px; padding: 4px; border-radius: var(--r); background: var(--fill); }
.seg a { --glow: #7B4DFF; min-height: 40px; padding: 0 16px; border-radius: var(--r); display: inline-flex; align-items: center; font-size: 14px; color: var(--muted); text-decoration: none; }
.seg a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; }
/* 4:5 box (the usual portrait shape) so most photos show whole; anything else is cropped around the middle */
.mcard-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; background: linear-gradient(135deg, var(--tint), var(--fill)); text-decoration: none; }
.mcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
/* Photo hover (mouse devices only): slow zoom, a light shine sweeping across, and the card lifts with a pink glow */
.mcard { transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease, border-color .35s ease; }
.mcard-img img, .mcard-img .letter { transition: transform .9s cubic-bezier(.2,.8,.3,1), filter .5s ease; }
.mcard-img::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 48%, rgba(255,255,255,.08) 54%, transparent 70%);
  transform: translateX(-120%); }
.gallery-main img { transition: transform .9s cubic-bezier(.2,.8,.3,1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mcard:hover { transform: translateY(-4px); border-color: rgba(232,48,140,.45); box-shadow: 0 22px 44px -22px rgba(214,38,127,.55); }
  .mcard:hover .mcard-img img { transform: scale(1.07); filter: saturate(1.08) brightness(1.04); }
  .mcard:hover .mcard-img .letter { transform: scale(1.18); }
  .mcard:hover .mcard-img::after { transform: translateX(120%); transition: transform .9s cubic-bezier(.3,.6,.3,1); }
  .gallery-main:hover img { transform: scale(1.04); }
}
.mcard-img .letter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 56px; font-weight: 700; color: var(--tint-ink); opacity: .5; }
.mcard-tag { position: absolute; top: 12px; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r); font-size: 12px; font-weight: 600; }
.mcard-tag.on { left: 12px; background: var(--surface); color: var(--ink); }
.mcard-tag.vid { right: 12px; background: var(--panel); color: #fff; }
.mcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mcard-name { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.mcard-meta { font-size: 14px; color: var(--muted2); }
.mcard-seek { font-size: 14px; color: var(--muted); }
.mcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.like-btn { --glow: var(--pink); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--pink-text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; font-size: 18px; }
.like-btn[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.like-btn .ic-solid { display: none; } .like-btn[aria-pressed="true"] .ic-solid { display: block; } .like-btn[aria-pressed="true"] .ic-reg { display: none; }
/* Instagram-style like: heart pops, a ring and dots burst out, and a big heart flashes over the photo */
.like-btn { position: relative; }
.like-btn.pop .ic-solid { animation: heartPop .45s cubic-bezier(.17,.89,.32,1.49); }
.like-btn.pop::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--pink); pointer-events: none; animation: likeRing .5s ease-out forwards; }
.like-btn.pop::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 -30px 0 #FF5FB0, 21px -21px 0 #FFB347, 30px 0 0 #E8308C, 21px 21px 0 #B79BFF, 0 30px 0 #FF5FB0, -21px 21px 0 #FFB347, -30px 0 0 #E8308C, -21px -21px 0 #B79BFF;
  animation: likeDots .55s ease-out forwards; }
@keyframes heartPop { 0% { transform: scale(0); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes likeRing { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes likeDots { 0% { transform: scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
.like-burst { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; color: #fff; font-size: 88px; z-index: 2;
  filter: drop-shadow(0 6px 18px rgba(214,38,127,.55)); animation: likeBurst .9s ease forwards; }
@keyframes likeBurst { 0% { transform: scale(0); opacity: 0; } 15% { transform: scale(1.2); opacity: 1; } 30% { transform: scale(.95); } 45% { transform: scale(1); }
  80% { transform: scale(1); opacity: 1; } 100% { transform: scale(.85) translateY(-12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .like-btn.pop .ic-solid { animation: none; } .like-btn.pop::before, .like-btn.pop::after, .like-burst { display: none; } }
.pager { display: flex; gap: 8px; justify-content: center; }
.pager a, .pager span { --glow: #7B4DFF; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.pager span { background: var(--strong); color: #fff; border-color: var(--strong); }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (max-width: 760px) {
  .filters { max-width: 100%; flex-basis: 100%; position: static; max-height: none; overflow: visible; }
  .filters-body { overflow: visible; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .mcard-body { padding: 12px; } .mcard-name { font-size: 16px; }
  .filters-toggle { display: flex !important; }
  .filters:not(.open) > :not(.filters-head) { display: none; }
}
.filters-toggle { display: none !important; }

/* Profile */
.profile { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 170px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: linear-gradient(135deg, var(--tint), var(--fill)); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .letter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 120px; font-weight: 700; color: var(--tint-ink); opacity: .4; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--fill); }
.thumbs button[aria-current="true"] { border-color: var(--pink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 24px; }
.facts dt { font-size: 13px; color: var(--muted2); } .facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.safety-note { padding: 14px 16px; border-radius: var(--r); background: var(--warn-bg); font-size: 14px; display: flex; gap: 10px; }
.safety-note .ic { color: var(--warn); margin-top: 3px; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } .gallery { position: static; } }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; height: calc(100vh - 200px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.chat.with-video { grid-template-columns: 300px minmax(0, 1fr) minmax(320px, 1.1fr); }
.threads { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.threads-head { padding: 18px 18px 12px; }
.threads-list { overflow: auto; flex: 1; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.thr { --glow: #7B4DFF; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); text-decoration: none; color: var(--ink); position: relative; }
.thr:hover { background: var(--fill); color: var(--ink); }
.thr[aria-current="true"] { background: var(--tint); }
.thr-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.thr-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; }
.thr-top time { font-size: 12px; font-weight: 400; color: var(--muted2); flex: none; }
.thr-last { font-size: 14px; color: var(--muted2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thr.unread .thr-last { color: var(--ink); font-weight: 600; }
/* Chat list: search box + a "⋯" menu on each row */
.threads-search { display: flex; align-items: center; gap: 8px; margin: 0 12px 10px; padding: 0 12px; height: 40px; border-radius: var(--r);
  background: var(--fill); color: var(--muted2); font-size: 14px; flex: none; }
.threads-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; outline: none; }
.threads-search:focus-within { box-shadow: 0 0 0 2px var(--link); }
.threads-none { display: flex; align-items: center; gap: 8px; padding: 16px 10px; color: var(--muted2); font-size: 14px; }
.threads-none[hidden], .thr-row[hidden] { display: none; }
.thr-row { position: relative; }
.thr-dd .dd-menu { min-width: 210px; }
/* Centred with flex, not transform: a transformed parent would trap the floating (position: fixed) menu */
.thr-dd { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; }
.thr-more { --glow: var(--ink); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  display: grid; place-items: center; font-size: 15px; cursor: pointer; opacity: 0; transition: opacity .15s ease, background-color .15s ease; }
.thr-more:hover, .thr-dd.open .thr-more { color: var(--ink); background: var(--fill); }
/* Show the button on hover / keyboard focus / while its menu is open, and hide the time + badge under it */
.thr-row:hover .thr-more, .thr-row:focus-within .thr-more, .thr-dd.open .thr-more { opacity: 1; }
.thr-row:hover .thr .badge-count, .thr-row:focus-within .thr .badge-count, .thr-row:has(.thr-dd.open) .thr .badge-count,
.thr-row:hover .thr-top time, .thr-row:focus-within .thr-top time, .thr-row:has(.thr-dd.open) .thr-top time { visibility: hidden; }
/* Touch screens have no hover: keep the button visible and make room for it */
@media (hover: none) { .thr-more { opacity: 1; } .thr-row .thr { padding-right: 48px; } .thr-row .thr-top time { visibility: visible !important; } }
.av-wrap { position: relative; flex: none; }
.av-wrap .dot { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border: 2px solid var(--surface); }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-head .who { min-width: 0; flex: 1; }
.thread-head .who a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; display: flex; gap: 6px; align-items: center; }
.thread-head .who small { color: var(--muted2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.msgs { flex: 1; overflow: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.day-sep { align-self: center; font-size: 12px; color: var(--muted2); padding: 4px 10px; border-radius: var(--r); background: var(--fill); margin: 8px 0; }
.bubble { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 10px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.them { align-self: flex-start; background: var(--fill); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--strong); color: #fff; border-bottom-right-radius: 4px; }
.bubble-meta { font-size: 11px; color: var(--muted2); margin-top: -4px; }
.bubble-meta.me { align-self: flex-end; } .bubble-meta.them { align-self: flex-start; }
.scam-warn { align-self: stretch; padding: 12px 14px; border-radius: var(--r); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); font-size: 14px; display: flex; gap: 10px; }
.scam-warn .ic { color: var(--warn); margin-top: 3px; flex: none; }
.scam-warn strong { display: block; }
.openers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.opener { --glow: var(--link); min-height: 40px; padding: 6px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; }
.composer { position: relative; display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: flex-end; }
/* ---------- Emoji picker (glass panel above the composer) ---------- */
.emoji { flex: none; }
.composer-emoji { --glow: var(--pink); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.composer-emoji[aria-expanded="true"] { color: var(--pink-text); border-color: var(--pink); }
.emoji-panel { position: absolute; left: 12px; bottom: calc(100% + 8px); z-index: 130; width: 360px; height: 400px; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px);
  display: flex; flex-direction: column; border-radius: 16px; border: 0.5px solid var(--menu-line); background: var(--menu-glass);
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 var(--menu-hi), 0 24px 50px -18px rgba(10,6,40,.55), 0 2px 8px rgba(10,6,40,.12);
  overflow: hidden; animation: ddIn .28s cubic-bezier(.32,1.25,.5,1); transform-origin: bottom left; }
.emoji-panel[hidden] { display: none; }
.emoji-search { display: flex; align-items: center; gap: 8px; margin: 10px 10px 6px; padding: 0 12px; height: 38px; border-radius: 10px; background: var(--menu-hover); color: var(--muted2); font-size: 14px; }
.emoji-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; outline: none; }
.emoji-search:focus-within { box-shadow: 0 0 0 2px var(--link); }
.emoji-tabs { display: flex; gap: 2px; padding: 0 8px 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 0.5px solid var(--menu-sep); flex: none; }
.emoji-tabs::-webkit-scrollbar { display: none; }
.emoji-tabs button { flex: 1 0 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 19px; line-height: 1; cursor: pointer; opacity: .55;
  transition: opacity .15s ease, background-color .15s ease; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emoji-tabs button:hover { opacity: .9; background: var(--menu-hover); }
.emoji-tabs button[aria-selected="true"] { opacity: 1; background: var(--menu-sel); }
.emoji-grid { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 10px; }
.emoji-sec h4 { position: sticky; top: -4px; z-index: 1; margin: 0 -8px; padding: 8px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted2); background: var(--menu-glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.emoji-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.emoji-list button { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 26px; line-height: 1; padding: 0;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transition: transform .12s ease, background-color .12s ease; }
.emoji-list button:hover, .emoji-list button:focus-visible { background: var(--menu-hover); transform: scale(1.18); outline: none; }
.emoji-msg { padding: 32px 12px; text-align: center; color: var(--muted2); font-size: 14px; }
@media (max-width: 560px) {
  .emoji-panel { left: 8px; right: 8px; width: auto; height: 360px; }
  .composer-emoji { width: 44px; height: 44px; }
  .emoji-list { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
}
@media (hover: none) { .emoji-list button:hover { transform: none; background: transparent; } .emoji-list button:active { background: var(--menu-hover); transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .emoji-panel { animation: none; } .emoji-list button { transition: none; } }
.composer textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; }
.composer-note { font-size: 12px; color: var(--muted2); padding: 0 18px 10px; display: flex; align-items: center; gap: 6px; }
.paywall { margin: 12px; padding: 18px; border-radius: var(--r); background: var(--tint); color: var(--tint-ink); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; color: var(--muted); }
@media (max-width: 1100px) { .chat.with-video { grid-template-columns: 260px minmax(0,1fr); } .chat.with-video .vpanel { grid-column: 1 / -1; } .chat.with-video { height: auto; } }
@media (max-width: 760px) {
  .chat, .chat.with-video { grid-template-columns: 1fr; height: auto; min-height: 0; border-radius: var(--r); }
  .threads { border-right: 0; border-bottom: 1px solid var(--line); }
  .threads-head { display: none; }
  .threads-list { flex-direction: row; overflow-x: auto; padding: 10px; gap: 8px; scrollbar-width: none; }
  .thr { flex-direction: column; width: 76px; flex: none; padding: 6px; text-align: center; gap: 6px; }
  .thr-main { align-items: center; } .thr-top { justify-content: center; font-size: 12px; } .thr-top time, .thr-last { display: none; }
  .msgs { height: 56vh; }
  .has-thread .threads-list .thr:not([aria-current="true"]) { opacity: .85; }
  /* Phones: the list is a row of avatars, so the per-chat menu lives in the chat header instead */
  .thr-dd { display: none; }
  .thr-row .thr { padding-right: 6px !important; }
  .threads-search { margin: 10px 10px 0; }
}

/* ---------- Video call panel ---------- */
.vpanel { background: #0B0926; color: #fff; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.vtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; }
.vtop .live { display: flex; align-items: center; gap: 8px; } .vtop .live .dot { --dot: #4ADE80; }
.stage { position: relative; flex: 1; min-height: 340px; container-type: size; display: flex; align-items: center; justify-content: center; background: #050416; overflow: hidden; }
.remote-box { position: relative; width: min(100cqw, calc(100cqh * var(--ar, 1.7778))); aspect-ratio: var(--ar, 16 / 9); max-height: 100cqh; background: #120f35; }
.remote-box video { width: 100%; height: 100%; object-fit: contain; background: #050416; }
.remote-box .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #CFC8EE; font-size: 14px; text-align: center; padding: 20px; }
.self-box { position: absolute; right: 12px; top: 12px; width: 26%; max-width: 160px; aspect-ratio: var(--sar, 16 / 9); border-radius: var(--r); overflow: hidden; border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); background: #2a2463; }
.self-box video { width: 100%; height: 100%; object-fit: cover; }
.self-box.mirror video { transform: scaleX(-1); }
.vctl { display: flex; justify-content: center; gap: 14px; padding: 14px; flex-wrap: wrap; }
.vctl button { --glow: #fff; width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.vctl button[aria-pressed="true"] { background: #fff; color: #120f35; }
.vctl button.end { --glow: #EF3B3B; background: #EF3B3B; }
.vctl button.accept { --glow: #22C55E; background: #16A34A; }
.vnote { font-size: 12px; color: #ADA5D6; text-align: center; padding: 0 14px 12px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.vpanel.fullscreen { position: fixed; inset: 0; z-index: 250; border: 0; }
@media (max-width: 760px) {
  .vpanel:not([hidden]) { position: fixed; inset: 0; z-index: 250; border: 0; }
  .stage { min-height: 0; } .self-box { width: 30%; }
  .vctl { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* ---------- Incoming call / modal / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8,6,30,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(100%, 440px); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px -30px rgba(10,6,40,.8); position: relative; }
.modal-x { position: absolute; right: 14px; top: 14px; }
.modal h2 { font-size: 26px; font-weight: 700; }
/* Confirm dialog (e.g. Delete chat) */
.confirm-modal { width: min(100%, 400px); align-items: center; text-align: center; gap: 14px; padding: 32px 28px 26px; animation: ddIn .28s cubic-bezier(.32,1.25,.5,1); }
.confirm-modal h2 { font-size: 22px; }
.confirm-modal p { line-height: 1.55; }
.confirm-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: var(--bad); background: var(--bad-bg); }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 6px; }
.confirm-actions .btn { width: 100%; justify-content: center; }
.menu-links .menu-danger, .menu-links .menu-danger:hover { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .confirm-modal { animation: none; } }
.ring-card { width: min(100%, 360px); background: linear-gradient(160deg, #2A1E78, #120F35); color: #fff; border-radius: var(--r); padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ring-card .avatar { width: 128px !important; height: 128px !important; font-size: 52px !important; box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 0 0 18px rgba(255,255,255,.04); animation: ringPulse 1.6s ease-in-out infinite; }
@keyframes ringPulse { 50% { box-shadow: 0 0 0 12px rgba(255,255,255,.12), 0 0 0 26px rgba(255,255,255,.05); } }
@media (prefers-reduced-motion: reduce) { .ring-card .avatar { animation: none; } }
.ring-card .row { justify-content: center; gap: 28px; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 260; padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500; box-shadow: 0 14px 40px -12px rgba(0,0,0,.5); animation: toastIn .2s ease; max-width: calc(100vw - 32px); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.reasons { display: flex; flex-direction: column; gap: 8px; }
.reason { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); cursor: pointer; font-size: 15px; }
.reason:has(input:checked) { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 10%, transparent); }
.reason input { accent-color: #D6267F; width: 18px; height: 18px; margin: 0; }

/* ---------- Account / settings ---------- */
.acct { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--fill); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .pill { position: absolute; left: 6px; top: 6px; }
.photo-tile .acts { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 6px; justify-content: flex-end; }
.photo-tile .acts button { --glow: #fff; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(10,8,40,.6); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.upload-tile { aspect-ratio: 1; border-radius: var(--r); border: 2px dashed var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--muted); font-size: 13px; cursor: pointer; text-align: center; padding: 8px; }
.upload-tile:hover { border-color: var(--pink); color: var(--ink); }
.upload-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
/* "Take photo" tile + camera window */
/* ---------- Admin-only "Preview effects" panel ---------- */
.dev-panel { width: min(100%, 620px); gap: 16px; }
.dev-panel h2 { font-size: 22px; display: flex; align-items: center; gap: 8px; } .dev-panel h2 .ic { color: var(--pink-text); }
.dev-group { display: flex; flex-direction: column; gap: 8px; }
.dev-group h3 { font-size: 12px; font-weight: 600; color: var(--muted2); text-transform: uppercase; letter-spacing: .06em; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.dev-btn { --glow: var(--pink); display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line-strong);
  background: var(--fill); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.dev-btn > .ic { color: var(--pink-text); font-size: 16px; margin-top: 2px; }
.dev-btn span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .dev-btn strong { font-size: 14px; } .dev-btn small { font-size: 12px; color: var(--muted2); line-height: 1.35; }
.dev-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-chip { --glow: var(--pink); display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--fill); color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; }
.dev-chip .ic { font-size: 12px; color: var(--muted2); }

/* ---------- Tooltips ---------- */
.tip-bubble { position: fixed; z-index: 450; max-width: min(280px, calc(100vw - 16px)); padding: 7px 11px; border-radius: 9px; pointer-events: none;
  font-size: 13px; font-weight: 500; line-height: 1.35; text-align: center; color: var(--tip-ink); background: var(--tip-bg);
  box-shadow: 0 10px 24px -10px rgba(10,6,40,.6), 0 0 0 1px var(--tip-line); opacity: 0; transform: translateY(4px) scale(.97); transition: opacity .14s ease, transform .14s ease; }
.tip-bubble.below { transform: translateY(-4px) scale(.97); }
.tip-bubble.on { opacity: 1; transform: none; }
.tip-bubble::after { content: ""; position: absolute; left: var(--arrow-x, 50%); top: 100%; width: 10px; height: 10px; margin-left: -5px; margin-top: -5px;
  background: var(--tip-bg); transform: rotate(45deg); box-shadow: 1px 1px 0 var(--tip-line); }
.tip-bubble.below::after { top: auto; bottom: 100%; margin-top: 0; margin-bottom: -5px; box-shadow: -1px -1px 0 var(--tip-line); }
.t-dark { --tip-bg: #2E2672; --tip-ink: #FFFFFF; --tip-line: rgba(255,255,255,.14); }
.t-light { --tip-bg: #13264D; --tip-ink: #FFFFFF; --tip-line: rgba(255,255,255,.08); }
@media (prefers-reduced-motion: reduce) { .tip-bubble { transition: none; transform: none; } }

/* ---------- Confetti layer ---------- */
.confetti-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 400; pointer-events: none; }

/* ---------- Possible Connects: banner + pop-up ---------- */
.connects-banner { padding: 0 20px; margin: 4px auto 0; max-width: 1320px; }
.connects-inner { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-radius: var(--r); color: #fff;
  background: linear-gradient(100deg, #C21C9A, #E8308C 55%, #7B4DFF); box-shadow: 0 14px 34px -18px rgba(214,38,127,.8); animation: cnIn .45s cubic-bezier(.32,1.25,.5,1); }
.connects-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 18px; flex: none; animation: cnBeat 1.6s ease-in-out infinite; }
.connects-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.connects-text strong { font-size: 15px; } .connects-text span { opacity: .9; }
.connects-inner .btn-pink { background: #fff; color: #C21C9A; --glow: #fff; flex: none; }
.connects-x { --glow: #fff; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
@keyframes cnIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cnBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@media (max-width: 560px) { .connects-inner { flex-wrap: wrap; } .connects-text { flex-basis: calc(100% - 100px); } .connects-inner .btn-pink { order: 3; flex: 1; justify-content: center; } }
.connect-modal { width: min(100%, 400px); align-items: center; text-align: center; gap: 14px; padding: 34px 28px 26px; animation: ddIn .4s cubic-bezier(.32,1.35,.5,1); }
.connect-modal h2 { font-size: 26px; background: linear-gradient(90deg, #FF5FB0, #B79BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.connect-pics { display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.connect-av { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 10px 26px -12px rgba(10,6,40,.7); background: var(--tint); }
.connect-av:first-child { transform: rotate(-8deg) translateX(14px); } .connect-av:last-child { transform: rotate(8deg) translateX(-14px); }
.connect-av-letter { display: grid; place-items: center; font-size: 38px; font-weight: 700; color: var(--tint-ink); }
.connect-heart { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; flex: none;
  background: linear-gradient(135deg, #FF5FB0, #C21C9A); box-shadow: 0 0 0 4px var(--surface), 0 8px 20px -6px rgba(214,38,127,.8); animation: cnBeat 1.6s ease-in-out infinite; }
.connect-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 4px; }
.connect-actions .btn { width: 100%; justify-content: center; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
@media (max-width: 380px) { .connect-actions { grid-template-columns: 1fr; } }
.connect-all { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .connects-inner, .connects-ic, .connect-heart, .connect-modal { animation: none; } }

/* ---------- Profile views card (Account settings) ---------- */
.pv-hero { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pv-hero strong { font-size: 44px; line-height: 1; font-weight: 700; }
.pv-hero span { color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.pv-delta { font-style: normal; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.pv-delta.up { color: var(--viz-up); } .pv-delta.down { color: var(--viz-down); }
.pv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pv-stats div { padding: 10px 12px; border-radius: var(--r); background: var(--fill); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pv-stats strong { font-size: 18px; } .pv-stats span { font-size: 12px; color: var(--muted2); }
/* columns: <= 24px wide, 4px rounded tops, square on the baseline, 2px gaps, one hairline baseline */
.pv-chart, .pv-axis { direction: ltr; }   /* time runs left to right even on right-to-left pages */
.pv-chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 72px; padding-top: 4px; border-bottom: 1px solid var(--viz-grid); }
.pv-col { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.pv-col i { display: block; width: min(100%, 18px); background: var(--viz-1); border-radius: 4px 4px 0 0; transition: filter .15s ease; }
.pv-col:hover i, .pv-col:focus-visible i { filter: brightness(1.25); }
.pv-col:focus-visible { box-shadow: 0 0 0 2px var(--link); border-radius: 4px; }
.pv-col::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  padding: 5px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 8px 20px -8px rgba(10,6,40,.5); opacity: 0; transition: opacity .12s ease; z-index: 2; }
.pv-col:first-child::after { left: 0; transform: none; } .pv-col:last-child::after { left: auto; right: 0; transform: none; }
.pv-col:hover::after, .pv-col:focus-visible::after { opacity: 1; }
.pv-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted2); margin-top: -8px; }

/* "Download my data": the button opens a small password form */
.export-box > summary { list-style: none; display: inline-flex; cursor: pointer; }
.export-box > summary::-webkit-details-marker { display: none; }
.cam-tile { background: transparent; font: inherit; cursor: pointer; width: 100%; }
.cam-tile:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.cam-modal { width: min(100%, 460px); gap: 16px; }
/* Always exactly 4:5 (shrinks in width on short screens) so the preview shows precisely what gets saved */
.cam-stage { position: relative; flex: none; aspect-ratio: 4 / 5; width: min(100%, 62vh * 4 / 5); width: min(100%, 62dvh * 4 / 5); margin: 0 auto; border-radius: var(--r); overflow: hidden; background: #0B0926; }
.cam-stage video, .cam-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-stage video.mirror { transform: scaleX(-1); }
.cam-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px;
  text-align: center; color: #D9D3F5; font-size: 15px; line-height: 1.5; }
.cam-msg[hidden] { display: none; }
.cam-msg .ic { font-size: 34px; opacity: .7; }
.cam-count { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 110px; font-weight: 800;
  text-shadow: 0 6px 30px rgba(0,0,0,.5); pointer-events: none; animation: camTick .8s ease-out infinite; }
.cam-count[hidden] { display: none; }
@keyframes camTick { 0% { transform: scale(1.35); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(.9); opacity: .85; } }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: camFlash .45s ease-out; }
@keyframes camFlash { 0% { opacity: .9; } 100% { opacity: 0; } }
.cam-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cam-actions .btn { min-width: 0; }
.cam-actions .cam-snap { flex: 1 1 200px; justify-content: center; }
.cam-actions .btn { white-space: nowrap; }
.cam-actions [data-cam-retake] { flex: 0 1 auto; justify-content: center; }
.cam-actions [data-cam-use] { flex: 1 1 160px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .cam-count, .cam-flash.go { animation: none; } }
@media (max-width: 900px) { .acct { grid-template-columns: 1fr; } }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - 170px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 64px; }
.auth-card { width: min(100%, 460px); }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 14px; }
.link-row a, .link-row button { --glow: var(--link); background: none; border: 0; padding: 6px 2px; color: var(--link); cursor: pointer; font-size: 14px; }

/* Selfie verification */
.selfie-cam { position: relative; aspect-ratio: 3 / 4; max-height: 60vh; margin: 0 auto; width: 100%; border-radius: var(--r); overflow: hidden; background: #0B0926; }
.selfie-cam video, .selfie-cam img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.selfie-cam img { transform: none; }
.pose-card { padding: 14px 16px; border-radius: var(--r); background: var(--tint); color: var(--tint-ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pose-card strong { font-size: 18px; color: var(--ink); }
.num-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.num-list li { display: flex; gap: 12px; align-items: center; }
.num-list b { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--tint-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 14px; }

/* Prose pages (FAQ, safety, terms, city pages) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.prose h2 { color: var(--ink); font-size: 26px; margin-top: 16px; line-height: 1.2; }
.prose h3 { color: var(--ink); font-size: 19px; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s ease; } .faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; font-size: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted2); }
.crumbs a { --glow: var(--link); }
.city-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.city-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .city-hero { grid-template-columns: 1fr; } }
