/* =========================================================================
   KABU DATE · App styles
   Kabarak University palette: maroon #660033, green #339933, gold.
   ========================================================================= */
:root {
  --brand: #660033; --brand-600: #520029; --brand-400: #8a1f51; --brand-50: #fbf0f4; --brand-100: #f3dbe6;
  --gold: #f2b705; --gold-600: #c99700; --gold-50: #fff6d6;
  --green: #339933; --green-600: #287a28; --green-50: #e9f5e9;
  --ink: #1b1418; --text: #2a2226; --muted: #75696f; --faint: #a69ca1;
  --line: #ece5e8; --line-2: #e0d7db; --bg: #f6f3f4; --bg-2: #efe9ec; --card: #ffffff;
  --danger: #c0262d;
  --r-sm: 12px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(40, 10, 25, .06), 0 1px 1px rgba(40, 10, 25, .04);
  --sh-2: 0 4px 14px rgba(40, 10, 25, .07), 0 1px 3px rgba(40, 10, 25, .05);
  --sh-3: 0 20px 50px rgba(40, 10, 25, .18);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 64px; --top-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  /* aliases kept for the admin panel's inline styles */
  --paper: var(--bg); --paper-2: var(--bg-2); --tomato: var(--brand); --forest: var(--green); --butter: var(--gold-50); --plum: var(--ink); --chip: var(--bg-2); --serif: var(--font); --sans: var(--font);
  font-family: var(--font); color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px); font-size: 15px; line-height: 1.5; overscroll-behavior-y: none; }
body.no-nav { padding-bottom: 24px; }
body.in-chat { padding-bottom: 0; overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
img { max-width: 100%; }
svg.i { flex: none; }
.hidden { display: none !important; }
.wrap { max-width: 600px; margin: 0 auto; padding: 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 24px 4px 10px; }
.lead { font-size: 16px; color: var(--muted); margin: 14px 0 18px; }
.lead b { color: var(--ink); }
.linkbtn { border: 0; background: none; color: var(--brand); font-weight: 600; padding: 4px 0; font-size: 14px; }
.linkbtn:disabled { color: var(--faint); cursor: default; }

/* motion */
.page { animation: pageIn .26s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pop-in { animation: popIn .3s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.boot { min-height: 100dvh; display: flex; align-items: center; justify-content: center; }
.boot img { width: 68px; height: 68px; border-radius: 18px; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.92); opacity: .7; } }
.skel { background: linear-gradient(90deg, var(--bg-2) 0%, #f7f3f5 40%, var(--bg-2) 80%) !important; background-size: 300% 100% !important; animation: shimmer 1.3s linear infinite; border-color: transparent !important; color: transparent !important; box-shadow: none !important; }
.skel.line { height: 12px; border-radius: 6px; margin: 10px 0; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); padding-top: var(--safe-t); }
.top .wrap { display: flex; align-items: center; gap: 8px; padding: 8px 16px; min-height: var(--top-h); }
.top h1 { font-size: 22px; margin: 0; flex: 1; font-weight: 800; }
.top button, .top a.btn-ghost { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: background .15s, transform .12s, border-color .15s; }
.top button:hover, .top a.btn-ghost:hover { background: var(--bg); border-color: var(--faint); }
.top button:active, .top a.btn-ghost:active { transform: scale(.96); }
.top .icon-only { padding: 0; width: 40px; height: 40px; justify-content: center; border-color: transparent; background: transparent; }
.top .icon-only:hover { background: var(--bg-2); border-color: transparent; }
.top .count { background: var(--brand); color: #fff; font-size: 11px; border-radius: 999px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; flex: none; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo i { font-style: normal; color: var(--gold); }
.logo.big { font-size: 24px; }
.logo.big img { width: 38px; height: 38px; border-radius: 11px; }
.top h1 .logo { font-size: 21px; }

/* ---------- bottom nav ---------- */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); height: calc(var(--nav-h) + var(--safe-b)); }
.nav a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--faint); position: relative; border-radius: 14px; transition: color .2s; }
.nav a svg { transition: transform .25s var(--ease); }
.nav a:active svg { transform: scale(.85); }
.nav a.active { color: var(--brand); }
.nav a.active svg { stroke-width: 2.3; }
.badge { position: absolute; top: 2px; left: calc(50% + 5px); background: var(--brand); color: #fff; border-radius: 10px; font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff; animation: popIn .3s var(--ease); }

/* ---------- forms ---------- */
label.f { display: block; margin: 18px 0 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
label.f.split a { font-weight: 600; font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; outline: none; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(102, 0, 51, .1); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-top: 18px; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--faint); border-radius: 50%; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.row .to { flex: none; color: var(--muted); font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hint svg { vertical-align: -2px; }
.section { background: var(--card); border-radius: var(--r-lg); padding: 6px 18px 20px; margin: 12px 0; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.section h3 { margin: 16px 0 2px; font-size: 17px; font-weight: 800; }
.intro { background: var(--brand-50); color: var(--brand-600); border-radius: var(--r); padding: 12px 16px; font-size: 14px; }
.intro b { color: var(--brand); }
.savebar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); padding: 10px 0 4px; display: flex; gap: 10px; z-index: 5; }
body.no-nav .savebar { bottom: calc(var(--safe-b) + 12px); }
.savebar.two > :first-child { flex: 0 0 auto; }
.savebar.two > :last-child { flex: 1; }
.switch-row { display: flex; align-items: center; gap: 14px; padding-top: 12px; }
.switch-row > div { flex: 1; }
.switch-row b { display: block; color: var(--ink); font-size: 15px; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 15px; background: var(--card); color: var(--ink); transition: transform .12s var(--ease), box-shadow .15s, background .15s, border-color .15s; user-select: none; }
.btn:hover { background: var(--bg); border-color: var(--faint); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(102, 0, 51, .25); }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.block { width: 100%; }
.btn.wide { flex: 1; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.danger { color: var(--danger); border-color: #f1c9cb; background: #fff; }
.btn.solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; transform: none !important; box-shadow: none; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* chips, tags, toggles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; user-select: none; transition: background .15s, color .15s, border-color .15s, transform .12s; }
.chip:hover { border-color: var(--brand-400); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-2); color: var(--text); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; }
.tag.goal { background: var(--brand-50); color: var(--brand); }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 4px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.switch { width: 48px; height: 28px; border-radius: 999px; border: 0; background: var(--line-2); position: relative; padding: 0; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch.on { background: var(--green); }
.switch.on i { transform: translateX(20px); }

/* ---------- auth ---------- */
.auth-head { max-width: 460px; margin: 0 auto; padding: calc(40px + var(--safe-t)) 20px 4px; }
.auth-head h1 { font-size: 32px; font-weight: 800; margin: 36px 0 8px; }
.auth-head p { color: var(--muted); margin: 0; font-size: 16px; }
.card-auth { max-width: 460px; }
.card-auth .section { padding: 6px 22px 22px; }
.err { color: var(--danger); font-size: 14px; margin-top: 10px; min-height: 18px; font-weight: 500; }
.sent-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 20px 0 6px; }
.code { display: flex; gap: 8px; justify-content: space-between; }
.code-box { width: 100% !important; max-width: 52px; height: 58px; text-align: center; font-size: 24px !important; font-weight: 800; padding: 0 !important; border-radius: 14px !important; }

/* ---------- prompts ---------- */
.prompt { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); border-radius: var(--r); padding: 12px 10px 12px 14px; margin-bottom: 14px; animation: popIn .35s var(--ease); transition: opacity .25s, transform .25s; }
.prompt.strong { background: var(--brand-50); border-color: var(--brand-100); }
.prompt.out { opacity: 0; transform: translateY(-6px); }
.prompt-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.prompt-t { flex: 1; min-width: 0; }
.prompt-t b { display: block; font-size: 15px; color: var(--ink); }
.prompt-t span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.prompt .x { border: 0; background: none; color: var(--faint); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.likers { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: var(--gold-50); color: #7a5c00; border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; }
.likers svg { color: var(--gold-600); fill: var(--gold); }

/* ---------- profile card ---------- */
.pcard { background: var(--card); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.photo { position: relative; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--brand-400), var(--brand) 55%, #3d001f); display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; }
.photo .ini { font-size: 120px; font-weight: 800; color: rgba(255, 255, 255, .22); line-height: 1; margin-top: -50px; letter-spacing: -0.05em; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; -webkit-user-drag: none; }
.photo .dots { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 1; }
.photo .dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.photo .dots i.on { background: #fff; }
.photo .nav-l, .photo .nav-r { position: absolute; top: 0; bottom: 30%; width: 40%; z-index: 1; }
.photo .nav-l { left: 0; } .photo .nav-r { right: 0; }
.photo .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 20px 18px; background: linear-gradient(transparent, rgba(12, 4, 8, .82)); color: #fff; font-size: 14px; font-weight: 500; }
.photo .over h2 { margin: 0 0 3px; font-size: 30px; font-weight: 800; color: #fff; }
.photo .over h2 span { font-weight: 500; }
.score { position: absolute; top: 22px; right: 14px; background: rgba(255, 255, 255, .95); color: var(--brand); font-weight: 800; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; z-index: 2; box-shadow: var(--sh-1); }
.liked-you { position: absolute; top: 22px; left: 14px; display: flex; align-items: center; gap: 5px; background: var(--gold); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; z-index: 2; }
.liked-you svg { fill: var(--ink); }
.stamp { position: absolute; top: 32%; z-index: 3; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 26px; letter-spacing: .06em; padding: 6px 14px; border-radius: 12px; border: 3px solid; opacity: 0; pointer-events: none; background: rgba(255, 255, 255, .92); }
.stamp.like { left: 18px; color: var(--green); border-color: var(--green); transform: rotate(-12deg); }
.stamp.nope { right: 18px; color: var(--danger); border-color: var(--danger); transform: rotate(12deg); }
.pbody { padding: 16px 20px 22px; }
.bio { font-size: 16px; line-height: 1.55; margin: 14px 0 4px; color: var(--text); white-space: pre-wrap; word-wrap: break-word; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 14.5px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.fact { display: flex; gap: 10px; align-items: flex-start; }
.fact svg { color: var(--brand); margin-top: 2px; }
.fact span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.reasons { background: var(--green-50); border-radius: var(--r); padding: 12px 14px; font-size: 14px; margin-top: 14px; color: #1f5a1f; }
.reasons b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-600); margin-bottom: 4px; }
.reasons div { display: flex; gap: 7px; align-items: flex-start; padding: 2px 0; }
.reasons svg { color: var(--green); margin-top: 2px; }

/* swipe deck */
.deck { position: relative; padding-bottom: 8px; }
.deck .under { position: absolute; inset: 0 0 auto 0; transform: scale(.95) translateY(14px); opacity: .6; pointer-events: none; max-height: 100%; overflow: hidden; border-radius: var(--r-xl); }
.deck .under .pcard { box-shadow: none; }
.pcard.swipe { position: relative; z-index: 2; touch-action: pan-y; transition: transform .32s var(--ease), opacity .3s; will-change: transform; cursor: grab; }
.pcard.swipe.dragging { transition: none; cursor: grabbing; }
.pcard.swipe.flying { transition: transform .3s cubic-bezier(.4, 0, .8, .6), opacity .3s; }
.deck-actions { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 6; display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 16px; pointer-events: none; }
.deck-actions > * { pointer-events: auto; }
.deck-actions::before { content: ""; position: absolute; left: -16px; right: -16px; bottom: -16px; height: 120px; z-index: -1; background: linear-gradient(rgba(246, 243, 244, 0), rgba(246, 243, 244, .95) 60%); pointer-events: none; }
.deck-count { flex: none !important; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; border-radius: 999px; padding: 4px 11px; box-shadow: var(--sh-1); }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; color: var(--danger); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--sh-2); transition: transform .15s var(--ease), box-shadow .15s; flex: none; }
.round:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(40, 10, 25, .14); }
.round:active { transform: scale(.92); }
.round.like { background: linear-gradient(140deg, var(--brand-400), var(--brand)); color: #fff; width: 74px; height: 74px; box-shadow: 0 10px 26px rgba(102, 0, 51, .35); }
.round.like svg { fill: #fff; }
.round.done { background: var(--green); }

/* ---------- lists ---------- */
.item { display: flex; gap: 12px; align-items: center; background: var(--card); padding: 12px 14px; border-radius: var(--r); margin-bottom: 8px; border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--text); transition: transform .12s, background .15s; }
.item:active { transform: scale(.985); }
a.item:hover { background: #fffbfc; }
.item .meta { flex: 1; min-width: 0; }
.item .meta b { display: block; font-size: 16px; color: var(--ink); }
.item .meta small { color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.item .side small { color: var(--faint); font-size: 12px; }
.chat-row.unread .meta b { font-weight: 800; }
.chat-row.unread .meta small { color: var(--ink); font-weight: 600; }
.chat-row.unread .side small { color: var(--brand); font-weight: 700; }
.pill-count { background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(150deg, var(--brand-400), var(--brand)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 38px; height: 38px; font-size: 14px; }
.av.lg { width: 68px; height: 68px; font-size: 24px; }
.av.xl { width: 92px; height: 92px; font-size: 34px; }
.av-wrap { position: relative; flex: none; }
.av-wrap .dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--green); border: 2.5px solid #fff; transform: scale(0); transition: transform .25s var(--ease); }
.av-wrap .dot.on { transform: scale(1); }
.new-matches { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.new-matches::-webkit-scrollbar { display: none; }
.nm { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; width: 76px; flex: none; text-align: center; color: var(--ink); }
.nm .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 15px; }
.empty-ic { width: 68px; height: 68px; border-radius: 50%; background: var(--brand-50); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--brand); }
.empty p { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ---------- timeline ---------- */
.compose-bar { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); border-radius: 999px; padding: 7px 18px 7px 7px; text-align: left; color: var(--faint); font-size: 15px; transition: transform .12s; }
.compose-bar span { flex: 1; }
.compose-bar svg { color: var(--brand); }
.compose-bar:active { transform: scale(.985); }
.scroller { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 6px; padding: 2px 16px 8px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--text); transition: background .15s, color .15s; }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.post { background: var(--card); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.post .head { display: flex; gap: 10px; align-items: center; }
.post .head .who { flex: 1; min-width: 0; color: var(--ink); }
.post .head b { font-weight: 700; }
.post .head small { color: var(--muted); display: block; font-size: 12.5px; }
.post p { margin: 12px 0 10px; white-space: pre-wrap; word-wrap: break-word; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.icon-btn { border: 0; background: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.linkish { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- chat ---------- */
.chat-top .wrap { gap: 4px; }
.chat-who { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; color: var(--ink); }
.chat-who b { font-size: 16.5px; display: block; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--top-h) - 1px - var(--safe-t)); background: var(--bg); }
.msgs { flex: 1; overflow-y: auto; padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.day { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; border-radius: 999px; padding: 4px 12px; margin: 14px 0 8px; box-shadow: var(--sh-1); }
.msg { max-width: 78%; padding: 8px 12px 6px; border-radius: 20px 20px 20px 6px; background: #fff; color: var(--ink); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; position: relative; margin-top: 6px; box-shadow: var(--sh-1); transition: opacity .2s; }
.msg.cont { margin-top: 2px; border-top-left-radius: 8px; }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; border-radius: 20px 20px 6px 20px; box-shadow: none; }
.msg.mine.cont { border-top-right-radius: 8px; border-top-left-radius: 20px; }
.msg .txt { display: inline; }
.msg.img-msg { padding: 4px; }
.msg.img-msg img { display: block; max-width: 100%; max-height: 340px; border-radius: 16px; cursor: zoom-in; }
.msg.img-msg .txt { display: block; padding: 6px 8px 0; }
.msg.pending { opacity: .7; }
.msg.failed { outline: 2px solid var(--danger); }
.msg .fail { display: block; clear: both; color: #ffc9c9; font-size: 11px; }
.msg.sys { align-self: center; background: transparent; box-shadow: none; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 5px; margin: 8px 0; }
.msg.del { font-style: italic; opacity: .65; }
.msg > .meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -2px 10px; font-size: 10.5px; line-height: 1; }
.msg > .meta time { opacity: .65; }
.tk { display: inline-flex; }
.tk.pending, .tk.sent, .tk.delivered { opacity: .7; }
.tk.read { color: #7fd4ff; opacity: 1; }
.tk.failed { color: #ffb3b3; opacity: 1; }
.chat-row .tk { vertical-align: -3px; margin-right: 2px; color: var(--faint); }
.chat-row .tk.read { color: #1a8fd6; }
.msg.img-msg > .meta { position: absolute; right: 10px; bottom: 8px; background: rgba(0, 0, 0, .5); color: #fff; border-radius: 999px; padding: 3px 7px; margin: 0; float: none; }
.msg.img-msg:has(.txt) > .meta { position: static; background: none; color: inherit; float: right; padding: 0; margin: 6px 6px 2px 10px; }
.msg.jumbo { background: transparent !important; color: var(--ink) !important; box-shadow: none; padding: 0 2px; }
.msg.jumbo .txt { font-size: 46px; line-height: 1.15; }
.msg.jumbo > .meta { float: none; display: flex; justify-content: flex-end; background: #fff; border-radius: 999px; padding: 3px 7px; width: max-content; margin-left: auto; color: var(--muted); }
.msg.jumbo .tk.read { color: #1a8fd6; }
.typing { align-self: flex-start; display: flex; gap: 4px; background: #fff; border-radius: 20px 20px 20px 6px; padding: 13px 15px; margin-top: 6px; box-shadow: var(--sh-1); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-hello { margin: auto; text-align: center; padding: 30px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chat-hello p { font-size: 19px; font-weight: 800; color: var(--ink); margin: 14px 0 0; }
.hello-picks { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.seen { display: none; }

/* composer */
.composer { padding: 8px 10px calc(8px + var(--safe-b)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.chat:has(.emo-panel) .composer { padding-bottom: 8px; }
.composer-row, .rec-row { display: flex; align-items: flex-end; gap: 8px; }
.pill-input { flex: 1; display: flex; align-items: flex-end; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 2px 4px; min-width: 0; transition: border-color .15s, background .15s; }
.pill-input:focus-within { border-color: var(--brand-400); background: #fff; }
.pill-input textarea { flex: 1; min-height: 40px; max-height: 120px; resize: none; border: 0; box-shadow: none !important; background: transparent; padding: 9px 4px; line-height: 1.4; border-radius: 0; min-width: 0; }
.cbtn-in { width: 40px; height: 40px; flex: none; border: 0; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; transition: color .15s, background .15s; }
.cbtn-in:hover { color: var(--brand); background: var(--brand-50); }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--ink); flex: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .12s, opacity .15s, background .15s; }
.iconbtn:active { transform: scale(.9); }
.iconbtn.send { background: var(--brand); color: #fff; }
.composer .iconbtn.send { width: 46px; height: 46px; }
.iconbtn.send:disabled { opacity: .4; }
.iconbtn.ghost { background: transparent; color: var(--danger); }
.rec-row { align-items: center; }
.rec-mid { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--brand-50); border-radius: 24px; padding: 0 16px; height: 46px; color: var(--brand); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: recPulse 1s ease-in-out infinite; }
@keyframes recPulse { 50% { opacity: .25; } }
.rec-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-label { color: var(--muted); font-size: 13.5px; }
.once-toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; transition: background .15s, color .15s; }
.once-toggle.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* emoji keyboard */
.emo-panel { background: #fff; border-top: 1px solid var(--line); height: 290px; display: flex; flex-direction: column; padding-bottom: var(--safe-b); animation: slideUp .22s var(--ease); }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }
.emo-tabs { display: flex; justify-content: space-around; border-bottom: 1px solid var(--line); padding: 4px 6px; flex: none; }
.emo-tabs button { border: 0; background: none; color: var(--faint); width: 40px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.emo-tabs button.on { color: var(--brand); background: var(--brand-50); }
.emo-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); padding: 4px 8px 10px; align-content: start; }
.emo-label { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 4px 4px; }
.emo { border: 0; background: none; font-size: 27px; line-height: 1; height: 44px; border-radius: 10px; cursor: pointer; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transition: transform .1s, background .1s; }
.emo:hover { background: var(--bg); }
.emo:active { transform: scale(1.25); }

/* voice notes */
.msg.audio-msg { min-width: 240px; padding-bottom: 6px; }
.vp { display: flex; align-items: center; gap: 10px; }
.vp-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.msg.mine .vp-btn { background: #fff; color: var(--brand); }
.vp-mid { flex: 1; min-width: 0; }
.vp-wave { display: flex; align-items: center; gap: 2px; height: 28px; cursor: pointer; }
.vp-wave i { flex: 1; border-radius: 2px; background: currentColor; opacity: .28; transition: opacity .15s; min-width: 2px; }
.vp-wave i.on { opacity: 1; }
.msg:not(.mine) .vp-wave i.on { color: var(--brand); }
.vp-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; margin-top: 2px; opacity: .8; }
.vp-time { font-variant-numeric: tabular-nums; }
.vp-speed { border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; font-size: 10.5px; font-weight: 700; padding: 0 6px; height: 18px; opacity: .8; }
.sheet .vp { color: var(--ink); padding: 14px; background: var(--bg); border-radius: var(--r); }

/* view once */
.once-row { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; padding: 4px 2px; font-weight: 700; text-align: left; }
.once-row small { font-weight: 500; opacity: .65; font-size: 12px; }
.once-row svg { color: var(--brand); }
.msg.mine .once-row svg { color: var(--gold); }
.once-row.done { opacity: .75; font-weight: 500; }
.once-row.done svg { color: inherit; }
.once-view .once-top { position: absolute; top: calc(18px + var(--safe-t)); left: 18px; color: #fff; display: flex; gap: 8px; align-items: center; font-weight: 700; }
.once-view img { -webkit-user-select: none; user-select: none; pointer-events: none; }
.photo-preview { background: var(--ink); border-radius: var(--r); overflow: hidden; display: flex; align-items: center; justify-content: center; max-height: 55dvh; margin-top: 6px; }
.photo-preview img { max-width: 100%; max-height: 55dvh; display: block; }
.preview-bar { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.preview-bar input { border-radius: 999px; }

/* gallery editor */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.gallery .g { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--bg-2); animation: popIn .3s var(--ease); }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g.uploading img { opacity: .5; }
.gallery .g.uploading .spin { position: absolute; left: calc(50% - 10px); top: calc(50% - 10px); width: 20px; height: 20px; color: #fff; }
.gallery .g > button[aria-label] { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 50%; width: 28px; height: 28px; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; }
.main-tag, .make-main { position: absolute; left: 6px; bottom: 6px; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 3px 9px; border: 0; }
.main-tag { background: var(--gold); color: var(--ink); }
.make-main { background: rgba(0, 0, 0, .55); color: #fff; }
.gallery label.add { display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; aspect-ratio: 3/4; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--muted); font-size: 13px; font-weight: 700; background: var(--bg); transition: border-color .15s, color .15s; cursor: pointer; }
.gallery label.add:hover { border-color: var(--brand); color: var(--brand); }

.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 14px; margin: 14px 0; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--sh-1); }
.notice.help { background: var(--green-50); border-color: #cfe8cf; color: #1f5a1f; }
.notice svg { margin-top: 2px; color: var(--green); }

/* ---------- me ---------- */
.me-head { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: var(--r-lg); padding: 18px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.me-head > div:not(.av) { flex: 1; min-width: 0; }
.me-head h2 { margin: 0; font-size: 22px; }
.me-head h2 span { font-weight: 500; }
.meter { height: 7px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-400)); border-radius: 999px; transition: width .6s var(--ease); }
.set-group { background: var(--card); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.set-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); transition: background .15s; }
.set-row:last-child { border-bottom: 0; }
button.set-row:hover, a.set-row:hover { background: #fcfafb; }
.set-row.danger { color: var(--danger); }
.set-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.set-row.danger .set-ic { background: #fdecec; color: var(--danger); }
.set-label { flex: 1; min-width: 0; }
.set-label small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.set-row > svg { color: var(--faint); }

/* ---------- sheets & dialogs ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(20, 8, 14, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .22s; }
.sheet-wrap.in { background: rgba(20, 8, 14, .5); }
.sheet { width: 100%; max-width: 600px; max-height: 90dvh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 8px 20px calc(22px + var(--safe-b)); transform: translateY(100%); transition: transform .32s var(--ease); box-shadow: var(--sh-3); }
.sheet-wrap.in .sheet { transform: none; }
.sheet h3 { font-size: 21px; margin: 10px 0 6px; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 8px; }
.sheet.tall { background: var(--bg); }
.sheet-wrap.center { align-items: center; padding: 20px; }
.sheet-wrap.center .sheet { border-radius: 26px; transform: scale(.94); opacity: 0; transition: transform .28s var(--ease), opacity .2s; max-width: 420px; padding-bottom: 22px; }
.sheet-wrap.center.in .sheet { transform: none; opacity: 1; }
.sheet-title { font-weight: 700; text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.sheet-head b { color: var(--ink); }
.sheet-head small { display: block; color: var(--muted); font-size: 12.5px; }
.actions-list { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--r); overflow: hidden; }
.act { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-size: 16px; font-weight: 600; color: var(--ink); }
.act:last-child { border-bottom: 0; }
.act:hover { background: var(--bg-2); }
.act.danger { color: var(--danger); }
.terms p { margin: 10px 0; font-size: 14.5px; color: var(--text); }
.terms b { color: var(--ink); }
.terms { margin-bottom: 14px; }
.match-sheet { background: linear-gradient(170deg, var(--brand-400), var(--brand) 50%, #3d001f) !important; color: #fff; }
.match-box { text-align: center; }
.match-box h2 { font-size: 34px; font-weight: 800; margin: 18px 0 6px; color: #fff; }
.match-box p { color: rgba(255, 255, 255, .8); margin: 0 0 20px; }
.match-box .btn.primary { background: #fff; color: var(--brand); border-color: #fff; }
.match-box .btn.ghost { color: #fff; }
.match-pair { display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.match-pair .av { box-shadow: 0 0 0 3px #fff; }
.match-pair .av:first-child { animation: slideL .5s var(--ease) both; margin-right: -12px; }
.match-pair .av:last-child { animation: slideR .5s var(--ease) both; margin-left: -12px; }
@keyframes slideL { from { transform: translateX(-40px) rotate(-14deg); opacity: 0; } to { transform: rotate(-6deg); } }
@keyframes slideR { from { transform: translateX(40px) rotate(14deg); opacity: 0; } to { transform: rotate(6deg); } }
.match-heart { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; animation: beat .9s .35s var(--ease) both; box-shadow: 0 0 0 3px #fff; }
.match-heart svg { fill: var(--ink); }
@keyframes beat { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
.install-hero { display: flex; align-items: center; gap: 14px; margin: 8px 0 16px; }
.install-hero img { width: 60px; height: 60px; border-radius: 15px; }
.install-hero b { display: block; font-size: 20px; color: var(--ink); }
.install-hero small { color: var(--muted); }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.step svg { vertical-align: -3px; }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }

/* in-app notification banner */
.banner { position: fixed; left: 12px; right: 12px; top: calc(10px + var(--safe-t)); z-index: 90; max-width: 520px; margin: 0 auto; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: var(--sh-3); transform: translateY(-140%); transition: transform .35s var(--ease); color: var(--ink); }
.banner.in { transform: none; }
.banner b { display: block; font-size: 15px; }
.banner span { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
.banner-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.banner-ic svg { fill: #fff; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10, 4, 7, 0); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox.in { background: rgba(10, 4, 7, .95); }
.lightbox img { max-width: 100%; max-height: 100%; transform: scale(.94); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
.lightbox.in img { transform: none; opacity: 1; }
.lb-x { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; }

/* admin modal */
.modal { position: fixed; inset: 0; background: rgba(20, 8, 14, .5); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .box { background: #fff; border-radius: 22px; padding: 22px; width: 100%; max-width: 440px; text-align: center; box-shadow: var(--sh-3); }

/* ---------- calls ---------- */
.call { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 30%, #4a0a2c, #1a0710 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; opacity: 0; transition: opacity .2s; }
.call.in { opacity: 1; }
.call video.remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.call.is-video.connected video.remote { opacity: 1; }
.call.is-video.connected .info { position: absolute; top: calc(20px + var(--safe-t)); }
.call.is-video.connected .info .pulse { display: none; }
.call video.local { position: absolute; right: 14px; top: calc(14px + var(--safe-t)); width: 110px; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .8); z-index: 2; transform: scaleX(-1); }
.call .info { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.call .info h2 { font-size: 30px; margin: 20px 0 4px; color: #fff; }
.call-status { color: rgba(255, 255, 255, .7); margin: 0; font-variant-numeric: tabular-nums; }
.pulse { position: relative; border-radius: 50%; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: ring 2s ease-out infinite; }
.pulse::after { animation-delay: 1s; }
.call.connected .pulse::before, .call.connected .pulse::after { animation: none; opacity: 0; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.call .av.xl { width: 120px; height: 120px; font-size: 46px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.call .ctrls { position: absolute; bottom: calc(44px + var(--safe-b)); display: flex; gap: 26px; z-index: 2; align-items: flex-start; }
.cwrap { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.cbtn { width: 68px; height: 68px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .15); color: #fff; transition: transform .12s, background .15s; }
.cbtn:active { transform: scale(.9); }
.cbtn.off { background: #fff; color: var(--ink); }
.cbtn.hang { background: var(--danger); }
.cbtn.hang svg { transform: rotate(135deg); }
.cbtn.accept { background: var(--green); animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; z-index: 110; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); transition: transform .3s var(--ease), opacity .25s; box-shadow: var(--sh-3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.in-chat .toast, body.no-nav .toast { bottom: calc(90px + var(--safe-b)); }

/* ---------- larger screens ---------- */
@media (min-width: 760px) {
  .wrap { padding: 22px; }
  .card-auth .section { padding: 8px 28px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Sign-up: what are you here for */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); transition: border-color .15s, background .15s; }
.mode-opt b { display: block; font-size: 15px; }
.mode-opt small { display: block; color: var(--muted, #7a6b72); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.mode-opt svg { color: var(--brand-600); }
.mode-opt.on { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(102, 0, 51, .08); }
