/* Mukwano - iOS-inspired design. Colors follow Apple's system palette, light and dark. */
:root {
  --accent: #ff2d55;
  --accent-2: #ff5e7e;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #e9e9eb;
  --label: #000000;
  --secondary: rgba(60, 60, 67, .6);
  --tertiary: rgba(60, 60, 67, .3);
  --separator: rgba(60, 60, 67, .18);
  --fill: rgba(120, 120, 128, .12);
  --bar: rgba(249, 249, 249, .82);
  --blue: #007aff; --green: #34c759; --red: #ff3b30; --orange: #ff9500;
  --yellow: #ffcc00; --purple: #af52de; --pink: #ff2d55; --gold: #d4a017;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.08);
  --radius: 12px;
  --tabs-h: 50px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff375f; --accent-2: #ff6482;
    --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e;
    --label: #ffffff; --secondary: rgba(235, 235, 245, .6); --tertiary: rgba(235, 235, 245, .3);
    --separator: rgba(84, 84, 88, .6); --fill: rgba(120, 120, 128, .24); --bar: rgba(22, 22, 22, .82);
    --blue: #0a84ff; --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --yellow: #ffd60a; --purple: #bf5af2; --pink: #ff375f;
    --shadow: 0 8px 24px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  font-size: 17px; line-height: 1.35; letter-spacing: -.01em;
  background: var(--bg); color: var(--label);
  max-width: 480px; margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.with-tabs #app { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 16px); }
#app { min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.i { width: 22px; height: 22px; flex-shrink: 0; }
.i.inline { width: 14px; height: 14px; vertical-align: -1px; }

/* ---- typography + layout ---- */
.large-title { padding: 12px 20px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.large-title h1 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; }
.page { padding: 0 16px 16px; display: flex; flex-direction: column; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--secondary);
  margin: 24px 16px 7px; display: flex; align-items: center; gap: 4px; }
.subhead { color: var(--secondary); font-size: 15px; margin: 4px 4px 16px; }
.footnote { font-size: 13px; color: var(--secondary); margin: 7px 16px 0; }
.footnote.center { text-align: center; }
.error { color: var(--red); font-size: 15px; margin: 12px 16px 0; min-height: 0; }
.error:empty { display: none; }
.empty { text-align: center; color: var(--secondary); padding: 56px 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty h3 { color: var(--label); font-size: 20px; font-weight: 600; }
.empty p { font-size: 15px; }
.empty-icon { width: 48px; height: 48px; color: var(--tertiary); stroke-width: 1.5; margin-bottom: 6px; }

/* ---- grouped inset lists (Settings style) ---- */
.group { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px; position: relative; background: none; border: none; width: 100%; text-align: left; }
.row + .row::before, .group > textarea + .row::before, .row + textarea { border-top: .5px solid var(--separator); }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; }
.row-label { flex-shrink: 0; min-width: 96px; }
.row input:not([type=checkbox]):not([type=radio]), .row select {
  flex: 1; min-width: 0; border: none; background: none; font: inherit; color: var(--secondary); text-align: right; padding: 8px 0; outline: none;
}
.row select { appearance: none; -webkit-appearance: none; cursor: pointer; text-align-last: right; }
.row input:focus { color: var(--label); }
.row input::placeholder { color: var(--tertiary); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-text small { color: var(--secondary); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .chev { color: var(--tertiary); width: 18px; height: 18px; }
.group textarea { width: 100%; border: none; background: none; font: inherit; color: var(--label); padding: 12px 16px; resize: none; outline: none; display: block; }
.group.locked { opacity: .5; cursor: pointer; }
.group.locked * { pointer-events: none; }
.row.locked { opacity: .5; cursor: pointer; }
.row.locked * { pointer-events: none; }
.action { cursor: pointer; color: var(--blue); gap: 10px; }
.action.destructive { color: var(--red); }
.actions-group { margin-top: 32px; }
button.row:active, a.row:active { background: var(--fill); }

/* icon tiles like Settings */
.tile { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.tile .i { width: 18px; height: 18px; }
.tile.gold { background: linear-gradient(135deg, #ffd60a, #ff9f0a); }
.tile.blue { background: var(--blue); } .tile.pink { background: var(--pink); } .tile.orange { background: var(--orange); }
.tile.purple { background: var(--purple); } .tile.green { background: var(--green); } .tile.indigo { background: #5856d6; }

.verified .i { width: 17px; height: 17px; color: var(--blue); stroke: none; vertical-align: -3px; }
.nav-title .verified .i, .like-info .verified .i { width: 15px; height: 15px; }

/* premium crown + read receipts + unread */
.pbadge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; vertical-align: -3px;
  background: linear-gradient(135deg, #ffd60a, #ff9f0a); color: #fff; box-shadow: 0 1px 3px rgba(255,159,10,.4); }
.pbadge .i { width: 12px; height: 12px; }
.card-info .pbadge { width: 24px; height: 24px; }
.card-info .pbadge .i { width: 14px; height: 14px; }
.nav-title .pbadge, .like-info .pbadge { width: 16px; height: 16px; }
.nav-title .pbadge .i, .like-info .pbadge .i { width: 10px; height: 10px; }
.receipt { align-self: flex-end; font-size: 11px; font-weight: 500; color: var(--secondary); margin: 2px 6px 6px; background: none; border: none; padding: 0; }
.receipt.read { color: var(--secondary); }
.upsell-link { cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.upsell-link .i { width: 10px; height: 10px; }
.convo { padding-left: 6px; }
.unread-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.convo.unread .unread-dot { background: var(--blue); }
.convo.unread .row-text small { color: var(--label); }
.convo + .convo::before { left: 82px !important; }

/* segmented control */
.segmented { margin-left: auto; display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.segmented input { display: none; }
.segmented span { display: block; padding: 5px 14px; font-size: 14px; font-weight: 500; border-radius: 7px; cursor: pointer; transition: background .2s; }
.segmented input:checked + span { background: var(--surface); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); }
@media (prefers-color-scheme: dark) { .segmented input:checked + span { background: #636366; } }

/* switch */
.switch { appearance: none; -webkit-appearance: none; margin-left: auto; width: 51px; height: 31px; border-radius: 16px; background: var(--fill);
  position: relative; cursor: pointer; transition: background .25s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }

.age-range { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.age-range input { width: 44px; flex: none !important; text-align: center !important; background: var(--fill) !important; border-radius: 8px; padding: 4px !important; color: var(--label) !important; }
.age-range em { font-style: normal; color: var(--secondary); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.chip input { display: none; }
.chip span { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); font-size: 15px; cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--accent); color: #fff; }

/* ---- buttons ---- */
.btn { font: inherit; font-weight: 600; font-size: 17px; border: none; border-radius: 14px; min-height: 50px; padding: 0 20px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); opacity: .85; }
.btn.primary { background: var(--accent); color: #fff; margin-top: 20px; }
.btn.plain { background: none; color: var(--accent); font-weight: 400; }
.btn.glass { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.btn.destructive { background: var(--red); color: #fff; }
.btn.compact { min-height: 36px; font-size: 15px; width: auto; margin-top: 0; border-radius: 999px; padding: 0 16px; }
.link { color: var(--accent); font-size: 17px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.link .i { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.pill .i { width: 14px; height: 14px; }
.pill.purple { background: color-mix(in srgb, var(--purple) 15%, transparent); color: var(--purple); }

/* ---- avatars ---- */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.avatar.lg { width: 76px; height: 76px; }
.avatar.xl { width: 112px; height: 112px; }
.avatar.ring { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--accent); }
.placeholder { display: grid; place-items: center; color: #fff; font-weight: 600;
  background: linear-gradient(160deg, hsl(var(--h) 75% 62%), hsl(calc(var(--h) + 30) 70% 42%)); }
.avatar.lg.placeholder { font-size: 30px; }
.avatar.xl.placeholder { font-size: 44px; }

/* ---- login ---- */
.login { padding: 72px 16px 32px; display: flex; flex-direction: column; flex: 1; }
.brand { text-align: center; margin-bottom: 40px; }
.logo svg { width: 88px; height: 88px; filter: drop-shadow(0 10px 24px rgba(255,45,85,.35)); }
.brand h1 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; margin-top: 16px; }
.brand p { color: var(--secondary); margin-top: 4px; }
.login .row-label { min-width: 0; font-weight: 500; }
.login .row input { text-align: left !important; color: var(--label) !important; }
.login .subhead { text-align: center; }
.otp { font: inherit; font-size: 32px; font-weight: 600; letter-spacing: .4em; text-align: center; border: none; border-radius: var(--radius);
  background: var(--surface); color: var(--label); padding: 14px; outline: none; font-variant-numeric: tabular-nums; }
.otp::placeholder { color: var(--tertiary); }
.login .btn.primary { margin-top: 20px; }
.login .footnote.center { margin-top: auto; padding-top: 32px; }

/* ---- profile ---- */
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 4px; }
.premium-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 16px 8px; }
.premium-row.is-premium { background: linear-gradient(135deg, color-mix(in srgb, var(--yellow) 22%, var(--surface)), var(--surface)); }

/* ---- discover ---- */
.deck { position: relative; flex: 1; margin: 4px 12px 0; min-height: 460px; }
.profile-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--surface-2);
  box-shadow: var(--shadow); touch-action: none; user-select: none; cursor: grab; }
.card-photo { width: 100%; height: 100%; object-fit: cover; pointer-events: none; border-radius: 0; font-size: 120px; font-weight: 700; }
.card-photo span { opacity: .9; }
.card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 20px 20px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.card-info h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.card-info .age { font-weight: 400; }
.card-info .verified .i { width: 22px; height: 22px; color: var(--blue); stroke: none; }
.card-info p { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-top: 6px; opacity: .95; }
.card-info p .i { width: 16px; height: 16px; }
.card-info .bio { display: block; margin-top: 10px; opacity: .9; line-height: 1.4; }
.stamp { position: absolute; top: 32px; padding: 4px 12px; border: 3px solid; border-radius: 10px; font-size: 28px; font-weight: 800; opacity: 0; letter-spacing: 1px; }
.like-stamp { left: 22px; color: var(--green); border-color: var(--green); transform: rotate(-12deg); }
.nope-stamp { right: 22px; color: var(--red); border-color: var(--red); transform: rotate(12deg); }
.actions { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 18px 0 8px; }
.round { width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer; background: var(--surface);
  box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .15s cubic-bezier(.2,.8,.2,1); }
.round .i { width: 30px; height: 30px; stroke-width: 2.5; }
.round.small { width: 48px; height: 48px; }
.round.small .i { width: 22px; height: 22px; }
.round:active { transform: scale(.9); }
.round.pass { color: var(--red); }
.round.like { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.round.rewind { color: var(--orange); }
.round.boost { color: var(--purple); }

.match-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; animation: fade .3s;
  background: rgba(0,0,0,.55); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4); }
.match-box { text-align: center; color: #fff; display: flex; flex-direction: column; gap: 12px; padding: 24px; width: min(360px, 92vw); }
.match-box .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--accent-2); }
.match-box h1 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.match-box .btn.primary { margin-top: 12px; }
.pair { display: flex; justify-content: center; margin: 16px 0 8px; }
.pair > .avatar { width: 108px; height: 108px; border: 3px solid #fff; font-size: 40px; }
.pair > *:first-child { transform: rotate(-6deg); }
.pair > *:last-child { margin-left: -20px; transform: rotate(6deg); }
@keyframes fade { from { opacity: 0; } }
.match-box { position: relative; z-index: 1; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti span { position: absolute; left: 50%; top: 42%; will-change: transform, opacity; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.confetti .i { width: 100%; height: 100%; }

/* ---- likes ---- */
.likes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.like-card { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.like-card .card-photo { font-size: 64px; }
.like-card .card-photo span { margin-bottom: 35%; }
.like-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 52px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: flex; flex-direction: column; }
.like-info small { opacity: .85; font-size: 13px; }
.like-actions { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; gap: 8px; }
.like-actions button { flex: 1; height: 36px; border: none; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.like-actions button.like { background: var(--accent); }
.like-actions .i { width: 18px; height: 18px; stroke-width: 2.5; }
.likes-grid.blurred .like-card .card-photo { filter: blur(18px); transform: scale(1.2); }
.likes-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 8px; padding: 24px; background: color-mix(in srgb, var(--bg) 35%, transparent); border-radius: 16px; }
.likes-lock h3 { font-size: 22px; font-weight: 700; }
.likes-lock p { color: var(--label); opacity: .8; font-size: 15px; max-width: 280px; }
.likes-lock .btn { width: auto; }

/* ---- chats ---- */
.new-matches { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; }
.new-matches a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.convo { min-height: 72px; padding: 10px 16px; }
.convo .row-text strong { font-weight: 600; }
.convo time { color: var(--secondary); font-size: 15px; align-self: flex-start; margin-top: 4px; }

/* ---- chat ---- */
#app:has(.messages) { height: 100dvh; }
.navbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 6px 8px; min-height: 52px;
  background: var(--bar); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: .5px solid var(--separator); }
.navbar.transparent { background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-btn { width: 40px; height: 40px; border: none; background: none; color: var(--accent); display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.nav-btn .i { width: 26px; height: 26px; }
.nav-title { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.nav-title strong { font-weight: 500; }
.messages { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.msg { max-width: 75%; padding: 8px 13px; border-radius: 19px; background: var(--surface-2); align-self: flex-start;
  word-wrap: break-word; white-space: pre-wrap; font-size: 17px; line-height: 1.3; }
.msg.mine { align-self: flex-end; background: var(--accent); color: #fff; }
.chat-empty { margin: auto; }
.safety-tip { font-size: 12px; color: var(--secondary); text-align: center; padding: 6px 24px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.safety-tip .i { width: 14px; height: 14px; }
.allowance { font-size: 13px; color: var(--secondary); text-align: center; padding: 2px 16px 6px; }
.allowance a { color: var(--accent); font-weight: 500; }
.allowance.out { margin: 4px 12px 8px; padding: 14px 16px; background: var(--surface); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 10px; align-items: center; font-size: 15px; color: var(--label); }
.allowance.out .i { color: var(--orange); width: 26px; height: 26px; }
.composer { display: flex; gap: 8px; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--bar); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: .5px solid var(--separator); }
.composer input { flex: 1; font: inherit; border: .5px solid var(--separator); border-radius: 20px; padding: 7px 14px; background: var(--surface); color: var(--label); outline: none; }
.send { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.send .i { width: 18px; height: 18px; stroke-width: 2.8; }

/* ---- sheets ---- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: var(--bg); width: 100%; max-width: 480px; border-radius: 14px 14px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px; animation: up .35s cubic-bezier(.2,.9,.3,1); max-height: 90dvh; overflow-y: auto; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--tertiary); margin: 0 auto 10px; }
.sheet .section { margin-top: 16px; }
.sheet .btn.primary { margin-top: 8px; }
@keyframes up { from { transform: translateY(100%); } }
.upsell { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 8px 0; }
.upsell h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.upsell p { color: var(--secondary); font-size: 15px; max-width: 300px; }
.upsell-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; margin-bottom: 6px;
  background: linear-gradient(135deg, #ffd60a, #ff9f0a); box-shadow: 0 8px 20px rgba(255,159,10,.35); }
.upsell-icon .i { width: 32px; height: 32px; }

/* ---- premium ---- */
.premium-hero { text-align: center; padding: 0 16px 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-icon { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #ffd60a, #ff9f0a 55%, var(--accent)); box-shadow: 0 12px 30px rgba(255,120,40,.35); margin-bottom: 8px; }
.hero-icon .i { width: 40px; height: 40px; stroke-width: 1.8; }
.premium-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.premium-hero p { color: var(--secondary); }
.premium-hero strong { color: var(--label); }
.feature { min-height: 60px; }
.feature .row-text small { white-space: normal; font-size: 13px; }
.feature .ok { color: var(--green); stroke-width: 2.5; }
.feature + .feature::before { left: 58px !important; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan input { display: none; }
.plan span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 6px 14px; border-radius: 14px;
  background: var(--surface); cursor: pointer; text-align: center; position: relative; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.plan b { font-weight: 500; font-size: 13px; color: var(--secondary); }
.plan strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan small { font-size: 11px; color: var(--secondary); font-weight: 600; letter-spacing: .04em; }
.plan em { position: absolute; top: -9px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.plan input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); }
.net { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.net:empty { display: none; }
.net.mtn { background: #ffcb05; color: #000; }
.net.airtel { background: #e40000; color: #fff; }
.demo-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 4px 0; padding: 12px; background: var(--surface); border-radius: var(--radius); }
.demo-note .i { width: 18px; height: 18px; color: var(--purple); }
.pay-state { text-align: center; background: var(--surface); border-radius: 20px; padding: 36px 24px; display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 8px; }
.pay-state h2 { font-size: 22px; font-weight: 700; }
.pay-state p { color: var(--secondary); font-size: 15px; }
.pay-state strong { color: var(--label); }
.state-icon .i { width: 60px; height: 60px; stroke-width: 1.6; }
.state-icon.success { color: var(--green); }
.state-icon.failed { color: var(--orange); }

/* ---- alert (iOS style) ---- */
.alert-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0,0,0,.4); animation: fade .15s; }
.alert { width: 270px; border-radius: 14px; overflow: hidden; text-align: center; animation: pop .2s cubic-bezier(.2,.9,.3,1.2);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); }
.alert-text { padding: 19px 16px 15px; display: flex; flex-direction: column; gap: 4px; }
.alert-text strong { font-size: 17px; font-weight: 600; }
.alert-text p { font-size: 13px; line-height: 1.35; }
.alert-actions { display: flex; border-top: .5px solid var(--separator); }
.alert-actions button { flex: 1; min-height: 44px; border: none; background: none; font-size: 17px; color: var(--blue); cursor: pointer; }
.alert-actions button + button { border-left: .5px solid var(--separator); }
.alert-actions button:active { background: var(--fill); }
.alert-actions .bold { font-weight: 600; }
.alert-actions .destructive { color: var(--red); font-weight: 600; }
@keyframes pop { from { transform: scale(1.15); opacity: 0; } }

/* ---- stories ---- */
.no-save, .no-save img, .no-save video { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.story-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.story-row::-webkit-scrollbar { display: none; }
.story-circle { background: none; border: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; cursor: pointer; width: 76px; flex-shrink: 0; }
.story-circle > span:last-child { max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-ring { position: relative; display: inline-grid; place-items: center; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #ffd60a, #ff9f0a, var(--accent), #bf5af2, #ffd60a); }
.story-ring > .avatar { box-shadow: 0 0 0 2.5px var(--bg); }
.story-ring.seen { background: var(--tertiary); }
.story-ring.none { background: none; }
.story-ring.sm { padding: 2px; }
.story-ring.sm > .avatar { box-shadow: 0 0 0 1.5px var(--bar); }
.story-circle .avatar.lg { width: 66px; height: 66px; font-size: 26px; }
.add-badge { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; border: 2.5px solid var(--bg); }
.add-badge .i { width: 13px; height: 13px; stroke-width: 3; }
.convo-avatar { flex-shrink: 0; cursor: pointer; }
.convo-avatar.story-ring { padding: 2px; }
.convo-avatar.story-ring.none { padding: 0; }
.nav-title { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

.match-profile { display: flex; flex-direction: column; gap: 6px; }
.mp-photo { width: 100%; aspect-ratio: 4/5; max-height: 52dvh; border-radius: 16px; overflow: hidden; background: var(--surface-2); margin-bottom: 8px; }
.mp-photo .card-photo { font-size: 96px; }
.match-profile h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.mp-meta { display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 15px; }
.mp-meta .i { width: 16px; height: 16px; }
.mp-bio { font-size: 15px; margin-top: 4px; }
.match-profile .btn.primary { margin-top: 12px; }

.story-preview { border-radius: 16px; overflow: hidden; background: #000; max-height: 58dvh; display: grid; place-items: center; }
.story-preview img, .story-preview video { width: 100%; max-height: 58dvh; object-fit: contain; display: block; }

.story-viewer { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; animation: fade .2s; }
.sv-bars { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.sv-bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.sv-bars i { display: block; height: 100%; width: 0; background: #fff; }
.sv-head { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 12px; right: 4px; display: flex; align-items: center; gap: 8px; z-index: 3;
  text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.sv-head strong { font-size: 15px; }
.sv-head time { font-size: 13px; opacity: .75; flex: 1; }
.sv-close, .sv-icon { width: 44px; height: 44px; border: none; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.sv-close .i { width: 26px; height: 26px; }
.sv-media { flex: 1; display: grid; place-items: center; overflow: hidden; }
.sv-media img, .sv-media video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sv-tap { position: absolute; top: 70px; bottom: 90px; z-index: 2; }
.sv-tap.left { left: 0; width: 33%; }
.sv-tap.right { right: 0; width: 67%; }
.sv-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.sv-pill { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.15); color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.sv-pill .i { width: 18px; height: 18px; }
.sv-icon .i { width: 28px; height: 28px; }
.sv-icon.like.on { color: var(--accent); }
.liked-icon { color: var(--accent); width: 18px; height: 18px; }

/* message long-press menu */
.msg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .15s; }
.msg.pressed { transform: scale(.96); }
.msg-preview { display: flex; flex-direction: column; padding: 8px 4px 12px; }
.msg-preview .msg { max-width: 85%; }

/* ---- verification ---- */
.hero-icon.blue { background: linear-gradient(135deg, #5ac8fa, var(--blue)); box-shadow: 0 12px 30px rgba(0,122,255,.3); }
.verified-inline { color: var(--blue); stroke: none; width: 22px; height: 22px; }
.state-icon.verified-big .i { color: var(--blue); stroke: none; width: 72px; height: 72px; }
.state-icon.pending { color: var(--orange); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--orange) 14%, var(--surface)); }
.notice .i { color: var(--orange); margin-top: 2px; }
.notice div { display: flex; flex-direction: column; gap: 2px; }
.notice small { color: var(--secondary); font-size: 15px; }
.pose-card { text-align: center; padding: 4px 16px 18px; }
.pose-card small { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; color: var(--blue); }
.pose-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.camera { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden;
  background: var(--surface-2); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--blue); }
.camera video, .camera img { width: 100%; height: 100%; object-fit: cover; }
.camera video { transform: scaleX(-1); }
.camera-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; text-align: center; color: var(--secondary); font-size: 15px; }
.camera-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.camera-actions .btn { flex: 1; margin-top: 0; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid var(--label); background: var(--label); cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--bg); transition: transform .1s; }
.shutter:active { transform: scale(.92); }
.shutter:disabled { opacity: .3; }
.verify .btn.plain .i { width: 20px; height: 20px; }

/* activity indicator */
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--fill); border-top-color: var(--secondary); animation: spin .8s linear infinite; }
.spinner.large { width: 44px; height: 44px; border-width: 3.5px; border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- tab bar + toast ---- */
#tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 10;
  display: flex; padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  background: var(--bar); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8); border-top: .5px solid var(--separator); }
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; color: #8e8e93; }
#tabs a.active { color: var(--accent); }
#tabs a.active .i { fill: currentColor; }
.tab-icon { position: relative; }
.tab-icon .i { width: 26px; height: 26px; stroke-width: 1.8; }
.dot { position: absolute; top: -3px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red);
  color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: rgba(30,30,30,.85); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; max-width: 90vw; text-align: center;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: fade .2s; }
