/* Chattinz: the coral-to-purple gradient look, with modern type. */
@font-face { font-family: "Jakarta"; src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #ffffff;
  --soft: #f4f4f2;
  --soft-2: #eaeae6;
  --line: #ececea;
  --text: #121212;
  --muted: #74746f;
  --brand: #ff4f5e;
  --brand-2: #ff9f43;
  --grad: linear-gradient(135deg, #ff9f43 0%, #ff4f5e 50%, #c2368f 100%);
  --rainbow: linear-gradient(90deg, #e40303, #ff8c00, #ffd400, #00a33c, #1f5bff, #8a1fd1);
  --ok: #19c37d;
  --blue: #1d9bf0;
  --danger: #e5243b;
  --mine: #ff4f5e;
  --mine-text: #fff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --head: "Bricolage", "Jakarta", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c; --soft: #17171a; --soft-2: #212125; --line: #222226; --text: #f4f4f2; --muted: #92928c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg.i { width: 24px; height: 24px; flex: none; }
svg.i.sm { width: 18px; height: 18px; }
.splash { min-height: 100vh; }

/* ---- Layout: column on phones, left sidebar on wide screens ---- */
#app { min-height: 100vh; }
.shell { max-width: 600px; margin: 0 auto; min-height: 100vh; border-left: 1px solid transparent; border-right: 1px solid transparent; }
@media (min-width: 640px) { .shell { border-color: var(--line); } }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 56px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 19px; margin: 0; flex: 1; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.wordmark { font-size: 26px; font-weight: 900; letter-spacing: -.8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ib { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ib:hover { background: var(--soft); }
.dotbadge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--bg); box-sizing: content-box; }
.page { padding-bottom: calc(80px + var(--safe-b)); }
.pad { padding: 14px 16px; }

.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--safe-b)); }
.nav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.nav a.on { color: var(--text); }
.nav a .lbl { display: none; }
.nav a .dotbadge { right: auto; left: calc(50% + 2px); top: 0; }
.nav .create { flex: none; width: 46px; height: 36px; border-radius: 12px; background: var(--grad); color: #fff; justify-content: center; margin: 0 6px; }
.nav .create svg { width: 22px; height: 22px; }
.nav .mini { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--soft-2); }
.nav a.on .mini { outline: 2px solid var(--text); outline-offset: 1px; }
@media (min-width: 900px) {
  .nav { top: 0; bottom: 0; right: auto; left: max(0px, calc(50% - 300px - 260px)); width: 240px; flex-direction: column; justify-content: flex-start; align-items: stretch;
    border-top: 0; padding: 14px 10px; gap: 4px; background: none; backdrop-filter: none; }
  .nav .brandrow { display: block !important; padding: 6px 14px 14px; }
  .nav a { flex: none; flex-direction: row; gap: 16px; padding: 12px 14px; border-radius: 999px; font-size: 18px; font-weight: 500; color: var(--text); }
  .nav a:hover { background: var(--soft); }
  .nav a.on { font-weight: 800; }
  .nav a .lbl { display: inline; }
  .nav a .dotbadge { left: 28px; top: 4px; }
  .nav .create { width: auto; height: auto; margin: 10px 0 0; justify-content: center; color: #fff; font-weight: 700; }
  .nav .create .lbl { display: inline; }
  .page { padding-bottom: 40px; }
}

/* ---- Avatars ---- */
.av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--soft-2); flex: none; display: block; position: relative; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av .ini { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.av.xs { width: 26px; height: 26px; font-size: 12px; } .av.sm { width: 36px; height: 36px; font-size: 14px; } .av.md { width: 44px; height: 44px; font-size: 18px; }
.av.lg { width: 64px; height: 64px; font-size: 24px; } .av.xl { width: 92px; height: 92px; font-size: 36px; }
.ring { padding: 2.5px; border-radius: 50%; background: var(--grad); display: inline-block; flex: none; position: relative; }
.ring > .av { border: 2.5px solid var(--bg); }
.online::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.vf { display: inline-flex; color: var(--blue); vertical-align: -3px; }
.vf svg { width: 17px; height: 17px; }

/* ---- Segmented tabs ---- */
.seg { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 56px; z-index: 9; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); }
.seg a, .seg button { flex: 1; text-align: center; padding: 14px 0 12px; font-weight: 600; color: var(--muted); position: relative; background: none; border: 0; cursor: pointer; }
.seg .on { color: var(--text); font-weight: 800; }
.seg .on::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 2px; background: var(--brand); }

/* ---- Near you strip on Home ---- */
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; flex: none; font-size: 12px; }
.strip a span { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .more .av { display: flex; align-items: center; justify-content: center; background: var(--soft); }

/* ---- Posts ---- */
.post { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.post.click { cursor: pointer; }
.post.click:hover { background: color-mix(in srgb, var(--soft) 50%, transparent); }
.post .body { flex: 1; min-width: 0; }
.post .head { display: flex; align-items: center; gap: 4px; min-width: 0; }
.post .head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .head .meta { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.post .head .ib { width: 32px; height: 32px; margin: -6px -8px -6px 0; color: var(--muted); }
.post .text { white-space: pre-wrap; word-wrap: break-word; margin: 2px 0 0; }
.post .aud { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-size: 12px; }
.media { margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: grid; gap: 2px; position: relative; background: var(--soft); }
.media.n1 { grid-template-columns: 1fr; } .media.n2, .media.n4 { grid-template-columns: 1fr 1fr; }
.media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; } .media.n3 img:first-child { grid-row: span 2; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 520px; }
.media:not(.n1) img { aspect-ratio: 1; }
.media.blur img { filter: blur(28px) saturate(1.2); transform: scale(1.1); }
.media .cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff;
  background: rgba(0, 0, 0, .25); border: 0; cursor: pointer; font-weight: 700; text-align: center; padding: 10px; }
.media .cover small { font-weight: 500; opacity: .9; }
.acts { display: flex; gap: 6px; margin: 8px -8px -4px; max-width: 420px; }
.act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 999px; font-size: 14px; }
.act:hover { background: var(--soft); }
.act.liked { color: var(--brand); }
.act.liked svg { fill: var(--brand); }
.act.pop svg { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.act.share { margin-left: auto; }

/* ---- Composer (new post) ---- */
.compose { display: flex; gap: 12px; padding: 14px 16px; }
.compose textarea { flex: 1; border: 0; outline: none; background: none; resize: none; min-height: 120px; font-size: 19px; padding: 8px 0; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 16px 12px 72px; }
.thumbs div { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---- Profile ---- */
.cover { height: 130px; background: var(--grad); opacity: .9; }
.phead { padding: 0 16px 6px; }
.phead .row1 { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -46px; gap: 8px; }
.phead .row1 .ring > .av { border-width: 4px; }
.phead .btns { display: flex; gap: 8px; padding-bottom: 4px; }
.pname { font-size: 22px; font-weight: 800; margin: 10px 0 0; display: flex; align-items: center; gap: 4px; }
.handle { color: var(--muted); }
.bio { white-space: pre-wrap; margin: 10px 0; }
.pmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; margin: 8px 0; }
.pmeta span { display: inline-flex; gap: 4px; align-items: center; }
.stats { display: flex; gap: 18px; margin: 10px 0 4px; }
.stats a, .stats span { color: var(--muted); }
.stats b { color: var(--text); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pgrid a { aspect-ratio: 1; background: var(--soft); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; padding: 10px; }
.pgrid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pgrid .tx { font-size: 13px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }
.pgrid .blurred img { filter: blur(20px); }
.locked { text-align: center; padding: 50px 24px; color: var(--muted); }
.locked .big { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--text); display: inline-flex; align-items: center; justify-content: center; color: var(--text); margin-bottom: 10px; }
.locked b { display: block; color: var(--text); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
button.chip { cursor: pointer; }
button.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.label { margin: 20px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---- People lists and cards ---- */
.person { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.person .who { flex: 1; min-width: 0; }
.person .who b { display: flex; align-items: center; gap: 4px; }
.person .who span { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px; }
@media (min-width: 520px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); display: block; box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 4 / 5; background: var(--soft-2); position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph .ini { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 800; color: #fff; }
.card .ph .tag { position: absolute; left: 8px; top: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; display: flex; align-items: center; gap: 5px; }
.card .ph .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.card .info { padding: 10px 12px 12px; }
.card .info b { display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; }
.card .info span { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { margin: 10px 16px; position: relative; }
.search input { width: 100%; border: 0; background: var(--soft); border-radius: 999px; padding: 12px 16px 12px 44px; outline: none; }
.search input:focus { background: var(--bg); box-shadow: 0 0 0 2px var(--brand); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.hdr { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 4px; }
.hdr h2 { font-size: 20px; margin: 0; font-weight: 800; }

/* ---- Buttons and forms ---- */
.btn { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--soft); }
.btn.dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.dark:hover { opacity: .88; }
.btn.brand { background: var(--grad); color: #fff; border: 0; padding: 10px 19px; }
.btn.brand:hover { opacity: .92; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.sm { padding: 6px 14px; font-size: 14px; }
.btn.block { width: 100%; padding: 13px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 6px 0; font-weight: 600; }
.field { display: block; margin: 14px 0; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea, .inp { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.field textarea { min-height: 90px; resize: vertical; }
.at { position: relative; display: block; } .at input { padding-left: 32px; } .at::before { content: "@"; position: absolute; left: 14px; top: 12px; color: var(--muted); z-index: 1; }
.switch { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.switch div { flex: 1; }
.switch small { display: block; color: var(--muted); }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--soft-2); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .2s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { left: 21px; }
.group { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.group > * + * { border-top: 1px solid var(--line); }
.grouptitle { padding: 18px 16px 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mi { display: flex; width: 100%; align-items: center; gap: 14px; padding: 14px 16px; border: 0; background: none; cursor: pointer; text-align: left; }
.mi:hover { background: var(--soft); }
.mi .go { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 4px; text-align: right; }
.mi.red { color: var(--danger); }
.err { color: var(--danger); min-height: 20px; font-size: 14px; margin: 6px 0; }
.hint { color: var(--muted); font-size: 14px; }
.note { margin: 12px 16px; padding: 14px 16px; border-radius: 16px; background: var(--soft); }
.note.warm { background: color-mix(in srgb, var(--brand-2) 16%, var(--bg)); }
.empty { text-align: center; color: var(--muted); padding: 56px 24px; }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
.more { display: block; width: 100%; padding: 16px; border: 0; background: none; color: var(--brand); font-weight: 700; cursor: pointer; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---- Welcome ---- */
.welcome { min-height: 100vh; display: flex; flex-direction: column; }
.hero { background: var(--grad); color: #fff; padding: 56px 24px 40px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hero h1 { font-size: 44px; font-weight: 900; letter-spacing: -1.5px; margin: 0; }
.hero p { font-size: 18px; margin: 8px 0 0; opacity: .95; max-width: 360px; }
.wbody { padding: 24px; max-width: 460px; width: 100%; margin: 0 auto; }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.feat .fi { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; flex: none; color: var(--brand); }
.feat b { display: block; }
.feat span { color: var(--muted); font-size: 14px; }
.formpage { max-width: 440px; margin: 0 auto; padding: 18px 22px 40px; }
.formpage h1 { font-size: 28px; font-weight: 900; letter-spacing: -.6px; margin: 18px 0 4px; }
.democode { background: color-mix(in srgb, var(--ok) 12%, var(--bg)); border: 1px dashed var(--ok); border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.rules { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.rules li { margin: 4px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 1px; flex: none; }

/* ---- Notifications ---- */
.nt { display: flex; gap: 12px; padding: 12px 16px; align-items: center; }
.nt.unread { background: color-mix(in srgb, var(--brand) 6%, var(--bg)); }
.nt .txt { flex: 1; min-width: 0; }
.nt .txt span { color: var(--muted); }
.nt .thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--soft); flex: none; font-size: 10px; color: var(--muted); padding: 4px; line-height: 1.2; }
.nt .thumb img { margin: -4px; width: calc(100% + 8px); height: calc(100% + 8px); object-fit: cover; }
.nt .kind { position: relative; }
.nt .kind .k { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; border: 2px solid var(--bg); }
.nt .kind .k svg { width: 12px; height: 12px; }

/* ---- Comments ---- */
.cm { display: flex; gap: 10px; padding: 10px 16px; }
.cm .bub { flex: 1; min-width: 0; }
.cm .bub b { margin-right: 6px; }
.cm .bub p { margin: 2px 0 0; white-space: pre-wrap; word-wrap: break-word; }
.cm .bub small { color: var(--muted); }
.bar { position: fixed; left: 0; right: 0; bottom: calc(58px + var(--safe-b)); z-index: 15; display: flex; justify-content: center; background: var(--bg); border-top: 1px solid var(--line); }
.bar .in { display: flex; gap: 8px; padding: 8px 12px; width: 100%; max-width: 600px; align-items: flex-end; }
.bar textarea { flex: 1; min-height: 42px; max-height: 120px; height: 42px; border-radius: 21px; padding: 10px 16px; resize: none; border: 1px solid var(--line); background: var(--soft); outline: none; }
.bar .send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.bar .ib { width: 42px; height: 42px; }
.barpad { height: 80px; }
@media (min-width: 900px) { .bar { bottom: 0; } }

/* ---- Messages ---- */
.chatrow { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.chatrow:hover { background: var(--soft); }
.chatrow .who { flex: 1; min-width: 0; }
.chatrow .who b { display: flex; align-items: center; gap: 4px; }
.chatrow .who span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.chatrow .who span.unread { color: var(--text); font-weight: 700; }
.chatrow time { font-size: 13px; color: var(--muted); }
.unreaddot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); display: inline-block; }
.thread { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 20px; background: var(--soft-2); align-self: flex-start; word-wrap: break-word; white-space: pre-wrap; }
.bubble.mine { align-self: flex-end; background: var(--mine); color: var(--mine-text); cursor: pointer; }
.bubble img { display: block; max-width: 100%; max-height: 320px; border-radius: 14px; margin: -4px -10px 4px; }
.bubble .when { display: block; font-size: 11px; opacity: .7; margin-top: 2px; text-align: right; }
.bubble .once { display: flex; align-items: center; gap: 8px; cursor: pointer; background: none; border: 0; padding: 2px 0; font-weight: 700; color: inherit; }
.daysep, .sysline { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }

/* ---- Sheets, viewer, toast, lock ---- */
#modal { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 8px 0 calc(14px + var(--safe-b)); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--soft-2); margin: 4px auto 10px; }
.sheet h2 { margin: 0; padding: 4px 16px 8px; font-size: 19px; font-weight: 800; }
.sheet .pad { padding: 4px 16px; }
@media (min-width: 600px) { #modal { align-items: center; } .sheet { border-radius: 22px; } }
.viewer { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.viewer .frame { position: relative; max-width: 100%; max-height: 82vh; }
.viewer img { max-width: 100%; max-height: 82vh; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.viewer .mark { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; overflow: hidden;
  color: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 700; transform: rotate(-24deg) scale(1.4); pointer-events: none; }
.viewer .count { color: #fff; margin-top: 12px; }
#toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); z-index: 90; background: var(--text); color: var(--bg);
  border-radius: 12px; padding: 11px 18px; max-width: 90vw; font-weight: 600; box-shadow: var(--shadow); }
#toast.bad { background: var(--danger); color: #fff; }
#lock { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.pins { display: flex; gap: 16px; }
.pins i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.pins i.on { background: var(--brand); border-color: var(--brand); }
.keys { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; }
.keys button { height: 72px; border-radius: 50%; border: 0; background: var(--soft); font-size: 26px; cursor: pointer; }
.cam { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 3 / 4; object-fit: cover; transform: scaleX(-1); }
.editphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.editphotos > div { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--soft); }
.editphotos img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.editphotos .x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.editphotos .main { position: absolute; left: 6px; bottom: 6px; font-size: 11px; background: #fff; color: #000; border-radius: 6px; padding: 2px 7px; font-weight: 800; }
.editphotos .add { display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; border: 2px dashed var(--line); background: none; }
.admin-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.admin-pair img { width: 100%; border-radius: 10px; }
.box { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 12px 16px; }

/* ---- Home grid ------------------------------------------------------------------------ */
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; position: sticky; top: 56px; z-index: 9;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); }
.quick::-webkit-scrollbar { display: none; }
.quick .chip { flex: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--soft-2); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tile:hover img { transform: scale(1.04); }
.tile .ini { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 800; color: #fff; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 7px 6px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.tile .cap b { display: flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.tile .cap b span { font-weight: 500; opacity: .9; }
.tile .cap i.on { width: 8px; height: 8px; border-radius: 50%; background: #2ee66b; flex: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, .3); }
.tile .cap small { display: block; font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .cap .vf svg { width: 13px; height: 13px; }
.tile .lk { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .5); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.tile .lk svg { width: 13px; height: 13px; }

/* ---- Feed ------------------------------------------------------------------------------- */
.seg .cnt { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; }
.seg a { white-space: nowrap; font-size: 15px; }
.quickpost { width: 100%; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; color: var(--muted); font-size: 16px; }
.quickpost span:not(.av) { flex: 1; }
.quickpost > svg { color: var(--brand); }
.incomm { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--brand); }
.incomm svg { width: 14px; height: 14px; }
.media.vid { background: #000; }
.media video { width: 100%; max-height: 560px; display: block; background: #000; }
.media.blur video { filter: blur(28px); }
.pgrid .play { position: absolute; right: 6px; top: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.postto { margin: 12px 16px 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; color: var(--brand); }
.thumbs .vthumb { grid-column: span 2; aspect-ratio: 16 / 10; background: #000; }
.thumbs .vthumb .len { position: absolute; left: 6px; bottom: 6px; color: #fff; background: rgba(0, 0, 0, .6); border-radius: 8px; padding: 2px 7px; font-size: 12px; display: flex; align-items: center; gap: 4px; }

/* ---- Sheets with two-line items ----------------------------------------------------------- */
.mi > div { display: flex; flex-direction: column; min-width: 0; }
.mi > div small { color: var(--muted); font-size: 13px; }

/* ---- Communities and groups ------------------------------------------------------------- */
.av.sq { border-radius: 30%; }
.av .ini.gp svg { width: 55%; height: 55%; }
.person .who b.role { display: inline; color: var(--brand); font-weight: 700; }
.person.pick { cursor: pointer; }
.person.pick input { width: 22px; height: 22px; accent-color: var(--brand); }
.commphoto { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 4px 0 12px; color: var(--muted); font-weight: 600; }
.commphoto img, .commphoto > svg { width: 72px; height: 72px; border-radius: 30%; object-fit: cover; background: var(--soft); padding: 0; }
.commphoto > svg { padding: 22px; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.radio input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; }
.radio small { display: block; color: var(--muted); }
.gtitle { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.gtitle span { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtitle small { font-size: 12px; color: var(--muted); font-weight: 500; }
.ghead { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 14px; text-align: center; }
.ghead h2 { margin: 6px 0 0; font-size: 22px; }
.gline { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; }
.gline .bubble { max-width: 100%; }
.gline .gap { width: 26px; flex: none; }
.bubble .from { display: block; font-size: 12px; font-weight: 800; color: var(--brand); margin-bottom: 2px; }
.bubble.muted { opacity: .6; font-style: italic; }

/* ---- Message requests -------------------------------------------------------------------- */
#chatbar { flex-direction: column; align-items: stretch; }
#chatbar > .row { align-items: flex-end; }
.waitnote { font-size: 13px; color: var(--muted); text-align: center; padding: 0 4px 2px; }
.reqbar { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 4px 2px; }
.reqbar .hint { display: block; margin: 2px 0 0; }
.bar .send:disabled, .bar textarea:disabled { opacity: .5; cursor: default; }

/* ---- Plans, boosts and upsells ---- */
.spacer { flex: 1; }
.chip .pro, .switch .pro { margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 2px 6px; border-radius: 6px; background: var(--grad); color: #fff; vertical-align: 1px; }
.tile.boosted { box-shadow: inset 0 0 0 3px var(--brand-2); }
.tile .bst { position: absolute; top: 6px; left: 6px; background: var(--grad); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.tile .bst svg { width: 14px; height: 14px; }
.tile.upsell { background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; }
.tile.upsell b { display: block; font-size: 20px; font-weight: 900; }
.tile.upsell span { font-size: 12px; opacity: .95; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0 0 14px; background: var(--bg); }
.plan.current { border: 2px solid var(--brand); }
.plan.pro { background: color-mix(in srgb, var(--brand) 6%, var(--bg)); }
.plan.badge { background: color-mix(in srgb, var(--blue) 7%, var(--bg)); }
.plan.badge.current { border-color: var(--blue); }
.plan .ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan .ph b { font-size: 20px; font-weight: 900; display: inline-flex; align-items: center; gap: 4px; }
.plan .ph span { color: var(--muted); font-size: 14px; }
.plan .ph big { font-size: 22px; font-weight: 900; color: var(--text); }
.plan ul { list-style: none; padding: 0; margin: 12px 0; }
.plan li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.plan li svg { color: var(--ok); }
fieldset.adv { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.adv:disabled { opacity: .45; pointer-events: none; }
.mi.on { font-weight: 700; }
.empty .big { display: flex; justify-content: center; margin-bottom: 8px; color: var(--brand); }
.empty .big svg { width: 40px; height: 40px; }
.avbtn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }

/* ---- Ads: plain, labelled, easy to skip ---- */
.adcard { position: relative; margin: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; background: var(--soft); }
.adcard img, .adcard .adart { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; }
.adart { background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.adtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adtxt small { color: var(--muted); font-size: 12px; }
.adtxt b { font-size: 15px; }
.adtxt span { font-size: 13px; color: var(--muted); }
.adfree { position: absolute; top: 8px; right: 12px; font-size: 11px; color: var(--muted); text-decoration: underline; }
.tile.adtile { cursor: pointer; background: var(--soft); display: flex; flex-direction: column; }
.tile.adtile img, .tile.adtile .adart { width: 100%; height: 55%; object-fit: cover; flex: none; border-radius: 0; }
.tile.adtile .adtxt { padding: 6px 7px; font-size: 12px; }
.tile.adtile .adtxt b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.adtile .adtxt span { display: none; }

/* ---- Stories ---- */
.stories button { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; flex: none; font-size: 12px; border: 0; background: none; padding: 0; cursor: pointer; }
.stories button > span:last-child, .stories .add > span { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stories .add { position: relative; }
.stories .add .av { border: 2.5px solid var(--bg); margin: 2.5px; }
.stories .add i { position: absolute; top: 46px; left: 46px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; }
.stories .add i svg { width: 13px; height: 13px; }
.ring.seen { background: var(--line); }
.storyview { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; }
.storyview .bars { display: flex; gap: 4px; padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 6px; position: relative; z-index: 3; }
.storyview .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.storyview .bars i.done { background: #fff; }
.storyview .bars i.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: sbar 6s linear forwards; }
@keyframes sbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.storyview .who { display: flex; align-items: center; gap: 8px; padding: 4px 10px; position: relative; z-index: 3; }
.storyview .who small { opacity: .75; }
.storyview .who .ib { color: #fff; }
.storyview .who .ib:hover { background: rgba(255, 255, 255, .15); }
.storyview .who .chip { background: rgba(255, 255, 255, .2); border: 0; color: #fff; padding: 3px 10px; font-size: 12px; }
.storyview .stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.storyview .stage img, .storyview .stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.storyview .stage.ad { padding: 20px; }
.storyview .stage.ad .adcard { flex-direction: column; text-align: center; border-radius: 20px; background: var(--bg); color: var(--text); width: 100%; padding: 22px; position: relative; z-index: 3; }
.storyview .stage.ad .adcard img, .storyview .stage.ad .adcard .adart { width: 100%; height: auto; aspect-ratio: 1; max-height: 50vh; }
.storyview .tapl, .storyview .tapr { position: absolute; top: 90px; bottom: 80px; width: 35%; z-index: 2; cursor: pointer; }
.storyview .tapl { left: 0; } .storyview .tapr { right: 0; }
.storyview .foot { display: flex; gap: 8px; align-items: center; padding: 10px 12px calc(12px + var(--safe-b)); position: relative; z-index: 3; }
.storyview .foot input { flex: 1; background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 999px; padding: 10px 16px; outline: none; }
.storyview .foot .send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.storyview .foot .btn { background: rgba(255, 255, 255, .15); color: #fff; border: 0; }
.storypick { display: grid; gap: 10px; margin: 6px 0 12px; }
.sprev { display: block; width: 100%; max-height: 50vh; object-fit: contain; border-radius: 16px; background: var(--soft); margin-bottom: 8px; }

/* ---- Pride touches ---- */
.chip.rainbow { border: 0; color: #fff; background: linear-gradient(135deg, #e40303, #ff8c00, #d4b600, #008026, #004dff, #750787); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.pride-line { display: block; font-weight: 700; background: linear-gradient(90deg, #e40303, #ff8c00, #d4b600, #008026, #004dff, #750787); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.pride-month { --grad: linear-gradient(135deg, #e40303 0%, #ff8c00 20%, #d4b600 40%, #008026 60%, #004dff 80%, #750787 100%); }

/* ---- Private album ---- */
.albumgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.aitem { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--soft-2); cursor: pointer; }
.aitem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aitem.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line); background: var(--soft); color: var(--muted); font-size: 13px; }
.aitem .vtag { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 8px; padding: 2px 5px; display: flex; }
.aitem .pro { margin-left: 4px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--grad); color: #fff; }
.albumview { display: grid; gap: 8px; padding: 12px 16px; }
.albumview img, .albumview video { width: 100%; border-radius: 14px; background: #000; display: block; max-height: 80vh; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.albumnote { display: flex; align-items: center; gap: 6px; }
.albumnote b { margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 13px; }

/* ---- Voice messages ---- */
.voice { display: flex; flex-direction: column; gap: 2px; }
.voice audio { width: 220px; max-width: 60vw; height: 36px; }
.voice small { opacity: .75; font-size: 11px; }
.recbar { display: flex; align-items: center; gap: 10px; width: 100%; }
.recdot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.sysline.callnote { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ---- Calls ---- */
.top .callbtn { color: var(--text); }
.callview { position: fixed; inset: 0; z-index: 90; background: linear-gradient(160deg, #1b1f27, #0b0d10); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(40px + env(safe-area-inset-top, 0px)) 20px calc(36px + var(--safe-b)); }
.callview #callthem { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; background: #000; }
.callview.video.live #callthem { opacity: 1; }
.callview:not(.video) #callthem { width: 1px; height: 1px; }
.callview .who { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.callview .who b { font-size: 24px; }
.callview .who span { opacity: .8; }
.callview.video.live .who { flex-direction: row; align-self: flex-start; gap: 10px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.callview.video.live .who .av { width: 36px; height: 36px; font-size: 14px; }
.callview.video.live .who b { font-size: 16px; }
.callview #callme { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); width: 96px; height: 136px; border-radius: 14px; object-fit: cover; background: #222; transform: scaleX(-1); box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.callbtns { position: relative; display: flex; gap: 28px; }
.cb { width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cb.off { background: #fff; color: #111; }
.cb.end { background: #e0245e; }
.cb.end svg { transform: rotate(135deg); }
.cb.ok { background: #10b981; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, .25); } }

/* =====================================================================================
   Modern refresh: type, buttons, chips, floating nav, rounded grid, softer surfaces.
   ===================================================================================== */
svg.i { stroke-width: 1.85; }
h1, h2, .pname, .top h1, .hdr h2, .sheet h2, .formpage h1, .ghead h2, .plan .ph b, .empty b { font-family: var(--head); letter-spacing: -.02em; }

/* Header: big title, no hard line */
.top { border-bottom: 0; min-height: 58px; padding: 10px 12px 10px 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); }
.top h1 { font-size: 22px; font-weight: 750; }
.wordmark { font-family: var(--head); font-size: 28px; font-weight: 800; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.ib { width: 42px; height: 42px; }
.ib:hover { background: var(--soft); }

/* Floating bottom bar on phones */
@media (max-width: 899px) {
  .nav { left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); padding: 6px; border: 1px solid var(--line); border-radius: 26px;
    background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(22px); box-shadow: var(--shadow); max-width: 560px; margin: 0 auto; }
  .nav a { padding: 8px 0; }
  .page { padding-bottom: calc(100px + var(--safe-b)); }
  .bar { bottom: calc(80px + var(--safe-b)); background: transparent; border-top: 0; }
  .bar .in { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
  .barpad { height: 120px; }
  #toast { bottom: calc(96px + var(--safe-b)); }
}
.nav .create { width: 48px; height: 38px; border-radius: 14px; background: var(--grad); color: #fff; }
.nav a.on { color: var(--text); }
.nav a.on svg.i { stroke-width: 2.4; }
@media (min-width: 900px) {
  .nav .create { background: var(--grad); color: #fff; border-radius: 16px; padding: 13px; }
  .nav a.on { background: var(--soft); }
}

/* Buttons: black and white for the main action, the bold colour only where it counts */
.btn { border: 0; background: var(--soft); border-radius: 14px; padding: 10px 18px; font-weight: 700; transition: transform .12s, background .15s, opacity .15s; }
.btn:hover { background: var(--soft-2); }
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--text); color: var(--bg); border: 0; }
.btn.dark:hover { opacity: .86; background: var(--text); }
.btn.brand { background: var(--grad); color: #fff; border: 0; }
.btn.brand:hover { opacity: .92; background: var(--grad); }
.btn.sm { padding: 7px 14px; border-radius: 12px; }
.btn.block { padding: 15px; border-radius: 16px; }
.btn.danger { background: color-mix(in srgb, var(--danger) 10%, var(--bg)); color: var(--danger); }

/* Chips: soft fills, no outlines */
.chip { border: 0; background: var(--soft); padding: 7px 14px; font-weight: 600; font-size: 14px; }
button.chip:hover { background: var(--soft-2); }
.chip.on, button.chip.on { background: var(--text); color: var(--bg); }
.quick { padding: 6px 12px 10px; top: 58px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); }
.chip .pro, .switch .pro, .aitem .pro { background: var(--grad); }

/* Labels in sentence case, not shouting */
.label, .grouptitle { text-transform: none; letter-spacing: -.005em; font-size: 15px; font-weight: 750; color: var(--text); font-family: var(--head); }
.grouptitle { padding: 22px 16px 8px; }

/* Grouped settings as rounded cards */
.group { border: 0; background: var(--soft); border-radius: 20px; margin: 0 12px 6px; overflow: hidden; }
.group > * + * { border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
.group .mi:hover { background: var(--soft-2); }
.mi { padding: 15px 16px; font-weight: 500; }

/* Forms */
.field input, .field select, .field textarea, .inp { background: var(--soft); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 14px; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { background: var(--bg); border-color: var(--text); box-shadow: none; }
.field > span { color: var(--text); font-weight: 650; }
.switch input:checked { background: var(--brand); }
.search input { border-radius: 14px; }
.search input:focus { box-shadow: 0 0 0 1.5px var(--text); }

/* Tabs */
.seg { top: 58px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); }
.seg .on { font-weight: 750; }
.seg .on::after { width: 36px; height: 3px; background: var(--grad); }

/* People grid: rounded tiles with breathing room */
.grid { gap: 4px; padding: 0 4px; }
.tile { border-radius: 14px; }
.tile .cap { padding: 26px 9px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.tile .cap b { font-size: 13.5px; font-weight: 700; }
.tile.upsell { background: var(--grad); color: #fff; }
.tile.adtile { border-radius: 14px; }
.tile.boosted { box-shadow: inset 0 0 0 2.5px var(--brand); }

/* Avatars and story rings */
.ring { background: var(--grad); }
.ring.seen { background: var(--line); }
.online::after { background: var(--ok); }

/* Posts */
.post { padding: 14px 16px; }
.media { border-radius: 18px; border: 0; }
.act.liked { color: var(--brand); }

/* Profile: soft header with the rainbow line */
.cover { height: 120px; opacity: 1; background: var(--grad); position: relative; }
.cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rainbow); }
.pname { font-size: 26px; font-weight: 800; }
.stats b { font-family: var(--head); font-size: 17px; }

/* Welcome: dark, bold type */
.hero { background: var(--grad); color: #fff; padding: 72px 24px 44px; }
.hero::after { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 5px; border-radius: 0; background: var(--rainbow); }
.hero h1 { font-family: var(--head); font-size: 56px; font-weight: 800; letter-spacing: -.05em; }
.hero p { font-size: 18px; opacity: .95; line-height: 1.45; }
.feat .fi { border-radius: 14px; background: var(--soft); color: var(--brand); }

/* Cards, sheets, notes */
.card { border: 0; border-radius: 20px; box-shadow: none; background: var(--soft); }
.sheet { border-radius: 28px 28px 0 0; }
@media (min-width: 600px) { .sheet { border-radius: 28px; } }
#modal { background: rgba(0, 0, 0, .38); backdrop-filter: blur(4px); }
.note { border-radius: 18px; }
.note.warm { background: color-mix(in srgb, var(--brand-2) 14%, var(--bg)); }
.plan { border-radius: 22px; border: 1.5px solid var(--line); }
.plan.current { border-color: var(--brand); }
.plan.pro { background: color-mix(in srgb, var(--brand) 6%, var(--bg)); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.plan.badge { background: var(--bg); }
#toast { border-radius: 999px; padding: 12px 20px; }
.more, .link, .incomm, .postto { color: var(--brand); }

/* Chats */
.bubble { border-radius: 22px; padding: 10px 15px; }
.thread .bubble:not(.mine) { border-bottom-left-radius: 8px; }
.bubble.mine { border-bottom-right-radius: 8px; }
.bar textarea { border: 0; background: var(--soft); border-radius: 22px; }
.bar .send { background: var(--grad); }
.chatrow { padding: 12px 16px; }
.unreaddot { background: var(--brand); }

/* Pride touches use the real flag colours */
.pride-line { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; }
.chip.rainbow { background: var(--rainbow); }

/* No photo yet: a soft tint with the first letter in colour */
.ini { background: var(--c, #888); }
.av .ini, .tile .ini, .card .ph .ini { color: #fff; font-family: var(--head); }
.tile .ini { font-size: 46px; padding-bottom: 18px; }
.ini.gp svg { color: #fff; }

/* Ad tile in the grid: picture on top, a short line under it */
.tile.adtile { background: var(--soft); }
.tile.adtile .adtxt { padding: 7px 9px; gap: 1px; min-width: 0; }
.tile.adtile .adtxt small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tile.adtile .adtxt b { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.adart { background: color-mix(in srgb, var(--brand) 14%, var(--bg)); color: var(--brand); }
.adcard { background: var(--bg); border: 1.5px solid var(--line); border-radius: 20px; margin: 10px 12px; }

/* Terms and privacy */
.legal h2 { font-size: 20px; margin: 22px 0 6px; }
.legal p { margin: 8px 0; line-height: 1.55; }
