/* Tonight — design system.  Mobile first: everything below is written for a phone and widened with min-width queries.
   Bootstrap 5.3 is loaded first (modals, dropdowns, offcanvas, utilities); this file is the brand layer on top of it. */

@font-face { font-family: 'Bricolage Grotesque'; src: url(../vendor/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(../vendor/fonts/figtree-latin-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }

/* =============================================================== tokens */
:root, [data-bs-theme="light"] {
  color-scheme: light;
  --bg: #F6F4FB;
  --surface: #FFFFFF;
  --surface-2: #EFECF8;
  --surface-3: #E4E0F2;
  --ink: #17122E;
  --ink-soft: #6B6486;
  --line: #E5E1F0;
  --link: #5B3FD0;
  --night: #1B1442;
  --night-2: #2B2063;
  --glow: #FFB84D;
  --glow-2: #FF8A4C;
  --on-glow: #26134A;
  --like: #FF4D73;
  --online: #22C55E;
  --danger: #E5384F;
  --focus: rgba(255, 184, 77, .6);
  --shadow: 0 12px 34px rgba(23, 18, 46, .10);
  --shadow-sm: 0 2px 10px rgba(23, 18, 46, .07);
  --nav-bg: rgba(255, 255, 255, .84);
  --scrim: rgba(14, 9, 32, .55);
}
[data-bs-theme="dark"] {
  color-scheme: dark;
  --bg: #0C0919;
  --surface: #16122B;
  --surface-2: #201A3D;
  --surface-3: #2D2552;
  --ink: #F4F1FF;
  --ink-soft: #A9A2CB;
  --line: #29224D;
  --link: #B9A8FF;
  --like: #FF6384;
  --focus: rgba(255, 184, 77, .55);
  --shadow: 0 12px 34px rgba(0, 0, 0, .5);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --nav-bg: rgba(14, 10, 30, .84);
}
:root {
  --grad-glow: linear-gradient(135deg, var(--glow) 0%, var(--glow-2) 100%);
  --grad-night: linear-gradient(160deg, #2B2063 0%, #1B1442 55%, #120C2C 100%);
  --nav-h: 56px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;

  --bs-body-font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-secondary-color: var(--ink-soft);
  --bs-link-color: var(--link);
  --bs-link-hover-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-emphasis-color: var(--ink);
  --bs-tertiary-bg: var(--surface-2);
  --bs-secondary-bg: var(--surface-2);
}
[data-bs-theme="dark"] { --bs-body-bg: var(--bg); --bs-body-color: var(--ink); --bs-border-color: var(--line); --bs-link-color: var(--link); --bs-secondary-color: var(--ink-soft); }

/* =============================================================== base */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
.container { --bs-gutter-x: 2rem; }      /* 16px side gutters on a phone */
body { overflow-x: clip; }            /* a stray wide element must never widen the phone's layout */
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
h1, h2, h3, h4, .display-font { font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; letter-spacing: -0.015em; font-weight: 700; color: var(--ink); }
a { text-underline-offset: 3px; }
img { -webkit-user-drag: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.text-soft { color: var(--ink-soft) !important; }
.text-body { color: var(--ink) !important; }
.flex-none { flex: none; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 184, 77, .45); }

/* =============================================================== buttons */
.btn { --bs-btn-border-radius: 999px; border-radius: 999px; font-weight: 650; padding: .62rem 1.3rem; line-height: 1.25; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .12s ease, filter .15s ease, background .15s ease; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; min-height: 52px; }
.btn-sm { padding: .38rem .95rem; font-size: .88rem; }
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-brand { --bs-btn-color: var(--on-glow); --bs-btn-hover-color: var(--on-glow); --bs-btn-active-color: var(--on-glow); --bs-btn-disabled-color: var(--on-glow);
  --bs-btn-bg: transparent; --bs-btn-hover-bg: transparent; --bs-btn-active-bg: transparent; --bs-btn-disabled-bg: transparent;
  --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; --bs-btn-active-border-color: transparent; --bs-btn-disabled-border-color: transparent;
  background-image: var(--grad-glow); box-shadow: 0 6px 18px rgba(255, 138, 76, .32); }
.btn-brand:hover { filter: brightness(1.05); }
.btn-brand:disabled, .btn-brand.disabled { filter: grayscale(.4) opacity(.55); box-shadow: none; }
.btn-quiet { --bs-btn-color: var(--ink); --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-border-color: var(--surface-3); --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: var(--surface-3); --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: var(--surface-3); --bs-btn-disabled-bg: var(--surface); --bs-btn-disabled-color: var(--ink-soft); --bs-btn-disabled-border-color: var(--line); }
.btn-ghost { --bs-btn-color: var(--ink-soft); --bs-btn-border-color: transparent; --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: transparent; --bs-btn-active-bg: var(--surface-3); --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: transparent; }
.btn-danger { --bs-btn-bg: var(--danger); --bs-btn-border-color: var(--danger); --bs-btn-hover-bg: #c92a40; --bs-btn-hover-border-color: #c92a40; --bs-btn-active-bg: #b92338; --bs-btn-active-border-color: #b92338; }
.btn-outline-danger { --bs-btn-color: var(--danger); --bs-btn-border-color: var(--danger); --bs-btn-hover-bg: var(--danger); --bs-btn-hover-border-color: var(--danger); --bs-btn-active-bg: var(--danger); --bs-btn-active-border-color: var(--danger); }
.btn-light { --bs-btn-bg: rgba(255,255,255,.92); --bs-btn-color: #17122E; --bs-btn-border-color: transparent; --bs-btn-hover-bg: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { color: var(--ink-soft); text-decoration: none; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--ink); cursor: pointer; transition: transform .15s ease, background .15s; flex: none; padding: 0; text-decoration: none; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.flat { background: var(--surface); border: 1px solid var(--line); }
.icon-btn.glass { background: rgba(14, 9, 32, .42); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.icon-btn.glass:hover { background: rgba(14, 9, 32, .6); color: #fff; }

/* =============================================================== forms */
.form-select { max-width: 100%; text-overflow: ellipsis; }
.form-control, .form-select { min-height: 50px; border-radius: var(--r-md); border: 1.5px solid var(--line); background-color: var(--surface); color: var(--ink); padding: .7rem 1rem; font-size: 1rem; }
textarea.form-control { min-height: 0; }
.form-control::placeholder { color: var(--ink-soft); opacity: .7; }
.form-control:focus, .form-select:focus { background-color: var(--surface); color: var(--ink); border-color: var(--glow); box-shadow: 0 0 0 .25rem var(--focus); }
.form-control.is-invalid { border-color: var(--danger); background-image: none; }
.form-label { font-weight: 650; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.form-text { color: var(--ink-soft); }
.invalid-feedback { color: var(--danger); }
.form-check-input { border: 1.5px solid color-mix(in srgb, var(--ink-soft) 60%, transparent); background-color: var(--surface); }
.form-check-input:checked { background-color: var(--glow-2); border-color: var(--glow-2); }
.form-check-input:focus { border-color: var(--glow); box-shadow: 0 0 0 .25rem var(--focus); }
.form-switch .form-check-input { width: 2.6em; height: 1.45em; }
.form-switch .form-check-input:checked { background-color: var(--glow-2); border-color: var(--glow-2); }
.form-switch .form-check-input:not(:checked) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23a9a2cb'/%3e%3c/svg%3e"); }

/* segmented control */
.seg { position: relative; display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; max-width: 100%; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg label { padding: .5rem 1.05rem; border-radius: 999px; cursor: pointer; font-weight: 650; font-size: .92rem; color: var(--ink-soft); margin: 0; white-space: nowrap; transition: background .15s, color .15s; text-align: center; }
.seg input:checked + label { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; }
.seg.seg-full { display: flex; width: 100%; }
.seg.seg-full label { flex: 1; }
.seg .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: .35rem; border-radius: 999px; background: var(--like); color: #fff; font-size: .7rem; line-height: 18px; }

/* big choice tiles (radio) */
.tiles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tiles input { position: absolute; opacity: 0; pointer-events: none; }
.tiles label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 78px; padding: .7rem .4rem; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .12s; }
.tiles label small { font-weight: 500; color: var(--ink-soft); font-size: .76rem; }
.tiles label:active { transform: scale(.97); }
.tiles input:checked + label { border-color: var(--glow-2); background: color-mix(in srgb, var(--glow) 16%, var(--surface)); box-shadow: 0 0 0 3px var(--focus); }
.tiles input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* chips */
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .15rem 1rem; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; font-size: .9rem; white-space: nowrap; cursor: pointer; user-select: none; flex: none; transition: background .15s, border-color .15s; }
.chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on, .chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip .dot.inline { margin: 0; }

/* range sliders */
input[type=range].range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; }
input[type=range].range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--glow-2) var(--fill, 50%), var(--surface-3) var(--fill, 50%)); }
input[type=range].range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--surface-3); }
input[type=range].range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--glow-2); }
input[type=range].range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--glow-2); margin-top: -10px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
input[type=range].range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--glow-2); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.dual { position: relative; height: 32px; }
.dual .track { position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 99px; background: var(--surface-3); }
.dual .track i { position: absolute; top: 0; bottom: 0; background: var(--glow-2); border-radius: 99px; }
.dual input[type=range] { -webkit-appearance: none; appearance: none; position: absolute; left: 0; top: 0; width: 100%; height: 32px; margin: 0; background: transparent; pointer-events: none; }
.dual input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 6px; }
.dual input[type=range]::-moz-range-track { background: transparent; }
.dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--glow-2); margin-top: -10px; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--glow-2); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; }
.range-val { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.1rem; }

/* =============================================================== brand */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; flex: none; }
.brand-mark i { background: var(--ink); border-radius: 3px; opacity: .2; }
.brand-mark i.lit { background: var(--grad-glow); opacity: 1; box-shadow: 0 0 10px rgba(255, 184, 77, .55); }
.brand.on-dark { color: #fff; }
.brand.on-dark:hover { color: #fff; }
.brand.on-dark .brand-mark i { background: #fff; opacity: .18; }
.brand.on-dark .brand-mark i.lit { background: var(--grad-glow); opacity: 1; }

/* =============================================================== navigation */
.topbar { position: sticky; top: 0; z-index: 30; padding-top: var(--safe-t); background: var(--nav-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 0 1rem; max-width: 1080px; margin: 0 auto; }
.topbar .slot { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.navlinks { display: none; gap: .25rem; }
.navlink { position: relative; display: flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 650; }
.navlink svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.navlink:hover { color: var(--ink); background: var(--surface-2); }
.navlink.active { color: var(--ink); background: var(--surface-2); }
.navlink.active svg { stroke: var(--glow-2); }
.badge-dot { position: absolute; top: 2px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--like); color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--nav-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar .navlink { flex-direction: column; justify-content: center; gap: .15rem; padding: .35rem 0; border-radius: 0; font-size: .7rem; background: none; }
.tabbar .navlink.active { color: var(--ink); }
.tabbar .navlink.active::before { content: ''; position: absolute; top: 0; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 4px 4px; background: var(--grad-glow); box-shadow: 0 2px 10px rgba(255, 138, 76, .6); }
.tabbar .badge-dot { left: calc(50% + 6px); top: 5px; }
body.in-thread .tabbar, body.hide-tabs .tabbar { display: none; }
body.immersive .topbar { display: none; }
body.immersive .profile-page { padding-top: 0; }
@media (min-width: 900px) { body.immersive .topbar { display: block; } body.immersive .profile-page { padding: 1.75rem 1.5rem 3rem; max-width: 1080px; margin: 0 auto; } }
.page { padding-top: 1rem; padding-bottom: calc(var(--tab-h) + 2rem + var(--safe-b)); }
body.no-tabs .page { padding-bottom: 2rem; }
.feed-col { max-width: 520px; margin: 0 auto; }
.page-title { font-size: 1.6rem; margin: .25rem 0 .25rem; }
@media (min-width: 768px) {
  .navlinks { display: flex; }
  .tabbar { display: none; }
  .page { padding-top: 1.75rem; padding-bottom: 3rem; }
  .topbar .wrap { padding: 0 1.5rem; }
}

/* =============================================================== avatars, dots, badges */
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; display: block; }
.avatar.sm { width: 38px; height: 38px; }
.avatar.lg { width: 64px; height: 64px; }
.avatar-wrap { position: relative; flex: none; display: inline-block; }
.avatar-wrap .dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface); flex: none; }
.dot.on { background: var(--online); box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.dot.inline { border-color: transparent; width: 9px; height: 9px; }
.vbadge { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #2B95E8; vertical-align: -2px; flex: none; }
.vbadge svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
h1 .vbadge { width: 22px; height: 22px; vertical-align: 3px; }
h1 .vbadge svg { width: 14px; height: 14px; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--ink-soft); }
.pill.ok { background: rgba(34, 197, 94, .15); color: #15803d; }
[data-bs-theme="dark"] .pill.ok { color: #4ade80; }
.pill.warn { background: rgba(255, 184, 77, .2); color: #9a5a00; }
[data-bs-theme="dark"] .pill.warn { color: #FFC970; }

/* =============================================================== feed posts (photo first, details underneath) */
.post { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; overflow: hidden; border: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 620px; }
.media { position: relative; background: var(--surface-3); aspect-ratio: 4 / 5; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.media-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: auto; touch-action: manipulation; }
.media-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; margin: 0; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: linear-gradient(0deg, rgba(10, 6, 24, .45), transparent); pointer-events: none; }
.media-dots { position: absolute; z-index: 2; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(14, 9, 32, .32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: none; }
.media-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: transform .2s, background .2s; }
.media-dots i.on { background: #fff; transform: scale(1.3); }
.media-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; display: none; place-items: center; background: rgba(14, 9, 32, .5); color: #fff; backdrop-filter: blur(6px); cursor: pointer; opacity: 0; transition: opacity .2s; }
.media-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.media-nav.prev { left: 10px; } .media-nav.next { right: 10px; }
.media-nav[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) { .media[data-count]:not([data-count="1"]) .media-nav { display: grid; } .media:hover .media-nav { opacity: 1; } }
.burst { position: absolute; z-index: 4; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; opacity: 0; transform: scale(.4); }
.burst svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 6px 18px rgba(255, 77, 115, .65)); }
.burst.go { animation: burst .8s ease-out; }
@keyframes burst { 0% { opacity: 0; transform: scale(.4); } 18% { opacity: 1; transform: scale(1.15); } 36% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }
.post-info { display: flex; align-items: center; gap: .5rem; padding: .65rem .6rem .65rem 1rem; }
.post-who { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: block; }
.post-who:hover { color: inherit; }
.post-name { display: flex; align-items: center; gap: .4rem; font-weight: 750; font-size: 1.1rem; line-height: 1.2; }
.post-name .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-name .dot { margin-left: .1rem; }
.post-sub { display: flex; align-items: center; gap: .3rem; color: var(--ink-soft); font-size: .88rem; margin-top: .15rem; white-space: nowrap; overflow: hidden; }
.post-sub svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.post-sub span { overflow: hidden; text-overflow: ellipsis; }
.post-actions { display: flex; align-items: center; gap: .1rem; flex: none; }
.act { width: 46px; height: 46px; border-radius: 50%; border: 0; background: none; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; transition: transform .15s; }
.act:hover { color: var(--ink); background: var(--surface-2); }
.act:active { transform: scale(.88); }
.act svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act.is-liked { color: var(--like); }
.act.is-liked svg { fill: var(--like); stroke: var(--like); }
.act.pop svg { animation: pop .38s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.post-bio { margin: 0; padding: 0 1rem 1rem; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post-bio:empty { display: none; }
.post.sk-post { border: 0; box-shadow: none; background: transparent; content-visibility: visible; }
.sk-post .sk-info { padding: .7rem .2rem; }
/* sentinel / end of feed */
.feed-end { text-align: center; color: var(--ink-soft); padding: 1.5rem 1rem 0; font-size: .92rem; }
.spinner-dots { display: inline-flex; gap: 6px; padding: 1rem; }
.spinner-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--glow-2); animation: bounce 1s infinite ease-in-out; }
.spinner-dots i:nth-child(2) { animation-delay: .15s; } .spinner-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* filter bar under the top bar */
.filterbar { position: sticky; top: calc(var(--nav-h) + var(--safe-t)); z-index: 20; margin: 0 -1rem .9rem; padding: .6rem 0 .5rem; background: linear-gradient(var(--bg) 70%, transparent); }
@media (min-width: 768px) { .filterbar { margin: 0 0 .9rem; } .filterbar .chips { padding-left: 0; padding-right: 0; } }

/* =============================================================== lists (likes, etc.) */
.rows { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.row-item { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; }
.row-item:last-child { border-bottom: 0; }
a.row-item:hover { background: var(--surface-2); color: inherit; }
.row-item .grow { flex: 1; min-width: 0; line-height: 1.25; }
.row-item .t { font-weight: 700; display: flex; align-items: center; gap: .35rem; }
.row-item .s { color: var(--ink-soft); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; padding: 3.5rem 1.25rem; color: var(--ink-soft); }
.empty h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: .4rem; }
.empty .art { width: 84px; height: 84px; margin: 0 auto 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.empty .art i { background: var(--surface-3); border-radius: 10px; }
.empty .art i.lit { background: var(--grad-glow); box-shadow: 0 0 22px rgba(255, 184, 77, .55); animation: glow 2.6s ease-in-out infinite; }
.empty .art i.lit:nth-child(3) { animation-delay: 1.2s; }
@keyframes glow { 50% { opacity: .55; } }

/* skeletons */
.sk { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 12px; }
.sk-card { aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.sk-circle { width: 44px; height: 44px; border-radius: 50%; }
.sk-line { height: 14px; margin: .5rem 0; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* =============================================================== panels & sections */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.15rem; }
@media (min-width: 576px) { .panel { padding: 1.5rem; } }
.panel h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.panel .lead, .lead { font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.panel > h2:first-child { margin-top: 0; }
.section-label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 1.4rem .25rem .55rem; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.toggle-row:first-child { padding-top: 0; }
.toggle-row .form-check-input { margin: 0; flex: none; }
.toggle-row .lbl { font-weight: 650; }
.toggle-row .sub { display: block; font-size: .84rem; color: var(--ink-soft); font-weight: 400; }
.banner { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--glow-2); border-radius: var(--r-md); padding: .85rem 1rem; margin-bottom: 1rem; }
.banner .grow { flex: 1 1 220px; line-height: 1.3; }
.banner strong { display: block; }
.alert { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.alert-light { background: var(--surface); }
.alert-warning { background: rgba(255, 184, 77, .16); border-color: rgba(255, 184, 77, .45); color: var(--ink); }
.alert-danger { background: rgba(229, 56, 79, .12); border-color: rgba(229, 56, 79, .4); color: var(--ink); }
.privacy-box { background: color-mix(in srgb, var(--online) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--online) 35%, var(--line)); border-radius: var(--r-md); padding: .9rem 1rem; }

/* =============================================================== sheets (bottom drawers) + modals */
.offcanvas.sheet.offcanvas-bottom { height: auto; }
.offcanvas.sheet.tall.offcanvas-bottom { height: 67dvh; }
.sheet-foot { display: flex; gap: .6rem; padding: .8rem 1.25rem calc(.8rem + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); flex: none; }
.section-label.first { margin-top: .25rem; }
.offcanvas.sheet { --bs-offcanvas-bg: var(--surface); --bs-offcanvas-color: var(--ink); border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92dvh; border: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); }
.offcanvas.sheet::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 4px; background: var(--surface-3); margin: 10px auto 0; flex: none; }
.offcanvas.sheet .offcanvas-header { padding: .8rem 1.25rem .4rem; }
.offcanvas.sheet .offcanvas-body { padding: .5rem 1.25rem calc(1.25rem + var(--safe-b)); }
.offcanvas-backdrop { --bs-backdrop-bg: #0e0920; }
@media (min-width: 768px) { .offcanvas.sheet.offcanvas-bottom { left: 50%; right: auto; width: 520px; transform: translate(-50%, 100%); } .offcanvas.sheet.offcanvas-bottom.show { transform: translate(-50%, 0); } }
.modal-content { border-radius: var(--r-lg); border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.modal-header, .modal-footer { border-color: var(--line); }
.btn-close { filter: none; }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
.dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-color: var(--ink); --bs-dropdown-link-hover-bg: var(--surface-2); --bs-dropdown-link-hover-color: var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow); padding: .4rem; }
.dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-weight: 550; }

.toast-stack { position: fixed; z-index: 2000; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 16px + var(--safe-b)); width: min(92vw, 420px); display: grid; gap: .5rem; pointer-events: none; }
body.no-tabs .toast-stack, body.in-thread .toast-stack, body.hide-tabs .toast-stack { bottom: calc(16px + var(--safe-b)); }
@media (min-width: 768px) { .toast-stack { bottom: 24px; } }
.toast-stack .toast { border-radius: 16px; border: 0; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-weight: 550; pointer-events: auto; }
.toast-stack .toast.err { background: var(--danger); color: #fff; }

/* =============================================================== profile page */
.profile-wrap { max-width: 980px; margin: 0 auto; }
.pgallery { position: relative; }
.pgallery .media { border-radius: 0; aspect-ratio: 4 / 5; max-height: 76dvh; width: 100%; }
.pfloat { position: absolute; z-index: 5; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.pfloat > * { pointer-events: auto; }
.pgallery .media-dots { bottom: 44px; }
.pgallery .media::after { height: 120px; }
.pgallery .pfloat { top: calc(14px + var(--safe-t)); }
.pbody { position: relative; z-index: 6; margin-top: -28px; background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 1.4rem 1rem 1rem; }
.pname { font-size: 1.9rem; line-height: 1.1; margin: 0 0 .35rem; }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; color: var(--ink-soft); font-size: .95rem; }
.pmeta .item { display: inline-flex; align-items: center; gap: .35rem; }
.pmeta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bio { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 1.04rem; }
.contact-box { border: 1.5px dashed var(--surface-3); border-radius: var(--r-md); padding: .9rem 1rem; background: var(--surface); }
.contact-box.revealed { border-style: solid; border-color: var(--online); background: color-mix(in srgb, var(--online) 10%, var(--surface)); }
.action-bar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: .7rem 1rem calc(.7rem + var(--safe-b)); background: var(--nav-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line); display: flex; gap: .7rem; align-items: center; }
.action-bar .btn { flex: 1; }
.like-circle { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; flex: none; cursor: pointer; transition: transform .15s; }
.like-circle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.like-circle:active { transform: scale(.88); }
.like-circle.is-liked { color: var(--like); border-color: var(--like); }
.like-circle.is-liked svg { fill: var(--like); }
.like-circle.pop svg { animation: pop .38s ease; }
.profile-page { padding-bottom: calc(96px + var(--safe-b)); }
@media (min-width: 900px) {
  .profile-wrap { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; gap: 2rem; align-items: start; }
  .pgallery { position: sticky; top: calc(var(--nav-h) + 1.25rem); }
  .pgallery .media { border-radius: var(--r-xl); max-height: none; }
  .pgallery .pfloat { top: 14px; }
  .pgallery .media-dots { bottom: 14px; }
  .pbody { margin-top: 0; padding: .5rem 0 1rem; background: none; }
  .action-bar { position: static; padding: 0; background: none; border: 0; backdrop-filter: none; margin: 1.25rem 0 .5rem; }
  .profile-page { padding-bottom: 3rem; }
}

/* =============================================================== my profile */
.me-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.me-hero .avatar { width: 72px; height: 72px; }
.myphoto { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); }
.myphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.myphoto .tools { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 6px; justify-content: space-between; }
.tool-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .94); color: #17122E; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); padding: 0; }
.tool-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn.danger { color: var(--danger); }
.tool-btn:active { transform: scale(.9); }
.myphoto .tag { position: absolute; top: 8px; left: 8px; background: var(--ink); color: var(--bg); font-size: .7rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; }
.addphoto { aspect-ratio: 4 / 5; border-radius: var(--r-md); border: 2px dashed var(--surface-3); display: grid; place-items: center; text-align: center; color: var(--ink-soft); background: var(--surface); cursor: pointer; font-weight: 650; width: 100%; font-size: .9rem; transition: border-color .15s, color .15s; }
.addphoto:hover { border-color: var(--glow-2); color: var(--ink); }
.addphoto svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: block; margin: 0 auto .25rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.savebar { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 15; padding: .75rem 0; margin-top: 1rem; background: linear-gradient(transparent, var(--bg) 40%); }
@media (min-width: 768px) { .savebar { bottom: 0; } }

/* =============================================================== messages (inbox + conversation, WhatsApp-style, Tonight colours) */
:root, [data-bs-theme="light"] { --bubble-me: #FFE6B3; --bubble-them: #FFFFFF; --tick: #6B6486; --chat-dot: rgba(23, 18, 46, .05); --chat-lit: rgba(255, 138, 76, .16); }
[data-bs-theme="dark"] { --bubble-me: #4B3612; --bubble-them: #1E1938; --tick: #A9A2CB; --chat-dot: rgba(255, 255, 255, .035); --chat-lit: rgba(255, 184, 77, .10); }

.chat-shell { display: grid; grid-template-columns: 1fr; background: var(--surface); height: calc(100dvh - var(--nav-h) - var(--tab-h) - var(--safe-b) - var(--safe-t)); min-height: 420px; position: relative; overflow: hidden; }
body.in-thread .chat-shell { height: 100dvh; }
body.in-thread .topbar { display: none; }
.msg-page { padding: 0 !important; max-width: none !important; }
@media (min-width: 768px) {
  .msg-page { padding: 1.5rem !important; max-width: 1080px !important; }
  .chat-shell { grid-template-columns: 360px 1fr; height: calc(100dvh - var(--nav-h) - 3.5rem); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-height: 480px; }
  body.in-thread .chat-shell { height: calc(100dvh - var(--nav-h) - 3.5rem); }
  body.in-thread .topbar { display: block; }
}
.chat-list { overflow-y: auto; border-right: 1px solid var(--line); position: relative; display: flex; flex-direction: column; background: var(--surface); }
.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.chat-shell.thread-open .chat-list { display: none; }
.chat-shell:not(.thread-open) .chat-pane { display: none; }
@media (min-width: 768px) {
  .chat-shell.thread-open .chat-list, .chat-shell:not(.thread-open) .chat-pane { display: flex; }
  .btn-back { display: none !important; }
}

/* inbox */
.chat-list-head { padding: 1rem 1rem .4rem; position: sticky; top: 0; z-index: 3; background: var(--surface); }
.chat-list-head h1 { font-size: 1.65rem; margin: 0 0 .7rem; }
.inbox-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 0 0 .6rem; }
.inbox-chips::-webkit-scrollbar { display: none; }
.inbox-chips .chip { padding: .38rem .85rem; font-size: .86rem; }
.inbox-chips .chip .count { background: var(--like); color: #fff; border-radius: 999px; min-width: 18px; padding: 0 5px; font-size: .7rem; line-height: 18px; text-align: center; }
.inbox-chips .chip:has(input:checked) { background: color-mix(in srgb, var(--glow) 30%, var(--surface)); color: var(--ink); border-color: var(--glow-2); }
.convo { display: flex; gap: .85rem; align-items: center; padding: 0 1rem; text-decoration: none; color: inherit; border: 0; width: 100%; background: none; text-align: left; position: relative; }
.convo:hover, .convo.active { background: var(--surface-2); }
.convo .avatar { width: 54px; height: 54px; }
.convo .body { flex: 1; min-width: 0; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.convo .top, .convo .bottom { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.convo .nm { font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: .35rem; }
.convo .when { font-size: .76rem; color: var(--ink-soft); flex: none; }
.convo.unread .when { color: var(--glow-2); font-weight: 700; }
.convo .last { color: var(--ink-soft); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: .25rem; min-width: 0; }
.convo .last svg { width: 16px; height: 16px; fill: none; stroke: var(--tick); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.convo.unread .last { color: var(--ink); font-weight: 600; }
.convo .tagline { font-size: .74rem; font-weight: 700; color: var(--link); }
.pill-unread { background: var(--grad-glow); color: var(--on-glow); border-radius: 999px; font-size: .74rem; font-weight: 800; min-width: 22px; height: 22px; padding: 0 .45rem; display: inline-grid; place-items: center; flex: none; }
.list-sub { padding: .6rem 1rem; font-size: .8rem; color: var(--ink-soft); background: var(--surface-2); }
.fab { position: absolute; right: 1.1rem; bottom: 1.1rem; width: 58px; height: 58px; border-radius: 50%; background: var(--grad-glow); color: var(--on-glow); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(255, 138, 76, .45); text-decoration: none; z-index: 4; transition: transform .15s; }
.fab:hover { color: var(--on-glow); transform: scale(1.05); }
.fab:active { transform: scale(.94); }
.fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767.98px) { .fab { position: fixed; bottom: calc(var(--tab-h) + var(--safe-b) + 1rem); } body.in-thread .fab { display: none; } }

/* conversation */
.chat-head { display: flex; align-items: center; gap: .6rem; padding: calc(.55rem + var(--safe-t)) .75rem .55rem .4rem; border-bottom: 1px solid var(--line); background: var(--surface); }
@media (min-width: 768px) { .chat-head { padding: .55rem .75rem .55rem .6rem; } }
.chat-head .icon-btn { background: none; border: 0; }
.chat-head .who { display: flex; align-items: center; gap: .65rem; min-width: 0; text-decoration: none; color: inherit; flex: 1; }
.chat-head .who:hover { color: inherit; }
.chat-head .avatar { width: 42px; height: 42px; }
.chat-head strong { font-size: 1.02rem; line-height: 1.15; }
.chat-head .st { font-size: .78rem; color: var(--ink-soft); line-height: 1.2; }
.chat-head .st.on { color: var(--online); font-weight: 600; }
.chat-body { flex: 1; overflow-y: auto; padding: .9rem .8rem; display: flex; flex-direction: column; gap: .22rem; overscroll-behavior: contain;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 14px 14px, var(--chat-lit) 0 5px, transparent 5.5px);
  background-size: 120px 120px; background-position: 20px 30px; }
.bubble { position: relative; max-width: min(82%, 480px); padding: .42rem .7rem .3rem; border-radius: 14px; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.38; box-shadow: 0 1px 1.5px rgba(23, 18, 46, .12); color: var(--ink); }
.bubble.them { align-self: flex-start; background: var(--bubble-them); border-top-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--bubble-me); border-top-right-radius: 4px; }
.bubble.tail.them::before, .bubble.tail.me::before { content: ''; position: absolute; top: 0; width: 10px; height: 12px; }
.bubble.tail.them::before { left: -7px; background: var(--bubble-them); clip-path: polygon(100% 0, 100% 100%, 0 0); }
.bubble.tail.me::before { right: -7px; background: var(--bubble-me); clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble .meta { display: inline-flex; align-items: center; gap: .2rem; float: right; margin: .35rem 0 -.1rem .7rem; font-size: .66rem; color: var(--ink-soft); line-height: 1; }
.bubble .meta svg { width: 14px; height: 14px; fill: none; stroke: var(--tick); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bubble::after { content: ''; display: table; clear: both; }
.daysep { align-self: center; margin: .6rem 0 .3rem; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-soft); background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); padding: .22rem .8rem; border-radius: 10px; box-shadow: var(--shadow-sm); }
.sysmsg { align-self: center; max-width: 88%; font-size: .8rem; color: var(--ink-soft); background: color-mix(in srgb, var(--glow) 18%, var(--surface)); padding: .3rem .85rem; border-radius: 10px; text-align: center; margin: .25rem 0; }
.composer { display: flex; gap: .5rem; padding: .5rem .6rem; background: var(--bg); align-items: flex-end; padding-bottom: calc(.5rem + var(--safe-b)); }
.composer .field { flex: 1; display: flex; align-items: flex-end; background: var(--surface); border-radius: 24px; border: 1px solid var(--line); padding: 0 .35rem 0 .9rem; min-height: 46px; box-shadow: var(--shadow-sm); }
.composer .field:focus-within { border-color: var(--glow); box-shadow: 0 0 0 .2rem var(--focus); }
.composer textarea { flex: 1; border: 0; background: transparent; color: var(--ink); resize: none; max-height: 120px; padding: .72rem 0; outline: 0; line-height: 1.35; min-height: 46px; font: inherit; }
.composer textarea::placeholder { color: var(--ink-soft); opacity: .75; }
.composer .btn-photo { width: 40px; height: 40px; background: none; border: 0; margin-bottom: 3px; color: var(--ink-soft); }
.composer .btn-photo:hover { color: var(--ink); background: var(--surface-2); }
.composer .send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--grad-glow); color: var(--on-glow); display: grid; place-items: center; flex: none; box-shadow: 0 4px 14px rgba(255, 138, 76, .4); transition: transform .12s, filter .15s; padding: 0; }
.composer .send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; margin-left: -2px; }
.composer .send:active { transform: scale(.92); }
.composer .send:disabled { filter: grayscale(.5) opacity(.55); box-shadow: none; }
.chat-contact { padding: .6rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.safety-strip { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 1rem; background: rgba(255, 184, 77, .16); border-bottom: 1px solid rgba(255, 184, 77, .4); font-size: .82rem; color: var(--ink); }
.safety-strip button { margin-left: auto; background: none; border: 0; font-weight: 800; color: inherit; padding: 0 .25rem; white-space: nowrap; flex: none; }
.reqbar { padding: .9rem 1rem calc(.9rem + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }
.reqbar p { margin-bottom: .6rem; }
.reqbar .btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.waitbar { padding: .8rem 1rem calc(.8rem + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: .92rem; }
.introhint { padding: .55rem 1rem 0; background: var(--bg); font-size: .82rem; color: var(--ink-soft); }
.warn-chip { align-self: flex-start; max-width: min(80%, 460px); font-size: .76rem; color: #9b2c1f; background: rgba(229, 56, 79, .12); border-radius: 10px; padding: .25rem .6rem; margin-top: -.05rem; }
[data-bs-theme="dark"] .warn-chip { color: #ff9c92; }
.blank-pane { margin: auto; text-align: center; color: var(--ink-soft); padding: 2rem; }
.blank-pane h3 { color: var(--ink); }


.photo-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; width: 168px; aspect-ratio: 3 / 4; border-radius: 20px; border: 0; padding: 1rem; font-weight: 700; font-size: .88rem; text-align: center; color: #fff; background: var(--grad-night); }
.photo-tile svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.photo-tile small { font-weight: 600; opacity: .75; }
button.photo-tile.new { cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 184, 77, .8), 0 0 24px rgba(255, 184, 77, .25); }
.photo-tile.gone { background: var(--surface-2); color: var(--ink-soft); font-weight: 600; }
.photo-tile.them { align-self: flex-start; } .photo-tile.me { align-self: flex-end; }
.photo-note { align-self: flex-end; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-soft); background: var(--surface-2); padding: .4rem .8rem; border-radius: 999px; }
.photo-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(10, 6, 22, .97); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; color: #fff; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.viewer canvas { max-width: 100%; max-height: calc(100dvh - 150px); border-radius: 14px; pointer-events: none; }
.viewer-top { width: min(92vw, 560px); display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.viewer-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.viewer-bar i { display: block; height: 100%; width: 100%; background: var(--glow); transform-origin: left; }
.viewer-note { margin-top: .8rem; font-size: .82rem; opacity: .75; text-align: center; max-width: 46ch; }

/* =============================================================== PIN pad */
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 1.1rem 0 1.4rem; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-3); transition: background .12s, border-color .12s, transform .12s; }
.pin-dots span.on { background: var(--glow-2); border-color: var(--glow-2); transform: scale(1.1); }
.pin-grid { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; justify-content: center; }
.pin-grid button { height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--ink); transition: background .1s, transform .1s; }
.pin-grid button:hover { background: var(--surface-2); }
.pin-grid button:active { transform: scale(.94); background: var(--surface-3); }
.pin-grid button.blank { visibility: hidden; }
.pin-grid button.back { font-size: 1.1rem; border-color: transparent; background: none; }
.pin-shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* =============================================================== login */
.login-body { min-height: 100dvh; background: radial-gradient(1000px 520px at 10% 112%, rgba(255, 138, 76, .3), transparent 60%), var(--grad-night); color: #fff; position: relative; overflow-x: hidden; }
.skyline { position: fixed; inset: 0; display: grid; grid-template-columns: repeat(auto-fill, 42px); grid-auto-rows: 54px; gap: 10px; justify-content: center; align-content: end; padding: 0 10px 12px; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 90%); mask-image: linear-gradient(180deg, transparent 20%, #000 90%); }
.skyline .win { border-radius: 6px; background: rgba(255, 255, 255, .045); }
.skyline .win.lit { background: var(--glow); box-shadow: 0 0 22px rgba(255, 184, 77, .55); opacity: 0; animation: lightup .9s ease forwards; }
.skyline .win.dim { background: rgba(255, 184, 77, .5); box-shadow: 0 0 14px rgba(255, 184, 77, .25); }
@keyframes lightup { from { opacity: 0; } to { opacity: var(--o, .95); } }
@media (prefers-reduced-motion: reduce) { .skyline .win.lit { animation: none; opacity: var(--o, .95); } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } .sk { animation: none; } }
.login-wrap { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(1.5rem + var(--safe-t)) 0 calc(1.5rem + var(--safe-b)); }
.login-hero h1 { color: #fff; font-size: clamp(2.3rem, 9vw, 4.2rem); line-height: 1.02; margin: 1.25rem 0 .75rem; font-weight: 800; }
.login-hero p { font-size: 1.1rem; color: rgba(255, 255, 255, .78); max-width: 30ch; margin: 0; }
.login-card { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); padding: 1.5rem; box-shadow: 0 30px 80px rgba(8, 4, 24, .5); max-width: 440px; width: 100%; }
.login-card h2 { font-size: 1.5rem; }
.code-input { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2rem; letter-spacing: .5em; text-align: center; font-weight: 700; padding-left: .5em; }
.step[hidden] { display: none !important; }
@media (max-width: 991.98px) { .login-hero { text-align: left; margin-bottom: 1.5rem; } .login-hero h1 { margin-top: 1rem; } .login-wrap .container { max-width: 480px; } .login-card { max-width: none; } }

/* =============================================================== onboarding flow */
.flow-body { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.flow-top { padding: calc(.85rem + var(--safe-t)) 1rem .5rem; display: flex; align-items: center; gap: .75rem; max-width: 560px; width: 100%; margin: 0 auto; }
.flow-top .brand { font-size: 1.1rem; }
.stepper { flex: 1; display: flex; gap: 5px; }
.stepper i { flex: 1; height: 5px; border-radius: 4px; background: var(--surface-3); transition: background .3s; }
.stepper i.done { background: var(--glow-2); }
.stepper i.now { background: var(--grad-glow); box-shadow: 0 0 10px rgba(255, 138, 76, .5); }
.step-count { font-size: .82rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.flow-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 1rem 1rem 7rem; }
.flow-main h1 { font-size: 1.9rem; line-height: 1.1; margin: .5rem 0 .5rem; }
.flow-main .lead { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1.5rem; }
.flow-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: .8rem 1rem calc(.8rem + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 35%); z-index: 10; }
.flow-foot .inner { max-width: 560px; margin: 0 auto; display: flex; gap: .6rem; }
.flow-foot .btn-brand { flex: 1; }
.flow-step[hidden] { display: none !important; }
.f-group { margin-bottom: 1.35rem; }
.hint-card { display: flex; gap: .85rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1rem; font-size: .92rem; color: var(--ink-soft); }
.hint-card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-night); color: var(--glow); display: grid; place-items: center; flex: none; }
.hint-card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hint-card strong { color: var(--ink); display: block; }
.place-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-top: .4rem; overflow: hidden; }
.place-list button { display: flex; align-items: center; gap: .6rem; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: .75rem 1rem; text-align: left; color: var(--ink); }
.place-list button:last-child { border-bottom: 0; }
.place-list button:hover { background: var(--surface-2); }
.place-list svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-soft); stroke-width: 2; flex: none; }
.loc-btn { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; padding: 1rem; border-radius: var(--r-md); border: 2px solid var(--glow-2); background: color-mix(in srgb, var(--glow) 12%, var(--surface)); color: var(--ink); font-weight: 700; }
.loc-btn .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-glow); color: var(--on-glow); display: grid; place-items: center; flex: none; }
.loc-btn .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.loc-btn small { display: block; font-weight: 500; color: var(--ink-soft); }
.loc-btn.done { border-color: var(--online); background: color-mix(in srgb, var(--online) 10%, var(--surface)); }
.divider-or { display: flex; align-items: center; gap: .8rem; color: var(--ink-soft); font-size: .85rem; margin: 1rem 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* waiting / status hero */
.state-hero { text-align: center; padding: 2rem 1rem 1rem; }
.state-hero .mark { width: 92px; height: 92px; margin: 0 auto 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.state-hero .mark i { background: var(--surface-3); border-radius: 12px; }
.state-hero .mark i.lit { background: var(--grad-glow); box-shadow: 0 0 26px rgba(255, 184, 77, .6); animation: glow 2.4s ease-in-out infinite; }
.state-hero .mark i.lit:nth-child(3) { animation-delay: 1.2s; }
.checklist { list-style: none; padding: 0; margin: 0; text-align: left; }
.checklist li { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--ink-soft); }
.checklist .tick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.checklist li.done .tick { background: var(--online); color: #fff; }
.checklist li .tick.bad { background: var(--danger); color: #fff; }
.checklist li .tick.warn { background: var(--glow); color: var(--on-glow); }
.checklist li.now .tick { background: var(--grad-glow); color: var(--on-glow); animation: glow 1.8s ease-in-out infinite; }
.checklist .sub { display: block; font-size: .84rem; color: var(--ink-soft); }

/* =============================================================== verification */
.cam-frame { position: relative; width: 100%; max-width: 340px; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: #120d24; margin: 0 auto; box-shadow: var(--shadow); }
.cam-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-frame video.mirror { transform: scaleX(-1); }
.cam-code { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(14, 9, 32, .72); color: #fff; border-radius: var(--r-md); padding: .6rem .8rem; text-align: center; backdrop-filter: blur(6px); }
.cam-code .digits { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.2rem; font-weight: 800; letter-spacing: .35em; padding-left: .35em; line-height: 1.1; }
.cam-code small { display: block; opacity: .85; }
.rec-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; max-width: 340px; margin: .8rem auto 0; }
.rec-bar i { display: block; height: 100%; width: 0; background: var(--grad-glow); }
.rec-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: .4rem; background: rgba(14, 9, 32, .7); color: #fff; border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; font-weight: 700; }
.rec-badge i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b57; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.steps-list { padding-left: 1.2rem; }
.steps-list li { margin-bottom: .5rem; }

/* =============================================================== review (admin) */
.review-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .review-grid { grid-template-columns: minmax(240px, 320px) 1fr; } }
.review-grid > * { min-width: 0; }
.review-video { width: 100%; max-height: 420px; background: #000; border-radius: var(--r-md); }
.code-big { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.4rem; font-weight: 800; letter-spacing: .3em; }
.mini-photos { display: flex; gap: .5rem; flex-wrap: wrap; }
.mini-photos img { width: 84px; height: 105px; object-fit: cover; border-radius: 12px; background: var(--surface-3); }
.adm-tabs { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem 1rem; padding: .15rem 1rem; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs .chip .count { background: var(--like); color: #fff; border-radius: 999px; min-width: 18px; padding: 0 5px; font-size: .7rem; line-height: 18px; text-align: center; }
@media (min-width: 768px) { .adm-tabs { margin: 0 0 1rem; padding: .15rem 0; } }
.badge.text-bg-secondary { background: var(--surface-3) !important; color: var(--ink) !important; }
.table-note { font-size: .84rem; color: var(--ink-soft); }


/* sign-in page: three short reasons */
.login-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 430px; }
.login-points li { display: flex; flex-direction: column; gap: .5rem; font-size: .84rem; line-height: 1.25; color: rgba(255, 255, 255, .82); }
.login-points .ico { width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .1); color: var(--glow); display: grid; place-items: center; }
.login-points .ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 992px) { .login-points li { font-size: .95rem; } }

/* =============================================================== Discover: one profile per screen (snap scrolling) */
body.snap-page { overflow: hidden; height: 100dvh; }
.snap-main { height: calc(100dvh - var(--nav-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); }
@media (min-width: 768px) { .snap-main { height: calc(100dvh - var(--nav-h) - var(--safe-t)); } }
.snap-wrap { position: relative; max-width: 520px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; padding: 0 1rem; }
.snap-wrap .filterbar { position: static; flex: none; margin: 0; padding: .55rem 0 .6rem; background: none; }
.snap-wrap .filterbar .chips { padding-left: 0; padding-right: 0; }
.snap-wrap .banner { flex: none; margin-bottom: .6rem; }
.snap-feed { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior-y: contain; margin: 0 -1rem; padding: 0 1rem; -webkit-overflow-scrolling: touch; }
.snap-feed::-webkit-scrollbar { display: none; }
.snap-feed #feed { display: contents; }
.snap-feed .post { height: calc(100% - 12px); margin: 0 0 12px; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; content-visibility: visible; contain-intrinsic-size: none; }
.snap-feed .post .media { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
.snap-feed .post-info, .snap-feed .post-bio { flex: none; }
.snap-feed .post.sk-post .sk-card { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
.snap-feed .feed-end, .snap-feed .empty { height: calc(100% - 12px); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; }
.snap-feed .feed-end[hidden], .snap-feed .empty[hidden] { display: none !important; }
.snap-feed .feed-end .art { width: 84px; height: 84px; margin: 0 auto 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.snap-feed .feed-end .art i { background: var(--surface-3); border-radius: 10px; }
.snap-feed .feed-end .art i.lit { background: var(--grad-glow); box-shadow: 0 0 22px rgba(255, 184, 77, .55); animation: glow 2.6s ease-in-out infinite; }
.snap-feed .feed-end h3 { margin-bottom: .4rem; }
.more-dots { position: absolute; left: 0; right: 0; bottom: .3rem; text-align: center; pointer-events: none; z-index: 5; }
@media (prefers-reduced-motion: reduce) { .snap-feed { scroll-behavior: auto; } }
.login-stack { width: 100%; max-width: 440px; }
.login-stack .login-points { max-width: none; margin-top: 1.4rem; padding: 0 .4rem; }

/* =============================================================== landing page (index.html) */
.lp { color: #fff; background-attachment: fixed; }
.lp .skyline { opacity: .38; }
.lp-top { position: sticky; top: 0; z-index: 20; padding-top: var(--safe-t); transition: background .25s, box-shadow .25s; }
.lp-top.scrolled { background: rgba(27, 20, 66, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.lp-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1080px; }
.lp-login { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.lp-login:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.lp-main { position: relative; z-index: 2; }
.lp .container { max-width: 1080px; }
.lp-hero { padding: clamp(2.5rem, 9vh, 6rem) 1rem clamp(3.5rem, 10vh, 6.5rem); text-align: left; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: #ffe1b0; background: rgba(255, 184, 77, .1); border: 1px solid rgba(255, 184, 77, .28); padding: .4rem .85rem; border-radius: 999px; }
.lp-eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 0 rgba(255, 184, 77, .6); animation: lppulse 2s infinite; }
@keyframes lppulse { 70% { box-shadow: 0 0 0 10px rgba(255, 184, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 184, 77, 0); } }
.lp-hero h1 { color: #fff; font-size: clamp(2.8rem, 11vw, 5.6rem); line-height: 1; font-weight: 800; margin: 1.3rem 0 1rem; letter-spacing: -0.03em; }
.lp-lead { font-size: clamp(1.08rem, 3.6vw, 1.35rem); color: rgba(255, 255, 255, .8); max-width: 30ch; margin: 0 0 1.8rem; line-height: 1.45; }
.lp-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.lp-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.lp-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.lp-micro { margin: 1rem 0 0; font-size: .86rem; color: rgba(255, 255, 255, .6); }
.lp-section { padding: clamp(2.5rem, 7vh, 4.5rem) 1rem; }
.lp-section h2 { color: #fff; font-size: clamp(1.7rem, 5.5vw, 2.5rem); margin: 0 0 .4rem; }
.lp-sub { color: rgba(255, 255, 255, .72); font-size: 1.05rem; margin-bottom: 1.8rem; }
.lp-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .lp-grid.three { grid-template-columns: repeat(3, 1fr); } .lp-grid.four { grid-template-columns: repeat(4, 1fr); } .lp-hero { padding-left: 1rem; } }
.lp-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 1.3rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lp-card h3 { color: #fff; font-size: 1.15rem; margin: .9rem 0 .4rem; }
.lp-card p { color: rgba(255, 255, 255, .74); margin: 0; line-height: 1.5; }
.lp-card.small h3 { font-size: 1.05rem; }
.lp-card.small p { font-size: .93rem; }
.lp-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad-glow); color: var(--on-glow); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.1rem; }
.lp-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .1); color: var(--glow); }
.lp-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lp-final { text-align: center; padding-bottom: clamp(3.5rem, 9vh, 6rem); }
.lp-glow { background: var(--grad-glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-foot { position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.6rem 0 calc(1.6rem + var(--safe-b)); background: rgba(14, 9, 32, .45); }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: .8rem; }
.lp-foot a { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; }
.lp-foot a:hover { color: #fff; text-decoration: underline; }
.lp-foot p { margin: 0; color: rgba(255, 255, 255, .55); font-size: .86rem; }
@media (min-width: 900px) { .lp-hero { text-align: left; } .lp-hero h1 { max-width: 12ch; } }
.lp-statement { text-align: center; }
.lp-statement .lp-sub { max-width: 46ch; margin: 0 auto 1.4rem; }
.lp-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.lp-pills li { padding: .5rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-weight: 600; font-size: .92rem; }
.lp-final .lp-micro { text-align: center; }
