/* ============================================================
   Chat VIP — design system (mobile-first, claro/escuro)
   ============================================================ */

/* ---- tokens ---- */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #eef0f5;
  --text: #14161c;
  --text-muted: #626878;
  --border: #e2e5ec;
  --primary: #229ED9;
  --primary-2: #2AABEE;
  --primary-ink: #ffffff;
  --danger: #e5484d;
  --online: #22c55e;
  --bubble-own: linear-gradient(135deg, #229ED9, #2AABEE);
  --bubble-own-ink: #ffffff;
  --bubble-other: #ffffff;
  --bubble-other-ink: #14161c;
  --shadow: 0 6px 20px rgba(20, 22, 28, .08);
  --radius: 16px;
  --nav-h: 62px;
  --top-h: 56px;
}
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f1a;
    --surface: #141926;
    --surface-2: #1c2333;
    --text: #eef1f7;
    --text-muted: #9aa3b8;
    --border: #232a3b;
    --bubble-other: #1c2333;
    --bubble-other-ink: #eef1f7;
    --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f1a;
  --surface: #141926;
  --surface-2: #1c2333;
  --text: #eef1f7;
  --text-muted: #9aa3b8;
  --border: #232a3b;
  --bubble-other: #1c2333;
  --bubble-other-ink: #eef1f7;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Protecao leve contra copia/arrastar (nao afeta campos de formulario) */
html { -webkit-touch-callout: none; }
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
/* Painel admin: liberado para copiar (o dono precisa) */
.admin, .admin * { -webkit-user-select: text; user-select: text; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ---- layout chrome ---- */
.app-main { min-height: 100dvh; }
body.has-chrome .app-main {
  padding-top: var(--top-h);
  max-width: 640px;
  margin: 0 auto;
}
body.has-nav .app-main {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: var(--surface);
  border-bottom: 1px solid var(--border); z-index: 40;
}
.brand { font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.badge-18 {
  font-size: .62rem; font-weight: 700; color: var(--primary-ink);
  background: var(--primary); padding: 2px 6px; border-radius: 999px; vertical-align: middle;
}
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; border: none;
  background: transparent; color: var(--text); font-size: 1.1rem;
}
.icon-btn:hover { background: var(--surface-2); }
.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun,
:root:not([data-theme="light"]) .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon,
:root:not([data-theme="light"]) .ico-moon { display: inline; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .ico-sun { display: inline; }
  :root:not([data-theme="dark"]) .ico-moon { display: none; }
}

.lang-menu {
  position: fixed; top: calc(var(--top-h) - 4px); right: 10px; z-index: 50;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 190px;
}
.lang-item {
  display: block; width: 100%; text-align: left; border: none; background: transparent;
  color: var(--text); padding: 9px 12px; border-radius: 10px; font-size: .92rem;
}
.lang-item:hover { background: var(--surface-2); }
.lang-item.active { color: var(--primary); font-weight: 700; }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: var(--surface); border-top: 1px solid var(--border); z-index: 40;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border: none; background: transparent; color: var(--text-muted);
  font-size: .68rem; font-weight: 600;
}
.nav-item.active { color: var(--primary); }
.nav-ico { font-size: 1.25rem; line-height: 1; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; padding: 12px 18px;
  font-weight: 700; font-size: .95rem; transition: transform .05s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }

/* ---- hero / home ---- */
.hero { padding: 40px 20px 10px; }
.hero-inner { text-align: center; }
.hero-badge {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero-title { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; margin: 0 0 8px; }
.hero-sub { color: var(--text-muted); margin: 0 auto 22px; max-width: 30ch; }
.hero-cta { display: grid; gap: 10px; max-width: 340px; margin: 0 auto; }
.features { display: flex; gap: 12px; padding: 20px; }
.feature { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 10px; text-align: center; box-shadow: var(--shadow); }
.feature-ico { font-size: 1.6rem; }
.feature h3 { font-size: .85rem; margin: 8px 0 0; }

/* ---- landing ---- */
.lp { padding: 8px 20px 20px; }
.lp-hero { text-align: center; padding: 30px 6px 22px; }
.lp-badge { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .01em; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.lp-title { font-size: 2.1rem; line-height: 1.1; font-weight: 900; letter-spacing: -.03em; margin: 0 0 12px; }
.lp-tagline { color: var(--text-muted); font-size: 1.02rem; max-width: 34ch; margin: 0 auto 22px; }
.lp-cta { display: grid; gap: 10px; max-width: 360px; margin: 0 auto 18px; }
.btn-lg { padding: 16px 20px; font-size: 1.05rem; }
.lp-warning { display: inline-block; background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); font-weight: 800; font-size: .9rem; padding: 10px 16px; border-radius: 12px; }
.lp-features { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 420px; margin: 8px auto 24px; }
.lp-feature { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font-weight: 700; box-shadow: var(--shadow); }
.lp-feature-ico { font-size: 1.4rem; }
.lp-vip { text-align: center; background: linear-gradient(135deg, #1a1030, #2a1a4a); color: #fff; border-radius: 20px; padding: 28px 22px; max-width: 420px; margin: 0 auto; box-shadow: var(--shadow); }
.lp-vip-crown { font-size: 2.6rem; }
.lp-vip h2 { margin: 4px 0 6px; font-size: 1.4rem; }
.lp-vip p { color: rgba(255,255,255,.75); margin: 0 0 16px; }
.btn-vip { background: linear-gradient(135deg, #f59e0b, #f5b942); color: #3a2a00; }

/* ---- landing estilo Facebook ---- */
.lp.fb { display: grid; gap: 22px; max-width: 1080px; margin: 0 auto; padding: 20px 20px 40px; }
@media (min-width: 900px) {
  .lp.fb { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 44px; padding-top: 44px; }
}
.lp-wordmark { font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; color: var(--primary); margin-bottom: 10px; }
.lp-wordmark span { color: var(--text-muted); font-weight: 700; }
.lp-h1 { font-size: 1.9rem; line-height: 1.12; font-weight: 900; margin: 0 0 10px; letter-spacing: -.02em; }
@media (min-width: 900px) { .lp-h1 { font-size: 2.5rem; } }
.lp-tag { color: var(--text-muted); font-size: 1.02rem; max-width: 42ch; margin: 0 0 4px; }

.lp-art { position: relative; height: 210px; margin-top: 12px; overflow: hidden; }
.art-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.art-chat { top: 20px; left: 0; display: flex; gap: 10px; padding: 12px 14px; max-width: 260px; }
.art-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--primary) 16%, transparent); flex-shrink: 0; }
.art-body { display: grid; gap: 2px; }
.art-body b { font-size: .9rem; }
.art-body span { font-size: .88rem; color: var(--text-muted); }
.art-pv { font-size: .6rem; font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); padding: 2px 7px; border-radius: 999px; width: fit-content; margin-top: 4px; font-style: normal; letter-spacing: .04em; }
.art-story { top: 118px; left: 70px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; }
.art-ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: var(--surface-2); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.art-story span { font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.art-emoji { position: absolute; font-size: 1.8rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.art-emoji.e1 { top: 0; right: 40px; }
.art-emoji.e2 { top: 120px; right: 0; font-size: 2.1rem; }
.art-emoji.e3 { top: 60px; right: 110px; }
.art-chip { position: absolute; bottom: 6px; right: 20px; background: #14161c; color: #fff; font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }

.lp-right { display: grid; gap: 12px; align-content: start; }
.lp-login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 12px; }
.lp-login-form { display: grid; gap: 12px; }
.lp-login-form input { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1.05rem; }
.lp-login-form input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.lp-login-form .pw-wrap input { padding-right: 46px; }
.lp-forgot { display: block; text-align: center; color: var(--primary); font-size: .86rem; font-weight: 600; }
.lp-divider { height: 1px; background: var(--border); margin: 4px 0; }
.btn-create { background: #16a34a; color: #fff; }
.btn-create:hover { background: #15912f; }
.lp-warn { text-align: center; font-size: .8rem; color: var(--text-muted); font-weight: 700; margin: 4px 0 0; }

/* ---- banner instalar app ---- */
.install-banner { position: fixed; top: calc(var(--top-h) + 8px); left: 8px; right: 8px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; max-width: 620px; margin: 0 auto; }
.install-banner[hidden] { display: none; }
.ib-ico { font-size: 1.5rem; }
.ib-text { flex: 1; display: grid; gap: 1px; min-width: 0; }
.ib-text b { font-size: .9rem; }
.ib-desc { font-size: .76rem; color: var(--text-muted); }
.ib-btn { border: none; background: var(--primary); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 10px; font-size: .85rem; }
.ib-close { border: none; background: var(--surface-2); color: var(--text); width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }

.soon, .legal, .gate-panel { padding: 30px 20px; }
.gate-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 10px; max-width: 360px; margin: 30px auto; }

/* ---- age gate ---- */
.agegate {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 8, 14, .92); backdrop-filter: blur(6px); padding: 20px;
}
.agegate-card {
  background: var(--surface); border-radius: 20px; padding: 28px 22px; max-width: 380px; width: 100%;
  text-align: center; box-shadow: var(--shadow); display: grid; gap: 12px;
}
.agegate-badge {
  justify-self: center; background: var(--primary); color: #fff; font-weight: 800;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem;
}
.agegate-card h1 { margin: 0; font-size: 1.4rem; }
.agegate-card p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.agegate-note { font-size: .74rem !important; }

/* ---- modal (auth) ---- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 8, 14, .6); }
.modal-card {
  position: relative; background: var(--surface); width: 100%; max-width: 460px;
  border-radius: 22px 22px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow); animation: sheet .22s ease;
}
@keyframes sheet { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 560px) {
  .modal { align-items: center; }
  .modal-card { border-radius: 22px; }
}
.modal-x { position: absolute; top: 12px; right: 12px; border: none; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; color: var(--text); }
.auth-head { text-align: center; margin-bottom: 14px; }
.auth-head h2 { margin: 0 0 4px; font-size: 1.35rem; }
.auth-head p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="date"] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 1rem;
}
.auth-form input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: transparent; font-size: 1.1rem; width: 34px; height: 34px; border-radius: 8px; }
.check { flex-direction: row !important; display: flex !important; align-items: flex-start; gap: 8px; font-weight: 500 !important; }
.check input { margin-top: 3px; }
.reg-step { display: grid; gap: 12px; }
.reg-hint { text-align: center; font-size: .88rem; color: var(--text-muted); margin: 0 0 2px; }
.reg-hint strong { color: var(--text); font-size: 1rem; }
.onb-steps { display: grid; gap: 10px; margin: 6px 0 16px; }
.onb-step { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.onb-step b { display: block; font-size: .95rem; margin-bottom: 2px; }
.onb-step span { font-size: .84rem; color: var(--text-muted); }
.auth-swap { text-align: center; font-size: .85rem; color: var(--text-muted); margin: 4px 0 0; }
.auth-swap button { border: none; background: none; color: var(--primary); font-weight: 700; }
.auth-err { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: .85rem; }

/* ---- chat ---- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--top-h) - var(--nav-h) - env(safe-area-inset-bottom)); }
.chat-head { padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.chat-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--online) 25%, transparent); }
.online-count { margin-left: auto; font-size: .78rem; color: var(--text-muted); font-weight: 600; border: none; background: transparent; cursor: pointer; }
.online-count:hover { color: var(--primary); text-decoration: underline; }
.online-list { display: grid; gap: 0; max-height: 62vh; overflow-y: auto; margin-top: 6px; }
.ol-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.ol-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-weight: 700; }
.ol-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.ol-av img { width: 100%; height: 100%; object-fit: cover; }
.ol-fb { width: 100%; height: 100%; display: grid; place-items: center; color: var(--primary); font-weight: 800; }
.ol-pv { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); font-size: .72rem; font-weight: 800; padding: 6px 11px; border-radius: 999px; flex-shrink: 0; letter-spacing: .03em; }
.ol-empty { text-align: center; color: var(--text-muted); padding: 30px; }
.messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 8px; max-width: 85%; }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--surface-2); overflow: hidden; display: block; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-avatar-fb { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; color: var(--primary); font-size: .85rem; }
.msg-avatar.has-story { overflow: visible; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.msg-avatar.has-story img, .msg-avatar.has-story .msg-avatar-fb { border-radius: 50%; }
.msg-pv { font-size: .6rem; font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); padding: 2px 7px; border-radius: 999px; margin-left: auto; letter-spacing: .04em; }
.msg.own .msg-pv { display: none; }
.pa-img { display: block; }
.profile-avatar.has-story img, .profile-avatar.has-story .avatar-fallback { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--primary); }
.pv-avatar.has-story { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.msg-body { background: var(--bubble-other); color: var(--bubble-other-ink); padding: 8px 12px; border-radius: 4px 16px 16px 16px; box-shadow: var(--shadow); }
.msg-name { font-size: .74rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; display: flex; align-items: center; gap: 5px; }
.msg-name .vip { font-size: .62rem; background: linear-gradient(135deg,#f59e0b,#f5b942); color:#3a2a00; padding:1px 5px; border-radius:999px; }
.msg-text { font-size: .95rem; word-break: break-word; white-space: pre-wrap; }
.msg-img { margin-top: 6px; border-radius: 12px; max-height: 320px; width: auto; }
.msg-time { font-size: .66rem; color: var(--text-muted); }
.msg-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pv-seen { font-size: .68rem; color: rgba(255,255,255,.9); font-weight: 700; }
.msg.own .msg-foot { flex-direction: row-reverse; }
.msg-report { border: none; background: transparent; font-size: .72rem; cursor: pointer; opacity: .55; padding: 0; line-height: 1; }
.msg-report:hover { opacity: 1; }
.msg.own .msg-time { color: rgba(255,255,255,.7); }
.auth-select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1rem; }
#reportModal { z-index: 130; }
.story-report { position: absolute; bottom: 20px; left: 20px; z-index: 4; border: none; background: rgba(0,0,0,.5); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; }
.msg.own { margin-left: auto; flex-direction: row-reverse; }
.msg.own .msg-body { background: var(--bubble-own); color: var(--bubble-own-ink); border-radius: 16px 4px 16px 16px; }
.msg.own .msg-name { color: rgba(255,255,255,.85); }
.msg.own .msg-time { color: rgba(255,255,255,.7); }
.typing-bar { min-height: 18px; padding: 0 16px; font-size: .78rem; color: var(--text-muted); font-style: italic; }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
.composer-media { border: none; background: var(--surface-2); width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; display: grid; place-items: center; flex-shrink: 0; }
.composer-input { flex: 1; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1rem; }
.composer-input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.composer-send { border: none; background: var(--primary); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; flex-shrink: 0; }
.composer-send:disabled { opacity: .5; }

/* ---- profile ---- */
.profile-cover { height: 150px; background-size: cover; background-position: center; position: relative; }
.profile-cover.grad { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.cover-edit, .avatar-edit { position: absolute; border: none; background: rgba(0,0,0,.5); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.cover-edit { right: 12px; bottom: 12px; }
.profile-head { padding: 0 20px 20px; text-align: center; margin-top: -46px; }
.profile-avatar { width: 92px; height: 92px; margin: 0 auto 10px; position: relative; }
.profile-avatar img, .avatar-fallback { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); background: var(--surface-2); }
.avatar-fallback { display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--primary); }
.avatar-edit { right: 0; bottom: 4px; width: 30px; height: 30px; font-size: .85rem; }
.profile-name { font-size: 1.3rem; margin: 0 0 4px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.vip-badge { font-size: .68rem; background: linear-gradient(135deg,#f59e0b,#f5b942); color:#3a2a00; padding: 3px 8px; border-radius: 999px; font-weight: 800; }
.profile-status { margin: 0 0 8px; font-size: .82rem; }
.profile-status .on { color: var(--online); font-weight: 600; }
.profile-status .off { color: var(--text-muted); }
.profile-bio { color: var(--text-muted); max-width: 40ch; margin: 0 auto 12px; font-size: .92rem; }
.profile-bio-add { border: 1px dashed var(--border); background: transparent; color: var(--text-muted); padding: 8px 14px; border-radius: 12px; font-size: .85rem; font-weight: 600; margin: 0 auto 14px; display: block; cursor: pointer; }
.profile-bio-add:hover { color: var(--primary); border-color: var(--primary); }
.pv-summary { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin: 0 20px 14px; box-shadow: var(--shadow); text-align: left; }
.pv-summary.locked { border-color: #f5b942; background: linear-gradient(135deg, color-mix(in srgb, #f5b942 9%, var(--surface)), var(--surface)); flex-wrap: wrap; }
.pv-sum-ico { font-size: 1.5rem; flex-shrink: 0; }
.pv-sum-main { flex: 1; display: grid; gap: 1px; min-width: 0; }
.pv-sum-main b { font-size: .95rem; }
.pv-sum-main span { font-size: .82rem; color: var(--text-muted); }
.pv-sum-badge { background: var(--primary); color: #fff; font-size: .78rem; font-weight: 800; min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; padding: 0 7px; flex-shrink: 0; }
.pv-sum-badge.alert { background: var(--danger); }
.pv-sum-arrow { color: var(--text-muted); font-size: 1.4rem; }
.pv-sum-cta { width: 100%; text-align: center; background: linear-gradient(135deg, #f59e0b, #f5b942); color: #3a2a00; font-weight: 800; font-size: .82rem; padding: 9px; border-radius: 10px; margin-top: 6px; }
.profile-tools { display: grid; gap: 10px; margin: 0 20px 14px; }
.ptool { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); color: var(--text); cursor: pointer; }
.ptool-ico { font-size: 1.4rem; flex-shrink: 0; }
.ptool-main { flex: 1; display: grid; gap: 1px; min-width: 0; }
.ptool-main b { font-size: .95rem; }
.ptool-main span { font-size: .82rem; color: var(--text-muted); }
.ptool-reward { display: block; font-size: .76rem; color: var(--primary); font-weight: 700; margin-top: 3px; }
.ptool-arrow { color: var(--text-muted); font-size: 1.3rem; }
.ptool-switch { width: 44px; height: 26px; border-radius: 999px; background: var(--surface-2); position: relative; flex-shrink: 0; transition: background .15s; }
.ptool-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ptool.on .ptool-switch { background: var(--online); }
.ptool.on .ptool-switch::after { transform: translateX(18px); }
.profile-actions { display: flex; gap: 8px; justify-content: center; }
.auth-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; font-size: 1rem; resize: vertical; }

/* ---- PV (privado) ---- */
.pv-list { padding: 8px 0; }
.pv-list .empty { text-align: center; color: var(--text-muted); padding: 40px 20px; }
.pv-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.pv-item:active { background: var(--surface-2); }
.pv-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.pv-avatar.sm { width: 34px; height: 34px; }
.pv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv-avatar-fb { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; color: var(--primary); background: var(--surface-2); }
.pv-item-main { flex: 1; min-width: 0; }
.pv-item-name { font-weight: 700; font-size: .95rem; }
.pv-item-preview { color: var(--text-muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-unread { background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }
.pv-chat { height: 100dvh; }
.pv-head { display: flex; align-items: center; gap: 10px; }
.pv-back { font-size: 1.6rem; line-height: 1; color: var(--text); padding-right: 4px; }
.pv-head-user { display: flex; align-items: center; gap: 10px; font-weight: 700; }

/* ---- stories ---- */
.stories { padding: 14px 0; }
.stories .empty { text-align: center; color: var(--text-muted); padding: 40px 20px; }
.stories-bar { display: flex; gap: 14px; overflow-x: auto; padding: 6px 16px 12px; -webkit-overflow-scrolling: touch; }
.story-ring { flex-shrink: 0; width: 72px; border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.story-ring-inner { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.story-ring.has-story .story-ring-inner { padding: 3px; background: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.story-ring.has-story.is-own .story-ring-inner { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--online); }
.story-ring-inner img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.story-fb { font-weight: 800; color: var(--primary); font-size: 1.5rem; }
.add-inner { font-size: 1.8rem; color: var(--primary); background: var(--surface-2); }
.story-label { font-size: .7rem; color: var(--text-muted); max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.story-viewer { position: fixed; inset: 0; z-index: 110; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.story-viewer[hidden] { display: none; }
.story-progress { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.story-progress .seg { flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.story-progress .seg > i { display: block; height: 100%; width: 0; background: #fff; }
@keyframes storyfill { from { width: 0; } to { width: 100%; } }
.story-close { position: absolute; top: 20px; right: 14px; z-index: 4; border: none; background: rgba(0,0,0,.4); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; }
.story-user { position: absolute; top: 22px; left: 16px; z-index: 4; color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.story-media { max-width: 100%; max-height: 100dvh; object-fit: contain; }
.story-caption { position: absolute; bottom: 40px; left: 20px; right: 20px; z-index: 4; color: #fff; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.story-delete { position: absolute; bottom: 20px; right: 20px; z-index: 4; border: none; background: rgba(0,0,0,.5); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; }
.story-nav { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 2; }
.story-nav.prev { left: 0; }
.story-nav.next { right: 0; }

/* ---- VIP ---- */
.vip-page { padding: 30px 20px; }
.vip-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 22px; box-shadow: var(--shadow); text-align: center; max-width: 420px; margin: 0 auto; }
.vip-card.active { border-color: #f5b942; }
.vip-crown { font-size: 3rem; }
.vip-card h1 { font-size: 1.5rem; margin: 6px 0; }
.vip-sub { color: var(--text-muted); margin: 0 0 14px; }
.vip-price { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin-bottom: 16px; }
.vip-benefits { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; display: grid; gap: 10px; }
.vip-benefits li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.v-check { background: var(--online); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; flex-shrink: 0; }
.vip-until { color: var(--online); font-weight: 700; margin: 0 0 14px; }
.vip-soon { font-size: .78rem; color: var(--text-muted); margin: 12px 0 0; }
.pay-ok { background: color-mix(in srgb, var(--online) 16%, transparent); color: var(--online); border-radius: 12px; padding: 12px 16px; margin: 0 auto 16px; max-width: 420px; font-weight: 700; text-align: center; }
.plan-toggle { display: flex; gap: 8px; margin: 14px 0; }
.plan-opt { position: relative; flex: 1; border: 2px solid var(--border); background: var(--surface); color: var(--text); border-radius: 14px; padding: 12px 8px; display: grid; gap: 2px; cursor: pointer; }
.plan-opt.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.plan-opt span { font-size: .78rem; color: var(--text-muted); font-weight: 700; }
.plan-opt b { font-size: 1.1rem; }
.plan-opt b small { font-size: .7rem; color: var(--text-muted); font-weight: 600; }
.plan-save { position: absolute; top: -9px; right: 8px; background: var(--online); color: #fff; font-size: .62rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.plan-price { font-size: 1.6rem; font-weight: 900; color: var(--primary); margin: 6px 0 16px; }
.plan-price span { font-size: .95rem; color: var(--text-muted); font-weight: 600; }
.pay-buttons { display: grid; gap: 10px; }
.pix-card { text-align: center; }
.pix-qr { display: grid; place-items: center; margin: 8px 0 14px; }
.pix-qr img { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 8px; }
.pix-status { font-size: .85rem; color: var(--text-muted); margin: 12px 0 0; font-weight: 600; }

/* ---- admin ---- */
.admin { max-width: 900px; margin: 0 auto; padding: 16px 14px 60px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.admin-top h1 { font-size: 1.2rem; margin: 0; }
.a-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 620px) { .a-metrics { grid-template-columns: repeat(6, 1fr); } }
.a-metric { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); }
.a-metric-ico { display: block; font-size: 1.1rem; }
.a-metric b { display: block; font-size: 1.3rem; }
.a-metric span { font-size: .68rem; color: var(--text-muted); }
.a-nav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; -webkit-overflow-scrolling: touch; }
.a-nav a { flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; color: var(--text); }
.a-nav a:hover { border-color: var(--primary); color: var(--primary); }
.a-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); scroll-margin-top: 14px; }
.a-card h2 { font-size: 1rem; margin: 0 0 12px; }
.a-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.a-cardhead h2 { margin: 0; }
.a-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
@media (min-width: 620px) { .a-grid { grid-template-columns: 1fr 1fr; } }
.a-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.a-field { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.a-field input { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: .95rem; }
.a-search { display: flex; gap: 8px; margin-top: 10px; }
.a-search input { flex: 1; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.a-tablewrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.a-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.a-table small { color: var(--text-muted); }
.a-banned { opacity: .5; }
.a-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.a-inline { display: inline; }
.btn-xs { padding: 5px 9px; font-size: .72rem; border-radius: 8px; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a-chip { background: var(--surface-2); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .82rem; display: inline-flex; align-items: center; gap: 4px; }
.a-chip form { display: inline; }
.a-chip button { border: none; background: none; color: var(--danger); cursor: pointer; font-size: .9rem; }
.a-chip.a-hidden { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.a-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; margin-top: 6px; border: 1px solid var(--border); }
.a-dt { color: var(--text-muted); font-size: .72rem; }

/* ---- legal / contato / footer ---- */
.legal { padding: 24px 18px 8px; max-width: 640px; margin: 0 auto; }
.legal h1 { font-size: 1.5rem; margin: 0 0 16px; }
.legal h2 { font-size: 1.02rem; margin: 20px 0 6px; }
.legal p { color: var(--text-muted); font-size: .92rem; margin: 0 0 8px; }
.contact-page .contact-form { margin-top: 14px; }
.contact-email { display: inline-block; margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 22px; font-weight: 800; font-size: 1.05rem; color: var(--primary); box-shadow: var(--shadow); }
.contact-email:hover { border-color: var(--primary); }
.contact-ok { background: color-mix(in srgb, var(--online) 16%, transparent); color: var(--online); border-radius: 10px; padding: 12px; margin: 12px 0; font-weight: 600; }
.site-footer { padding: 24px 18px; border-top: 1px solid var(--border); margin-top: 24px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 10px; }
.footer-links a { font-size: .82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: .74rem; color: var(--text-muted); margin: 0; }

/* ---- resposta + menções ---- */
.mention { color: var(--primary); font-weight: 700; }
.msg.own .mention { color: #fff; text-decoration: underline; }
.msg-quote { display: block; width: 100%; text-align: left; border: none; border-left: 3px solid var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: 6px; padding: 5px 9px; margin-bottom: 6px; cursor: pointer; }
.msg.own .msg-quote { border-left-color: rgba(255,255,255,.8); background: rgba(255,255,255,.18); }
.msg-quote b { display: block; font-size: .72rem; color: var(--primary); }
.msg.own .msg-quote b { color: #fff; }
.msg-quote span { font-size: .78rem; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-quote-body { display: flex; align-items: center; gap: 6px; }
.msg-quote-thumb { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.msg-quote-body span { flex: 1; min-width: 0; }
.reply-bar-thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.msg.own .msg-quote span { color: rgba(255,255,255,.85); }
.msg-reply { border: none; background: transparent; font-size: .95rem; cursor: pointer; opacity: 1; padding: 0; line-height: 1; color: var(--primary); font-weight: 700; }
.msg.own .msg-reply { color: #fff; }
.msg-reply:hover { transform: scale(1.15); }
/* Quebra de linha correta em mensagens grandes */
.msg-body { min-width: 0; }
.msg-text { overflow-wrap: anywhere; word-break: break-word; }

/* Reações */
.msg-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.msg-reactions:empty { display: none; }
.rx-chip { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; font-size: .78rem; cursor: pointer; }
.rx-chip.mine { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 16%, transparent); }
.msg.own .rx-chip { background: rgba(255,255,255,.22); border-color: transparent; color: #fff; }
.msg-react { border: none; background: transparent; font-size: .95rem; cursor: pointer; opacity: .6; padding: 0; line-height: 1; }
.msg-react:hover { opacity: 1; }
.rx-picker { position: fixed; z-index: 130; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); padding: 4px 8px; display: flex; gap: 4px; }
.rx-picker[hidden] { display: none; }
.rx-picker button { border: none; background: transparent; font-size: 1.4rem; cursor: pointer; padding: 2px; line-height: 1; }
.rx-picker button:active { transform: scale(1.25); }
.msg.flash .msg-body { animation: msgflash 1s ease; }
@keyframes msgflash { 0%, 100% { background: var(--bubble-other); } 40% { background: color-mix(in srgb, var(--primary) 30%, var(--bubble-other)); } }
.msg.own.flash .msg-body { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); }
.reply-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--surface-2); border-top: 1px solid var(--border); }
.reply-bar-ico { color: var(--primary); font-size: 1.1rem; }
.reply-bar-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.reply-bar-name { font-size: .78rem; color: var(--primary); }
.reply-bar-text { font-size: .8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar-x { border: none; background: transparent; color: var(--text-muted); font-size: 1rem; }
.mention-box { background: var(--surface); border: 1px solid var(--border); border-top: none; box-shadow: var(--shadow); max-height: 220px; overflow-y: auto; }
.mb-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: transparent; padding: 8px 14px; color: var(--text); font-size: .9rem; font-weight: 600; }
.mb-item:hover { background: var(--surface-2); }
.mb-item img, .mb-fb { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mb-fb { display: grid; place-items: center; background: var(--surface-2); color: var(--primary); font-weight: 800; }

/* ---- toast ---- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%) translateY(20px);
  background: #14161c; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: .88rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 120; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }
