:root {
  --bg: #000;
  --surface: #121212;
  --surface2: #1e1e1e;
  --surface3: #2a2a2a;
  --line: #262626;
  --text: #fff;
  --muted: #9a9a9a;
  --accent: #FF4FA8;
  --accent2: #D6127C;
  --grad: linear-gradient(135deg, #FF6EC4, #D6127C);
  --online: #2BD86B;
  --danger: #ff4d4f;
  --tabbar: 64px;
  --topbar: 56px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0a0a0a; color: var(--text); }
body { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { opacity: .5; cursor: default; }
input, textarea, select { font: inherit; font-size: 16px; color: var(--text); } /* < 16px makes iOS Safari zoom in on focus */
.hidden { display: none !important; }
.muted { color: var(--muted); }

#app {
  position: relative; max-width: 440px; height: 100dvh; margin: 0 auto;
  background: var(--bg); overflow: hidden;
  box-shadow: 0 0 0 1px #1a1a1a, 0 0 60px rgba(214, 18, 124, .12);
}

.brand { font-weight: 900; letter-spacing: -1px; font-size: 44px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.screen { position: absolute; inset: 0; background: var(--bg); z-index: 20; overflow-y: auto; }
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 100; }
.splash img { width: 130px; animation: beat 1.2s infinite; }
.splash .brand { animation: splashIn .6s ease-out both; }
.splash.fade { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
@keyframes splashIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes beat { 50% { transform: scale(1.08); } }

.btn-primary { background: var(--grad); color: #fff; font-weight: 700; padding: 15px; border-radius: 999px; font-size: 16px; width: 100%; }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { background: var(--surface2); padding: 13px 16px; border-radius: 999px; font-weight: 600; }
.btn-outline { border: 1.5px solid #fff; padding: 14px; border-radius: 999px; font-weight: 700; width: 100%; font-size: 16px; }
.btn-danger { color: var(--danger); }
.link { color: var(--accent); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select, .input {
  width: 100%; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; outline: none; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-color: var(--accent); }
.field textarea { min-height: 90px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.dob { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.dob select { width: 100%; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; outline: none; color: var(--text); font-size: 16px; }
.dob select:focus { border-color: var(--accent); }
.form-error { color: var(--danger); font-size: 14px; min-height: 18px; text-align: center; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); }

.welcome { min-height: 100%; position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.welcome-bg { position: absolute; inset: 0; overflow: hidden; }
.welcome-bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 12s ease-in-out infinite alternate; }
.welcome-bg i:nth-child(1) { width: 320px; height: 320px; background: #E0177F; top: -60px; left: -80px; }
.welcome-bg i:nth-child(2) { width: 300px; height: 300px; background: #8E1B6B; top: 120px; right: -100px; animation-delay: -4s; }
.welcome-bg i:nth-child(3) { width: 260px; height: 260px; background: #FF7FC6; top: 300px; left: 40px; animation-delay: -8s; }
@keyframes float { to { transform: translate(30px, 40px) scale(1.1); } }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.5) 45%, #000 75%); }
.welcome-inner { position: relative; z-index: 2; padding: 28px 24px 40px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.welcome-inner img.logo { width: 130px; filter: drop-shadow(0 6px 24px rgba(214, 18, 124, .45)); }
.welcome-inner .brand { font-size: 52px; line-height: 1; }
.welcome-inner p { color: #ddd; margin: 0 0 18px; line-height: 1.45; }
.legal { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 6px; }

.auth-page { min-height: 100%; padding: 14px 22px 30px; display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; gap: 12px; height: 48px; }
.auth-top .progress { flex: 1; height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.auth-top .progress i { display: block; height: 100%; background: var(--grad); transition: width .3s; }
.auth-page h1 { font-size: 28px; margin: 18px 0 6px; letter-spacing: -.5px; }
.auth-page .sub { color: var(--muted); margin: 0 0 22px; line-height: 1.45; }
.auth-form { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.auth-form .spacer { flex: 1; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice button { text-align: left; padding: 15px 16px; border-radius: 14px; background: var(--surface2); border: 1.5px solid transparent; font-weight: 600; display: flex; justify-content: space-between; }
.choice button.on { border-color: var(--accent); background: rgba(255, 79, 168,.1); }
.choice button.on::after { content: "✓"; color: var(--accent); }
.photo-drop { align-self: center; width: 180px; height: 220px; border-radius: 20px; background: var(--surface2); border: 2px dashed var(--surface3);
  display: grid; place-items: center; overflow: hidden; cursor: pointer; position: relative; text-align: center; color: var(--muted); font-size: 14px; }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-drop .plus { font-size: 40px; display: block; color: var(--accent); }
.photo-drop .plus .ic { width: 40px; height: 40px; display: block; margin: 0 auto 6px; }
.geo-illu { font-size: 80px; text-align: center; margin: 20px 0; }
.check { display: flex; gap: 10px; text-align: left; font-size: 13px; color: var(--muted); line-height: 1.4; align-items: flex-start; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }

#main { position: absolute; inset: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.me-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--accent); background: var(--surface2); }
.brand-sm { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; letter-spacing: -.5px; flex: 1; }
.brand-sm img { width: 32px; height: 32px; object-fit: contain; }
.top-actions { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.icon-btn:hover { background: var(--surface2); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dot-badge { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.views { flex: 1; position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; overflow-y: auto; display: none; padding-bottom: 12px; }
.view.active { display: block; }

.tabbar { height: var(--tabbar); flex: none; display: flex; border-top: 1px solid var(--line); background: #0b0b0b; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; position: relative; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--accent); }
.tab.active svg { fill: rgba(255, 79, 168, .2); }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--accent2); color: #fff; font-size: 10px;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; font-weight: 700; }

.chips { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface2); font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip.on { background: rgba(255, 79, 168, .15); border-color: var(--accent); color: var(--accent); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface2); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.tile-info { position: absolute; left: 6px; right: 6px; bottom: 5px; z-index: 1; display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; text-align: left; text-shadow: 0 1px 2px #000; }
.tile-info .tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-dist { position: absolute; top: 5px; left: 5px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 6px; z-index: 1; }
.tile-badges { position: absolute; top: 4px; right: 5px; display: flex; gap: 3px; z-index: 1; font-size: 13px; }
.tile-unread { position: absolute; top: 4px; right: 4px; z-index: 1; background: var(--accent2); color: #fff; font-size: 10px; font-weight: 800; border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.tile.me .tname { color: var(--accent); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--online); box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.status-dot.off { background: #777; }
.empty { text-align: center; color: var(--muted); padding: 60px 24px; line-height: 1.5; }
.empty .big { font-size: 46px; display: block; margin-bottom: 10px; }
.hold { max-width: 420px; margin: 0 auto; padding: 56px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.hold .big { font-size: 46px; }
.hold h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.hold p { margin: 0 0 10px; color: var(--muted); line-height: 1.5; }
.hold .link { padding: 10px; }
#main.on-hold .top-actions { visibility: hidden; }
.su-note { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 12px; background: rgba(255, 79, 168,.1); line-height: 1.45; font-size: 14px; }
.loader { text-align: center; color: var(--muted); padding: 40px; }

.me-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 168,.7); } 70% { box-shadow: 0 0 0 18px rgba(255, 79, 168,0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 168,0); } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface2); color: var(--text); }
.leaflet-popup-content { margin: 10px 12px; }

.rn-list { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.rn-new { margin: 2px 0 4px; }
.rn-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rn-card.mine { border-color: var(--accent); }
.rn-mine { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.rn-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.rn-card.mine .rn-head { cursor: default; }
.rn-av { position: relative; flex: none; }
.rn-av img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; display: block; background: var(--surface2); }
.rn-av .status-dot { position: absolute; bottom: -2px; right: -2px; width: 13px; height: 13px; border: 2px solid var(--surface); box-shadow: none; }
.rn-who { flex: 1; min-width: 0; }
.rn-who b { display: block; }
.rn-who small { color: var(--muted); font-size: 12px; }
.rn-host { flex: none; background: rgba(255, 79, 168,.12); color: var(--accent); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; }
.rn-text { margin: 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.rn-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; cursor: zoom-in; display: block; }
.rn-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rn-foot small { color: var(--muted); }
.rn-chat { width: auto; padding: 9px 18px; font-size: 14px; }
.rn-photo { display: flex; flex-direction: column; gap: 8px; background: var(--surface2); border: 1.5px dashed var(--surface3); border-radius: 12px; padding: 14px; cursor: pointer; color: var(--text); text-align: center; }
.rn-photo img { max-height: 200px; object-fit: cover; border-radius: 10px; }
.pf-rn { background: rgba(255, 79, 168,.08); border: 1px solid rgba(255, 79, 168,.35); border-radius: 14px; padding: 10px 12px; margin: 0 0 16px; font-size: 14px; }
.pf-rn b { color: var(--accent); }
.pf-rn p { margin: 6px 0; line-height: 1.4; }
.pf-rn .tags { margin-top: 6px; }

.view-title { font-size: 26px; margin: 14px 16px 0; font-weight: 800; }
.segmented { display: flex; margin: 12px; background: var(--surface2); border-radius: 12px; padding: 4px; }
.seg { flex: 1; padding: 9px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg.active { background: var(--surface3); color: #fff; }
.seg-badge { background: var(--accent2); color: #fff; font-size: 10px; border-radius: 8px; padding: 1px 6px; margin-left: 4px; }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-align: left; width: 100%; cursor: pointer; }
.row:hover { background: var(--surface); }
.row .av { position: relative; flex: none; }
.row .av img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; display: block; background: var(--surface2); }
.row .av .status-dot { position: absolute; bottom: -2px; right: -2px; border: 2px solid var(--bg); width: 14px; height: 14px; box-shadow: none; }
.row .av .kind { position: absolute; top: -6px; right: -8px; font-size: 18px; }
.row .mid { flex: 1; min-width: 0; }
.row .mid b { display: block; font-size: 15px; }
.row .mid small { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .mid small.unread { color: #fff; font-weight: 600; }
.row .end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted); flex: none; }
.row.new { background: rgba(214, 18, 124, .07); }
.count { background: var(--accent2); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; font-weight: 700; padding: 0 5px; }
.tap-back { background: var(--surface2); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; flex: none; }
.tap-back.done { color: var(--accent); }

.overlay { z-index: 30; overscroll-behavior-y: contain; animation: slideUp .22s ease-out; }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } }
.pf { min-height: 100%; display: flex; flex-direction: column; }
.pf-photos { position: relative; aspect-ratio: 1 / 1.1; background: var(--surface2); flex: none; }
.gal { position: absolute; inset: 0; }
.gal-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: zoom-in; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track.dragging { cursor: grabbing; }
.gal-track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.gal-dots { position: absolute; top: 10px; left: 60px; right: 60px; display: flex; gap: 4px; z-index: 3; }
.gal-dots i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; }
.gal-dots i.on { background: #fff; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 3; transition: opacity .2s; }
.gal-arrow svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gal-arrow.prev { left: 8px; } .gal-arrow.next { right: 8px; }
.gal-arrow:disabled { opacity: 0; pointer-events: none; }
.gal-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 3; }
.pf-photos::after { content: ""; position: absolute; inset: 62% 0 0; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.pf-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 10px; z-index: 3; pointer-events: none; }
.pf-bar > * { pointer-events: auto; }
.round { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; backdrop-filter: blur(6px); }
.round svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round.on svg { fill: var(--accent); stroke: var(--accent); }
.pf-bar .group { display: flex; gap: 8px; }
.pf-body { padding: 0 18px 20px; margin-top: -44px; position: relative; z-index: 3; flex: 1; }
.pf-name { font-size: 30px; font-weight: 800; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.pf-name span { font-weight: 400; color: #ddd; font-size: 24px; }
.pf-headline { color: var(--accent); font-weight: 600; margin-top: 4px; }
.pf-met { background: rgba(43, 216, 107, .1); border: 1px solid rgba(43, 216, 107, .35); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin: 0 0 12px; }
.met-btn { display: block; width: 100%; padding: 10px 12px; margin: 0 0 14px; border-radius: 12px; background: var(--surface2); font-size: 14px; font-weight: 600; text-align: center; }
.met-btn.on { background: rgba(43, 216, 107, .12); color: var(--online); }
.pf-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.pf-bio { line-height: 1.5; margin: 0 0 18px; white-space: pre-wrap; }
.pf-section { border-top: 1px solid var(--line); padding: 14px 0; }
.pf-section h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
.stats dt { color: var(--muted); font-size: 12px; }
.stats dd { margin: 2px 0 0; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--surface2); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pf-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(0,0,0,0), var(--bg) 35%); }
.pf-actions .btn-primary { flex: 1; width: auto; }
.tap-btn { width: 54px; height: 54px; border-radius: 50%; background: var(--surface2); font-size: 24px; display: grid; place-items: center; flex: none; }
.cis-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tap-btn.done { background: rgba(255, 79, 168,.2); box-shadow: inset 0 0 0 2px var(--accent); }
.tap-picker { display: flex; gap: 10px; justify-content: space-around; margin: 10px 0 6px; }
.tap-picker button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 10px; border-radius: 16px; flex: 1; background: var(--surface2); }
.tap-picker button span { font-size: 40px; }

#chat-screen { display: flex; flex-direction: column; overflow: hidden; }
#chat-screen.hidden { display: none; }
.chat-head { flex: none; height: 60px; display: flex; align-items: center; gap: 6px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.chat-head .who { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.chat-head .who img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--surface2); }
.chat-head .who b { display: block; }
.chat-head .who small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.chat-head .who small.typing-txt { color: var(--accent); }
.msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.day-sep { text-align: center; font-size: 11px; color: var(--muted); margin: 10px 0 6px; }
.bubble { max-width: 76%; padding: 9px 13px; border-radius: 18px; line-height: 1.35; font-size: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.msgs { touch-action: manipulation; }
.bubble { position: relative; cursor: default; -webkit-user-select: none; user-select: none; }
.bubble.liked { margin-bottom: 10px; }
.bubble .like { position: absolute; bottom: -10px; font-size: 12px; line-height: 1; background: var(--surface3); border: 2px solid var(--bg); border-radius: 999px; padding: 3px 4px; }
.bubble.them .like { right: -8px; }
.bubble.me .like { left: -8px; }
.like-pop { position: absolute; left: 50%; top: 50%; font-size: 46px; pointer-events: none; transform: translate(-50%, -50%) scale(0); animation: likepop .75s ease-out forwards; }
@keyframes likepop { 35% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.bubble.them { align-self: flex-start; background: var(--surface2); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--grad); border-bottom-right-radius: 6px; }
.bubble.media { padding: 4px; }
.bubble img.photo { max-width: 100%; max-height: 300px; border-radius: 14px; display: block; cursor: zoom-in; -webkit-user-drag: none; }
.bubble .t { display: block; font-size: 10px; opacity: .65; margin-top: 3px; text-align: right; padding: 0 4px; }
.bubble .cap { padding: 6px 8px 0; }
.receipt { align-self: flex-end; font-size: 11px; color: var(--muted); margin: 2px 4px 4px; }
.receipt.read { color: var(--accent); }
.loc-card { width: 230px; height: 140px; border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; background: #222; }
.loc-card .tiles { position: absolute; display: grid; grid-template-columns: repeat(3, 256px); }
.loc-card .tiles img { width: 256px; height: 256px; display: block; }
.loc-card .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 28px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.loc-card .lbl { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.65); font-size: 12px; padding: 5px 8px; font-weight: 600; }
.typing { align-self: flex-start; background: var(--surface2); padding: 12px 14px; border-radius: 18px; display: flex; gap: 4px; margin-top: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #aaa; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.quick { flex: none; display: flex; gap: 6px; padding: 6px 10px; overflow-x: auto; scrollbar-width: none; }
.quick button { flex: none; background: var(--surface2); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.composer { flex: none; display: flex; gap: 6px; align-items: center; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
/* typing: the keyboard covers the home bar, so the writing bar sits right on top of it */
.kb-open .composer, .kb-open .recorder { padding-bottom: 6px; }
.composer input[type=text] { flex: 1; background: var(--surface2); border: 0; border-radius: 999px; padding: 11px 16px; outline: none; min-width: 0; }
.cbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; flex: none; cursor: pointer; }
.cbtn:hover { background: var(--surface2); }
.cbtn.send { background: var(--grad); }
.cbtn.send svg { width: 20px; height: 20px; fill: #fff; }

.me-card { display: flex; flex-direction: column; align-items: center; padding: 22px 16px 8px; text-align: center; }
.me-card .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); background: var(--surface2); }
.me-card h2 { margin: 12px 0 2px; font-size: 24px; }
.me-card p { color: var(--muted); margin: 0; font-size: 14px; }
.me-card .row-btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.completion { width: 100%; margin-top: 14px; background: var(--surface); border-radius: 14px; padding: 12px 14px; text-align: left; font-size: 13px; }
.completion .bar { height: 6px; background: var(--surface3); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.completion .bar i { display: block; height: 100%; background: var(--grad); }
.form { padding: 8px 16px; display: flex; flex-direction: column; gap: 14px; }
.form h3 { margin: 18px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-slot { aspect-ratio: 3/4; border-radius: 12px; background: var(--surface2); position: relative; overflow: hidden; display: grid; place-items: center; color: var(--accent); font-size: 30px; cursor: pointer; border: 1.5px dashed var(--surface3); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot.filled { border: 0; cursor: default; }
.photo-slot .main-lbl { position: absolute; left: 6px; bottom: 6px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.photo-slot .acts { position: absolute; top: 5px; right: 5px; display: flex; gap: 4px; }
.photo-slot .acts button { width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.65); font-size: 13px; color: #fff; display: grid; place-items: center; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.switch-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface3); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); }
.menu-list { background: var(--surface); border-radius: 14px; overflow: hidden; }
.menu-list button { display: flex; justify-content: space-between; width: 100%; padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.menu-list button:last-child { border-bottom: 0; }

.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: 40; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; overscroll-behavior-y: contain; background: var(--surface);
  border-radius: 20px 20px 0 0; z-index: 41; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: slideUp .2s ease-out; }
.sheet .grab { width: 40px; height: 4px; background: var(--surface3); border-radius: 2px; margin: 4px auto 12px; }
.sheet h2 { margin: 0 0 6px; font-size: 20px; }
.sheet .menu-item { display: block; width: 100%; text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.sheet .sheet-map { height: 300px; border-radius: 14px; overflow: hidden; margin: 10px 0; }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-row output { min-width: 70px; text-align: right; color: #fff; font-weight: 700; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions > * { flex: 1; }

.lightbox { position: absolute; inset: 0; z-index: 70; background: #000; }
.lightbox .gal-track { cursor: zoom-out; }
.lightbox .gal-track img { object-fit: contain; }
.lightbox .gal-dots { top: calc(14px + env(safe-area-inset-top)); }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.lb-close svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }

#toasts { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 80; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: rgba(30,30,30,.97); border: 1px solid var(--surface3); border-radius: 14px; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: toastIn .25s ease-out; cursor: pointer; font-size: 14px; }
.toast img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.toast small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.toast.error { border-color: var(--danger); }
.toast.out { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px); } }


.vip { display: inline-block; flex: none; font-size: 9px; font-weight: 900; letter-spacing: .08em; line-height: 1; color: #3b2600;
  padding: 3px 5px 2px; border-radius: 4px; vertical-align: middle; text-shadow: none;
  background: linear-gradient(135deg, #FFF1A8 0%, #F5C542 35%, #C8901A 65%, #FFE08A 100%); box-shadow: 0 0 0 1px rgba(255, 215, 120, .6), 0 1px 4px rgba(0,0,0,.4); }
.vip.lg { font-size: 12px; padding: 4px 8px 3px; border-radius: 5px; margin-left: 4px; }
.pf-name .vip { color: #3b2600; font-weight: 900; }
.tile-info .vip { margin-left: auto; }

.grid-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 14px 12px 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.grid-sep::before, .grid-sep::after { content: ""; flex: 1; height: 1px; background: var(--surface3); }


.msgs { touch-action: pan-y; }
.bubble .reply-ico { position: absolute; left: -34px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface3); display: grid; place-items: center; font-size: 14px; opacity: 0; pointer-events: none; }
.bubble.flash { animation: flash 1.2s ease; }
@keyframes flash { 20% { box-shadow: 0 0 0 3px var(--accent); } }
.quote { display: block; border-left: 3px solid rgba(255,255,255,.7); background: rgba(0,0,0,.18); border-radius: 8px; padding: 5px 8px; margin: 0 0 6px; font-size: 13px; cursor: pointer; max-width: 260px; }
.bubble.them .quote { border-left-color: var(--accent); background: rgba(255,255,255,.06); }
.quote b { display: block; font-size: 12px; }
.quote span { display: block; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble.sticker { background: none !important; padding: 0; }
.bubble.sticker .stk { width: 140px; height: 140px; object-fit: contain; display: block; -webkit-user-drag: none; }
.bubble.sticker .t { color: var(--muted); opacity: 1; }
.bubble.sticker .quote { background: var(--surface2); }
.voice { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.vplay { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.22); flex: none; font-size: 13px; display: grid; place-items: center; }
.bubble.them .vplay { background: var(--accent); }
.vbar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.vbar i { display: block; height: 100%; width: 0; background: #fff; transition: width .2s linear; }
.vtime { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .9; }
.once { display: flex; flex-direction: column; gap: 2px; text-align: left; font-weight: 600; font-size: 14px; }
.once small { font-weight: 400; font-size: 12px; opacity: .8; }
button.once.new { padding: 6px 4px; color: inherit; }
.lightbox.once-view::after { content: "Vue unique · elle disparaît après fermeture"; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: rgba(255, 79, 168, .9); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; z-index: 5; white-space: nowrap; }
.reply-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.reply-bar > div { flex: 1; min-width: 0; border-left: 3px solid var(--accent); padding-left: 8px; font-size: 13px; }
.reply-bar b { display: block; color: var(--accent); font-size: 12px; }
.reply-bar span { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbtn.send.mic svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.recorder { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
#rec-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.rec-hint { flex: 1; color: var(--muted); font-size: 13px; }
.stk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.stk-grid button, .stk-grid > div { aspect-ratio: 1; border-radius: 14px; background: var(--surface2); display: grid; place-items: center; padding: 8px; position: relative; }
.stk-grid img { width: 100%; height: 100%; object-fit: contain; }
.send-preview { width: 100%; max-height: 34vh; object-fit: contain; border-radius: 14px; background: #000; margin: 6px 0; }

.camera { position: absolute; inset: 0; z-index: 75; background: #000; display: flex; align-items: center; justify-content: center; }
.cam-bar { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; justify-content: space-between; }
.shutter { position: absolute; bottom: calc(30px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: 74px; height: 74px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.35); }
.shutter:active { transform: translateX(-50%) scale(.92); }

.photo-slot.filled { cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.photo-slot.filled img { -webkit-user-drag: none; pointer-events: none; }
.photo-slot.placeholder { opacity: .25; }
/* "+" of an empty slot: pinned to the exact center, whatever the font or grid does */
.photo-slot > .ic { position: absolute; inset: 0; margin: auto; display: block; width: 30px; height: 30px; }
.photo-ghost { position: fixed; z-index: 100; pointer-events: none; border-radius: 12px; overflow: hidden; transform: scale(1.06); box-shadow: 0 12px 30px rgba(0,0,0,.6); opacity: .95; }

#admin-screen { display: flex; flex-direction: column; overflow: hidden; }
#admin-screen.hidden { display: none; }
.adm-title { flex: 1; padding-left: 8px; font-weight: 800; font-size: 18px; }
.adm-scroll { flex: 1; overflow-y: auto; padding-bottom: 20px; }
.adm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px 12px 0; }
.adm-stats div { background: var(--surface); border-radius: 12px; padding: 8px 4px; text-align: center; }
.adm-stats b { display: block; font-size: 18px; color: var(--accent); }
.adm-stats small { color: var(--muted); font-size: 10px; line-height: 1.2; display: block; }
#adm-body { padding: 0 12px; }
.adm-search { margin-bottom: 4px; }
.adm-count { font-size: 12px; margin: 8px 2px; }
.adm-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; background: var(--surface); border-radius: 14px; margin-bottom: 8px; }
.adm-row > img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface2); }
.adm-row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-row .mid small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.adm-row .mid .adm-email { color: #fff; }
.adm-row .status-dot { width: 7px; height: 7px; box-shadow: none; }
.adm-tag { font-size: 9px; font-weight: 800; text-transform: uppercase; background: var(--surface3); border-radius: 4px; padding: 2px 5px; margin-left: 4px; vertical-align: middle; }
.adm-acts { display: flex; flex-direction: column; gap: 6px; flex: none; }
.adm-acts button { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--surface2); }
.adm-acts button.on { background: linear-gradient(135deg, #FFF1A8, #F5C542 40%, #C8901A); color: #3b2600; }
.adm-acts button.danger { color: var(--danger); }
.adm-pending .mid { gap: 4px; }
.adm-reasons { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.adm-reasons .adm-tag { margin-left: 0; font-size: 10px; text-transform: none; }
.adm-pics { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
.adm-pics button { flex: none; }
.adm-pics img { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; display: block; background: var(--surface2); }
.adm-bio { margin: 2px 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-decide { display: flex; gap: 8px; margin-top: 6px; }
.adm-decide button { flex: 1; padding: 11px; font-size: 14px; }
.adm-decide .danger { color: var(--danger); border-color: var(--danger); }
.adm-upload { display: block; text-align: center; margin: 4px 0 8px; cursor: pointer; }
.adm-stk > div button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.7); font-size: 12px; }
.adm-stk > div small { position: absolute; bottom: 4px; right: 6px; font-size: 10px; color: var(--muted); }

.adm-open { margin-top: 12px; width: auto; padding: 12px 22px; }

.row.pinned { background: linear-gradient(90deg, rgba(255, 79, 168, .12), rgba(255, 79, 168, .02)); border-bottom: 1px solid rgba(255, 79, 168, .25); }
.mod-av { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; background: #000; padding: 4px; box-shadow: inset 0 0 0 1px rgba(255, 79, 168, .4); }
.chat-head .who .mod-av { width: 40px; height: 40px; border-radius: 10px; padding: 3px; }
.official { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad); border-radius: 4px; padding: 2px 5px; vertical-align: middle; margin-left: 2px; }
.bubble.official-msg { border: 1px solid rgba(255, 79, 168, .35); max-width: 85%; }
.mod-note { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.mod-history { display: flex; flex-direction: column; gap: 6px; max-height: 30vh; overflow-y: auto; margin-bottom: 4px; }
.mod-hist-item { background: var(--surface2); border-radius: 10px; padding: 8px 10px; }
.mod-hist-item p { margin: 0 0 4px; white-space: pre-wrap; font-size: 14px; }
.mod-hist-item small { color: var(--muted); font-size: 11px; }

#chat-screen, #settings-screen { touch-action: pan-y; }
#chat-screen .quick { touch-action: pan-x; }

.charter-doc { background: var(--surface); border: 1px solid rgba(255, 79, 168, .35); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; max-height: 42vh; overflow-y: auto; }
.charter-doc h3 { margin: 0 0 6px; font-size: 16px; }
.charter-doc p { margin: 6px 0; }
.charter-doc ol { margin: 6px 0; padding-left: 20px; }
.charter-doc li { margin: 5px 0; color: #ddd; }
.charter-doc a { color: var(--accent); }
.sheet .charter-doc { max-height: none; }
.check a, .legal a { color: var(--accent); }
.menu-list a { display: flex; justify-content: space-between; width: 100%; padding: 15px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.adm-link { font-size: 12px; padding: 0; }
.sig-view { margin-top: 12px; background: var(--surface2); border-radius: 14px; padding: 10px; text-align: center; }
.sig-view img { max-width: 100%; height: 120px; object-fit: contain; display: block; margin: 0 auto 4px; }
.sig-view small { color: var(--muted); }

.check.pledge { background: rgba(255, 79, 168, .07); border: 1px solid rgba(255, 79, 168, .35); border-radius: 12px; padding: 12px; color: #ddd; }

.verify-illu { font-size: 64px; text-align: center; margin-top: 20px; }
.code-input { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 12px; padding: 16px; font-variant-numeric: tabular-nums; }
.adm-tag.warn { background: rgba(255, 77, 79, .18); color: #ff8a8a; }
.adm-ban-form { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.btn-primary.danger-btn { background: var(--danger); }
.adm-scroll { overflow-x: hidden; }
/* 6 tabs don't fit on a phone: the bar scrolls sideways instead of cutting the labels (and the badges) */
#adm-tabs { overflow-x: auto; scrollbar-width: none; }
#adm-tabs::-webkit-scrollbar { display: none; }
#adm-tabs .seg { flex: 1 0 auto; padding: 9px 10px; font-size: 13px; white-space: nowrap; }

.tk-status { display: inline-block; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; padding: 2px 5px; vertical-align: middle; margin-left: 2px; }
.tk-status.open { background: rgba(255, 79, 168, .18); color: var(--accent); }
.tk-status.closed { background: rgba(43, 216, 107, .15); color: var(--online); }
.row.pinned.closed { opacity: .7; }
.sys-msg { align-self: center; text-align: center; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 12px; padding: 8px 12px; margin: 6px 12px; max-width: 90%; line-height: 1.4; }
.mod-name { font-size: 11px; font-weight: 700; opacity: .8; margin-bottom: 3px; }
.bubble.them .mod-name { color: var(--accent); }
.adm-report-msg { margin: 2px 0; font-size: 13px; color: #ddd; font-style: italic; white-space: pre-wrap; }
.adm-row details { margin-top: 6px; font-size: 13px; }
.adm-row summary { cursor: pointer; color: var(--accent); }
.adm-evidence { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 6px; white-space: pre-wrap; word-break: break-word; }
.adm-acts button.on-pink { background: var(--grad); color: #fff; }
button.adm-row { width: 100%; text-align: left; }
.adm-ticket .end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.adm-ticket .end small { color: var(--muted); font-size: 11px; }
.adm-ticket .mid small.unread { color: #fff; font-weight: 600; }
.adm-ticket.closed { opacity: .65; }
.tk-back { display: block; margin: 4px 0 10px; font-size: 14px; }
.tk-head { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: 14px; padding: 10px; }
.tk-head > img, .tk-reported > img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface2); }
.tk-head .mid, .tk-reported .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-head small, .tk-reported small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.tk-report { margin-top: 8px; background: rgba(255, 77, 79, .08); border: 1px solid rgba(255, 77, 79, .3); border-radius: 14px; padding: 10px 12px; }
.tk-report p { margin: 6px 0; font-size: 14px; white-space: pre-wrap; }
.tk-chat { margin: 8px 0; }
.tk-chat summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.tk-chat .bubble { margin: 6px 0; }
.chat-report { font-size: 18px; }
.tk-reported { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.tk-msgs { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; }
.tk-msgs .bubble .t { white-space: nowrap; }
.tk-reply { display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: 0; background: var(--bg); padding: 8px 0 4px; }
.tk-actions { display: flex; gap: 8px; }
.tk-actions .btn-primary { flex: 1; }
.tk-actions .btn-ghost { flex: none; font-size: 13px; }
.tk-closed { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(43, 216, 107, .1); border-radius: 12px; padding: 10px 12px; color: var(--online); font-size: 14px; }
#adm-tabs .seg .seg-badge, .adm-open .seg-badge { margin-left: 2px; }

.grid-sep.vip-sep { color: #F5C542; padding-top: 12px; }
.grid-sep.vip-sep span { font-weight: 900; letter-spacing: .2em; background: linear-gradient(135deg, #FFF1A8, #F5C542 40%, #C8901A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid-sep.vip-sep::before, .grid-sep.vip-sep::after { background: linear-gradient(90deg, transparent, #C8901A, #F5C542); height: 1.5px; }
.grid-sep.vip-sep::after { background: linear-gradient(90deg, #F5C542, #C8901A, transparent); }
.tile.is-vip { outline: 2px solid rgba(245, 197, 66, .9); outline-offset: -2px; }

.loc-results { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; max-height: 30vh; overflow-y: auto; }
.loc-results button { text-align: left; padding: 10px 12px; border-radius: 10px; background: var(--surface2); font-size: 13px; line-height: 1.35; }
.loc-results button:hover { background: var(--surface3); }
#loc-map { height: 240px; }

.privacy-veil { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center;
  background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); }
.privacy-veil img { width: 72px; margin-bottom: 6px; }
.privacy-veil b { font-size: 20px; }
.privacy-veil span { color: var(--muted); max-width: 280px; }
.turnstile-box { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; }
.settings-title { flex: 1; margin: 0; padding-left: 8px; font-size: 18px; } /* a bit of air after the back button */
.form.settings { padding-top: 4px; padding-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 13px 22px 13px 2px; font-weight: 600; font-size: 15px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 11px; color: var(--accent); font-size: 18px; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.faq-more { text-align: center; margin: 18px 0 6px; }
.faq-more p { margin: 0 0 10px; font-size: 14px; }
.spam-hint { background: rgba(255, 79, 168, .08); border: 1px solid rgba(255, 79, 168, .35); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--text); text-align: left; }

/* "add to home screen" sheet */
.ins h2 { margin: 0; font-size: 22px; }
.ins-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ins-head small { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.ins-icon { width: 54px; height: 54px; flex: none; border-radius: 14px; background: rgba(255, 79, 168,.12); border: 1px solid rgba(255, 79, 168,.35); display: grid; place-items: center; }
.ins-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ins > p { margin: 0 0 14px; line-height: 1.5; }
.ins-steps { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 12px; }
.ins-steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.ins-steps small { color: var(--muted); }
.ins-steps svg { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ins-steps svg circle { fill: var(--accent); stroke: none; }
.ins-n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(255, 79, 168,.15); color: var(--accent); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.ins .btn-primary { margin-bottom: 6px; }
.ins-or { text-align: center; font-size: 13px; margin: 4px 0 10px !important; }
.ins-foot { font-size: 13px; }
.push-note { font-size: 13px; line-height: 1.5; margin: 0 0 10px; }

/* ---------- glass & chrome ---------- */
/* translucent surfaces, glossy buttons with a light sweep, chrome icons */
:root {
  --surface: rgba(26, 22, 30, .72);
  --surface2: rgba(255, 255, 255, .08);
  --surface3: rgba(255, 255, 255, .15);
  --line: rgba(255, 255, 255, .09);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
  --glass-line: rgba(255, 255, 255, .16);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .22);
  --blur: blur(22px) saturate(170%);
}
.topbar, .chips { background: rgba(8, 6, 10, .5); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
/* grid filters: only at the very top, they scroll away with the grid (no floating blurred bar) */
#grid-chips { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar { border-bottom-color: var(--glass-line); }

/* drawn icons */
.ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; }
.menu-item .ic, .menu-list .ic { margin-right: 8px; color: var(--accent); }
.tile-badges .ic { width: 15px; height: 15px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.tile-badges .ic:first-child { color: #ffd84d; }
.row .av .kind .ic, .tap-btn .ic, .tap-picker button span .ic { color: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 79, 168, .55)); }
.tap-btn.done .ic { color: #fff; }
.bubble .like .ic { color: var(--accent); }
.like-pop .ic { color: #fff; filter: drop-shadow(0 0 12px rgba(255, 79, 168, .9)); }
.loc-card .pin .ic { color: var(--accent); stroke: #fff; stroke-width: 1.5; }
.vplay .ic { width: 14px; height: 14px; stroke-width: 2.6; }

/* big icons (empty states, email/geo screens): chrome icon in a glass bubble */
.empty .big, .hold .big, .verify-illu, .geo-illu {
  display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 16px; font-size: 38px; border-radius: 30px;
  background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), 0 12px 32px rgba(214, 18, 124, .28);
}
.verify-illu, .geo-illu { margin-top: 24px; }
.big .ic, .verify-illu .ic, .geo-illu .ic { stroke: url(#g-chrome); stroke-width: 1.7; filter: drop-shadow(0 2px 8px rgba(255, 79, 168, .5)); }

/* app name: flat, same pink as the logo (no shine) */
.brand, .brand-sm { background: none; color: #E03890; -webkit-text-fill-color: #E03890; }

/* buttons: glossy pink with a light sweeping across */
.btn-primary, .cbtn.send {
  position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .28);
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 52%), var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 8px rgba(110, 0, 55, .35), 0 8px 24px rgba(214, 18, 124, .35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 0%, 72% { left: -60%; } 100% { left: 130%; } }
.btn-primary:active, .btn-ghost:active, .chip:active, .cbtn:active, .icon-btn:active, .round:active { transform: scale(.96); }
.btn-primary.danger-btn { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 52%), var(--danger); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px rgba(255, 77, 79, .3); }
.btn-primary .ic { margin-right: 4px; }

/* glass buttons and chips */
.btn-ghost, .chip, .icon-btn, .cbtn:not(.send), .tap-btn, .tap-picker button, .seg.active, .round {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.round { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .25)); }
.icon-btn:hover, .cbtn:not(.send):hover { background: rgba(255, 255, 255, .16); }
.chip.on { background: linear-gradient(180deg, rgba(255, 140, 200, .35), rgba(214, 18, 124, .18)); border-color: rgba(255, 140, 200, .7); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 14px rgba(255, 79, 168, .35); }
.tap-btn.done { background: linear-gradient(180deg, rgba(255, 140, 200, .4), rgba(214, 18, 124, .25)); }

/* panels */
.sheet { background: rgba(24, 20, 28, .72); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border-top: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 -10px 40px rgba(0, 0, 0, .5); }
.sheet .grab { background: rgba(255, 255, 255, .35); }
.backdrop { background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.toast { background: rgba(30, 26, 34, .72); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-color: var(--glass-line); box-shadow: var(--glass-hi), 0 8px 30px rgba(0, 0, 0, .5); }
.rn-card, .menu-list, .completion, .charter-doc, .adm-row, .tk-head, .sys-msg { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi); }
.field input, .field textarea, .field select, .input { background: rgba(255, 255, 255, .06); border-color: var(--glass-line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }

/* tab bar: floating glass pill, chrome icon on the active tab */
.tabbar { margin: 0 10px calc(8px + env(safe-area-inset-bottom)); border: 1px solid var(--glass-line); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)), rgba(12, 10, 14, .6);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--glass-hi), 0 10px 30px rgba(0, 0, 0, .55); }
.tabbar { position: relative; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tab { z-index: 1; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), color .2s; }
.tab.active { color: #fff; }
/* liquid glass lens: sits on the active tab, slides between tabs. hold the bar: it swells and follows the finger */
.tab-lens { position: absolute; top: 6px; bottom: 6px; left: 0; width: var(--lw, 20%); z-index: 0; border-radius: 22px; pointer-events: none;
  transform: translateX(var(--lx, 0)) scale(var(--ls, 1)); transition: transform .45s cubic-bezier(.3, 1.35, .45, 1), background .25s, box-shadow .25s;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(255, 255, 255, .08); }
.tabbar.lens-hold .tab-lens { --ls: 1.22; transition: transform .1s linear, background .25s, box-shadow .25s;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .26), rgba(255, 255, 255, .05) 60%, rgba(255, 140, 200, .1));
  -webkit-backdrop-filter: saturate(200%) brightness(1.2); backdrop-filter: saturate(200%) brightness(1.2);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -2px 6px rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .22),
    0 8px 24px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 79, 168, .25); }
.tabbar.lens-hold .tab.lens-on { transform: scale(1.14); color: #fff; }
.tabbar.lens-hold .tab.active:not(.lens-on) { color: var(--muted); }
.tabbar.lens-hold .tab.active:not(.lens-on) svg { stroke: currentColor; fill: none; filter: none; }
.tab.active svg { stroke: url(#g-chrome); fill: rgba(255, 79, 168, .18); filter: drop-shadow(0 0 6px rgba(255, 79, 168, .6)); }

/* legal pages inside the app */
.legal-screen { z-index: 80; display: flex; flex-direction: column; overflow: hidden; background: #000; }
.legal-top { flex: none; display: flex; align-items: center; gap: 10px; height: var(--topbar); padding: 0 12px; padding-top: env(safe-area-inset-top);
  box-sizing: content-box; border-bottom: 1px solid var(--glass-line); }
.legal-top b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legal-screen iframe { flex: 1; width: 100%; border: 0; background: #000; }

/* tab bar floats over the content: the pages go all the way down and slide behind the glass bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)), rgba(12, 10, 14, .42); }
.view { padding-bottom: calc(var(--tabbar) + 24px + env(safe-area-inset-bottom)); }

/* tab bar: small pill at rest. hold it: the whole bar swells into liquid glass until the finger lets go */
:root { --tabbar: 58px; }
.tabbar { margin: 0 18px calc(8px + env(safe-area-inset-bottom)); border-radius: 29px; transform-origin: 50% 100%;
  border-color: rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, .07)), rgba(12, 10, 14, .14);
  -webkit-backdrop-filter: blur(18px) saturate(200%) brightness(1.08); backdrop-filter: blur(18px) saturate(200%) brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .45s cubic-bezier(.3, 1.45, .45, 1), background .3s, box-shadow .3s, border-color .3s; }
.tabbar .tab { font-size: 10.5px; gap: 2px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.tabbar .tab:not(.active) { color: rgba(255, 255, 255, .72); }
.tabbar .tab:not(.active) svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.tabbar .tab svg { width: 22px; height: 22px; }
.tabbar .tab-lens { top: 5px; bottom: 5px; border-radius: 22px; }
.tabbar.lens-hold { transform: scale(1.06); transition: transform .3s cubic-bezier(.3, 1.6, .45, 1), background .3s, box-shadow .3s, border-color .3s;
  border-color: rgba(255, 255, 255, .3);
  background: radial-gradient(140% 120% at 50% -10%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 55%, rgba(255, 140, 200, .08)), rgba(12, 10, 14, .08);
  -webkit-backdrop-filter: blur(14px) saturate(220%) brightness(1.15); backdrop-filter: blur(14px) saturate(220%) brightness(1.15);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -3px 10px rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 14px 40px rgba(0, 0, 0, .55), 0 0 24px rgba(255, 79, 168, .22); }

/* Profil tab: see / edit, incognito */
.me-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 420px; margin-top: 14px; }
.me-actions .btn-ghost { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; font-size: 14px; }
.me-incog { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; margin-top: 10px; padding: 12px 14px; border-radius: 18px; text-align: left;
  color: var(--text); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi); }
.me-incog-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; flex: none; background: rgba(255, 255, 255, .08); }
.me-incog.on .me-incog-ic { background: rgba(255, 79, 168, .22); color: var(--accent); }
.me-incog-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.me-incog-txt small { color: var(--muted); font-size: 12px; }
.me-switch { position: relative; width: 46px; height: 28px; border-radius: 99px; background: rgba(255, 255, 255, .18); flex: none; transition: background .2s; }
.me-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.me-incog.on .me-switch { background: var(--accent); }
.me-incog.on .me-switch i { transform: translateX(18px); }
.me-more { padding-top: 4px; }

/* "Modifier le profil" page: save button stays at the bottom */
.edit-form { padding-bottom: 0; }
.edit-save { position: sticky; bottom: 0; margin: 18px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .85) 35%); }

.edit-geo { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }

/* mods' double authentication */
.mfa { max-width: 420px; margin: 12px auto; text-align: center; gap: 12px; }
.mfa h2 { margin: 4px 0 0; font-size: 20px; }
.mfa p { margin: 0; font-size: 14px; line-height: 1.45; }
.mfa .mfa-ic { display: flex; justify-content: center; }

/* moderation PIN pad */
/* no double-tap zoom when typing fast, no text selection */
.pinpad { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.pinpad:focus { outline: none; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 10px 0 2px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); transition: background .12s, transform .12s; }
.pin-dots i.on { background: var(--pink, #ec5fa8); border-color: var(--pink, #ec5fa8); transform: scale(1.1); }
.pin-dots.shake { animation: pin-shake .35s; }
@keyframes pin-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; justify-content: center; margin: 6px 0 8px; }
.pin-keys button { width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff; font-size: 28px; font-weight: 500; }
.pin-keys button:active { background: rgba(236,95,168,.35); }

/* ---------- welcome + login: cleaner, almost no pink, solid buttons ---------- */
.welcome-clean { justify-content: space-between; background:
  radial-gradient(90% 45% at 50% 30%, rgba(255, 255, 255, .055), transparent 70%),
  radial-gradient(70% 35% at 50% 32%, rgba(224, 56, 144, .07), transparent 70%), #060607; }
.welcome-clean::before { display: none; }
.welcome-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 24px 0; text-align: center; }
.welcome-hero .logo { width: 44px; height: 44px; margin-bottom: -4px; object-fit: contain; opacity: 0; animation: wFade .8s ease 1.5s forwards; }
.welcome-hero p { margin: 4px 0 0; color: rgba(255, 255, 255, .58); font-size: 16px; line-height: 1.5; opacity: 0; animation: wRise .7s ease 1.9s forwards; }
.welcome-clean .welcome-inner { padding: 0 24px max(28px, env(safe-area-inset-bottom)); gap: 10px; opacity: 0; animation: wRise .7s ease 2.1s forwards; }
.welcome-clean .legal { color: rgba(255, 255, 255, .42); font-size: 12px; line-height: 1.5; margin-top: 8px; }
.welcome-clean .legal a { color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 2px; }

/* "Gouinz" written by its outline: every letter traced (one after the other), then filled */
.brand-trace { width: min(300px, 78vw); height: auto; overflow: visible; }
.brand-trace text { font: 800 68px -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: -2.5px; }
.brand-trace tspan { fill: #fff; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; paint-order: stroke;
  animation: wTrace 1.5s cubic-bezier(.55, .1, .25, 1) calc(var(--i) * 70ms) both, wFill .6s ease calc(1.05s + var(--i) * 70ms) both; }
@keyframes wTrace { from { stroke-dasharray: 380; stroke-dashoffset: 380; } to { stroke-dasharray: 380; stroke-dashoffset: 0; } }
@keyframes wFill { from { fill: rgba(255, 255, 255, 0); stroke-opacity: 1; } to { fill: #fff; stroke-opacity: 0; } }
@keyframes wFade { to { opacity: 1; } }
@keyframes wRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* waits for the splash to go (class added by the app) */
.welcome-clean .brand-trace tspan, .welcome-hero .logo, .welcome-hero p, .welcome-clean .welcome-inner { animation-play-state: paused; }
.welcome-clean.play .brand-trace tspan, .welcome-clean.play .welcome-hero .logo, .welcome-clean.play .welcome-hero p, .welcome-clean.play .welcome-inner { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  .brand-trace tspan, .welcome-hero .logo, .welcome-hero p, .welcome-clean .welcome-inner { animation: none; opacity: 1; }
}

/* buttons of the welcome / login / signup screens: flat and sharp, no gloss or glow */
#auth .btn-primary { background: #f5f5f7; color: #0a0a0b; border: 0; box-shadow: none; text-shadow: none;
  border-radius: 14px; padding: 16px; font-size: 16.5px; font-weight: 650; letter-spacing: -.2px; transition: transform .12s, background .15s; }
#auth .btn-primary::after { display: none; }
#auth .btn-primary:active { background: #dcdce0; transform: scale(.985); }
#auth .btn-primary:disabled { background: rgba(255, 255, 255, .25); color: rgba(0, 0, 0, .5); }
#auth .btn-outline { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .045); color: #fff;
  border-radius: 14px; padding: 15.5px; font-size: 16.5px; font-weight: 600; letter-spacing: -.2px; transition: transform .12s, background .15s; }
#auth .btn-outline:active { background: rgba(255, 255, 255, .1); transform: scale(.985); }
#auth .link { color: rgba(255, 255, 255, .85); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }

/* ---------- moderation screen v2: home, tidy lists, one sheet per item ---------- */
.mod-head .icon-btn + .icon-btn { margin-left: 6px; }
.mod-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); scrollbar-width: none; flex: none; }
.mod-nav::-webkit-scrollbar { display: none; }
.mod-nav .seg { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .62); background: transparent; border: 1px solid transparent; }
.mod-nav .seg .ic { width: 16px; height: 16px; }
.mod-nav .seg.active { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); }
.mod-nav .seg-badge { margin-left: 0; }
.mod-scroll { padding: 6px 14px 40px; }
.mod-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .45); margin: 22px 2px 10px; }
.mod-h.danger { color: rgba(255, 120, 120, .75); }
.mod-search { position: relative; margin: 10px 0 4px; }
.mod-search > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .5; display: flex; }
.mod-search .ic { width: 18px; height: 18px; }
.mod-search .input { padding-left: 42px; }
.mod-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.mod-chips::-webkit-scrollbar { display: none; }
.mod-chips .chip { flex: none; }

/* home */
.mod-todo { display: grid; gap: 8px; }
.mod-todo-card { display: grid; grid-template-columns: 40px auto 1fr 18px; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.mod-todo-card b { font-size: 24px; font-variant-numeric: tabular-nums; }
.mod-todo-card > span:nth-of-type(2) { color: rgba(255, 255, 255, .75); font-size: 14px; }
.mod-todo-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.mod-todo-card.reports .mod-todo-ic { background: rgba(255, 77, 79, .16); color: #ff8a8a; }
.mod-todo-card.pending .mod-todo-ic { background: rgba(255, 200, 80, .14); color: #ffd27a; }
.mod-todo-card.tickets .mod-todo-ic { background: rgba(255, 79, 168, .14); color: var(--accent); }
.mod-chev { display: flex; opacity: .35; }
.mod-chev svg, .mod-row .end svg { width: 16px; height: 16px; }
.mod-allgood { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: rgba(43, 216, 107, .08); border: 1px solid rgba(43, 216, 107, .2); color: var(--online); }
.mod-allgood div { display: flex; flex-direction: column; color: #fff; }
.mod-allgood small { color: rgba(255, 255, 255, .6); }
.mod-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mod-stats div { padding: 12px 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.mod-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.mod-stats small { color: rgba(255, 255, 255, .5); font-size: 11.5px; line-height: 1.25; display: block; margin-top: 2px; }
.mod-tools { display: grid; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.mod-tools button { display: grid; grid-template-columns: 34px 1fr 18px; gap: 12px; align-items: center; padding: 13px 14px; text-align: left; }
.mod-tools button + button { border-top: 1px solid rgba(255, 255, 255, .06); }
.mod-tools b { display: block; font-size: 15px; font-weight: 600; }
.mod-tools small { color: rgba(255, 255, 255, .5); font-size: 12.5px; }
.mod-tool-ic, .mod-row-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); flex: none; }
.mod-tool-ic .ic, .mod-row-ic .ic { width: 17px; height: 17px; }
.mod-foot { display: flex; gap: 6px; align-items: center; font-size: 12px; margin-top: 18px; }
.mod-foot .ic { width: 14px; height: 14px; flex: none; }

/* lists */
.mod-list { display: grid; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .035); }
.mod-row { display: flex; gap: 12px; align-items: center; padding: 11px 12px; text-align: left; width: 100%; min-width: 0; }
.mod-row + .mod-row, .mod-log-row + .mod-log-row { border-top: 1px solid rgba(255, 255, 255, .06); }
.mod-row:not(.static):active { background: rgba(255, 255, 255, .06); }
.mod-row > img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface2); }
.mod-row .mid, .mod-log-row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mod-row .mid b { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mod-row .mid small, .mod-log-row small { color: rgba(255, 255, 255, .5); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-row .end { display: flex; align-items: center; gap: 8px; opacity: .6; flex: none; }
.mod-row.urgent { box-shadow: inset 3px 0 0 var(--danger); }
.mod-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.mod-tags:empty { display: none; }
.mod-tags .adm-tag { margin-left: 0; }
.mod-reason { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(255, 77, 79, .15); color: #ff9a9a; }
.mod-mini { flex: none; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.mod-log-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; }
.mod-log-row b { font-size: 14px; font-weight: 500; line-height: 1.35; }
.mod-log-row .link { font-weight: 600; padding: 0; }
.mod-log-row small { white-space: normal; }
.mod-addban { margin: 10px 0 2px; }

/* sheets: member / report */
.mod-sheet { display: flex; flex-direction: column; gap: 4px; }
.mod-who { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.mod-who img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--surface2); flex: none; }
.mod-who h2 { margin: 0; font-size: 20px; }
.mod-who small { color: rgba(255, 255, 255, .55); overflow-wrap: anywhere; }
.mod-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0; }
.mod-facts span { padding: 9px 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); text-align: center; font-size: 11px; color: rgba(255, 255, 255, .5); }
.mod-facts b { display: block; font-size: 17px; color: #fff; }
.mod-info { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 7px; font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.mod-info li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mod-info .ic { width: 15px; height: 15px; opacity: .6; }
.mod-info .link { padding: 0; font-size: 13.5px; }
.mod-actions { display: grid; gap: 8px; }
.mod-act { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); font-size: 15px; font-weight: 600; text-align: left; color: #fff; }
.mod-act .ic { width: 18px; height: 18px; flex: none; }
.mod-act:active { background: rgba(255, 255, 255, .11); }
.mod-act.primary { background: #f5f5f7; color: #0a0a0b; border-color: transparent; }
.mod-act.danger { color: #ff8a8a; background: rgba(255, 77, 79, .08); border-color: rgba(255, 77, 79, .18); }
.mod-act.on { color: #f5c542; }
.mod-report { padding: 12px 14px; border-radius: 14px; background: rgba(255, 77, 79, .07); border: 1px solid rgba(255, 77, 79, .16); margin-bottom: 10px; display: grid; gap: 6px; }
.mod-report p { margin: 0; font-style: italic; color: #e6e6e6; white-space: pre-wrap; overflow-wrap: anywhere; }
.mod-report small { color: rgba(255, 255, 255, .5); }
#mod-user-log:not(:empty) { margin-top: 8px; }
.mod-ticket .end { flex-direction: column; align-items: flex-end; gap: 6px; opacity: 1; }
.mod-ticket .end small { color: rgba(255, 255, 255, .45); font-size: 11.5px; }
.mod-ticket.unread .mod-last { color: #fff; font-weight: 600; }
.mod-ticket.closed { opacity: .6; }
.tk-reported-row { margin-top: 8px; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.tk-reported-row .mid small { white-space: normal; }
/* moderation: flat buttons, same family as the login screen */
#admin-screen .btn-primary { background: #f5f5f7; color: #0a0a0b; border: 0; box-shadow: none; text-shadow: none; border-radius: 14px; font-weight: 650; }
#admin-screen .btn-primary::after { display: none; }
#admin-screen .btn-primary .ic { stroke: currentColor; }
#admin-screen .btn-outline { border-radius: 14px; border-width: 1px; }
#admin-screen .adm-decide .btn-outline.danger { background: rgba(255, 77, 79, .08); border-color: rgba(255, 77, 79, .35); }
#admin-screen .adm-pending { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; padding: 14px; }
#admin-screen .tk-head, #admin-screen .tk-report { border-radius: 16px; }
.tk-back { display: inline-flex; align-items: center; gap: 4px; }
.tk-back svg { width: 16px; height: 16px; flex: none; }

/* liquid glass buttons: a brighter rim and a light that follows the finger. pressed, they swell; pulled to one side,
   they follow a little and stretch like jelly; let go, they spring back (app.js, bindLiquidGlass) */
.btn-ghost, .chip, .icon-btn, .cbtn:not(.send), .tap-btn, .round, .seg.active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -1px 0 rgba(255, 255, 255, .07), inset 0 0 0 .5px rgba(255, 255, 255, .12),
    0 4px 14px rgba(0, 0, 0, .22);
}
.btn-primary, .btn-ghost, .chip, .icon-btn, .cbtn, .tap-btn, .round, .seg,
.btn-primary:active, .btn-ghost:active, .chip:active, .icon-btn:active, .cbtn:active, .round:active, #auth .btn-primary:active, #auth .btn-ghost:active {
  transform: translate3d(var(--lg-tx, 0px), var(--lg-ty, 0px), 0) scale(var(--lg-sx, 1), var(--lg-sy, 1));
  transition: transform .6s cubic-bezier(.25, 1.75, .45, 1), background .2s ease, box-shadow .25s ease;
  will-change: transform;
}
.lg-press { transition: transform .09s ease-out, background .2s ease, box-shadow .25s ease !important; }
.lg-press::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at var(--lg-lx, 50%) var(--lg-ly, 50%), rgba(255, 255, 255, .34), rgba(255, 255, 255, .08) 38%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen; }
.btn-ghost.lg-press, .chip.lg-press, .icon-btn.lg-press, .cbtn.lg-press:not(.send), .tap-btn.lg-press, .round.lg-press, .seg.lg-press {
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .07));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 28px rgba(0, 0, 0, .35), 0 0 16px rgba(255, 79, 168, .18);
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-ghost, .chip, .icon-btn, .cbtn, .tap-btn, .round, .seg { transition: background .2s ease, box-shadow .2s ease; }
}

/* tab bar, liquid glass like the buttons: pulled past its sides or up/down, the whole bar follows a little and stretches
   that way; the lens stretches in the direction it slides (faster = longer); a light follows the finger; let go: spring back */
.tabbar { transform: translate3d(var(--tb-tx, 0px), var(--tb-ty, 0px), 0) scale(var(--tb-sx, 1), var(--tb-sy, 1)); }
.tabbar.lens-hold { transform: translate3d(var(--tb-tx, 0px), var(--tb-ty, 0px), 0) scale(var(--tb-sx, 1.06), var(--tb-sy, 1.06)); }
.tabbar.tb-pull { transition: transform .09s ease-out, background .3s, box-shadow .3s, border-color .3s; }
.tab-lens { transform: translateX(var(--lx, 0)) scale(var(--lsx, var(--ls, 1)), var(--lsy, var(--ls, 1))); }
.tabbar::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(110px 80px at var(--tb-lx, 50%) 20%, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 70%); mix-blend-mode: screen; }
.tabbar.lens-hold::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .tabbar, .tabbar.lens-hold { transform: none; }
}

/* ---------- writing bar, like Instagram: one full width pill with everything inside ---------- */
.cbar { flex: 1; width: 100%; min-width: 0; display: flex; align-items: center; gap: 2px; min-height: 54px; padding: 5px; border-radius: 27px; background: var(--surface2); }
.composer .cbar input[type=text] { flex: 1; min-width: 0; background: none; border: 0; border-radius: 0; padding: 10px 8px 10px 12px; font-size: 17px; color: inherit; outline: none; }
.cbar-cam, .cbar-send { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; cursor: pointer; }
.cbar-cam .ic { width: 22px; height: 22px; }
.cbar-tools { flex: none; display: flex; align-items: center; }
.cbar-tools button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--text); cursor: pointer; }
.cbar-tools .ic { width: 24px; height: 24px; }
.cbar-tools button:active, .cbar-cam:active, .cbar-send:active { transform: scale(.9); }
.cbar-send { display: none; }
.cbar-send svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.composer.has-text .cbar-tools { display: none; }
.composer.has-text .cbar-send { display: grid; animation: cbar-pop .18s ease-out; }
@keyframes cbar-pop { from { transform: scale(.6); opacity: 0; } }
/* browser with the keyboard open: the screen fits the visible part, so the bar sits right on the keyboard
   (the iPhone app shrinks by itself) */
.kb-fit #chat-screen { position: fixed; top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100%); }

/* ---------- camera: full screen, the video placed by the app (camLayout) so the photo is exactly what's on screen ---------- */
.cam-stage { position: absolute; inset: 0; touch-action: none; overflow: hidden; user-select: none; -webkit-user-select: none; }
.cam-stage video, .cam-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* "Lissage": softened cheeks drawn on top of the video */
.cam-fx { pointer-events: none; opacity: 0; transition: opacity .25s; }
.camera.smooth .cam-fx { opacity: .85; }
.cam-smooth.on { background: var(--grad) !important; color: #fff; }
.cam-focus { position: absolute; width: 78px; height: 78px; margin: -39px 0 0 -39px; border: 1.5px solid #ffd60a; border-radius: 4px; pointer-events: none; animation: cam-focus .45s ease-out; --b: 0; }
@keyframes cam-focus { 0% { transform: scale(1.5); opacity: 0; } 60% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1); } }
/* the light: a sun on a line next to the square, slide up/down anywhere to change it */
.cam-sun { position: absolute; left: calc(100% + 12px); top: -6px; bottom: -6px; width: 2px; background: rgba(255, 214, 10, .45); }
.cam-sun i { position: absolute; left: 50%; top: calc(50% - var(--b) * 42px); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: radial-gradient(circle, #ffd60a 0 4px, transparent 5px), repeating-conic-gradient(#ffd60a 0 10deg, transparent 10deg 45deg); }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: cam-flash .2s ease-out; }
@keyframes cam-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.cam-filter-name { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-size: 30px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cam-filter-name.show { opacity: 1; }
.cam-zoom { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(190px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px;
  padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.cam-zoom button { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cam-zoom button.on { width: 42px; height: 42px; color: #ffd60a; font-size: 13px; background: rgba(0, 0, 0, .5); }
/* the filters: a swatch for each (the same picture with the filter on) and its name, the current one ringed in white */
.cam-filters { position: absolute; left: 0; right: 0; bottom: calc(116px + env(safe-area-inset-bottom)); display: flex; gap: 10px; overflow-x: auto;
  padding: 4px calc(50% - 26px); scrollbar-width: none; touch-action: pan-x; }
.cam-filters::-webkit-scrollbar { display: none; }
.cam-filters button { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; }
.cam-sw { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35);
  background: linear-gradient(135deg, #f2c6a8 0 30%, #d9886a 30% 48%, #4f9fd8 48% 70%, #5aa05a 70% 85%, #f4d35e 85%); }
.cam-filters small { font-size: 10px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); opacity: .8; }
.cam-filters button.on .cam-sw { border: 3px solid #fff; transform: scale(1.08); }
.cam-filters button.on small { opacity: 1; }

/* "Recommandées pour toi": carousel between two parts of the grid, swipe sideways */
.recos { grid-column: 1 / -1; padding: 14px 0 16px; margin: 2px 0; background: linear-gradient(180deg, rgba(255, 79, 168, .10), rgba(255, 79, 168, .02)); }
.recos-head { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 10px; }
.recos-head b { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; }
.recos-head b svg { color: var(--accent); width: 18px; height: 18px; }
.recos-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px; scroll-snap-type: x mandatory; scroll-padding: 0 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.recos-row::-webkit-scrollbar { display: none; }
.reco { position: relative; flex: none; width: 42%; max-width: 200px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--surface2); scroll-snap-align: start; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.reco img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.reco:active img { transform: scale(1.03); }
.reco::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.reco-info { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.reco-info .tname { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco-dist { font-size: 11px; color: rgba(255, 255, 255, .8); font-weight: 600; }

/* ---------- matte : même thème rose + liquid glass, sans néon ni brillance, formes un peu plus carrées ---------- */
:root {
  --grad: linear-gradient(180deg, #E8459A, #CC1E78); /* rose plus doux, mat */
  --r-btn: 12px;
}
#app { box-shadow: 0 0 0 1px #1a1a1a; }

/* bouton principal : rose mat, plus de reflet, de halo ni de lumière qui passe */
.btn-primary, .cbtn.send {
  background: var(--grad); border: 0; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn-primary::after { display: none; }
.btn-primary, .btn-ghost, .btn-outline, #auth .btn-primary, #auth .btn-outline, #admin-screen .btn-primary { border-radius: var(--r-btn); }
.btn-primary.danger-btn { background: var(--danger); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }

/* boutons en verre : on garde le verre, sans lueur rose */
.chip, .tap-back, .quick button, .seg, .segmented, .met-btn, .tag, .rn-host { border-radius: 10px; }
.chip.on { background: linear-gradient(180deg, rgba(232, 69, 154, .28), rgba(204, 30, 120, .16)); border-color: rgba(232, 69, 154, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.tap-btn { border-radius: 14px; }
.tap-btn.done { background: linear-gradient(180deg, rgba(232, 69, 154, .3), rgba(204, 30, 120, .18)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-ghost.lg-press, .chip.lg-press, .icon-btn.lg-press, .cbtn.lg-press:not(.send), .tap-btn.lg-press, .round.lg-press, .seg.lg-press {
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 8px 22px rgba(0, 0, 0, .3); }

/* bulles du chat : plus carrées, rose mat */
.bubble { border-radius: 14px; }
.bubble.them { border-bottom-left-radius: 4px; }
.bubble.me { background: var(--grad); border-bottom-right-radius: 4px; }
.bubble img.photo { border-radius: 10px; }
.typing { border-radius: 14px; }
.quote { border-radius: 6px; }

/* barre d'écriture */
.cbar { border-radius: 16px; }
.cbar-cam, .cbar-send { border-radius: 12px; background: var(--grad); }
.composer input[type=text] { border-radius: 14px; }

/* icônes : rose uni au lieu du chrome brillant, plus de lueur */
.tab.active svg { stroke: var(--accent); fill: rgba(255, 79, 168, .14); filter: none; }
.big .ic, .verify-illu .ic, .geo-illu .ic { stroke: var(--accent); filter: none; }
.empty .big, .hold .big, .verify-illu, .geo-illu { border-radius: 22px; box-shadow: var(--glass-hi); }
.row .av .kind .ic, .tap-btn .ic, .tap-picker button span .ic { filter: none; }
.like-pop .ic { filter: none; }
.welcome-inner img.logo { filter: none; }

/* barre du bas : le verre reste, sans halo rose quand on la tient */
.tabbar.lens-hold { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -3px 10px rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 40px rgba(0, 0, 0, .55); }
.tabbar.lens-hold .tab-lens { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -2px 6px rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .22), 0 8px 24px rgba(0, 0, 0, .45); }

/* VIP : doré à plat, sans reflet */
.vip { background: #D9AE45; box-shadow: none; }
.adm-acts button.on, .grid-sep.vip-sep span { background: none; }
.adm-acts button.on { background: #D9AE45; }
.grid-sep.vip-sep span { color: #D9AE45; -webkit-text-fill-color: #D9AE45; }
.grid-sep.vip-sep::before, .grid-sep.vip-sep::after { background: rgba(217, 174, 69, .5); height: 1px; }

/* cartes, feuilles, photos : coins un peu moins ronds */
.rn-card, .menu-list, .completion, .charter-doc, .me-incog, .reco, .sheet .sheet-map { border-radius: 14px; }
.sheet { border-radius: 18px 18px 0 0; }
.recos { background: linear-gradient(180deg, rgba(255, 79, 168, .06), rgba(255, 79, 168, 0)); }
.reco { box-shadow: none; }
.field input, .field textarea, .field select, .input, .dob select { border-radius: 10px; }

/* nom de l'app en blanc dans la barre du haut */
.brand-sm, .brand { color: #fff; -webkit-text-fill-color: #fff; }

/* ---------- barre du bas : noire et opaque comme le fond, seule la sélection est en verre ---------- */
.tabbar, .tabbar.lens-hold {
  background: #0d0d0f; border: 1px solid rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transform: none; overflow: visible;
}
.tabbar::after { display: none; }
.tabbar .tab { text-shadow: none; }
.tabbar .tab:not(.active) { color: rgba(255, 255, 255, .55); }
.tabbar .tab:not(.active) svg { filter: none; }
.tab.active { color: #fff; }

/* la sélection : une lentille de verre, bord clair qui grossit un peu, reflet en haut */
.tabbar .tab-lens {
  top: 6px; bottom: 6px; border-radius: 20px;
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 60%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .07) 78%, rgba(255, 255, 255, .16) 100%),
    rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(3px) saturate(180%) brightness(1.15); backdrop-filter: blur(3px) saturate(180%) brightness(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .12),
    inset 0 0 10px rgba(255, 255, 255, .06), 0 3px 10px rgba(0, 0, 0, .45);
}
.tab.active { transform: scale(1.04); }

/* appui : la lentille gonfle et dépasse de la barre, le bord s'éclaire, l'icône dessous grossit */
.tabbar.lens-hold .tab-lens {
  transform: translateX(var(--lx, 0)) scale(calc(var(--lsx, var(--ls, 1)) * 1.04), calc(var(--lsy, var(--ls, 1)) * 1.22));
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, .10) 76%, rgba(255, 255, 255, .26) 100%),
    rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(2px) saturate(220%) brightness(1.25); backdrop-filter: blur(2px) saturate(220%) brightness(1.25);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .65), inset 0 -2px 4px rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 0 14px rgba(255, 255, 255, .10), 0 10px 26px rgba(0, 0, 0, .6);
}
.tabbar.lens-hold .tab.lens-on { transform: scale(1.18); color: #fff; }
@media (prefers-reduced-motion: reduce) { .tabbar.lens-hold .tab-lens { transform: translateX(var(--lx, 0)); } }


/* =====================================================================
   .glass — liquid glass façon iOS 26 / Hinge
   uniquement : barre du bas, boutons flottants sur les photos, header (visible quand le contenu passe dessous)
   pas de couleur, pas de lueur
   ===================================================================== */
.glass, .tabbar, .tabbar.lens-hold, .round, .gal-arrow, .lb-close {
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 24px rgba(0, 0, 0, .35);
}
/* sans backdrop-filter : fond opaque */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .tabbar, .tabbar.lens-hold, .round, .gal-arrow, .lb-close { background: rgba(22, 22, 24, .92); }
}

/* boutons ronds sur les photos : plus de dégradé ni de lueur à l'appui */
.round.lg-press, .round:active { background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 24px rgba(0, 0, 0, .35); }
.round.lg-press::before { display: none; }

/* header : posé par-dessus le contenu, qui défile dessous -> le verre apparaît dès qu'on scrolle */
#main > .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04); }
.view::before { content: ""; display: block; height: var(--topbar); }
.chips { top: var(--topbar); }
#grid-chips { background: none; }

/* barre du bas : verre transparent, la sélection est une simple pastille de verre un peu plus claire */
.tabbar, .tabbar.lens-hold { transform: none; overflow: visible; }
.tabbar .tab-lens { top: 5px; bottom: 5px; z-index: 0; overflow: visible; border-radius: 22px;
  background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tabbar .tab-lens::after { display: none; }
.tabbar.lens-hold .tab-lens { background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .35); }

/* ---------- barre du bas : opaque ; la sélection : verre clair, transparent, brillant (pas dépoli) ---------- */
.tabbar, .tabbar.lens-hold, .tabbar.glass {
  background: #0d0d0f; -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .tabbar, .tabbar.glass { background: #0d0d0f; } }

/* la lentille passe AU-DESSUS des onglets : on voit l'icône à travers, un peu plus vive, comme derrière un vrai verre */
.tabbar .tab-lens, .tabbar.lens-hold .tab-lens {
  z-index: 2; pointer-events: none; top: 4px; bottom: 4px; border-radius: 24px; overflow: visible;
  background:
    radial-gradient(70% 55% at 28% 0%, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 70%),   /* reflet en haut à gauche */
    radial-gradient(60% 40% at 75% 100%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 70%), /* reflet en bas à droite */
    rgba(255, 255, 255, .015);
  -webkit-backdrop-filter: brightness(1.18) saturate(1.5) contrast(1.06); backdrop-filter: brightness(1.18) saturate(1.5) contrast(1.06);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, .10), inset 0 -4px 8px rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .45);
}
/* le bord du verre : liseré net, très clair en haut, plus fin sur les côtés */
.tabbar .tab-lens::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(170deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .18) 35%, rgba(255, 255, 255, .06) 60%, rgba(255, 255, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* petite étincelle sur le bord en haut, comme la lumière qui accroche le verre */
.tabbar .tab-lens::after { content: ""; display: block; position: absolute; left: 14%; right: 46%; top: 2px; height: 3px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); box-shadow: none; }
/* appui : la lentille gonfle et dépasse, le verre brille plus */
.tabbar.lens-hold .tab-lens {
  background:
    radial-gradient(70% 55% at 28% 0%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 70%),
    radial-gradient(60% 40% at 75% 100%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%),
    rgba(255, 255, 255, .02);
  -webkit-backdrop-filter: brightness(1.25) saturate(1.7) contrast(1.08); backdrop-filter: brightness(1.25) saturate(1.7) contrast(1.08);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, .14), inset 0 -5px 10px rgba(0, 0, 0, .28), 0 10px 26px rgba(0, 0, 0, .55);
}

/* ---------- tapotements : icônes en contour rose seulement, plus de remplissage ---------- */
.tap-btn .ic, .tap-btn .ic.fill, .tap-picker .ic, .tap-picker .ic.fill, .row .av .kind .ic, .row .av .kind .ic.fill {
  fill: none; stroke: var(--accent); stroke-width: 2; filter: none; }
.tap-btn.done .ic { stroke: var(--accent); }
/* déjà tapotée : bouton neutre, juste un contour rose */
.tap-btn.done { background: var(--glass); border: 1.5px solid var(--accent); box-shadow: var(--glass-hi); }
/* onglet actif de la barre : icône en contour, sans remplissage rose */
.tab.active svg, .tabbar .tab.active svg { fill: none; }

/* ---------- barre du bas : glisse fluide, plus de bouton dédoublé ----------
   le verre repasse SOUS les icônes et sans backdrop-filter (Safari dédouble et saccade les éléments flous qui bougent) */
.tabbar .tab-lens, .tabbar.lens-hold .tab-lens {
  z-index: 0; -webkit-backdrop-filter: none; backdrop-filter: none; will-change: transform; }
.tabbar .tab-lens { background:
    radial-gradient(70% 55% at 28% 0%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 70%),
    radial-gradient(60% 40% at 75% 100%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 70%),
    rgba(255, 255, 255, .06); }
/* pendant le glissé : la lentille suit le doigt sans retard */
.tabbar.lens-hold .tab-lens { transition: transform 40ms linear; }
/* un seul bouton mis en avant : l'onglet actif s'efface pendant qu'on glisse ailleurs */
.tab.active { transform: none; }
.tabbar.lens-hold .tab { transition: transform .18s ease, color .12s; }
.tabbar.lens-hold .tab.active:not(.lens-on) { color: rgba(255, 255, 255, .55); transform: none; }
.tabbar.lens-hold .tab.active:not(.lens-on) svg { stroke: currentColor; fill: none; }
.tabbar.lens-hold .tab.lens-on svg { stroke: var(--accent); }

/* tapotements : trait plus fin et net */
.tap-btn .ic, .tap-btn .ic.fill, .tap-picker .ic, .tap-picker .ic.fill, .row .av .kind .ic, .row .av .kind .ic.fill { stroke-width: 1.5; }
.tap-picker .ic { width: 34px; height: 34px; }
