:root {
  --bg: #2a0716;
  --bg2: #4a1028;
  --card: #3d1224;
  --card2: #54182f;
  --line: rgba(255, 140, 180, 0.28);
  --wine: #e11d62;
  --rose: #ff4f8b;
  --gold: #ffc48a;
  --champagne: #ffe3cc;
  --text: #fff8f6;
  --muted: #f3c2d2;
  --live: #ff2d6a;
  --online: #3ddc97;
  --danger: #ff6b81;
  --shadow: 0 24px 60px rgba(120, 0, 50, 0.45);
  --radius: 28px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { background:
  radial-gradient(1000px 620px at -8% -15%, #ff2d6a 0%, transparent 46%),
  radial-gradient(900px 540px at 108% 0%, #ff8fb3 0%, transparent 42%),
  radial-gradient(800px 520px at 50% 115%, #c41e5c 0%, transparent 48%),
  linear-gradient(180deg, #3a0a1c 0%, #1a0510 45%, #2a0814 100%);
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; color: inherit; }
a { color: var(--gold); text-decoration: none; }
.grain { pointer-events: none; position: fixed; inset: 0; opacity: 0.03; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }

/* Landing */
.lp { position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 5vw; position: sticky; top: 0; z-index: 20; background: rgba(42,7,22,.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.top-actions { display: flex; gap: 8px; flex-shrink: 0; margin: 0; }
.btn-sm { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; letter-spacing: 0.04em; }
.brand img, .brand-mark { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255,93,143,.4); object-fit: cover; }
.brand span { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding: 28px 5vw 20px; min-height: calc(100vh - 78px); }
.hero h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 92px); line-height: 0.92; margin: 10px 0 14px; font-weight: 600; }
.hero h1 em { font-style: italic; background: linear-gradient(90deg,#ffc48a,#ff5d8f 55%, #ff2d6a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; color: var(--muted); max-width: 540px; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn { border: 0; cursor: pointer; border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(90deg, #ff2d6a, #ff7aa8); color: #fff; box-shadow: 0 12px 28px rgba(255,45,106,.42); }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--text); border: 1px solid var(--line); }
.btn-dark { background: var(--card2); color: var(--text); }
.btn-live { background: var(--live); color: white; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.hero-photos { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 560px; }
.hero-photos .big, .hero-photos .sml { border-radius: 28px; overflow: hidden; background: #5a1830 center/cover no-repeat; position: relative; box-shadow: 0 18px 40px rgba(80,0,30,.4); }
.hero-photos .big { grid-row: 1 / 3; min-height: 560px; }
.hero-photos .sml { min-height: 274px; }
.hero-photos .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; font-weight: 700; text-shadow: 0 2px 10px #000; }
.hero-photos .live-pill { position: absolute; top: 14px; left: 14px; }
.live-pill { background: var(--live); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; letter-spacing: .08em; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 8px 5vw 36px; }
.stats div { background: linear-gradient(180deg, rgba(255,77,139,.28), rgba(255,255,255,.05)); border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-align: center; }
.stats b { display: block; font-family: var(--serif); font-size: 32px; color: var(--gold); }
.features { padding: 6px 5vw 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: linear-gradient(180deg, rgba(255,77,139,.22), rgba(30,6,16,.55)), var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feat h3 { font-family: var(--serif); font-size: 30px; margin: 0 0 8px; color: #ffd0dc; }
.feat p { color: var(--muted); margin: 0; line-height: 1.5; }
.landing-lives { padding: 0 5vw 56px; }
.landing-lives h2, .people-wall h2 { font-family: var(--serif); font-size: 42px; margin: 0 0 18px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip .tile { aspect-ratio: 3/4.1; border-radius: 22px; overflow: hidden; position: relative; background: #5a1830 center/cover no-repeat; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.strip .tile .cap { position: absolute; left: 12px; right: 12px; bottom: 12px; font-weight: 600; text-shadow: 0 2px 8px #000; z-index: 1; }
.people-wall { padding: 0 5vw 56px; }
.people-wall .mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.people-wall .mosaic i { display: block; aspect-ratio: 3/4; border-radius: 18px; background: #5a1830 center/cover; box-shadow: 0 10px 24px rgba(80,0,30,.35); }
.how { padding: 0 5vw 56px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.how article { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.how em { color: var(--rose); font-style: normal; font-weight: 800; }
.cta-band { margin: 0 5vw 56px; padding: 36px; border-radius: 32px; background: linear-gradient(100deg, #ff2d6a, #ff8fb3 55%, #ffc48a); color: #3a0814; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-size: 40px; margin: 0; }
.cta-band .btn-gold { background: #1a0510; color: #fff; }
.foot { padding: 28px 5vw 40px; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 13px; }
.city-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #3d1224; border: 1px solid var(--line); border-radius: 14px; max-height: 240px; overflow: auto; z-index: 30; display: none; }
.city-suggest.on { display: block; }
.city-suggest button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; cursor: pointer; color: var(--text); }
.city-suggest button:hover { background: rgba(255,93,143,.22); }
.city-gps { display: none; margin-top: 8px; min-height: 44px; }
.field { position: relative; }

@media (max-width: 960px) {
  .features, .stats, .how { grid-template-columns: 1fr; }
}

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 0.85fr; }
.auth-art { background: center/cover no-repeat; position: relative; min-height: 280px; }
.auth-art:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, #2a0716); }
.auth-mosaic { position: absolute; inset: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; z-index: 1; }
.auth-mosaic i { border-radius: 22px; background: #5a1830 center/cover; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.auth-box { display: grid; place-items: center; padding: 40px 7vw; position: relative; z-index: 2; background: rgba(26,5,16,.35); }
.panel { width: min(420px, 100%); }
.panel h1 { font-family: var(--serif); font-size: 48px; margin: 10px 0 6px; }
.field { margin: 14px 0; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; background: #1a0a10; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); }
.hint { color: var(--muted); font-size: 13px; margin-top: 14px; }
.err-banner { background: #3a1018; color: #ffb3c0; padding: 10px 12px; border-radius: 12px; margin: 10px 0; display: none; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { background: #1a0a10; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.seg input { display: none; }
.seg input:checked + span, .seg label:has(input:checked) { border-color: var(--gold); color: var(--gold); }

/* App shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; position: relative; z-index: 1; }
.side { border-right: 1px solid var(--line); padding: 18px 14px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(280px 180px at 20% -10%, rgba(255,77,139,.35), transparent 70%),
  linear-gradient(180deg, #4a1028 0%, #2a0818 48%, #16040c 100%); overflow: auto; }
.side .brand { padding: 4px 8px 2px; }
.side-tag { margin: 0 10px 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #ffb3c8; opacity: .8; }
.side .nav-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #ff9fbd; padding: 16px 12px 8px; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 10px; border-radius: 16px; color: #ffe4ec; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; font-size: 14.5px; font-weight: 600; }
.nav-item .ni { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 15px; }
.nav-item .nt { flex: 1; line-height: 1; }
.nav-item:hover { background: rgba(255,77,139,.16); }
.nav-item.on { background: linear-gradient(90deg, #ff2d6a, #ff6b9d); color: #fff; box-shadow: 0 10px 22px rgba(255,45,106,.28); }
.nav-item.on .ni { background: #fff; color: #ff2d6a; }
.nav-item.out { color: #ffb7c8; }
.nav-item.out:hover { background: rgba(255,45,106,.14); color: #fff; }
.nav-item .badge, .badge { margin-left: auto; background: #fff; color: #ff2d6a; font-size: 11px; min-width: 18px; height: 18px; border-radius: 99px; display: none; place-items: center; padding: 0 5px; font-weight: 800; }
.side .spacer { flex: 1; min-height: 10px; }
.me-mini { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(255,45,106,.18); cursor: pointer; border: 1px solid var(--line); margin-bottom: 8px; }
.me-mini img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #ffc48a; }
.me-mini b { display: block; font-size: 14px; }
.me-mini span { color: var(--muted); font-size: 12px; }
.plus-card { margin: 10px 2px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, #ffc48a, #ff5d8f); color: #3a0814; cursor: pointer; }
.plus-card b { display: block; font-size: 14px; }
.plus-card span { font-size: 12px; opacity: .85; }
.main { min-height: 100vh; min-width: 0; padding: 18px 28px 40px; position: relative; background:
  radial-gradient(720px 420px at 85% -8%, rgba(255,45,106,.26), transparent 60%),
  radial-gradient(560px 360px at 8% 100%, rgba(255,196,138,.1), transparent 55%);
}
.notif-fab { display: none; }
.app-tools { position: absolute; top: 10px; right: 12px; z-index: 12; display: flex; align-items: center; gap: 8px; }
.app-tools .badge { position: absolute; top: -4px; right: -4px; }
.view { display: none; animation: fade .25s ease; }
.view.on { display: block; }
#view-encounters.view.on { display: flex; flex-direction: column; min-height: calc(100vh - 36px); }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
.view-head { display: flex; align-items: center; justify-content: space-between; margin: 0 220px 10px 0; gap: 12px; }
.view-head h2 { font-family: var(--serif); font-size: 34px; margin: 0; }
.ico-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; padding: 0; line-height: 1; font-size: 18px; flex: 0 0 42px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.filter-chips .chip { cursor: pointer; }

/* Rencontres — cartes swipe */
.enc-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 8px 0 12px; }
.stack { width: min(400px, 100%); height: min(620px, calc(100vh - 230px)); position: relative; filter: drop-shadow(0 22px 36px rgba(255,45,106,.28)); overflow: visible; }
.enc-card { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: #3a1220; box-shadow: var(--shadow); touch-action: none; user-select: none; will-change: transform; }
.enc-card.flying { z-index: 80; box-shadow: var(--shadow); }
.enc-card img, .enc-card .photo { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.enc-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.enc-bars i { flex: 1; height: 3px; background: rgba(255,255,255,.28); border-radius: 4px; overflow: hidden; }
.enc-bars i.on { background: #fff; }
.enc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 20px 22px; background: linear-gradient(transparent, rgba(24,4,12,.94) 55%); }
.enc-info h3 { font-family: var(--serif); font-size: 36px; margin: 0; display: flex; align-items: baseline; gap: 8px; }
.enc-info .age { font-size: 26px; font-weight: 400; color: var(--champagne); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; color: var(--champagne); font-size: 13px; }
.chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: 5px 10px; border-radius: 999px; font-size: 12px; }
.verified { color: var(--gold); }
.enc-actions { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 0; height: 76px; }
.act { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 22px; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); flex: 0 0 auto; }
.act.no { color: #ff8aa0; }
.act.yes { color: #fff; background: linear-gradient(180deg,#ff4f8b,#ff2d6a); width: 70px; height: 70px; border: 0; font-size: 26px; }
.act.crush { color: #7ecbff; }
.act.info { color: var(--champagne); font-family: var(--serif); font-style: italic; font-weight: 700; }
.enc-profile {
  margin-top: 10px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.35);
  color: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.enc-profile:hover { background: rgba(255,45,106,.45); }
.act.undo { color: var(--gold); width: 48px; height: 48px; font-size: 18px; }
.stamp { position: absolute; top: 72px; font-size: 28px; font-weight: 800; letter-spacing: .12em; padding: 8px 14px; border: 4px solid; border-radius: 12px; opacity: 0; transform: rotate(-18deg); }
.stamp.like { left: 24px; color: #7dffc3; border-color: #7dffc3; }
.stamp.nope { right: 24px; color: #ff8aa0; border-color: #ff8aa0; transform: rotate(18deg); }
.empty-deck { text-align: center; padding: 48px 20px; color: var(--muted); background: linear-gradient(180deg, rgba(255,77,139,.16), rgba(20,6,12,.4)); border: 1px solid var(--line); border-radius: 28px; width: min(640px, 100%); }
.empty-deck h3 { font-family: var(--serif); font-size: 36px; color: #fff; margin: 0 0 8px; }
.more { margin-top: 10px; max-height: 180px; overflow: auto; }
.prompt { background: rgba(255,255,255,.06); border-radius: 16px; padding: 12px; margin-top: 8px; }
.prompt small { color: var(--rose); display: block; margin-bottom: 4px; }
.suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; text-align: left; }

/* Nearby + lives grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.person, .live-tile { position: relative; aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; background: #5a1830 center/cover no-repeat; cursor: pointer; isolation: isolate; box-shadow: 0 10px 24px rgba(80,0,30,.28); }
.person:after, .live-tile:after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(20,4,10,.82)); }
.person .cap, .live-tile .cap { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; font-size: 14px; }
.person .presence, .live-tile .presence {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(8,0,4,.55); backdrop-filter: blur(8px);
  padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.presence { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.presence.on { color: var(--online); }
.presence .dot { margin: 0; flex: 0 0 8px; }
.near-tile .cap { display: flex; flex-direction: column; gap: 2px; }
.near-tile .cap em { font-style: normal; font-size: 12px; color: #ffd6e4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: .9; }
.near-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.btn-cut { background: #4a1020; border: 1px solid #ff6b81; color: #ffc0c8; }
.btn-cut:hover { background: #6a1830; }
.live-now { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--live); border-radius: 18px; margin-bottom: 14px; background: rgba(255,45,106,.16); }
.live-now span { display: block; color: var(--muted); font-size: 13px; }
.profile-id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-id h3 { margin: 0; }
.about .near-bio { margin: 0; }
.about-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.about h4 { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.link-edit { background: none; border: 0; color: var(--gold); cursor: pointer; font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 16px 0 8px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; text-align: right; }
.photo-add { min-height: 120px; font-weight: 700; }
.bubble { position: relative; }
.bubble.me .read-state, .conv-meta .read-state { display: block; font-size: 11px; opacity: .7; margin-top: 4px; text-align: right; }
.read-state.vu { color: var(--gold); opacity: 1; }
.conv-ava { position: relative; flex: 0 0 48px; }
.conv-ava .presence { position: absolute; left: 34px; top: 34px; padding: 0; background: none; font-size: 0; }
.conv-body { flex: 1; min-width: 0; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.conv.unread { background: rgba(255,93,143,.1); }
.thread-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.badge.on { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--live); color: #fff; font-size: 11px; }
.dot { width: 8px; height: 8px; background: var(--online); border-radius: 50%; display: inline-block; margin-right: 4px; box-shadow: 0 0 0 4px rgba(61,220,151,.18); }
.dot.off { background: #88756e; box-shadow: none; }
.live-badge { position: absolute; top: 10px; left: 10px; right: auto; bottom: auto; width: auto; z-index: 2; background: var(--live); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 999px; letter-spacing: .08em; animation: livepulse 1.6s ease infinite; }
@keyframes livepulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,59,107,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,59,107,0); } }
.live-tile .viewers { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 999px; font-size: 11px; }
.view-count { background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 999px; font-size: 11px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.pill.on { color: #fff; border-color: transparent; background: linear-gradient(90deg,#ff2d6a,#ff6b9d); }

/* Chat */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; min-height: calc(100vh - 120px); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--card); }
.inbox { border-right: 1px solid var(--line); overflow: auto; }
.thread { display: flex; flex-direction: column; min-height: 60vh; }
.conv { display: flex; gap: 10px; padding: 12px 14px; cursor: pointer; align-items: center; border: 0; background: transparent; width: 100%; text-align: left; color: inherit; }
.conv:hover, .conv.on { background: rgba(255,93,143,.12); }
.conv img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.conv b { display: block; }
.conv p { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.msgs { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: linear-gradient(90deg, #ff2d6a, #ff5d8f); }
.bubble.them { align-self: flex-start; background: #2a1820; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer input { flex: 1; background: #1a0a10; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; }
.empty-chat { color: var(--muted); text-align: center; margin: auto; padding: 40px 16px; }

/* Profile */
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.profile-hero > .gallery,
.profile-hero > .profile-info { min-width: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.gallery > :first-child { grid-column: 1 / -1; }
.ph-wrap, .gallery .ph, .photo-add {
  position: relative;
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
}
.ph-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover; display: block; cursor: zoom-in;
}
.ph-lock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 14px; cursor: pointer;
  background: linear-gradient(160deg, #3a1424, #14080e);
  color: #ffe4ec;
}
.ph-wrap.is-locked { cursor: pointer; }
.ph-lock span { font-size: 28px; }
.ph-lock b { font-size: 15px; }
.ph-lock small { color: #ffb3c9; font-size: 12px; line-height: 1.35; }
.ph-badge {
  position: absolute; top: 8px; left: 8px; font-style: normal; font-size: 11px; font-weight: 800;
  background: rgba(0,0,0,.62); color: #ffd18a; border-radius: 999px; padding: 4px 8px;
}
.ph-actions {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 4px;
  padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,.78));
}
.ph-actions button {
  flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 6px 8px;
  font-size: 11px; font-weight: 700; cursor: pointer; background: rgba(255,255,255,.16); color: #fff;
}
.photo-add-hidden { border-color: #ffc46a; color: #ffc46a; }
.photo-zoom {
  position: fixed; inset: 0; z-index: 80; display: none; place-items: center;
  background: rgba(6,2,4,.9); padding: 16px;
}
.photo-zoom.on { display: grid; }
.photo-zoom img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 14px; }
.photo-zoom .live-x { position: absolute; top: 14px; right: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-add { border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.profile-info { overflow-wrap: anywhere; }
.profile-info h3 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; line-height: 1.15; }
.profile-info .near-bio { font-size: 16px; line-height: 1.55; margin: 12px 0 16px; }
.ph-empty { display: grid; place-items: center; font-family: var(--serif); font-size: 72px; color: #ffc0d4; background: linear-gradient(160deg, #6a2040, #2a0a18); }
.gallery .ph-empty { grid-column: 1 / -1; min-height: 320px; }
.near-meta { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.near-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.near-grid .empty-deck { grid-column: 1 / -1; width: 100%; }
.near-card { display: grid; grid-template-columns: 118px 1fr; gap: 14px; background: linear-gradient(180deg, rgba(255,93,143,.12), rgba(20,6,12,.45)); border: 1px solid var(--line); border-radius: 22px; padding: 10px; cursor: pointer; text-align: left; min-height: 168px; }
.near-card:hover { border-color: rgba(255,93,143,.5); transform: translateY(-2px); }
.near-photo { border-radius: 16px; background: linear-gradient(160deg, #5a1a32, #2a0a18) center/cover no-repeat; display: grid; place-items: center; font-family: var(--serif); font-size: 40px; color: #ffc0d4; min-height: 148px; }
.near-body h3 { margin: 4px 0 6px; font-size: 20px; }
.near-body .near-bio { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 10px; line-height: 1.4; }
.sheet-tall { max-height: min(88vh, 780px); overflow: auto; }

/* Live room — overlay, vidéo centrée */
.live-room {
  position: fixed; inset: 0; z-index: 40; background: #070308;
  display: none; pointer-events: none;
  align-items: center; justify-content: center;
}
.live-room.on { display: flex; pointer-events: auto; }
.live-stage {
  position: relative;
  width: min(430px, 100vw);
  height: 100%;
  max-height: 100dvh;
  background: #14040c;
  overflow: hidden;
}
@media (min-width: 800px) {
  .live-stage {
    height: min(100dvh, 860px);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
  }
}
#live-frame, #live-cam {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #1a0510;
}
#live-cam { display: none; transform: scaleX(-1); z-index: 1; }
#live-frame { z-index: 0; }
#live-canvas { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.live-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 18%, transparent 58%, rgba(0,0,0,.72) 100%);
}
.live-hud-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 0;
}
.live-hud-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.live-x {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.5); color: #fff; font-size: 18px;
}
.btn-follow {
  border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 12px;
  background: linear-gradient(90deg,#ff2d6a,#ff6b9d); color: #fff; cursor: pointer; white-space: nowrap;
}
.btn-follow.on { background: rgba(255,255,255,.2); font-weight: 700; }
.live-stat-pill { background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.lc.follow { background: rgba(255,196,138,.22); border: 1px solid rgba(255,196,138,.4); }
.live-mod {
  display: none; position: fixed; inset: 0; z-index: 62; background: rgba(10,2,6,.55);
  place-items: center; padding: 16px;
}
.live-mod.on { display: grid; }
.live-mod-card {
  width: min(340px, 100%); background: linear-gradient(180deg, #4a1630, #1c0810);
  border: 1px solid var(--line); border-radius: 22px; padding: 18px; text-align: center;
}
.live-mod-card b { display: block; font-size: 18px; margin-bottom: 4px; }
.live-mod-card p { color: var(--muted); margin: 0 0 12px; font-size: 13px; }
.live-mod-card .btn { margin-top: 8px; }
.follow-list { display: grid; gap: 8px; margin-top: 14px; }
.follow-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; cursor: pointer; text-align: left; width: 100%; color: inherit; }
.follow-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.host-chip { display: flex; gap: 8px; align-items: center; background: rgba(0,0,0,.45); padding: 5px 12px 5px 5px; border-radius: 999px; backdrop-filter: blur(10px); max-width: 52%; }
.host-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.host-chip b { display: block; font-size: 13px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#live-title { font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-host-name { position: absolute; left: 12px; bottom: 42%; z-index: 3; font-weight: 700; text-shadow: 0 2px 10px #000; pointer-events: none; display: none; }
.live-guests {
  position: absolute; right: 8px; top: 64px; z-index: 4;
  display: flex; flex-direction: column; gap: 8px; width: 78px;
}
.live-guest {
  position: relative; width: 78px; height: 104px; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.08) center/cover; border: 1px solid rgba(255,140,180,.3);
}
.live-guest img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.live-guest b { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 10px; text-shadow: 0 1px 6px #000; text-align: center; }
.live-guest .kick { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 11px; z-index: 2; }
.live-cam-prompt {
  display: none; position: absolute; inset: 0; z-index: 6;
  place-items: center; text-align: center; padding: 24px;
  background: rgba(8,2,6,.45);
}
.live-cam-prompt.on { display: grid; }
.live-cam-prompt p { margin: 0 0 14px; font-size: 16px; text-shadow: 0 2px 8px #000; }
.live-hud-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.live-hud-bottom > * { pointer-events: auto; }
.live-comments {
  max-height: min(38vh, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 6px; margin: 0 12px 8px 0;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to bottom, transparent, #000 14%);
}
.lc {
  background: rgba(0,0,0,.42); backdrop-filter: blur(8px);
  padding: 7px 10px; border-radius: 16px; max-width: 100%;
  font-size: 13.5px; line-height: 1.35;
  display: flex; gap: 8px; align-items: flex-start; cursor: pointer;
}
.lc img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 28px; }
.lc span { min-width: 0; }
.lc b { color: #ffc48a; margin-right: 5px; font-weight: 700; }
.lc.join { background: rgba(255,45,106,.28); border: 1px solid rgba(255,93,143,.4); }
.lc.ai {
  background: linear-gradient(90deg, rgba(168,85,247,.42), rgba(255,45,106,.28));
  border: 1px solid rgba(233,213,255,.45);
  cursor: default;
}
.lc.ai b { color: #f3e8ff; }
.ai-badge {
  display: inline-block; font-style: normal; font-size: 9px; font-weight: 800;
  letter-spacing: .08em; margin-right: 6px; padding: 2px 6px; border-radius: 999px;
  background: #c084fc; color: #2a0716; vertical-align: middle;
}
.ai-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.45); color: #f3e8ff; font-size: 11px; font-weight: 700;
  padding: 4px 8px 4px 4px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(192,132,252,.45);
}
.ai-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.live-composer { display: flex; gap: 8px; align-items: center; }
.live-composer input {
  flex: 1; min-width: 0; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 12px 16px; font-size: 15px;
}
.live-send, .live-heart {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 18px; color: #fff;
}
.live-send { background: linear-gradient(180deg, #ff5d8f, #ff2d6a); }
.live-heart { background: linear-gradient(180deg, #ff4f8b, #c41e5c); }
.live-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.live-tools .btn { padding: 8px 12px; font-size: 12px; }
.gifts-bar { display: flex; gap: 8px; overflow: auto; padding: 6px 0; scrollbar-width: none; }
.gifts-bar::-webkit-scrollbar { display: none; }
.gift { min-width: 62px; background: rgba(20,8,12,.75); border: 1px solid var(--line); border-radius: 16px; padding: 6px 4px; text-align: center; cursor: pointer; }
.gift b { display: block; font-size: 20px; }
.gift span { font-size: 11px; color: #ffc48a; }
.fly { position: absolute; font-size: 42px; animation: up 1.4s ease-out forwards; pointer-events: none; z-index: 7; }
@keyframes up { to { transform: translateY(-180px) scale(1.4); opacity: 0; } }
.date-banner, .cam-banner { background: rgba(107,28,56,.92); padding: 8px 10px; border-radius: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; font-size: 12px; }
.cam-req { display: flex; gap: 8px; align-items: center; width: 100%; }
.cam-req img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.go-live-main { width: 100%; margin: 0 0 16px; min-height: 52px; font-size: 16px; }
#view-lives .view-head { margin-right: 0; }
.peek {
  display: none; position: fixed; z-index: 60; inset: 0; background: rgba(10,2,6,.55);
  place-items: end center; padding: 16px 16px calc(20px + var(--safe-b));
}
.peek.on { display: grid; }
.peek-card {
  width: min(380px, 100%); background: linear-gradient(180deg, #4a1630, #1c0810);
  border: 1px solid var(--line); border-radius: 24px 24px 18px 18px; overflow: hidden; box-shadow: var(--shadow);
}
.peek-photo { height: 220px; background: #3a1220 center/cover no-repeat; }
.peek-card .peek-info { padding: 14px 16px 18px; }
.peek-card h3 { font-family: var(--serif); font-size: 28px; margin: 0 8px 0 0; }
.peek-close { position: absolute; top: 10px; right: 10px; }
.peek-card { position: relative; }

/* Modals */
.modal { position: fixed; inset: 0; background: rgba(20,4,10,.72); display: none; place-items: center; z-index: 50; padding: 20px; }
.modal.on { display: grid; }
.sheet { width: min(460px, 100%); background: linear-gradient(180deg, #4a1630, #2a0a18); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.match-sheet { text-align: center; }
.match-sheet h2 { font-family: var(--serif); font-size: 44px; margin: 8px 0; }
.faces { display: flex; justify-content: center; margin: 10px 0 18px; }
.faces img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.faces img:last-child { margin-left: -24px; }
.notif-drop { position: absolute; right: 18px; top: 64px; width: min(380px, calc(100vw - 24px)); background: var(--card); border: 1px solid var(--line); border-radius: 20px; max-height: 70vh; overflow: auto; display: none; z-index: 30; }
.notif-drop.on { display: block; }
.notif { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; text-align: left; }
.notif:hover { background: rgba(255,93,143,.12); }
.notif img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 42px; }
.notif b { display: block; }
.notif small { color: var(--muted); }

body:has(.live-room.on) { overflow: hidden; }
body:has(.live-room.on) .bottom-nav { display: none !important; }
.bottom-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 10px calc(10px + var(--safe-b)); background: rgba(42,7,22,.94); border-top: 1px solid var(--line); z-index: 25; justify-content: space-around; backdrop-filter: blur(16px); }
.bottom-nav button { background: none; border: 0; color: #ffd0dc; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.bottom-nav button.on { color: #ff5d8f; }
.coins { color: var(--gold); font-weight: 600; font-size: 13px; }
.wallet {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px;
  border-radius: 999px; cursor: pointer; color: #fff; width: 100%;
  border: 1px solid rgba(255,196,138,.5);
  background: linear-gradient(180deg, rgba(255,224,194,.16), rgba(255,45,106,.14));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px rgba(255,45,106,.18);
}
.side .wallet { width: 100%; }
.app-tools .wallet, .wallet-sm { width: auto; height: 42px; box-sizing: border-box; }
.wallet-gem {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 14px; color: #4a1020;
  background: linear-gradient(135deg, #fff1dc, #ffc48a 45%, #ff8fb3); box-shadow: 0 2px 8px rgba(255,196,138,.4);
}
.wallet small { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #ffc48a; line-height: 1.1; }
.wallet b { display: block; font-size: 16px; font-weight: 800; line-height: 1.1; }
.wallet em {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; margin-left: 2px;
  background: linear-gradient(180deg, #ff5d8f, #ff2d6a); color: #fff; font-style: normal;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.wallet-sm { padding: 4px 6px 4px 4px; gap: 6px; }
.wallet-sm .wallet-gem { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; }
.wallet-sm b { font-size: 14px; }
.wallet-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px; border-radius: 24px; margin-bottom: 18px;
  background: linear-gradient(110deg, rgba(255,45,106,.28), rgba(255,196,138,.16));
  border: 1px solid var(--line);
}
.wallet-hero .wallet { width: auto; padding: 8px 10px 8px 8px; }
.wallet-hero p { margin: 0; color: var(--muted); max-width: 280px; }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.pack-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; text-align: center; }
.pack-card h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 6px; }
.pack-card .amt { color: var(--gold); font-weight: 800; font-size: 20px; margin: 0 0 12px; }
.range { width: 100%; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #1c0f16; border: 1px solid var(--gold); padding: 10px 16px; border-radius: 999px; z-index: 70; display: none; }
.toast.on { display: block; }
.account-box { margin: 22px 0 28px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.account-label { margin: 0; padding: 12px 16px 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ff9fbd; font-weight: 700; }
.account-row { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); color: #ffe4ec; font-size: 16px; font-weight: 600; padding: 16px; cursor: pointer; }
.account-row:first-of-type { border-top: 0; }
.account-row.danger { color: #ff8aa8; }
.profile-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.btn-logout-sm { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,109,154,.45); background: rgba(255,45,106,.12); color: #ffd0dc; font-weight: 700; cursor: pointer; }
.likes-tabs { display: flex; gap: 8px; margin-bottom: 14px; }

@media (max-width: 1080px) {
  .hero, .auth-wrap, .features, .strip, .stats, .how { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero > .gallery { max-width: 360px; }
  .hero { min-height: auto; padding: 18px 5vw 8px; }
  .hero-photos { min-height: 0; grid-template-columns: 1.2fr .8fr; gap: 8px; }
  .hero-photos .big { grid-row: 1 / 3; min-height: 260px; }
  .hero-photos .sml { min-height: 126px; }
  .auth-art { display: none; }
  .city-gps { display: flex; align-items: center; justify-content: center; }
  .view-head h2 { font-size: 26px; }
  #view-encounters.view.on { min-height: calc(100vh - 36px); }
  .stack { width: min(100%, 420px); height: min(58vh, 520px); }
  .enc-actions { height: 68px; gap: 12px; }
  .act { width: 48px; height: 48px; }
  .act.yes { width: 60px; height: 60px; }
  .people-wall .mosaic { grid-template-columns: repeat(3, 1fr); }
  .grid, .pack-grid, .near-grid { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; margin: 0 5vw 36px; padding: 24px; }
  .foot { flex-direction: column; gap: 8px; }
  .notif-drop { right: 12px; top: 58px; }
}

@media (max-width: 720px) {
  body { background:
    radial-gradient(420px 280px at 0% -20%, rgba(255,45,106,.45), transparent 70%),
    linear-gradient(180deg, #3a0a1c 0%, #1a0510 100%);
  }
  .grain { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .bottom-nav { display: flex; }
  .main { padding: 8px 12px 100px; }
  .app-tools {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 20;
    justify-content: flex-end;
    width: 100%;
    padding: 4px 0 12px;
    margin: 0;
    background: linear-gradient(180deg, #3a0a1c 65%, rgba(58,10,28,0));
  }
  .view-head {
    margin-right: 0;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .view-head h2 { width: 100%; }
  .view-head .btn, .view-head .btn-ghost, .view-head .ico-btn {
    width: 100%;
    justify-content: center;
  }
  .notif-drop { right: 8px; top: 56px; }
  .inbox { display: none; }
  .chat-layout { grid-template-columns: 1fr; min-height: calc(100vh - 130px); }
  .chat-layout.show-list .inbox { display: block; }
  .chat-layout.show-list .thread { display: none; }
  .topbar { padding: 10px 16px; }
  .brand span { font-size: 22px; }
  .brand img, .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .hero { padding: 16px 16px 8px; }
  .hero h1 { font-size: 42px; }
  .lede { font-size: 16px; }
  .hero-photos { grid-template-columns: 1fr 1fr; }
  .hero-photos .big { grid-column: 1 / -1; grid-row: auto; min-height: 240px; border-radius: 22px; }
  .hero-photos .sml { min-height: 140px; border-radius: 18px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 8px 16px 24px; }
  .features, .how, .people-wall, .landing-lives { padding-left: 16px; padding-right: 16px; }
  .landing-lives h2, .people-wall h2 { font-size: 30px; }
  .people-wall .mosaic { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cta-band { margin: 0 16px 28px; }
  .cta-band h2 { font-size: 28px; }
  .foot { padding: 20px 16px 28px; }
  .panel h1 { font-size: 36px; }
  .auth-box { padding: 28px 22px 40px; }
  .wallet small { display: none; }
  .profile-toolbar { width: 100%; }
  .profile-toolbar .btn-logout-sm { flex: 1 1 100%; min-height: 44px; }
  #view-lives .view-head { margin-right: 0; }
  .live-stage { width: 100vw; height: 100%; max-height: 100dvh; border-radius: 0; }
  .live-comments {
    max-height: 48vh;
    margin-right: 8px;
    gap: 8px;
  }
  .lc { font-size: 15px; padding: 8px 12px; border-radius: 18px; }
  .lc img { width: 32px; height: 32px; flex-basis: 32px; }
  .gifts-bar { padding: 2px 0 4px; gap: 6px; }
  .gift { min-width: 50px; padding: 4px 2px; border-radius: 14px; }
  .gift b { font-size: 18px; }
  .live-tools { margin-top: 6px; }
  .stack { height: min(62vh, 500px); }
  .enc-info { padding: 70px 16px 16px; }
  .enc-info h3 { font-size: 26px; }
  .more { max-height: 100px; }
  .live-bottom .btn { padding: 10px 12px; }
  .plus-card { display: none; }
  .sheet { padding: 18px; border-radius: 22px; }
  .near-grid { grid-template-columns: 1fr; }
  .profile-info h3 { font-size: 32px; }
}

@media (max-width: 400px) {
  .hero-photos .sml { display: none; }
  .btn-sm { padding: 8px 11px; font-size: 12px; }
}
