/* unebombe.com — Find True Love */
:root {
  --ivory: #fbf7f2;
  --paper: #f5eee6;
  --card: #ffffff;
  --ink: #2a1f1d;
  --ink-soft: #4a3b37;
  --muted: #7d6c66;
  --line: #e9dfd4;
  --wine: #7b1e3a;
  --wine-deep: #5a1229;
  --wine-tint: #f6e7ea;
  --rose: #c98a80;
  --gold: #b08d57;
  --sage: #5f7a63;
  --danger: #a3262d;
  --warn-bg: #fff5e3;
  --warn-ink: #7a4a00;
  --shadow-sm: 0 1px 2px rgba(42, 31, 29, .06), 0 2px 8px rgba(42, 31, 29, .05);
  --shadow: 0 10px 30px rgba(42, 31, 29, .10), 0 2px 6px rgba(42, 31, 29, .06);
  --shadow-lg: 0 30px 60px rgba(42, 31, 29, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --topbar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--wine); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--wine); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .98rem; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 6px 18px rgba(123, 30, 58, .28); }
.btn-primary:hover { background: var(--wine-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-light { background: rgba(255, 255, 255, .95); color: var(--wine-deep); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 1em; font-size: .88rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }
.link-btn:hover { color: var(--danger); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-soft);
}
.icon-btn:hover { border-color: var(--ink-soft); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(251, 247, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar.over-hero { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; color: #fff; }
.topbar.over-hero.scrolled { background: rgba(42, 20, 24, .72); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; color: inherit; font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; }
.brand .dot { color: var(--rose); }
.brand small { font-family: var(--sans); font-size: .72rem; font-weight: 400; letter-spacing: .08em; opacity: .7; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: inherit; font-size: .95rem; font-weight: 400;
}
.nav a:hover { background: rgba(123, 30, 58, .07); }
.nav a.active { color: var(--wine); font-weight: 500; }
.over-hero .nav a:hover { background: rgba(255, 255, 255, .12); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--wine); color: #fff;
  font-size: .72rem; font-weight: 600; display: inline-grid; place-items: center;
}
.nav .avatar-link img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  color: #fff; overflow: hidden; background: #2a1418;
}
.hero video, .hero .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(30, 10, 16, .55) 0%, rgba(30, 10, 16, .15) 30%, rgba(30, 10, 16, .25) 60%, rgba(30, 10, 16, .85) 100%),
    radial-gradient(ellipse at 30% 55%, rgba(30, 10, 16, .55) 0%, rgba(30, 10, 16, 0) 60%);
}
.hero-inner { position: relative; z-index: 2; width: min(1200px, 100%); margin: 0 auto; padding: 120px clamp(16px, 5vw, 56px) 90px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; opacity: .9; margin-bottom: 18px; }
.hero .eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 10vw, 8.5rem); line-height: .9; margin: 0; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero-title .dot { color: var(--rose); }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 10px 0 22px; color: #f7e3dc; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.hero-copy { max-width: 520px; font-size: 1.1rem; font-weight: 300; opacity: .95; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { min-height: 52px; padding: 0 1.8em; font-size: 1.02rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; font-size: .9rem; opacity: .9; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.video-toggle {
  position: absolute; z-index: 3; right: clamp(16px, 4vw, 40px); bottom: 28px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.video-toggle:hover { background: rgba(0, 0, 0, .45); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); color: #fff; opacity: .75; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; }

/* ---------- Landing sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 56px); }
.wrap { width: min(1200px, 100%); margin: 0 auto; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.kicker { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--wine); font-weight: 500; margin-bottom: 14px; display: block; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.feature .f-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--wine-tint); color: var(--wine); margin-bottom: 20px; }
.feature .f-icon .icon { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.band { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--rose); font-style: italic; }
.step p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--sage); margin-top: 4px; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; max-width: 820px; margin: 0 auto; text-align: center; color: var(--ink-soft); }
.quote cite { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--muted); letter-spacing: .06em; }
.cta-band { background: linear-gradient(135deg, var(--wine-deep), var(--wine)); color: #fff; text-align: center; border-radius: 28px; padding: clamp(48px, 7vw, 80px) 24px; }
.cta-band h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.cta-band p { opacity: .9; max-width: 520px; margin: 0 auto 28px; }
.footer { padding: 40px clamp(16px, 5vw, 56px); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--wine); }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - var(--topbar-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; background: #2a1418 center/cover no-repeat; color: #fff; display: flex; align-items: flex-end; padding: 48px; overflow: hidden; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 10, 16, .1), rgba(30, 10, 16, .75)); }
.auth-art blockquote { position: relative; z-index: 1; margin: 0; font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1.2; max-width: 440px; }
.auth-form { display: grid; place-items: center; padding: 48px clamp(16px, 5vw, 64px); }
.auth-form .inner { width: min(440px, 100%); }
.auth-form h1 { font-size: 2.6rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: .85rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(123, 30, 58, .12); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hint { font-size: .8rem; color: var(--muted); }
.form-error { background: #fbeaea; color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 16px; }
.hp { position: absolute; inset-inline-start: -5000px; width: 1px; height: 1px; overflow: hidden; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .92rem; background: var(--card); transition: all .15s; }
.segmented input:checked + label { background: var(--wine); color: #fff; border-color: var(--wine); }
.segmented input:focus-visible + label { outline: 2px solid var(--wine); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-soft); }
.chip.shared { background: var(--wine-tint); border-color: #ebc9d1; color: var(--wine-deep); }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ---------- App layout ---------- */
.page { width: min(1200px, 100%); margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 80px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head h1 { margin: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.7rem; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: .93rem; color: var(--ink-soft); }
.notice .icon { color: var(--wine); margin-top: 3px; }
.notice.warn { background: var(--warn-bg); border-color: #f2dcae; color: var(--warn-ink); }
.notice.warn .icon { color: var(--warn-ink); }

/* ---------- Discover ---------- */
.discover { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.match-card { background: var(--card); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.match-card.leaving-left { animation: leaveL .35s ease forwards; }
.match-card.leaving-right { animation: leaveR .35s ease forwards; }
@keyframes leaveL { to { transform: translateX(-60px) rotate(-4deg); opacity: 0; } }
@keyframes leaveR { to { transform: translateX(60px) rotate(4deg); opacity: 0; } }
.gallery { position: relative; background: var(--paper); min-height: 420px; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery .no-photo { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 5rem; color: var(--rose); }
.gallery .dots { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.gallery .dots span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.gallery .dots span.on { background: #fff; }
.gallery .g-prev, .gallery .g-next { position: absolute; top: 0; bottom: 0; width: 40%; background: none; border: 0; cursor: pointer; z-index: 1; }
.gallery .g-prev { left: 0; } .gallery .g-next { right: 0; }
.gallery .g-prev:focus-visible, .gallery .g-next:focus-visible { outline-offset: -4px; }
.score {
  --p: 0; position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 76px; height: 76px; border-radius: 50%;
  background: conic-gradient(var(--wine) calc(var(--p) * 1%), rgba(255, 255, 255, .5) 0); display: grid; place-items: center; box-shadow: var(--shadow);
}
.score::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.score b { position: relative; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--wine-deep); text-align: center; }
.score b small { display: block; font-family: var(--sans); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.card-body { padding: 30px 30px 24px; display: flex; flex-direction: column; }
.card-body h2 { font-size: 2.4rem; margin: 0; }
.card-body h2 span { font-weight: 400; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; margin: 6px 0 16px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.online { color: var(--sage); }
.online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); display: inline-block; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.reason { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; padding: 5px 12px; border-radius: 999px; background: #f1f5f0; color: #3f5a43; }
.reason .icon { width: 14px; height: 14px; }
.card-bio { color: var(--ink-soft); font-size: 1rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .88rem; color: var(--ink-soft); margin: 4px 0 18px; }
.facts span { display: flex; gap: 8px; align-items: center; }
.facts .icon { color: var(--rose); }
.card-actions { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.act { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s; }
.act:hover { transform: scale(1.06); box-shadow: var(--shadow); }
.act .icon { width: 26px; height: 26px; }
.act.pass { color: var(--muted); }
.act.like { width: 76px; height: 76px; background: var(--wine); border-color: var(--wine); color: #fff; }
.act.like .icon { width: 32px; height: 32px; }
.card-foot { display: flex; justify-content: space-between; margin-top: 14px; }
.side h3 { font-size: 1.3rem; }
.side .panel { padding: 22px; }
.queue { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.queue img, .queue .ph { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--paper); }
.empty { text-align: center; padding: 70px 24px; }
.empty .big { font-family: var(--serif); font-size: 4rem; color: var(--rose); line-height: 1; }

/* ---------- Profile view ---------- */
.profile-view { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; }
.photo-grid img:first-child { grid-column: 1 / -1; aspect-ratio: 1; }
.profile-view .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: .95rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

/* ---------- Photo manager ---------- */
.photo-manager { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.slot { position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: var(--paper); border: 1.5px dashed #d8c9bb; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot.is-main { border: 2px solid var(--wine); box-shadow: 0 0 0 4px var(--wine-tint); }
.slot .main-tag { position: absolute; top: 10px; left: 10px; background: var(--wine); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.slot .slot-actions { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.slot .slot-actions button { flex: 1; min-height: 34px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); font-size: .8rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.slot .slot-actions button:hover { background: #fff; }
.slot .slot-actions button.del { flex: 0 0 34px; color: var(--danger); }
.slot.add { display: grid; place-items: center; cursor: pointer; color: var(--muted); text-align: center; transition: border-color .2s, background .2s; }
.slot.add:hover, .slot.add.drag { border-color: var(--wine); background: var(--wine-tint); color: var(--wine); }
.slot.add .icon { width: 30px; height: 30px; margin: 0 auto 6px; }
.slot.add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot.uploading::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%237b1e3a' stroke-width='4' stroke-dasharray='90 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center/42px no-repeat; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edit-grid .full { grid-column: 1 / -1; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.save-bar .btn { box-shadow: var(--shadow); }

/* ---------- Messaging ---------- */
.inbox { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - var(--topbar-h) - 72px); min-height: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.convos { border-right: 1px solid var(--line); overflow-y: auto; }
.convos h2 { font-size: 1.6rem; padding: 22px 22px 8px; margin: 0; }
.new-matches { display: flex; gap: 12px; overflow-x: auto; padding: 8px 22px 16px; border-bottom: 1px solid var(--line); }
.new-matches a { text-decoration: none; color: inherit; text-align: center; font-size: .8rem; flex: none; width: 64px; }
.new-matches img, .new-matches .ph { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--wine); padding: 2px; background: var(--card); margin: 0 auto 4px; }
.convo { display: flex; gap: 12px; align-items: center; padding: 14px 22px; text-decoration: none; color: inherit; border-bottom: 1px solid #f3ece4; }
.convo:hover { background: var(--ivory); }
.convo.active { background: var(--wine-tint); }
.convo img, .convo .ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper); }
.convo .c-main { min-width: 0; flex: 1; }
.convo .c-name { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; }
.convo .c-name time { font-weight: 400; font-size: .78rem; color: var(--muted); }
.convo .c-last { font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .c-last { color: var(--ink); font-weight: 500; }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who a { color: inherit; text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.chat-head .who div { font-size: .8rem; color: var(--muted); }
.chat-head .back { display: none; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; color: var(--muted); padding: 10px; }
.messages { flex: 1; overflow-y: auto; padding: 8px 22px 20px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, var(--ivory), #fff 30%); }
.msg { max-width: min(72%, 520px); display: flex; flex-direction: column; }
.msg .bubble { padding: 10px 15px; border-radius: 20px; background: var(--paper); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine .bubble { background: var(--wine); color: #fff; border-bottom-right-radius: 6px; }
.msg.theirs .bubble { border-bottom-left-radius: 6px; }
.msg .m-meta { font-size: .72rem; color: var(--muted); margin: 3px 6px 0; display: flex; gap: 10px; }
.msg .m-meta button { font-size: .72rem; }
.msg-warning { max-width: min(80%, 560px); align-self: flex-start; display: flex; gap: 10px; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #f2dcae; border-radius: 14px; padding: 10px 14px; font-size: .84rem; margin: 2px 0 6px; }
.msg-warning .icon { margin-top: 2px; }
.day-sep { align-self: center; font-size: .75rem; color: var(--muted); letter-spacing: .06em; margin: 14px 0 6px; }
.composer { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { flex: 1; min-height: 48px; max-height: 160px; resize: none; border-radius: 24px; padding: 12px 18px; }
.composer .btn { min-height: 48px; width: 48px; padding: 0; }
.composer-error { padding: 0 22px 10px; color: var(--danger); font-size: .86rem; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--muted); }
.icebreakers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

/* ---------- Safety & admin ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.safety-grid .panel h3 { display: flex; align-items: center; gap: 10px; }
.safety-grid .panel h3 .icon { color: var(--wine); }
.safety-grid ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); }
.safety-grid li { margin-bottom: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; background: var(--paper); }
.status.open { background: #fdecef; color: var(--wine); }
.status.review { background: var(--warn-bg); color: var(--warn-ink); }
.status.banned { background: #2a1f1d; color: #fff; }
.quote-msg { background: var(--paper); border-radius: 10px; padding: 8px 12px; margin-top: 6px; font-size: .86rem; }

/* ---------- Modal & toasts ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(30, 14, 18, .55); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-lg); animation: rise .25s ease; }
.modal h2 { font-size: 2rem; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--wine); background: var(--wine-tint); }
.radio-list input { accent-color: var(--wine); }
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; margin-top: 14px; }
.check input { accent-color: var(--wine); width: 18px; height: 18px; }
.its-a-match { text-align: center; background: linear-gradient(160deg, var(--wine-deep), var(--wine)); color: #fff; }
.its-a-match h2 { font-size: 3rem; font-style: italic; margin-bottom: 6px; }
.its-a-match .pair { display: flex; justify-content: center; margin: 26px 0; }
.its-a-match .pair img, .its-a-match .pair .ph { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: var(--paper); }
.its-a-match .pair > :last-child { margin-left: -24px; }
.its-a-match .modal-actions { justify-content: center; flex-wrap: wrap; }
#toasts { position: fixed; z-index: 90; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 14px; box-shadow: var(--shadow); font-size: .93rem; animation: rise .25s ease; display: flex; gap: 10px; align-items: center; }
.toast.error { background: var(--danger); }
.toast a { color: #fff; font-weight: 500; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--wine); animation: spin .8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .discover { grid-template-columns: 1fr; }
  .side { display: none; }
}
@media (max-width: 860px) {
  :root { --topbar-h: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--topbar-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; background: var(--ivory); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .over-hero .nav a:hover { background: rgba(123, 30, 58, .07); }
  .nav .btn { margin-top: 8px; }
  .steps, .split, .auth, .profile-view, .safety-grid, .edit-grid { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .match-card { grid-template-columns: 1fr; min-height: 0; }
  .gallery { min-height: 0; aspect-ratio: 4/5; }
  .photo-manager { grid-template-columns: repeat(2, 1fr); }
  .inbox { grid-template-columns: 1fr; height: calc(100vh - var(--topbar-h) - 32px); }
  .inbox.has-chat .convos { display: none; }
  .inbox:not(.has-chat) .chat { display: none; }
  .chat-head .back { display: inline-grid; }
  .page { padding-top: 20px; }
  .split-media { aspect-ratio: 4/3; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .row, .row-3, .facts { grid-template-columns: 1fr; }
  .card-body { padding: 22px 20px; }
  .card-body h2 { font-size: 2rem; }
  .panel { padding: 20px; }
  .msg { max-width: 86%; }
  .hero-trust { gap: 12px 18px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* small additions */
.back-link { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink-soft); margin-bottom: 18px; font-size: .92rem; }
.back-link:hover { color: var(--wine); }
.table-wrap { overflow-x: auto; }
kbd { font-family: var(--sans); font-size: .8em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--card); }
.nav .avatar-link { gap: 8px; }
.empty .big + h2, .empty .big + h3 { margin-top: 12px; }
.nav a.btn { padding: 0 1.1em; }
.nav a.btn-light, .nav a.btn-light:hover { color: var(--wine-deep); background: #fff; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--wine); }
@media (max-width: 860px) { .over-hero .nav a.btn-light { background: var(--wine); color: #fff; } }
.brand { align-items: center; }
.brand-heart { width: 26px; height: 26px; color: var(--wine); margin-right: 8px; align-self: center; flex: none; }
.over-hero .brand-heart { color: var(--rose); }

/* email verification & reset */
.verify-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: min(1200px, calc(100% - 32px)); margin: 18px auto 0; padding: 12px 18px; border-radius: 14px; background: var(--wine-deep); color: #fff; font-size: .92rem; }
.verify-banner .icon { color: var(--rose); }
.verify-banner span { flex: 1; min-width: 220px; }
.verify-banner .btn-light { color: var(--wine-deep); }
.forgot-link { justify-self: end; color: var(--wine); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.auth h1 .icon { color: var(--sage); vertical-align: -2px; }
.status .icon { width: 12px; height: 12px; vertical-align: -1px; }

/* language picker */
.lang-pick { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px 6px 12px; border-radius: 999px; color: inherit; cursor: pointer; }
.lang-pick:hover { background: rgba(123, 30, 58, .07); }
.over-hero .lang-pick:hover { background: rgba(255, 255, 255, .12); }
.lang-pick .icon { width: 1.05em; height: 1.05em; opacity: .85; }
.lang-select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font: inherit; font-size: .92rem; cursor: pointer; padding: 2px 4px; }
.lang-select:focus-visible { outline: 2px solid currentColor; border-radius: 6px; }
.lang-select option { color: var(--ink); background: var(--card); }
select.input.lang-select { appearance: auto; -webkit-appearance: auto; border: 1px solid var(--line); padding: 12px 14px; }
.footer .lang-pick { padding: 0; }
.footer .lang-pick:hover { background: none; color: var(--wine); }
@media (max-width: 860px) { .nav .lang-pick { padding: 12px 14px; } }

/* right-to-left (Arabic) */
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .brand-heart { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .brand, [dir="rtl"] .hero-title { direction: ltr; }
[dir="rtl"] .score { right: auto; left: 16px; }
[dir="rtl"] .video-toggle { right: auto; left: clamp(16px, 4vw, 40px); }
[dir="rtl"] .slot .main-tag { left: auto; right: 10px; }
[dir="rtl"] .msg.mine .bubble { border-bottom-right-radius: 20px; border-bottom-left-radius: 6px; }
[dir="rtl"] .msg.theirs .bubble { border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
[dir="rtl"] .its-a-match .pair > :last-child { margin-left: 0; margin-right: -24px; }
[dir="rtl"] .back-link .icon, [dir="rtl"] .chat-head .back .icon, [dir="rtl"] .composer .btn .icon { transform: scaleX(-1); }
[dir="rtl"] .step::before { left: auto; right: 0; }
[dir="rtl"] .hero .eyebrow::before { order: 2; }
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }

/* collapse the nav earlier: translated labels are longer than English */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--topbar-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; background: var(--ivory); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .over-hero .nav a:hover { background: rgba(123, 30, 58, .07); }
  .nav .btn { margin-top: 8px; }
  .nav .lang-pick { padding: 12px 14px; }
  .over-hero .nav a.btn-light { background: var(--wine); color: #fff; }
}

/* location, search area, visibility, blocked members */
.card-foot .foot-actions { display: inline-flex; gap: 14px; }
.chip-x { border: 0; background: none; color: inherit; font-size: 1.1em; line-height: 1; cursor: pointer; padding: 0 0 0 4px; }
.chip-x:hover { color: var(--danger); }
.vis-options { margin-bottom: 12px; }
.vis-countries .chips { margin-bottom: 12px; }
.vis-countries .add-country { max-width: 360px; }
.blocked { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.blocked li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.blocked li > div { flex: 1; min-width: 0; }
.blocked img, .blocked .ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--paper); flex: none; }
.edit-grid .field.full .row-3 { margin: 0; }

/* membership & pricing */
.plan-banner { background: linear-gradient(135deg, var(--wine-deep), var(--wine)); }
.price { font-family: var(--serif); font-size: 1.4rem; margin: 6px 0 12px; color: var(--ink-soft); }
.price b { font-size: 2.8rem; font-weight: 500; color: var(--wine-deep); }
.membership { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.membership .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.membership .plan-status h2 .icon { color: var(--sage); vertical-align: -3px; }
.plan-card .checklist { margin: 14px 0 18px; }
.paywall .price { margin: 4px 0 18px; }
.paywall .small { max-width: 460px; margin: 16px auto 0; }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.price-step { text-align: center; padding: 34px 28px; }
.price-step.featured { border: 2px solid var(--wine); box-shadow: 0 0 0 4px var(--wine-tint), var(--shadow-sm); }
@media (max-width: 860px) { .membership, .pricing { grid-template-columns: 1fr; } }

/* legal pages & account deletion */
.legal-page { max-width: 860px; }
.legal { padding: clamp(24px, 5vw, 48px); line-height: 1.7; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal-meta { color: var(--muted); font-size: .9rem; }
.legal-summary { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.check span a { color: var(--wine); }
.renew-note { margin-top: 12px; }
.danger-zone { border-color: #f0d4d6; }
.btn-danger-outline { color: var(--danger); border-color: #e9bcc0; }
.btn-danger-outline:hover { border-color: var(--danger); }


/* More search filters (profile page) */
.more-filters { margin: 22px 0 8px; border-top: 1px solid var(--line, #e8dfd6); padding-top: 16px; }
.more-filters > summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary::before { content: '▸'; color: var(--wine); transition: transform .2s; }
.more-filters[open] > summary::before { transform: rotate(90deg); }
.more-filters .field { margin-top: 14px; }
.more-filters .label, .edit-grid .label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.profile-view .panel h3 + .chips { margin-top: 8px; }

/* People page */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted, #7a6f68); text-decoration: none; font-weight: 500; font-size: .95rem; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--wine); border-bottom-color: var(--wine); }
.tab .badge { position: static; }
.people-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.person { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 10px 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.person .p-photo { position: relative; width: 64px; height: 64px; }
.person .p-photo img, .person .p-photo .ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.person .p-info a { color: inherit; text-decoration: none; }
.person .p-sub { margin-top: 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.person .p-sub .icon { width: 14px; height: 14px; }
.person .p-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.online-dot { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--sage); border: 2px solid #fff; }
.new-tag { background: var(--wine); color: #fff; font-size: .7rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.people-empty { padding: 28px 0 10px; text-align: center; color: var(--muted, #7a6f68); }
button[data-save][aria-pressed="true"], button[data-save-card][aria-pressed="true"] { color: var(--wine); }

/* Launch promotion */
.promo-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); font-size: .95rem; }
.promo-pill .icon { width: 16px; height: 16px; }
.pricing.single { grid-template-columns: 1fr; max-width: 560px; }
.pricing.single h3 { margin: 4px 0 10px; }
.pricing.single .btn { margin-top: 10px; }
.membership.single { grid-template-columns: 1fr; max-width: 720px; }
.promo-form { align-items: end; }
.promo-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Founding Member badge */
.founding-badge { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; padding: 3px 10px 3px 8px; border-radius: 999px; background: linear-gradient(135deg, #f7ecd9, #ecd9b6); color: #7a5a22; border: 1px solid #d9bf8f; font-family: var(--sans, inherit); font-size: .72rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.founding-badge .icon { width: 13px; height: 13px; color: var(--gold); fill: currentColor; }
.founding-badge.sm { padding: 3px; }
h1 + .founding-badge { margin: 2px 0 10px; }
.founding-note { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #fbf4e7; border: 1px solid #ecdcbc; color: var(--ink-soft); font-size: .92rem; text-align: left; }
.founding-note > .icon { color: var(--gold); flex: none; margin-top: 2px; }
.promo-pill { display: inline-block; border-radius: 18px; line-height: 1.45; max-width: 100%; }
.promo-pill .icon { vertical-align: -2px; margin-right: 4px; }

/* Invite a friend */
.invite-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.invite-link { display: flex; gap: 10px; margin: 16px 0 12px; }
.invite-link .input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.invite-stats { text-align: center; }
.invite-stats .big-num { font-family: var(--serif, Georgia, serif); font-size: 3.4rem; line-height: 1; color: var(--wine); margin: 8px 0 6px; }
.invited-note { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--wine-tint); color: var(--wine-deep); font-size: .95rem; }
.invited-note > .icon { color: var(--wine); flex: none; }
@media (max-width: 760px) { .invite-grid { grid-template-columns: 1fr; } .invite-link { flex-direction: column; } }

/* Invite reward */
.reward-box { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--wine-tint); color: var(--wine-deep); }
.reward-box > .icon { color: var(--wine); flex: none; margin-top: 3px; }
.reward-box p { margin: 4px 0 0; color: var(--ink-soft); font-size: .93rem; }
.bonus-meter { height: 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; margin: 16px 0 8px; }
.bonus-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rose), var(--wine)); border-radius: 999px; transition: width .6s ease; }

/* Installable app */
.app-card { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.app-card > .icon { color: var(--wine); flex: none; width: 26px; height: 26px; }
.app-card p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.app-card > div:nth-child(2) { flex: 1; }
.app-card-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .app-card { flex-wrap: wrap; } .app-card-actions { width: 100%; } .app-card-actions .btn { flex: 1; } }
.ios-steps { padding-left: 1.3em; line-height: 1.7; }
.ios-steps li { margin: 6px 0; }
.share-glyph { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; color: #0a84ff; }
#app-panel .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }

/* Install buttons */
.install-link .icon { color: var(--rose); }
.hero-install { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 2px; color: #fff; font: inherit; font-size: .98rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; opacity: .95; }
.hero-install .icon { width: 16px; height: 16px; }

/* Bio: roomy box that grows with the text */
textarea.bio-input { min-height: 240px; line-height: 1.6; resize: vertical; }

/* Long bios: preview on cards, full text on the profile */
.card-bio { display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* Moderator page: site counters */
.site-stats { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 40px; }
.site-stats .stat { display: grid; gap: 4px; }
.site-stats b { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1; color: var(--wine); font-variant-numeric: tabular-nums; min-width: 2ch; }
.site-stats span { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.site-stats p { flex-basis: 100%; margin: 0; }

/* ---------- Dating guides admin ---------- */
.guides-admin .guides-write, .guides-admin .row { align-items: end; }
.guides-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.guides-actions { white-space: nowrap; }
.guides-actions .btn { margin: 2px 0; }
.guides-admin code { font-size: .85rem; background: var(--paper); padding: 4px 8px; border-radius: 6px; word-break: break-all; }
@media (max-width: 720px) { .guides-admin .row { grid-template-columns: 1fr; } .guides-actions { white-space: normal; } }
.dp-h { font-size: 1.05rem; margin: 22px 0 6px; }
.dp-steps { margin: 6px 0 0 1.2em; line-height: 1.6; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-top: 22px; }
.dp-pin { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dp-pin img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 18px rgba(90,18,41,.12); display: block; }
.dp-pin figcaption { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; line-height: 1.35; }
.dp-pin .status { align-self: flex-start; }
.dp-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- "Ready to share" in the chat ---------- */
.chat-head .share-btn .icon { color: var(--wine); }
.chat-head .share-btn.on { background: var(--wine-tint); border-color: transparent; }
.share-bar { display: flex; align-items: center; gap: 12px; margin: 0 22px 10px; padding: 10px 14px; border-radius: 14px; background: var(--wine-tint); color: var(--ink-soft); font-size: .86rem; }
.share-bar > .icon { color: var(--wine); flex: none; }
.share-bar > span { flex: 1; min-width: 0; }
.share-bar .btn, .share-bar .link-btn { flex: none; }
.share-bar .link-btn:hover { color: var(--wine); }
.share-bar.both { background: #eaf1ea; }
.share-bar.both > .icon { color: var(--sage); }
.share-still { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.share-still .icon { color: var(--sage); flex: none; margin-top: 3px; }
.share-progress { margin: 0 0 14px; padding-left: 1.2em; color: var(--ink-soft); }
.share-progress li { margin: 4px 0; }
@media (max-width: 560px) {
  .chat-head .share-btn { padding: 0 .7em; }
  .chat-head .share-btn .share-label { display: none; }
  .share-bar { flex-wrap: wrap; margin: 0 12px 10px; }
}

/* ---------- Trust points (profile) ---------- */
.trust-panel { --level: var(--sage); }
.trust-panel.level-caution { --level: var(--gold); }
.trust-panel.level-warning { --level: #c0702a; }
.trust-panel.level-risk, .trust-panel.level-paused { --level: var(--danger); }
.trust-score { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.trust-score b { font-family: var(--serif); font-weight: 500; font-size: 3rem; line-height: 1; color: var(--level); font-variant-numeric: tabular-nums; }
.trust-score .of { color: var(--muted); font-size: 1.05rem; }
.trust-level { margin-left: 6px; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 500; color: #fff; background: var(--level); align-self: center; }
/* The track shows the four levels faintly: at risk (0–15), warning (16–25), caution (26–39), good (40–50) */
.trust-meter { position: relative; height: 10px; border-radius: 999px; overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(163,38,45,.16) 0 30%, rgba(192,112,42,.16) 30% 50%, rgba(176,141,87,.18) 50% 78%, rgba(95,122,99,.18) 78% 100%); }
.trust-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--level); }
.trust-panel p { margin-bottom: .6em; }
.trust-panel .muted .icon { width: 13px; height: 13px; vertical-align: -1px; }

/* ---------- moderator counters ---------- */
.site-stats .true-love b { color: var(--rose); }

/* ---------- Discover layouts: one at a time, grid, collage ---------- */
.view-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 0 0 20px; }
.view-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-group[hidden] { display: none; }
.view-label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.segmented.compact { gap: 6px; }
.segmented.compact label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; font-size: .88rem; }
.segmented.compact .icon { width: 16px; height: 16px; }
.discover.layout-grid, .discover.layout-collage { grid-template-columns: minmax(0, 1fr); }
.discover.layout-grid .side, .discover.layout-collage .side { display: none; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tiles.is-grid.go-down { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tiles.is-collage.go-down { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: 180px; grid-auto-flow: row dense; }
.tiles.go-across { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 2px 14px; scrollbar-width: thin; }
.tiles.is-grid.go-across { grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: clamp(150px, 19vw, 210px); }
.tiles.is-collage.go-across { grid-auto-flow: column dense; grid-template-rows: repeat(3, 160px); grid-auto-columns: 160px; }
.tiles.go-across .tile-item { scroll-snap-align: start; }
.tiles.is-collage .big { grid-column: span 2; grid-row: span 2; }
.tiles.is-collage .tall { grid-row: span 2; }
.tiles.is-collage .wide { grid-column: span 2; }
.tile-item { min-width: 0; }
.tile-item.leaving { animation: tileOut .25s ease forwards; }
@keyframes tileOut { to { opacity: 0; transform: scale(.92); } }
.tile { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--paper); color: #fff; font: inherit; text-align: start; cursor: pointer; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.tiles.is-grid .tile { height: auto; aspect-ratio: 4 / 5; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tile:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.tile img, .tile .no-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile .no-photo { display: grid; place-items: center; font-family: var(--serif); font-size: 3.2rem; color: var(--rose); }
.tile::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, rgba(30, 14, 18, 0), rgba(30, 14, 18, .78)); pointer-events: none; }
.tile-cap { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.tile-cap b { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.15; }
.tile-cap small { font-size: .78rem; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles.is-collage .big .tile-cap b { font-size: 1.7rem; }
.tile-score { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .93); color: var(--wine-deep); font-size: .8rem; font-weight: 600; }
.tile-score small { font-weight: 400; color: var(--muted); }
[dir="rtl"] .tile-score { right: auto; left: 10px; }
.live-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.tiles-wrap { position: relative; }
.strip-btn { position: absolute; top: calc(50% - 6px); z-index: 2; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: opacity .2s; }
.strip-btn .icon { width: 20px; height: 20px; }
.strip-btn.prev { left: -16px; }
.strip-btn.next { right: -16px; }
[dir="rtl"] .strip-btn.prev { left: auto; right: -16px; }
[dir="rtl"] .strip-btn.next { right: auto; left: -16px; }
[dir="rtl"] .strip-btn .icon { transform: scaleX(-1); }
.strip-btn:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .strip-btn { display: none; } }

/* The member card popped out of a grid or collage */
.modal.card-pop { position: relative; width: min(960px, 100%); padding: 0; background: transparent; box-shadow: none; border-radius: 26px; }
.modal.card-pop:focus { outline: none; }
.card-pop .match-card { min-height: min(600px, calc(100vh - 32px)); box-shadow: var(--shadow-lg); }
.card-pop .card-body h2 { padding-inline-end: 44px; }
/* Sticky, so it stays in reach while a tall card scrolls (phones); the negative margin lays it over the card. */
.pop-close { position: sticky; top: 12px; z-index: 5; margin-block: 12px -52px; margin-inline: auto 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .95); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.pop-close .icon { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .card-pop .match-card { min-height: 0; }
  .card-pop .gallery { aspect-ratio: 1; }
}
@media (max-width: 560px) {
  .view-bar { gap: 12px; }
  .segmented.compact label { padding: 7px 11px; }
  .tiles.is-grid.go-down { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles.is-collage.go-down { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .tiles.is-grid.go-across { grid-auto-columns: 150px; }
  .tiles.is-collage.go-across { grid-template-rows: repeat(3, 130px); grid-auto-columns: 130px; }
  .tile-cap b { font-size: 1.1rem; }
}

/* Premium: badge, Spotlight label, plans, points */
.premium-badge { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; padding: 3px 10px 3px 8px; border-radius: 999px; background: linear-gradient(135deg, var(--wine), var(--wine-deep)); color: #fff; border: 1px solid var(--wine-deep); font-family: var(--sans, inherit); font-size: .72rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.premium-badge .icon { width: 13px; height: 13px; color: #f1d6a0; }
.premium-badge.sm { padding: 3px; }
.premium-badge + .founding-badge { margin-inline-start: 6px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.badge-row .premium-badge + .founding-badge { margin: 0; }
.tile-cap .premium-badge { border-color: rgba(255, 255, 255, .55); }
.spotlight-tag { position: absolute; z-index: 2; top: 24px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 9px; border-radius: 999px; background: rgba(42, 31, 29, .8); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.spotlight-tag .icon { width: 13px; height: 13px; color: #f1d6a0; }
.tile-cap .spotlight-tag { position: static; align-self: flex-start; margin-bottom: 4px; }
[dir="rtl"] .spotlight-tag { left: auto; right: 14px; letter-spacing: 0; }
.view-bar .undo-pass { margin-inline-start: auto; align-self: center; }

.btn-premium { background: linear-gradient(135deg, var(--wine-deep), #2a1f1d); color: #fff; box-shadow: 0 6px 18px rgba(42, 31, 29, .22); }
.btn-premium .icon { color: #f1d6a0; }
.btn-premium:hover { filter: brightness(1.12); }
.membership.two-plans { grid-template-columns: 1fr 1fr; }
.membership.two-plans .plan-status { grid-column: 1 / -1; }
.membership .plan-card { position: relative; }
.plan-tag { position: absolute; top: 20px; inset-inline-end: 20px; padding: 2px 10px; border-radius: 999px; background: var(--sage); color: #fff; font-size: .72rem; font-weight: 600; }
.premium-card { border: 2px solid var(--wine); box-shadow: 0 0 0 4px var(--wine-tint), var(--shadow-sm); }
.premium-card .kicker .icon, .price-step .kicker .icon { width: 15px; height: 15px; color: var(--gold); vertical-align: -2px; }
.premium-note { background: var(--wine-tint); border-color: #ebcdd5; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.extras-grid.single { grid-template-columns: 1fr; }
.extras h2 { font-size: 1.6rem; margin-top: 0; }
.extras h2 .icon { color: var(--wine); vertical-align: -3px; }
.extras h3 { margin: 22px 0 0; font-size: 1.2rem; }
.extras .checklist.small { margin: 10px 0 14px; gap: 10px; font-size: .93rem; }
.extras .checklist .icon { color: var(--wine); }
.points-row { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.points-row .big-num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--wine); }
.points-row b, .points-row small { display: block; }
.blockers { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .9rem; color: var(--warn-ink); }
.blockers li { display: flex; gap: 8px; align-items: flex-start; }
.blockers .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.spot-live .icon { color: var(--wine); flex: none; margin-top: 2px; }
.switch-row { align-items: flex-start; margin: 10px 0 16px; }
.switch-row input { margin-top: 4px; }
.switch-row small { display: block; }
.liked-lock { text-align: center; padding: 18px 10px 8px; }
.liked-lock .big-num { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--wine); }
.liked-lock .muted { max-width: 470px; margin: 8px auto 18px; }
.invite-earned { margin: 14px 0; }
.invite-earned .icon { color: var(--wine); vertical-align: -3px; }
.pricing:not(.single) { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
@media (max-width: 860px) {
  .membership.two-plans, .extras-grid, .pricing:not(.single) { grid-template-columns: 1fr; }
}
.pricing > .panel, .membership > .panel, .extras-grid > .panel { margin-top: 0; }

/* pricing page */
.pricing-page .pricing { max-width: none; }
.promo-notice { margin-bottom: 24px; background: #fbf4e7; border-color: #ecdcbc; }
.promo-notice > .icon { color: var(--gold); flex: none; }
.compare { margin-top: 24px; }
.compare h2, .pricing-page .extras h2 { font-size: 1.6rem; margin: 0 0 12px; }
.compare .table { font-size: .95rem; }
.compare .table thead th { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--ink); text-align: center; vertical-align: bottom; width: 17%; }
.compare .table thead th:first-child { width: auto; }
.compare .table thead small { display: block; margin-top: 2px; font-size: .82rem; font-weight: 400; color: var(--muted); }
.compare .table thead .icon { width: 15px; height: 15px; color: var(--gold); vertical-align: -2px; }
.compare .table tbody th { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
.compare .table td { text-align: center; vertical-align: middle; }
.compare .premium-col { background: var(--wine-tint); }
.cmp-yes .icon { color: var(--sage); }
.cmp-no { color: var(--muted); }
.pricing-page .extras-grid { margin-top: 24px; }
.pricing-page .extras .checklist .icon { flex: none; }
.pricing-cta { text-align: center; margin: 32px 0 8px; }
.pricing-cta .small { margin-top: 14px; }
[dir="rtl"] .compare .table thead th, [dir="rtl"] .compare .table td { text-align: center; }
@media (max-width: 600px) {
  .compare { padding: 22px 12px; }
  .compare h2 { padding: 0 6px; }
  .compare .table th, .compare .table td { padding: 10px 6px; }
  .compare .table thead th { font-size: .85rem; }
  .compare .table thead small { font-size: .72rem; }
  .compare .table tbody th { font-size: .88rem; }
}
