:root {
  --bg:#FFF1E6; --surface:#fff; --alt:#FFE2D2; --ink:#2D0B1A; --soft:#7B5B66; --line:#F2D3C4;
  --accent:#C8102E; --brand:#7A1630; --gold:#FFB81C; --cream:#FFEEDD; --ok:#1B7550; --ember:#B03F10; --recv:#E4DADF;
  --serif: "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root {
  --bg:#1B0B12; --surface:#2C1420; --alt:#3B1C2A; --ink:#F9EEE8; --soft:#C9A9B4; --line:#4A2636;
  --accent:#FF4A6B; --brand:#4D0E22; --ok:#2FA877; --ember:#FF8A4C; --recv:#3D2D36; } }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 var(--sans); }
body.noscroll { overflow:hidden; }
h1,h2,h3 { font-family:var(--serif); margin:0 0 8px; line-height:1.2; }
h1 { font-size:32px; } h2 { font-size:22px; } h3 { font-size:18px; }
p { margin:0 0 12px; }
a { color:var(--accent); }
button { font:inherit; color:inherit; cursor:pointer; }
button:disabled { opacity:.5; cursor:default; }
:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.hint { font-size:13px; color:var(--soft); } .center { text-align:center; } .sub { color:var(--soft); }
.lead { font-size:18px; color:var(--soft); }
.brandmark { font:700 40px/1 var(--serif); color:var(--cream); letter-spacing:.3px; } .brandmark.sm { font-size:26px; }

/* Buttons & inputs */
.btn { border:0; border-radius:999px; padding:12px 22px; font-weight:700; background:var(--accent); color:#fff; }
.btn.secondary { background:var(--alt); color:var(--ink); }
.btn.ghost { background:transparent; border:1.5px solid var(--line); color:var(--ink); }
.btn.gold { background:var(--gold); color:#2D0B1A; }
.btn.danger { background:#B3261E; color:#fff; }
.btn.small { padding:8px 16px; font-size:14px; }
a.btn { display:inline-block; text-decoration:none; text-align:center; }
.link { background:none; border:0; color:var(--accent); padding:6px 0; text-decoration:underline; }
.link.danger { color:#B3261E; } .link.light { color:var(--cream); }
.input { width:100%; padding:12px 14px; border-radius:14px; border:1.5px solid var(--line); background:var(--surface); color:var(--ink); font:inherit; }
textarea.input { resize:vertical; }
.input:disabled { opacity:.6; }
.field { display:block; margin:0 0 16px; } .field .lbl { display:block; font-weight:700; font-size:14px; margin-bottom:6px; }
.field .hint { display:block; margin-top:4px; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; margin-top:16px; } .actions.center { justify-content:center; }
.form { margin-top:16px; }
.errors { color:#B3261E; padding-left:20px; margin:8px 0; } @media (prefers-color-scheme: dark) { .errors { color:#FF8A80; } }
.check { display:flex; gap:10px; align-items:flex-start; font-size:14px; margin:12px 0; } .check input { appearance:none; -webkit-appearance:none; flex:none; width:20px; height:20px; border:2px solid currentColor; border-radius:5px; background:transparent center/14px no-repeat; cursor:pointer; margin-top:3px; }
.check input:checked { background-color:var(--accent); border-color:var(--accent); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
input[type=range] { width:100%; accent-color:var(--accent); }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { border:1.5px solid var(--line); background:var(--surface); border-radius:999px; padding:7px 14px; font-size:14px; }
.chip.on { background:var(--brand); border-color:var(--brand); color:var(--cream); }
.chips.static .chip { cursor:default; }
.prompt-edit { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:12px; margin-bottom:10px; display:grid; gap:8px; }
.slot-edit { display:flex; gap:8px; align-items:center; margin-bottom:8px; }

/* Banners / cards / toast */
.banner { border-radius:14px; padding:12px 14px; margin:12px 0; background:var(--alt); font-size:14px; }
.banner.error { background:#FBE4E1; color:#7A1710; } .banner.warn { background:#FFF0CC; color:#5C4300; } .banner.ok { background:#DDF3E8; color:#0E4D33; }
.loc-card { display:flex; gap:12px; align-items:center; justify-content:space-between; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:18px; margin:14px 0; }
.toast { position:fixed; left:50%; transform:translateX(-50%); bottom:90px; z-index:100; background:#2D0B1A; color:#fff; padding:12px 18px; border-radius:14px; max-width:90vw; box-shadow:0 8px 30px #0006; }
.toast.error { background:#B3261E; }
.spinner { display:flex; gap:10px; align-items:center; justify-content:center; padding:40px; color:var(--soft); }
.dot { width:14px; height:14px; border-radius:50%; background:var(--accent); animation:pulse 1s infinite alternate; }
@keyframes pulse { to { transform:scale(1.6); opacity:.4; } }
.empty { text-align:center; padding:50px 20px; } .empty-icon { font-size:46px; color:var(--accent); } .empty p { color:var(--soft); }
.splash { min-height:100vh; display:grid; place-items:center; background:var(--brand); align-content:center; }

/* Welcome */
.welcome { position:relative; min-height:100vh; color:var(--cream); display:grid; place-items:center; overflow:hidden; }
.welcome-bg { position:absolute; inset:0; background:#4D0E22 center/cover; }
.welcome-shade { position:absolute; inset:0; background:linear-gradient(#2D0B1A99,#2D0B1Acc); }
.welcome-in { position:relative; width:min(460px,100%); padding:32px 20px; }
.welcome h1 { font-size:36px; margin:18px 0 8px; } .welcome .lead { color:#FFEEDDcc; }
.card.glass { background:#2D0B1A88; border-color:#FFEEDD33; backdrop-filter:blur(8px); display:grid; gap:12px; color:var(--cream); }
.card.glass .input { background:#FFFFFF22; border-color:#FFEEDD44; color:#fff; } .card.glass .input::placeholder { color:#FFEEDDaa; }
.card.glass a, .card.glass .link { color:var(--gold); }
.input.code { text-align:center; font-size:24px; letter-spacing:6px; }
.fine { font-size:13px; color:#FFEEDDbb; text-align:center; } .fine a { color:var(--gold); }

/* Pages & shell */
.page { max-width:640px; margin:0 auto; padding:20px 16px 40px; } .page.narrow { max-width:620px; }
.page-head { display:flex; justify-content:space-between; align-items:center; background:var(--brand); margin:-20px -16px 20px; padding:14px 16px; }
.shell { min-height:100vh; padding-bottom:78px; }
.tabs { position:fixed; bottom:0; left:0; right:0; z-index:20; display:flex; background:#4D0E22; padding:6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabs button { flex:1; background:none; border:0; color:#FFEEDD99; display:grid; justify-items:center; gap:2px; font-size:12px; font-weight:600; position:relative; padding:6px; border-radius:12px; }
.tabs button.on { color:var(--gold); } .ti { font-size:20px; filter:grayscale(.3); } .tabs-brand { display:none; }
.badge-n { position:absolute; top:2px; left:calc(50% + 8px); background:#E5173F; color:#fff; border-radius:999px; font-size:11px; font-style:normal; padding:1px 6px; }
@media (min-width:860px) {
  .shell { padding:0 0 0 220px; }
  .tabs { top:0; bottom:0; right:auto; width:220px; align-content:flex-start; justify-content:flex-start; flex-direction:column; padding:20px 12px; gap:4px; }
  .tabs-brand { display:block; font:700 30px var(--serif); color:var(--cream); padding:4px 12px 20px; }
  .tabs button { flex:none; grid-auto-flow:column; justify-content:start; align-items:center; gap:12px; font-size:16px; padding:12px; }
  .badge-n { position:static; margin-left:auto; }
  .page { padding-top:32px; }
}

/* Photos & profiles */
.photo { position:relative; overflow:hidden; background:#7A1630; width:100%; height:100%; display:grid; place-items:center; }
.photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; user-select:none; }
.photo .initial { font:700 40px var(--serif); color:#ffffffcc; }
.avatar { border-radius:50%; overflow:hidden; flex:none; } .avatar .initial { font-size:calc(1em); }
.browser { position:relative; aspect-ratio:4/5; max-height:70vh; width:100%; background:#000; border-radius:24px 24px 0 0; overflow:hidden; }
.browser .photo { border-radius:0; }
.dots { position:absolute; top:10px; left:0; right:0; display:flex; gap:5px; justify-content:center; z-index:2; }
.dots span { height:4px; flex:1; max-width:46px; border-radius:2px; background:#fff6; } .dots span.on { background:#fff; }
.browser { touch-action:pan-y; }
.nav { position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; border-radius:50%; background:#0007; border:0; color:#fff; font-size:26px; line-height:1; z-index:2; display:grid; place-items:center; padding:0 0 3px; }
.nav:hover, .nav:focus-visible { background:#000b; } .nav.prev { left:10px; } .nav.next { right:10px; }
.deck-card { position:relative; background:var(--surface); border-radius:24px; box-shadow:0 10px 30px #7A163022; overflow:hidden; border:1px solid var(--line); }
.more { position:absolute; top:12px; right:12px; z-index:3; width:38px; height:38px; border-radius:50%; border:0; background:#0006; color:#fff; font-size:20px; }
.profile-body { padding:16px 18px 20px; } .name-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.age { font-weight:400; } .bio { white-space:pre-wrap; }
.premium-mark { display:inline-block; font-size:12px; font-weight:700; background:var(--gold); color:#2D0B1A; border-radius:999px; padding:3px 10px; }
.prompt { background:var(--alt); border-radius:16px; padding:12px 14px; margin-top:10px; } .prompt .q { font-size:13px; color:var(--soft); font-weight:600; } .prompt .a { font:600 18px var(--serif); }
.react-bar { display:flex; justify-content:center; gap:34px; margin:18px 0 6px; position:sticky; bottom:86px; z-index:5; pointer-events:none; } .react-bar .react { pointer-events:auto; }
@media (min-width:860px) { .react-bar { bottom:16px; } }
.react { width:72px; height:72px; border-radius:50%; border:0; font-size:32px; background:var(--surface); box-shadow:0 6px 18px #7A163033; }
.react.like { background:var(--accent); color:#fff; } .react.pass { color:var(--soft); } .react:hover:not(:disabled) { transform:scale(1.07); }
.likes-card { background:var(--surface); border:1px solid var(--line); border-radius:18px; margin-bottom:14px; overflow:hidden; }
.likes-head { width:100%; display:flex; gap:10px; align-items:center; padding:14px 16px; background:none; border:0; text-align:left; } .likes-head .chev { margin-left:auto; } .heart { color:var(--accent); }
.likes-lock { padding:0 16px 16px; } .liked-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px; padding:0 14px 14px; }
.liked { background:none; border:0; text-align:left; font-size:13px; } .liked .photo { aspect-ratio:1; height:auto; border-radius:14px; }

/* Sheets */
.scrim { position:fixed; inset:0; background:#1B0B12aa; z-index:50; display:grid; place-items:center; padding:12px; }
.sheet { background:var(--bg); color:var(--ink); width:min(480px,100%); max-height:92vh; border-radius:24px; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 20px 60px #0008; }
.sheet.wide { width:min(620px,100%); }
.sheet-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; background:var(--brand); color:var(--cream); } .sheet-head h2 { margin:0; font-size:19px; }
.sheet-head .x { background:none; border:0; color:var(--cream); font-size:18px; }
.sheet-body { padding:18px; overflow-y:auto; }
.sheet .browser { border-radius:16px; margin-bottom:8px; }
.menu-list { display:grid; gap:8px; } .menu-list button, .menu-link { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px; text-align:left; text-decoration:none; color:var(--ink); }
.celebrate { text-align:center; } .pair { display:flex; justify-content:center; align-items:center; gap:14px; margin:8px 0 16px; } .spark { font-size:34px; color:var(--accent); }
.perks { padding-left:20px; } .plans { display:grid; gap:8px; margin:12px 0; }
.plan { display:grid; background:var(--surface); border:1.5px solid var(--line); border-radius:14px; padding:12px 14px; } .plan.current { border-color:var(--gold); }

/* Matches & chat */
.match-list, .mod-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.match-row { width:100%; display:flex; gap:12px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:12px; text-align:left; }
.mr-main { flex:1; min-width:0; } .mr-top { display:flex; justify-content:space-between; } .when { color:var(--soft); font-size:12px; }
.mr-last { color:var(--soft); font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .mr-last.unread { color:var(--ink); font-weight:700; }
.count { background:var(--accent); color:#fff; border-radius:999px; min-width:24px; text-align:center; padding:2px 8px; font-size:13px; font-weight:700; }
.chat { display:flex; flex-direction:column; height:100vh; height:100dvh; max-width:700px; margin:0 auto; background:var(--bg); margin-bottom:-78px; }
@media (min-width:860px) { .chat { margin-bottom:0; } }
/* On phones the open conversation takes the whole screen: the fixed tab bar would sit on top of the message box. */
@media (max-width:859px) { .shell.in-chat { padding-bottom:0; } .shell.in-chat .tabs { display:none; } .shell.in-chat .chat { margin-bottom:0; position:fixed; left:0; right:0; top:var(--vv-top, 0px); height:var(--vv-h, 100dvh); max-width:none; }
  html:has(.in-chat), html:has(.in-chat) body { overflow:hidden; overscroll-behavior:none; } }
.chat-head { display:flex; align-items:center; gap:8px; background:var(--brand); color:var(--cream); padding:10px 12px; }
.chat-head .back, .more-btn { background:none; border:0; color:var(--cream); font-size:28px; padding:0 8px; } .ch-who { flex:1; display:flex; align-items:center; gap:10px; background:none; border:0; color:var(--cream); font-size:17px; text-align:left; }
.chat-scroll { flex:1; overflow-y:auto; padding:14px 14px 8px; display:flex; flex-direction:column; gap:4px; }
.chat-empty { text-align:center; color:var(--soft); padding:30px; }
.day-sep { text-align:center; font-size:12px; color:var(--soft); margin:12px 0 6px; font-weight:600; }
.bubble-row { display:flex; align-items:center; gap:6px; } .bubble-row.mine { justify-content:flex-end; }
.bubble { max-width:78%; padding:9px 14px; border-radius:20px; white-space:pre-wrap; word-wrap:break-word; overflow-wrap:anywhere; }
.bubble.mine { background:var(--accent); color:#fff; border-bottom-right-radius:6px; } .bubble.theirs { background:var(--recv); border-bottom-left-radius:6px; }
.flag { background:none; border:0; color:var(--soft); opacity:0; font-size:14px; } .bubble-row:hover .flag, .flag:focus-visible { opacity:1; }
.time { font-size:11px; color:var(--soft); margin:1px 6px 4px; } .time.mine { text-align:right; }
.typing { display:flex; gap:4px; padding:10px 14px; background:var(--recv); border-radius:18px; width:max-content; }
.typing span { width:7px; height:7px; border-radius:50%; background:var(--soft); animation:blink 1.2s infinite; } .typing span:nth-child(2){animation-delay:.2s} .typing span:nth-child(3){animation-delay:.4s}
@keyframes blink { 50% { opacity:.25; } }
.composer { display:flex; gap:8px; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--line); align-items:center; }
.composer.locked { justify-content:space-between; }
.date-btn { border:0; background:var(--alt); width:42px; height:42px; border-radius:50%; font-size:18px; flex:none; }
.composer-problem { background:#FBE4E1; color:#7A1710; font-size:13px; padding:8px 14px; }
.date-card { background:var(--surface); border:1.5px solid var(--gold); border-radius:18px; padding:14px; margin:8px auto; max-width:92%; }
.date-card.declined, .date-card.cancelled { opacity:.7; border-color:var(--line); }
.dc-head { display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .dc-status { margin-left:auto; font-size:12px; color:var(--soft); }
.dc-idea { font:700 20px var(--serif); margin-top:6px; } .dc-when { font-weight:700; color:var(--ok); margin-top:6px; }
.slots { margin:8px 0; padding-left:18px; } .slot { display:flex; gap:8px; align-items:center; margin-bottom:4px; } .slots li:has(.slot) { list-style:none; margin-left:-18px; }
.dc-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.mini { border:1px solid var(--line); background:var(--alt); border-radius:999px; padding:6px 12px; font-size:13px; } .mini.danger { color:#B3261E; }

/* Me */
.me-head { display:flex; gap:16px; align-items:center; margin-bottom:14px; } .me-head h1 { margin:0; font-size:26px; }
.me-photo { width:84px; height:84px; border-radius:50%; overflow:hidden; flex:none; }
.complete { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:12px 14px; margin-bottom:14px; } .bar { height:8px; background:var(--alt); border-radius:4px; overflow:hidden; margin-bottom:6px; } .bar span { display:block; height:100%; background:var(--accent); }
.menu-card { background:var(--surface); border:1px solid var(--line); border-radius:18px; overflow:hidden; margin-bottom:14px; }
.menu-card > button, .menu-card > a, .menu-card > label { display:flex; width:100%; justify-content:space-between; align-items:center; padding:15px 16px; background:none; border:0; border-bottom:1px solid var(--line); text-align:left; text-decoration:none; color:var(--ink); }
.menu-card > :last-child { border-bottom:0; } .menu-card .danger { color:#B3261E; font-weight:700; } .menu-card span { color:var(--soft); } .menu-card small { display:block; color:var(--soft); }
.switch-row { display:flex; justify-content:space-between; align-items:center; padding:12px 0; gap:12px; } .switch-row input { width:22px; height:22px; accent-color:var(--accent); }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; }
.photo-tile { position:relative; aspect-ratio:4/5; border-radius:14px; overflow:hidden; background:var(--alt); } .photo-tile .photo { position:absolute; inset:0; }
.badge { position:absolute; top:6px; left:6px; font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; background:#fffe; color:#2D0B1A; } .badge.pending { background:var(--gold); } .badge.rejected { background:#B3261E; color:#fff; } .badge.approved { background:#DDF3E8; }
.tile-actions { position:absolute; bottom:6px; left:6px; right:6px; display:flex; gap:4px; flex-wrap:wrap; }
.photo-add { aspect-ratio:4/5; border:2px dashed var(--line); border-radius:14px; display:grid; place-items:center; color:var(--soft); cursor:pointer; text-align:center; font-weight:600; }
.photo-add:hover { border-color:var(--accent); color:var(--accent); }

/* Moderation */
.seg { display:flex; gap:4px; background:var(--alt); border-radius:999px; padding:4px; margin-bottom:16px; } .seg button { flex:1; border:0; background:none; border-radius:999px; padding:8px 10px; font-weight:600; } .seg button.on { background:var(--brand); color:var(--cream); }
.photo-review { display:grid; gap:14px; } .photo.review { aspect-ratio:4/5; height:auto; border-radius:14px; max-width:320px; }
blockquote { margin:8px 0; padding:8px 14px; border-left:4px solid var(--accent); background:var(--alt); border-radius:0 10px 10px 0; }

/* Video calls */
.call-screen { position:fixed; inset:0; z-index:60; background:#14070C; color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; }
.call-screen.ring { background:linear-gradient(160deg,#4D0E22,#14070C); justify-content:space-between; padding:calc(64px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom)); }
.call-who { display:grid; justify-items:center; gap:6px; text-align:center; } .call-who h2 { font:700 30px var(--serif); margin:10px 0 0; } .call-who p { margin:0; opacity:.8; }
.call-remote { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#000; }
.call-self { position:absolute; top:calc(16px + env(safe-area-inset-top)); right:16px; width:96px; height:128px; object-fit:cover; border-radius:14px; border:2px solid #ffffff55; background:#000; z-index:2; }
.call-more { position:absolute; top:calc(16px + env(safe-area-inset-top)); left:16px; z-index:2; width:44px; height:44px; border-radius:50%; border:0; background:#00000066; color:#fff; font-size:22px; }
.call-controls { position:absolute; bottom:calc(28px + env(safe-area-inset-bottom)); left:0; right:0; display:flex; justify-content:center; gap:18px; z-index:2; }
.call-screen.ring .call-controls { position:static; gap:56px; }
.cc { width:60px; height:60px; border-radius:50%; border:0; background:#ffffff26; color:#fff; font-size:24px; backdrop-filter:blur(8px); }
.cc.off { background:#fff; color:#14070C; } .cc.hang { background:#E5173F; } .cc.answer { background:#1E9E5A; }
.call-note { font-size:13px; opacity:.7; text-align:center; margin:0; }
.call-sound { position:absolute; bottom:calc(112px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); z-index:3; border:0; border-radius:999px; padding:10px 18px; background:#E5173F; color:#fff; font-weight:700; }
.call-perm { position:absolute; top:calc(72px + env(safe-area-inset-top)); left:16px; right:16px; z-index:3; max-width:560px; margin:0 auto; background:#000000b8; border-radius:16px; padding:14px 16px; color:#fff; }
.call-perm p { margin:0 0 8px; font-weight:600; font-size:14px; } .call-perm .how { font-weight:400; opacity:.85; font-size:13px; }
.call-perm .row { display:flex; gap:10px; align-items:center; margin-top:4px; }
.call-perm .again { border:0; border-radius:999px; padding:9px 16px; background:var(--gold); color:#4D0E22; font-weight:700; }
.call-perm .later { border:0; background:none; color:#ffffffd9; font-weight:600; padding:9px 4px; }
.call-banner { display:flex; align-items:center; justify-content:space-between; gap:10px; background:#FFE3A8; color:#4D0E22; padding:10px 14px; font-weight:600; font-size:14px; }
.call-banner .acts { display:flex; gap:8px; flex:none; } .call-banner button { border:0; border-radius:999px; padding:8px 14px; font-weight:700; }
.call-banner .go { background:#7A1630; color:#FFEEDD; } .call-banner .soft { background:#7A163020; color:#7A1630; }
.match-row .want { background:var(--gold); color:#4D0E22; border-radius:999px; padding:3px 9px; font-size:12px; font-weight:700; white-space:nowrap; }
