:root {
  --bg: #E9F0FA;
  --bg2: #F3F7FD;
  --sd: rgba(151, 170, 204, .55);
  --sl: rgba(255, 255, 255, .95);
  --navy: #0B1F4B;
  --navy2: #173A7A;
  --blue: #3B8BEB;
  --sky: #8CC2FA;
  --sky-soft: #D6E7FB;
  --text: #13254A;
  --muted: #6A7C9C;
  --danger: #E5484D;
  --ok: #1EA672;
  --gold1: #FFE9A3;
  --gold2: #F5C542;
  --gold3: #C9971A;
  --gold-grad: linear-gradient(135deg, #FFF1BD 0%, #F7CF55 35%, #D9A21E 65%, #FFE08A 100%);
  --navy-grad: linear-gradient(145deg, #1B4592 0%, #0B1F4B 100%);
  --blue-grad: linear-gradient(145deg, #5AA6F8 0%, #2A6FD6 100%);
  --r: 22px;
  --neu: 7px 7px 16px var(--sd), -7px -7px 16px var(--sl);
  --neu-sm: 4px 4px 9px var(--sd), -4px -4px 9px var(--sl);
  --neu-in: inset 4px 4px 9px var(--sd), inset -4px -4px 9px var(--sl);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ink: #0B1F4B;
  --line: rgba(151,170,204,.25);
}
:root[data-theme="dark"] {
  --bg: #111B31;
  --bg2: #1B2844;
  --sd: rgba(0, 0, 0, .55);
  --sl: rgba(120, 150, 210, .07);
  --navy: #E4ECFA;
  --text: #D5E0F2;
  --muted: #8797B5;
  --sky-soft: #1E3056;
  --line: rgba(120,150,210,.12);
  --navy-grad: linear-gradient(145deg, #1F4A9C 0%, #0A1733 100%);
}
:root[data-theme="dark"] .avatar .fe { background: var(--bg2); }
:root[data-theme="dark"] .toggle::after { background: #3A4C70; }
:root[data-theme="dark"] .toggle.on::after { background: #fff; }
html, body { transition: background .25s, color .25s; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif; font-size: 15px; }
body { overscroll-behavior: none; }
#app { max-width: 520px; margin: 0 auto; min-height: 100%; position: relative; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
.hidden { display: none !important; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--navy-grad); color: #fff; }
.splash-logo { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.splash-name { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.dark { border-color: var(--sky-soft); border-top-color: var(--blue); margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- layout ---------- */
.screen { padding: 0 18px calc(110px + var(--safe-b)); animation: fade .22s ease; }
.screen.no-nav { padding-bottom: 40px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.topbar h1 { font-size: 22px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub { color: var(--muted); font-size: 13px; font-weight: 500; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 24px 2px 12px; font-weight: 800; font-size: 16px; }
.section-title a { font-size: 13px; font-weight: 700; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- soft ui primitives ---------- */
.neu { background: var(--bg); border-radius: var(--r); box-shadow: var(--neu); }
.neu-sm { background: var(--bg); border-radius: 16px; box-shadow: var(--neu-sm); }
.neu-in { background: var(--bg); border-radius: 16px; box-shadow: var(--neu-in); }
.card { padding: 18px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); box-shadow: var(--neu-sm); color: var(--navy); flex: none; transition: box-shadow .15s; }
.icon-btn:active, .icon-btn.on { box-shadow: var(--neu-in); color: var(--blue); }
.icon-btn.gold { background: var(--gold-grad); color: #5B3F00; box-shadow: 0 6px 16px rgba(201, 151, 26, .35); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 700; font-size: 15.5px; transition: transform .1s, box-shadow .15s; width: 100%; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy-grad); color: #fff; box-shadow: 0 10px 22px rgba(11, 31, 75, .35), -4px -4px 10px var(--sl); }
.btn-blue { background: var(--blue-grad); color: #fff; box-shadow: 0 10px 22px rgba(42, 111, 214, .35), -4px -4px 10px var(--sl); }
.btn-soft { background: var(--bg); color: var(--navy); box-shadow: var(--neu-sm); }
.btn-soft:active { box-shadow: var(--neu-in); }
.btn-danger { background: var(--bg); color: var(--danger); box-shadow: var(--neu-sm); }
.btn-gold { background: var(--gold-grad); color: #4A3300; box-shadow: 0 10px 24px rgba(201, 151, 26, .4), -4px -4px 10px var(--sl); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 13px; width: auto; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- forms ---------- */
.field-group { margin-bottom: 16px; }
.label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 4px 8px; text-transform: uppercase; letter-spacing: .04em; }
.input { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 52px; border-radius: 16px; background: var(--bg); box-shadow: var(--neu-in); color: var(--muted); }
.input input, .input textarea, .input select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 0; font-size: 15.5px; }
.input textarea { min-height: 96px; resize: vertical; }
.input:focus-within { color: var(--blue); box-shadow: var(--neu-in), 0 0 0 2px rgba(59, 139, 235, .35); }
.picker { cursor: pointer; justify-content: space-between; color: var(--text); }
.toggle { position: relative; width: 54px; height: 30px; border-radius: 20px; background: var(--bg); box-shadow: var(--neu-in); flex: none; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg2); box-shadow: 2px 2px 5px var(--sd); transition: transform .2s; }
.toggle.on { background: var(--blue-grad); }
.toggle.on::after { transform: translateX(24px); background: #fff; }
.seg { display: flex; padding: 5px; gap: 5px; border-radius: 18px; background: var(--bg); box-shadow: var(--neu-in); }
.seg button { flex: 1; height: 42px; border-radius: 13px; font-weight: 700; color: var(--muted); font-size: 14px; }
.seg button.on { background: var(--bg); color: var(--navy); box-shadow: var(--neu-sm); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth-hero { background: var(--navy-grad); color: #fff; padding: 28px 24px 70px; border-radius: 0 0 36px 36px; position: relative; overflow: hidden; }
.auth-hero::before, .auth-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(140, 194, 250, .16); }
.auth-hero::before { width: 240px; height: 240px; right: -80px; top: -90px; }
.auth-hero::after { width: 160px; height: 160px; left: -60px; bottom: -70px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.theme-btn { width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff; }
.auth-brand img { cursor: default; user-select: none; -webkit-user-select: none; }
.lang-pills { display: flex; gap: 6px; }
.lang-pills button { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 800; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); }
.lang-pills button.on { background: #fff; color: var(--ink); }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-top: 34px; position: relative; z-index: 1; }
.auth-brand img { width: 62px; height: 62px; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.auth-brand h1 { font-size: 30px; font-weight: 800; }
.auth-brand p { margin: 4px 0 0; color: var(--sky); font-weight: 600; font-size: 14px; }
.auth-card { margin: -44px 18px 0; padding: 22px 20px; position: relative; z-index: 2; }
.auth-card h2 { font-size: 21px; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 6px 0 20px; font-size: 14px; }
.auth-foot { text-align: center; margin: 22px 0 30px; color: var(--muted); font-size: 13.5px; }
.auth-foot button { color: var(--blue); font-weight: 700; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- home ---------- */
.hero { margin: 0 -18px; padding: 22px 22px 30px; background: var(--navy-grad); color: #fff; border-radius: 0 0 34px 34px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: rgba(140, 194, 250, .15); }
.hero-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.hero-top .avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.hero h2 { font-size: 22px; font-weight: 800; }
.hero p { margin: 3px 0 0; color: var(--sky); font-size: 13px; font-weight: 600; }
.hero-search { margin-top: 20px; position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); box-shadow: inset 2px 2px 6px rgba(0,0,0,.25), inset -2px -2px 6px rgba(255,255,255,.06); }
.hero-search span { font-size: 14.5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: -1px; padding-top: 20px; }
.stat { padding: 16px 12px; text-align: center; }
.stat b { display: block; font-size: 24px; font-weight: 800; color: var(--navy); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .ico { width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: var(--neu-in); color: var(--blue); }
.announce { margin-top: 18px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.4; }
.announce .ico { color: var(--blue); }
.limit-card { margin-top: 18px; padding: 18px; }
.progress { height: 12px; border-radius: 10px; box-shadow: var(--neu-in); overflow: hidden; margin: 12px 0 14px; padding: 2px; }
.progress i { display: block; height: 100%; border-radius: 10px; background: var(--blue-grad); min-width: 8px; }
.progress.warn i { background: linear-gradient(90deg, #F5A142, #E5484D); }
.premium-banner { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--gold-grad); color: #3E2A00; position: relative; overflow: hidden; box-shadow: 0 14px 28px rgba(201, 151, 26, .35); }
.premium-banner::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.28); }
.premium-banner h3 { font-size: 18px; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.premium-banner p { margin: 6px 0 14px; font-size: 13.5px; font-weight: 600; opacity: .85; max-width: 80%; }
.premium-banner .btn { background: var(--ink); color: var(--gold1); box-shadow: 0 8px 16px rgba(11,31,75,.3); height: 44px; width: auto; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 12px; margin: 0 -4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 14px; background: var(--bg); box-shadow: var(--neu-sm); font-weight: 700; font-size: 13.5px; color: var(--navy); white-space: nowrap; }
.chip.on { box-shadow: var(--neu-in); color: var(--blue); }
.chip small { color: var(--muted); font-weight: 700; }
.chip.gold { background: var(--gold-grad); color: #4A3300; box-shadow: none; }

/* ---------- fields grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.fcell { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--navy); }
.fcell .bubble { width: 60px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--bg); box-shadow: var(--neu-sm); position: relative; }
.fcell .bubble em { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--blue-grad); color: #fff; font-style: normal; font-size: 11px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(42,111,214,.4); }
.fcell span { line-height: 1.2; max-width: 76px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.flist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fcard { padding: 14px; display: flex; align-items: center; gap: 12px; min-height: 72px; }
.fcard .emoji { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: var(--neu-in); flex: none; }
.fcard b { font-size: 13.5px; display: block; line-height: 1.25; color: var(--navy); }
.fcard small { color: var(--muted); font-weight: 600; font-size: 12px; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--bg); box-shadow: var(--neu-sm); }
.item:active { box-shadow: var(--neu-in); }
.item b { display: block; font-size: 15px; color: var(--navy); }
.item small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.item .meta { text-align: right; font-size: 11.5px; color: var(--muted); flex: none; }
.avatar { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; flex: none; position: relative; }
.avatar.lg { width: 92px; height: 92px; border-radius: 30px; font-size: 32px; }
.avatar.sm { width: 40px; height: 40px; border-radius: 13px; font-size: 14px; }
.avatar.premium { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold2); }
.avatar .fe { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 8px; background: var(--bg); box-shadow: 1px 1px 4px var(--sd); font-size: 10.5px; display: flex; align-items: center; justify-content: center; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--blue-grad); color: #fff; font-size: 11.5px; font-weight: 800; }
.crown { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 8px; background: var(--gold-grad); color: #4A3300; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; vertical-align: middle; }
.star { color: var(--gold2); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 28px; display: flex; align-items: center; justify-content: center; font-size: 36px; box-shadow: var(--neu-in); }
.empty b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 6px; }

/* ---------- detail ---------- */
.profile-card { padding: 26px 20px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.profile-card h2 { margin-top: 16px; font-size: 22px; font-weight: 800; color: var(--navy); }
.profile-card .role { color: var(--muted); margin-top: 4px; font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 32px; padding: 0 12px; border-radius: 11px; box-shadow: var(--neu-in); font-size: 12.5px; font-weight: 700; color: var(--navy); }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--navy); }
.action .icon-btn { width: 56px; height: 56px; border-radius: 18px; color: var(--blue); }
.action.off { opacity: .4; pointer-events: none; }
.info { padding: 6px 18px; margin-top: 18px; }
.info-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--blue); box-shadow: var(--neu-in); flex: none; }
.info-row small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.info-row span { display: block; margin-top: 2px; font-weight: 600; word-break: break-word; }
.notes { white-space: pre-wrap; line-height: 1.5; }
.locked { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-top: 14px; border-radius: 16px; background: var(--gold-grad); color: #4A3300; font-weight: 700; font-size: 13px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.chat .topbar { padding: 14px 18px; box-shadow: 0 6px 14px -8px var(--sd); }
.msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble-msg { max-width: 78%; padding: 11px 14px; border-radius: 18px; line-height: 1.4; font-size: 14.5px; word-wrap: break-word; white-space: pre-wrap; }
.bubble-msg time { display: block; font-size: 10.5px; margin-top: 4px; opacity: .6; text-align: right; }
.bubble-msg.me { align-self: flex-end; background: var(--navy-grad); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 6px 14px rgba(11,31,75,.25); }
.bubble-msg.them { align-self: flex-start; background: var(--bg); box-shadow: var(--neu-sm); border-bottom-left-radius: 6px; }
.composer { display: flex; gap: 10px; padding: 12px 14px calc(12px + var(--safe-b)); background: var(--bg); box-shadow: 0 -6px 14px -8px var(--sd); }
.composer .input { flex: 1; min-height: 48px; }
.composer .input input { padding: 12px 0; }
.send { width: 48px; height: 48px; border-radius: 16px; background: var(--blue-grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 16px rgba(42,111,214,.35); flex: none; }

/* ---------- bottom nav ---------- */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); width: calc(100% - 28px); max-width: 492px; height: 70px; border-radius: 24px; background: var(--bg); box-shadow: 8px 8px 22px var(--sd), -8px -8px 22px var(--sl); display: flex; justify-content: space-around; align-items: center; z-index: 20; padding: 0 6px; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 8px 0; border-radius: 16px; margin: 0 3px; position: relative; }
.nav a.on { color: var(--blue); box-shadow: var(--neu-in); }
.nav a .dot { position: absolute; top: 4px; right: 22%; min-width: 16px; height: 16px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 9.5px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.fab { position: fixed; right: max(20px, calc(50% - 240px)); bottom: calc(100px + var(--safe-b)); width: 60px; height: 60px; border-radius: 20px; background: var(--blue-grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px rgba(42,111,214,.45), -4px -4px 12px var(--sl); z-index: 15; }
.fab svg.i { width: 26px; height: 26px; }

/* ---------- premium ---------- */
.gold-hero { margin: 0 -18px; padding: 26px 22px 34px; border-radius: 0 0 34px 34px; background: linear-gradient(160deg, #0B1F4B 0%, #1B3B7C 60%, #0B1F4B 100%); color: #fff; text-align: center; position: relative; overflow: hidden; }
.gold-hero::before { content: ""; position: absolute; inset: auto -40px -120px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245,197,66,.35), transparent 70%); }
.gold-hero .crown-big { width: 84px; height: 84px; margin: 6px auto 14px; border-radius: 28px; background: var(--gold-grad); display: flex; align-items: center; justify-content: center; font-size: 42px; box-shadow: 0 16px 34px rgba(245,197,66,.4); }
.gold-hero h1 { font-size: 26px; font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-hero p { color: var(--sky); margin: 8px 0 0; font-size: 14px; }
.perks { padding: 8px 18px; margin-top: 20px; }
.perk { display: flex; gap: 12px; align-items: center; padding: 11px 0; font-weight: 600; }
.perk i { width: 28px; height: 28px; border-radius: 9px; background: var(--gold-grad); display: flex; align-items: center; justify-content: center; color: #4A3300; flex: none; font-style: normal; }
.plan { padding: 20px; margin-top: 16px; position: relative; }
.plan.popular { box-shadow: var(--neu), 0 0 0 2px var(--gold2); }
.plan .pop { position: absolute; top: -11px; right: 18px; }
.plan h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.plan .price { font-size: 26px; font-weight: 800; margin: 8px 0 2px; color: var(--navy); }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan ul { margin: 12px 0 16px; padding: 0; list-style: none; }
.plan li { padding: 5px 0 5px 24px; position: relative; font-size: 13.5px; color: var(--text); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold3); font-weight: 900; }
.pay-card { margin: 14px 0; padding: 20px; border-radius: 20px; background: var(--navy-grad); color: #fff; box-shadow: 0 12px 26px rgba(11,31,75,.35); }
.pay-card small { color: var(--sky); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pay-card div { font-size: 20px; font-weight: 800; letter-spacing: .08em; margin: 4px 0 12px; }

/* ---------- menu ---------- */
.menu { padding: 6px 16px; margin-top: 18px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .ico { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: var(--blue); box-shadow: var(--neu-in); flex: none; }
.menu-item .ico.gold { background: var(--gold-grad); color: #4A3300; box-shadow: none; }
.menu-item .grow + svg { color: var(--muted); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger .ico { color: var(--danger); }

/* ---------- sheet / toast ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(11, 31, 75, .38); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fadebg .2s ease; }
@keyframes fadebg { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 30px 30px 0 0; padding: 12px 18px calc(22px + var(--safe-b)); animation: up .25s ease; box-shadow: 0 -10px 30px rgba(11,31,75,.2); }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--sd); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; color: var(--navy); }
.sheet .scroll { overflow-y: auto; margin: 0 -18px; padding: 6px 18px 4px; }
#toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100% - 40px); text-align: center; box-shadow: 0 10px 24px rgba(11,31,75,.35); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--danger); }
#toast.gold { background: var(--gold-grad); color: #3E2A00; }
.center-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; gap: 12px; }

/* ================================================================
   LIQUID GLASS — premium qatlam (oldingi qoidalar ustidan yoziladi)
   ================================================================ */
:root {
  --glass: rgba(255, 255, 255, .5);
  --glass-2: rgba(255, 255, 255, .34);
  --glass-line: rgba(255, 255, 255, .75);
  --glass-hi: rgba(255, 255, 255, .9);
  --glass-blur: blur(20px) saturate(165%);
  --shadow-soft: 0 14px 30px -14px rgba(11, 31, 75, .35);
}
:root[data-theme="dark"] {
  --glass: rgba(60, 88, 140, .26);
  --glass-2: rgba(40, 62, 105, .22);
  --glass-line: rgba(150, 190, 255, .16);
  --glass-hi: rgba(255, 255, 255, .08);
  --shadow-soft: 0 16px 34px -16px rgba(0, 0, 0, .7);
}

/* ekrandan chiqib ketishning oldini olish */
html, body { overflow-x: hidden; max-width: 100%; }
.flist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item > *, .fcard > *, .menu-item > *, .info-row > * { min-width: 0; }
.fcard b, .item b, .item small { overflow-wrap: anywhere; }
.fcell span { overflow-wrap: anywhere; max-width: 100%; }
.stat span, .action { overflow-wrap: anywhere; }

/* fon: yumshoq rangli dog'lar (shisha effekti shular ustida ko'rinadi) */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none;
  filter: blur(60px); opacity: .55;
}
body::before { width: 420px; height: 420px; top: -140px; right: -130px;
  background: radial-gradient(circle, rgba(91, 160, 255, .55), transparent 70%); }
body::after { width: 380px; height: 380px; bottom: -120px; left: -120px;
  background: radial-gradient(circle, rgba(245, 197, 66, .3), transparent 70%); }
:root[data-theme="dark"] body::before { background: radial-gradient(circle, rgba(46, 104, 200, .5), transparent 70%); }
:root[data-theme="dark"] body::after { background: radial-gradient(circle, rgba(201, 151, 26, .28), transparent 70%); }

/* shisha yuzalar */
.neu, .neu-sm, .item, .icon-btn, .chip, .nav, .sheet, .fcard, .plan, .perks, .info, .menu, .announce {
  background: linear-gradient(150deg, var(--glass), var(--glass-2));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
}
.neu { box-shadow: var(--neu), inset 0 1px 0 var(--glass-hi); }
.neu-sm, .item, .chip, .fcard { box-shadow: var(--neu-sm), inset 0 1px 0 var(--glass-hi); }
.icon-btn { box-shadow: var(--neu-sm), inset 0 1px 0 var(--glass-hi); }
.icon-btn:active, .icon-btn.on, .chip.on { box-shadow: var(--neu-in); border-color: transparent; }
.nav { box-shadow: 0 18px 40px -18px rgba(11, 31, 75, .5), inset 0 1px 0 var(--glass-hi); }
.sheet { box-shadow: 0 -18px 40px -20px rgba(11, 31, 75, .5), inset 0 1px 0 var(--glass-hi); }
.input, .seg, .progress, .toggle { border: 1px solid transparent; }
.stat { border-radius: var(--r); }
.hero, .auth-hero, .gold-hero { position: relative; }
.hero::before, .auth-hero span.shine, .gold-hero::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent);
  pointer-events: none;
}
.btn-primary, .btn-blue, .btn-gold { border: 1px solid rgba(255, 255, 255, .28); }
.btn-soft { background: linear-gradient(150deg, var(--glass), var(--glass-2));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); }

/* soha ikonkalari */
.fi { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px; vertical-align: -3px; }
/* avatar/plitka ichida ikonka o'ram o'lchamiga moslashadi */
.avatar span .fi, .fcell .bubble > .fi, .fcard .emoji > .fi { width: 100%; height: 100%; }
.input .fi, .input.picker .fi { width: 20px; height: 20px; }
.topbar h1 .fi { width: 19px; height: 19px; }
.fi svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .fi { filter: brightness(1.5) saturate(1.05); }
.fcell .bubble .fi { width: 23px; height: 23px; }
.fcard .emoji .fi, .fcell .bubble .fi { flex: none; }
.fcard .emoji .fi { width: 19px; height: 19px; }
.tag .fi, .chip .fi { width: 15px; height: 15px; }
.item .avatar .fe .fi { width: 11px; height: 11px; }

/* avatar: rasm yoki anonim siluet */
.avatar { overflow: visible; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar .ghost { width: 58%; height: 58%; stroke: rgba(255, 255, 255, .92); fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
.avatar.lg .ghost { width: 52%; height: 52%; }

/* rasm tanlash tugmasi */
.photo-pick { position: relative; display: inline-flex; }
.photo-pick .cam { position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; border-radius: 12px;
  background: var(--blue-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(42, 111, 214, .45); border: 2px solid var(--bg); }
.photo-pick .cam svg { width: 17px; height: 17px; }
.photo-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
.photo-row .hint { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* checkbox (rozilik) */
.check-row { display: flex; gap: 12px; align-items: flex-start; margin: 4px 2px 18px; font-size: 13.5px;
  line-height: 1.45; color: var(--muted); }
.check-box { width: 24px; height: 24px; border-radius: 8px; flex: none; margin-top: 1px;
  box-shadow: var(--neu-in); display: flex; align-items: center; justify-content: center; color: transparent; }
.check-box.on { background: var(--blue-grad); color: #fff; box-shadow: 0 6px 14px rgba(42, 111, 214, .4); }
.check-box svg { width: 15px; height: 15px; }
.check-row a { font-weight: 700; text-decoration: underline; }
.doc-text { white-space: pre-wrap; line-height: 1.6; font-size: 14px; }

/* ikonka tanlash to'ri */
.icon-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.icon-grid button { aspect-ratio: 1; border-radius: 14px; box-shadow: var(--neu-sm); display: flex;
  align-items: center; justify-content: center; color: var(--navy); }
.icon-grid button.on { box-shadow: var(--neu-in); color: var(--blue); }
.icon-grid .fi { width: 22px; height: 22px; }
.color-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.color-grid button { width: 36px; height: 36px; border-radius: 12px; box-shadow: var(--neu-sm); }
.color-grid button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--blue); }
.add-field-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px;
  margin-bottom: 14px; background: var(--blue-grad); color: #fff; font-weight: 700;
  box-shadow: 0 10px 22px -10px rgba(42, 111, 214, .8); }
.add-field-row .ico { width: 40px; height: 40px; border-radius: 13px; background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; }
.mine-badge { font-size: 10px; font-weight: 900; letter-spacing: .05em; color: var(--blue);
  border: 1px solid currentColor; border-radius: 6px; padding: 1px 5px; }

/* telefon: davlat kodi + raqam */
.phone-row { display: flex; gap: 10px; }
.code-btn { flex: none; width: auto; gap: 7px; padding: 0 12px; cursor: pointer; color: var(--navy);
  font-weight: 700; min-height: 52px; }
.code-btn b { font-size: 15px; }
.flag { font-size: 19px; line-height: 1; }
.flag-lg { font-size: 26px; line-height: 1; width: 34px; text-align: center; flex: none; }
.dial-item { padding: 10px 14px; }

/* ---------- ro'yxatdan o'tish: email / telefon, rozilik, taklif kodi ---------- */
.seg-sm { margin-bottom: 14px; }
.seg-sm button { height: 38px; font-size: 13px; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0 2px 16px; padding: 4px 2px;
  color: var(--blue); font-weight: 700; font-size: 13.5px; }
.link-btn svg { width: 17px; height: 17px; }
.check-row { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.check-row.need .check-box { box-shadow: 0 0 0 2px var(--danger); }
.check-row.need { color: var(--danger); }

/* ---------- referal ---------- */
.ref-hero { text-align: center; }
.ref-gift { width: 68px; height: 68px; margin: 2px auto 14px; border-radius: 22px; display: flex;
  align-items: center; justify-content: center; background: var(--blue-grad); color: #fff;
  box-shadow: 0 10px 22px rgba(42, 111, 214, .35); }
.ref-gift svg { width: 32px; height: 32px; }
.ref-hero h2 { font-size: 19px; font-weight: 800; color: var(--navy); }
.ref-hero p { margin: 8px 0 18px; font-size: 13.5px; line-height: 1.5; }
.ref-code { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: var(--navy); padding: 16px;
  border-radius: 18px; box-shadow: var(--neu-in); margin-bottom: 16px; user-select: all; }
.ref-hero .row { gap: 12px; }
.ref-link { margin-top: 14px; font-size: 12.5px; color: var(--muted); word-break: break-all; cursor: pointer; }
.ref-step { display: flex; gap: 12px; align-items: flex-start; padding: 9px 2px; font-size: 13.5px; line-height: 1.45; }
.ref-step i { flex: none; width: 26px; height: 26px; border-radius: 10px; background: var(--blue-grad); color: #fff;
  font-style: normal; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ---------- karta orqali to'lov (Hamyon API) ---------- */
.pay-card .tap { cursor: pointer; }
.pay-wait { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 16px 0;
  border-radius: 18px; box-shadow: var(--neu-in); }
.pay-wait b { display: block; font-size: 14px; color: var(--navy); }
.pay-wait small { display: block; font-size: 12.5px; margin-top: 2px; }

/* ---------- kontaktga xabar / ilovada belgisi ---------- */
.item .chat-btn { width: 38px; height: 38px; border-radius: 13px; flex: none; color: var(--muted); }
.item .chat-btn.on { color: var(--blue); }
.in-app { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px; font-size: 10px;
  font-weight: 800; letter-spacing: .02em; color: var(--ok); background: rgba(46, 160, 110, .14);
  vertical-align: 1px; }
.actions .icon-btn.blue { color: var(--blue); }

/* ---------- guruhlar ---------- */
.group-av span { color: #fff; font-weight: 800; font-size: 15px; }
.avatar.lg.group-av span { font-size: 26px; }
.bubble-msg .who { display: block; font-size: 12px; font-weight: 800; color: var(--blue); margin-bottom: 3px; }
.bubble-msg.me .who { color: rgba(255, 255, 255, .85); }
.input.picker .ico, .input.picker #gn-mem-l { min-width: 0; }

/* ---------- chat bo'limlari va galochkalar ---------- */
.seg-dot { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 9px; background: var(--blue-grad); color: #fff; font-size: 10.5px; font-weight: 800;
  line-height: 18px; vertical-align: 1px; }
.bubble-msg .tick { font-style: normal; margin-left: 5px; letter-spacing: -2px; opacity: .75; }
.bubble-msg.read .tick { opacity: 1; }
.bubble-msg.read .tick::after { content: "✓"; }

/* ---------- networking: soha qatorlari ---------- */
.nf-item .avatar.sm { width: 46px; height: 46px; border-radius: 15px; }
.nf-item small { color: var(--muted); font-weight: 600; font-size: 12px; }

/* ---------- storis ---------- */
.st-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px 4px;
  scrollbar-width: none; }
.st-row::-webkit-scrollbar { display: none; }
.st-cell { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--navy); cursor: pointer; }
.st-cell span { max-width: 66px; text-align: center; }
.st-ring { position: relative; padding: 2.5px; border-radius: 50%;
  background: linear-gradient(140deg, var(--blue), #7AB6FF); }
.st-ring.seen { background: var(--line, #C9D6EA); opacity: .75; }
.st-ring .avatar { width: 54px; height: 54px; border-radius: 50%; border: 2.5px solid var(--bg); box-shadow: none; }
.st-ring .avatar img { border-radius: 50%; }
.st-ring.add { background: none; padding: 0; }
.st-ring.add i { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-grad); color: #fff; font-style: normal; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); line-height: 1; }
.st-new { height: 150px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: #fff; font-weight: 700; margin-bottom: 16px;
  cursor: pointer; }
.st-new svg { width: 30px; height: 30px; }

.st-view { position: fixed; inset: 0; z-index: 120; background: #05122B; display: flex;
  flex-direction: column; color: #fff; }
.st-top { position: absolute; inset: 0 0 auto 0; z-index: 3; padding: 10px 12px 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }
.st-bars { display: flex; gap: 4px; }
.st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.st-bars i.done { background: #fff; }
.st-bars u { display: block; height: 100%; width: 0; background: #fff; }
.st-bars u.run { animation: stbar 7s linear forwards; }
@keyframes stbar { to { width: 100%; } }
.st-head { display: flex; align-items: center; gap: 10px; padding: 12px 2px; }
.st-head b { display: block; font-size: 14px; }
.st-head small { opacity: .75; font-size: 11.5px; }
.st-head .icon-btn { background: rgba(255,255,255,.12); box-shadow: none; color: #fff; width: 36px; height: 36px; }
.st-body { position: relative; flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 90px 20px 20px; }
.st-nav { position: absolute; top: 0; bottom: 0; width: 34%; }
.st-nav.left { left: 0; } .st-nav.right { right: 0; width: 66%; }
.st-text { position: relative; z-index: 2; font-size: 20px; font-weight: 700; line-height: 1.45;
  text-align: center; white-space: pre-wrap; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.st-text.on-photo { background: rgba(5,18,43,.55); padding: 14px 18px; border-radius: 18px; font-size: 17px; }
.st-foot { position: relative; z-index: 3; padding: 10px 14px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent); }
.st-react { display: flex; gap: 6px; justify-content: space-between; margin-bottom: 10px; }
.st-react button { flex: 1; height: 42px; border-radius: 14px; font-size: 21px;
  background: rgba(255,255,255,.12); transition: transform .15s; }
.st-react button.on, .st-react button:active { transform: scale(1.18); background: rgba(255,255,255,.26); }
.st-foot .composer { padding: 0; background: none; box-shadow: none; }
.st-foot .input { background: rgba(255,255,255,.14); box-shadow: none; }
.st-foot .input input { color: #fff; }
.st-foot .input input::placeholder { color: rgba(255,255,255,.65); }
.st-foot .btn-soft { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }

/* ---------- ballar va vazifalar ---------- */
.points-hero { text-align: center; }
.p-big { font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0;
  border-bottom: 1px solid rgba(140, 170, 210, .16); }
.task:last-child { border-bottom: 0; }
.task .t-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; box-shadow: var(--neu-in); color: var(--blue); }
.task .t-ico svg { width: 17px; height: 17px; }
.task.done .t-ico { background: var(--blue-grad); color: #fff; box-shadow: none; }
.task b { display: block; font-size: 13.5px; color: var(--navy); line-height: 1.3; }
.task small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.task .pts { flex: none; font-weight: 800; font-size: 13px; color: var(--gold3, #C9A227); }
.task.done .pts { color: var(--ok); }
.pay-sum { padding: 14px; border-radius: 18px; box-shadow: var(--neu-in); margin-bottom: 14px; }
.pay-sum .row { align-items: center; padding: 5px 0; font-size: 14px; }
.pay-sum .row.total { border-top: 1px solid rgba(140, 170, 210, .2); margin-top: 6px; padding-top: 10px;
  font-size: 17px; font-weight: 800; color: var(--navy); }

/* ---------- ekranlar orasida silliq o'tish ---------- */
.screen { animation: screenIn .17s ease-out both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat, .auth { animation: screenIn .17s ease-out both; }
.item, .btn, .chip, .icon-btn, .menu-item, .stat, .fcell, .st-cell {
  -webkit-tap-highlight-color: transparent; }
.item:active, .stat:active, .fcell:active, .menu-item:active { transform: scale(.985); }
.item, .stat, .fcell, .menu-item { transition: transform .12s ease, box-shadow .15s ease; }
.nav a { transition: color .15s ease; }
@media (prefers-reduced-motion: reduce) {
  .screen, .chat, .auth { animation: none; }
  .item:active, .stat:active, .fcell:active, .menu-item:active { transform: none; }
}

/* ---------- bildirishnoma qo'ng'irog'i ---------- */
.icon-btn.bell { position: relative; background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.icon-btn.bell .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px;
  font-weight: 800; line-height: 18px; }
.item.nt.new { box-shadow: var(--neu-sm), inset 3px 0 0 var(--blue); }
.dot-new { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
.item.nt small { display: block; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid rgba(140, 170, 210, .16); }
.faq-item:last-child { border-bottom: 0; }
.faq-item .q { display: flex; align-items: center; gap: 10px; padding: 15px 2px; cursor: pointer;
  font-weight: 700; font-size: 14px; color: var(--navy); line-height: 1.35; }
.faq-item .q svg { width: 16px; height: 16px; flex: none; color: var(--blue);
  transform: rotate(90deg); transition: transform .18s ease; }
.faq-item.open .q svg { transform: rotate(-90deg); }
.faq-item .a { display: none; padding: 0 2px 15px 28px; font-size: 13.5px; line-height: 1.6;
  color: var(--muted); white-space: pre-wrap; }
.faq-item.open .a { display: block; }

/* ---------- chat: rasm, emoji, reaksiya ---------- */
.composer .c-btn { width: 40px; height: 40px; flex: none; font-size: 19px; color: var(--muted); }
.c-prev { display: none; padding: 8px 14px 0; }
.c-prev.on { display: flex; align-items: center; gap: 10px; }
.c-prev img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.c-prev button { width: 28px; height: 28px; border-radius: 10px; background: var(--bg);
  box-shadow: var(--neu-sm); color: var(--danger); display: flex; align-items: center; justify-content: center; }
.c-prev button svg { width: 15px; height: 15px; }
.bubble-msg .b-img { display: block; max-width: 100%; width: 220px; border-radius: 14px; margin-bottom: 6px; }
.bubble-msg { position: relative; }
.reacts { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px -2px -2px; }
.reacts span { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px;
  border-radius: 11px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 700; }
.bubble-msg.them .reacts span { background: rgba(42,111,214,.12); color: var(--navy); }
.reacts span.mine { outline: 1.5px solid var(--blue); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-height: 260px;
  overflow-y: auto; }
.emoji-grid button { aspect-ratio: 1; border-radius: 12px; font-size: 22px; }
.emoji-grid button:active { background: var(--bg2, rgba(42,111,214,.12)); }
.react-row { display: flex; gap: 6px; justify-content: space-between; }
.react-row button { flex: 1; height: 46px; border-radius: 14px; font-size: 23px; box-shadow: var(--neu-sm); }
.react-row button.on { box-shadow: var(--neu-in); }
