:root {
  --bg: #07040d;
  --bg2: #0d0716;
  --glass: rgba(255, 255, 255, 0.05);
  --glass2: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.09);
  --txt: #f6effc;
  --txt2: #a898c2;
  --pink: #ff2e93;
  --violet: #8a4dff;
  --gold: #ffd27a;
  --grad: linear-gradient(135deg, #ff2e93 0%, #b13cff 55%, #7a4dff 100%);
  --danger: #ff5f7a;
  --radius: 20px;
  --font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  height: 100dvh;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; user-select: text; -webkit-user-select: text; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- fundo aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .55; will-change: transform; }
.aurora i:nth-child(1) { left: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(255,46,147,.42), transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { right: -30vmax; top: 10vmax; background: radial-gradient(circle, rgba(122,77,255,.42), transparent 62%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { left: 10vmax; bottom: -40vmax; background: radial-gradient(circle, rgba(255,210,122,.16), transparent 62%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-7vmax, 9vmax) scale(1.15); } }
#app, .screen { position: relative; z-index: 1; }

.glass { background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); border: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.glass-bar { background: rgba(13, 7, 22, .72); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }

/* ---------- entrada ---------- */
.screen { height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.onboard-card { width: 100%; max-width: 410px; border-radius: 28px; padding: 32px 26px 26px; box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 60px rgba(255,46,147,.12); margin: auto; }
.brand { text-align: center; margin-bottom: 20px; }
.brand-mark, .rail-logo, .empty-orb { background: var(--grad); display: flex; align-items: center; justify-content: center; font-family: var(--font); font-weight: 700; color: #fff; }
.brand-mark { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 24px; font-size: 38px; box-shadow: 0 0 40px rgba(255,46,147,.5), inset 0 0 18px rgba(255,255,255,.25); transform: rotate(-6deg); }
.brand h1 { font-family: var(--font); font-size: 28px; letter-spacing: .5em; padding-left: .5em; font-weight: 700; background: linear-gradient(90deg, #fff, #ffb8dc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .tagline { font-family: var(--font); color: var(--gold); font-size: 15px; margin-top: 8px; letter-spacing: .04em; }
.brand .sub { color: var(--txt2); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.form label { display: block; font-size: 11.5px; color: var(--txt2); margin: 16px 0 7px; text-transform: uppercase; letter-spacing: .12em; }
.form input[type="text"], .form input[type="tel"], .form input[type="password"] { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--txt); font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,147,.18); }
.emoji-row { display: flex; gap: 8px; flex-wrap: wrap; }
.emoji-row button { width: 42px; height: 42px; font-size: 21px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.emoji-row button.sel { border-color: var(--pink); background: rgba(255,46,147,.16); box-shadow: 0 0 14px rgba(255,46,147,.35); }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-row button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; }
.color-row button.sel { border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.5); }
.btn-primary { width: 100%; margin-top: 26px; padding: 15px; border-radius: 18px; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--grad); color: #fff; box-shadow: 0 10px 34px rgba(255,46,147,.4); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 16px; border: 1px solid rgba(255,46,147,.45); color: #ffb8dc; font-size: 14px; margin-top: 8px; background: rgba(255,46,147,.08); }
.hint { text-align: center; color: var(--txt2); font-size: 12px; margin-top: 16px; }

/* ---------- layout ---------- */
#app { display: flex; height: 100dvh; }
.rail { width: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0; border-right: 1px solid var(--line); }
.rail-logo { width: 46px; height: 46px; border-radius: 16px; font-size: 22px; margin-bottom: 18px; box-shadow: 0 0 24px rgba(255,46,147,.45); transform: rotate(-6deg); }
.tab { position: relative; width: 70px; padding: 11px 0 9px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--txt2); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; transition: color .2s, background .2s; }
.tab:hover { color: var(--txt); }
.tab.active { color: #fff; background: linear-gradient(180deg, rgba(255,46,147,.22), rgba(122,77,255,.12)); box-shadow: inset 0 0 0 1px rgba(255,46,147,.35), 0 0 22px rgba(255,46,147,.2); }
.tab.active .i { filter: drop-shadow(0 0 6px rgba(255,46,147,.9)); }
.badge { position: absolute; top: 4px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 12px rgba(255,46,147,.7); }
.panel { width: 370px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(9,5,16,.55); min-height: 0; }
.view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.view-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 12px; }
.view-title h2 { font-family: var(--font); font-size: 24px; font-weight: 700; letter-spacing: .01em; }
.conn { display: block; font-size: 11.5px; color: var(--txt2); margin-top: 3px; min-height: 14px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .1s; color: var(--txt); }
.icon-btn:hover { background: var(--glass2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm .i { width: 18px; height: 18px; }
.icon-btn.glow { background: var(--grad); box-shadow: 0 6px 22px rgba(255,46,147,.4); color: #fff; }
.icon-btn.back { display: none; }
.search { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 0 14px; border-radius: 16px; background: rgba(0,0,0,.32); border: 1px solid var(--line); color: var(--txt2); }
.search .i { width: 18px; height: 18px; }
.search input { flex: 1; padding: 12px 0; background: none; border: none; outline: none; color: var(--txt); font-size: 14px; }
.list { flex: 1; overflow-y: auto; padding: 4px 10px 20px; }

.chat-item { display: flex; align-items: center; gap: 13px; padding: 11px 12px; margin-bottom: 4px; border-radius: 20px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.chat-item:hover { background: var(--glass); }
.chat-item.active { background: linear-gradient(90deg, rgba(255,46,147,.14), rgba(122,77,255,.08)); border-color: rgba(255,46,147,.3); }
.chat-meta { flex: 1; min-width: 0; }
.chat-meta .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chat-meta .name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta .time { font-size: 11px; color: var(--txt2); flex-shrink: 0; }
.chat-meta .last { font-size: 13px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.chat-meta .last .tick.read { color: #58d7ff; }
.unread { background: var(--pink); color: #fff; border-radius: 11px; font-size: 11px; font-weight: 700; padding: 2px 8px; min-width: 22px; text-align: center; box-shadow: 0 0 14px rgba(255,46,147,.6); }
.list-empty { text-align: center; color: var(--txt2); padding: 50px 26px; font-size: 14px; line-height: 1.6; }
.list-empty .btn-ghost { margin-top: 16px; }
.letter { font-family: var(--font); font-size: 11px; letter-spacing: .2em; color: var(--pink); padding: 14px 14px 6px; }

/* ---------- avatar ---------- */
.avatar { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 23px; position: relative; flex-shrink: 0; box-shadow: inset 0 -8px 16px rgba(0,0,0,.28), 0 0 0 2px var(--bg2), 0 0 0 3.5px rgba(255,255,255,.14); }
.avatar.online { box-shadow: inset 0 -8px 16px rgba(0,0,0,.28), 0 0 0 2px var(--bg2), 0 0 0 3.5px #3dffb0, 0 0 14px rgba(61,255,176,.5); }
.avatar.big { width: 104px; height: 104px; font-size: 52px; margin: 0 auto; }

/* ---------- conversa ---------- */
.chatpane { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--txt2); text-align: center; padding: 24px; line-height: 1.6; }
.empty-orb { width: 96px; height: 96px; border-radius: 32px; font-size: 48px; margin-bottom: 14px; box-shadow: 0 0 70px rgba(255,46,147,.5); transform: rotate(-6deg); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-6deg) translateY(-8px); } }
.empty h2 { color: var(--txt); font-family: var(--font); font-size: 20px; }
.conversation { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
.chat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--pink), var(--violet), transparent); opacity: .55; }
.chat-head .avatar { width: 44px; height: 44px; font-size: 21px; }
.chat-head-info { flex: 1; min-width: 0; cursor: pointer; }
.chat-head-info strong { display: block; font-family: var(--font); font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-info span { color: var(--txt2); font-size: 12px; }
.chat-head-info span.on { color: #3dffb0; }
.chat-head-info span.typing { color: var(--pink); }
.chat-head-actions { display: flex; gap: 2px; }
.add-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; background: rgba(255,210,122,.09); border-bottom: 1px solid rgba(255,210,122,.2); font-size: 12.5px; color: var(--gold); }
.add-bar button { padding: 6px 14px; border-radius: 12px; background: var(--gold); color: #2a1a00; font-weight: 700; font-size: 12.5px; }

.messages { flex: 1; overflow-y: auto; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.day-sep { align-self: center; background: var(--glass); border: 1px solid var(--line); color: var(--txt2); font-size: 11px; letter-spacing: .08em; padding: 5px 14px; border-radius: 14px; margin: 14px 0; text-transform: uppercase; }
.msg { max-width: 76%; padding: 9px 13px 7px; position: relative; animation: pop .2s ease; word-break: break-word; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.msg.me { align-self: flex-end; background: var(--grad); border-radius: 22px 22px 6px 22px; box-shadow: 0 6px 24px rgba(255,46,147,.25); }
.msg.peer { align-self: flex-start; background: rgba(255,255,255,.075); border: 1px solid var(--line); border-radius: 22px 22px 22px 6px; backdrop-filter: blur(10px); }
.msg .txt { font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.msg .txt.locked { opacity: .7; font-style: italic; }
.msg .meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font-size: 10.5px; color: rgba(255,255,255,.62); float: right; margin-left: 10px; position: relative; top: 3px; }
.msg .tick.read { color: #b6f0ff; text-shadow: 0 0 6px rgba(120,220,255,.8); }
.msg .reply-quote { border-left: 3px solid var(--gold); background: rgba(0,0,0,.24); border-radius: 8px; padding: 5px 9px; margin-bottom: 5px; font-size: 12.5px; color: rgba(255,255,255,.8); }
.msg .reply-quote strong { color: var(--gold); display: block; font-size: 11.5px; }
.msg .media { border-radius: 16px; overflow: hidden; margin: -3px -6px 2px; position: relative; min-width: 190px; }
.msg .media img, .msg .media video { max-width: 100%; max-height: 340px; display: block; background: #000; min-width: 190px; }
.msg .media.ph { min-height: 130px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); flex-direction: column; gap: 8px; color: rgba(255,255,255,.7); font-size: 12.5px; }
.msg .media.ph .i { width: 26px; height: 26px; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.prog { position: absolute; inset: 0; background: rgba(7,4,13,.55); display: flex; align-items: center; justify-content: center; }
.ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p) * 360deg), rgba(255,255,255,.2) 0); display: flex; align-items: center; justify-content: center; position: relative; }
.ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: rgba(13,7,22,.92); }
.ring b { position: relative; z-index: 1; font-size: 12px; }
.msg .filecard { display: flex; align-items: center; gap: 11px; background: rgba(0,0,0,.24); border-radius: 14px; padding: 10px 11px; min-width: 220px; }
.msg .filecard .fname { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.msg .filecard .fsize { font-size: 11.5px; opacity: .7; }
.msg .audio { display: flex; align-items: center; gap: 10px; min-width: 236px; padding: 2px 0; }
.msg .audio .play { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.95); color: #b0187a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 16px rgba(255,255,255,.25); }
.msg.peer .audio .play { background: var(--grad); color: #fff; }
.msg .audio .play .i { width: 18px; height: 18px; }
.msg .audio .wave { flex: 1; height: 32px; display: flex; align-items: center; gap: 2px; }
.msg .audio .wave i { flex: 1; background: rgba(255,255,255,.35); border-radius: 3px; height: 4px; transition: background .15s; }
.msg .audio .wave i.on { background: #fff; }
.msg .audio .dur { font-size: 11.5px; opacity: .8; min-width: 32px; text-align: right; }
.once-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(7,4,13,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; font-size: 12px; text-align: center; padding: 8px; }
.once-cover .i { width: 28px; height: 28px; }
.once-cover button { margin-top: 6px; padding: 8px 20px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 700; font-size: 13px; }
.msg .failed-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #ffd0da; margin-top: 4px; }
.msg .failed-note button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 10px; background: rgba(0,0,0,.35); font-size: 12px; }
.msg .failed-note .i { width: 14px; height: 14px; }
.reactions { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; clear: both; }
.reactions .r { background: rgba(0,0,0,.35); border-radius: 10px; font-size: 13px; padding: 1px 7px; }
.reactions .r.mine { box-shadow: 0 0 0 1px var(--gold); }
.deleted-note { font-style: italic; opacity: .65; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.deleted-note .i { width: 14px; height: 14px; }

/* ---------- composer ---------- */
.composer { padding: 6px 12px calc(12px + env(safe-area-inset-bottom)); }
.composer-row { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 30px; background: rgba(13,7,22,.8); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 0 0 1px rgba(255,46,147,.08), 0 10px 36px rgba(0,0,0,.4); }
.composer-row:focus-within { border-color: rgba(255,46,147,.5); box-shadow: 0 0 22px rgba(255,46,147,.2); }
.composer-row input { flex: 1; min-width: 0; padding: 11px 6px; background: none; border: none; color: var(--txt); font-size: 15px; outline: none; }
.composer-row input::placeholder { color: var(--txt2); }
.btn-send { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(255,46,147,.5); }
.btn-send:active { transform: scale(.9); }
.btn-send .i { width: 20px; height: 20px; }
.reply-bar { display: flex; align-items: center; gap: 10px; background: rgba(13,7,22,.85); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 14px; margin-bottom: 8px; border-left: 3px solid var(--gold); }
.reply-info { flex: 1; min-width: 0; }
.reply-info strong { color: var(--gold); font-size: 12px; display: block; }
.reply-info span { color: var(--txt2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rec-bar { display: flex; align-items: center; gap: 10px; background: rgba(13,7,22,.9); border: 1px solid rgba(255,95,122,.4); border-radius: 30px; padding: 6px 6px 6px 16px; margin-bottom: 8px; box-shadow: 0 0 22px rgba(255,95,122,.18); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; box-shadow: 0 0 10px var(--danger); }
@keyframes blink { 50% { opacity: .25; } }
.rec-time { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.rec-hint { flex: 1; color: var(--txt2); font-size: 13px; }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(4,2,8,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet-body { position: relative; width: 100%; max-width: 470px; background: linear-gradient(180deg, #170c26, #0d0716); border: 1px solid var(--line); border-bottom: none; border-radius: 28px 28px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 86dvh; overflow-y: auto; animation: slideup .25s ease; box-shadow: 0 -20px 60px rgba(255,46,147,.12); }
.sheet-body::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin: -10px auto 14px; }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-body h3 { margin-bottom: 14px; font-family: var(--font); font-size: 18px; }
.sheet-body p.lead { color: var(--txt2); font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }
.field { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.38); color: var(--txt); font-size: 15px; outline: none; }
.field:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,147,.16); }
.found { display: flex; align-items: center; gap: 13px; padding: 14px; margin-top: 14px; border-radius: 20px; background: var(--glass); border: 1px solid rgba(255,46,147,.3); }
.found .n strong { display: block; font-size: 15.5px; }
.found .n span { color: var(--txt2); font-size: 12.5px; }
.err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; }
.attach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.attach-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 4px; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; font-size: 12px; color: var(--txt); }
.attach-item .i { width: 26px; height: 26px; color: var(--pink); }
.once-row { display: flex; align-items: center; gap: 12px; padding: 4px 2px 16px; font-size: 14px; color: var(--txt2); }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch span { position: absolute; inset: 0; border-radius: 13px; background: rgba(255,255,255,.12); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::after { transform: translateX(20px); }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.profile-head h3 { margin: 6px 0 0; }
.profile-head .sub { color: var(--txt2); font-size: 13px; }
.profile-row { padding: 14px 2px; border-bottom: 1px solid var(--line); }
.profile-row .k { color: var(--txt2); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.profile-row .v { font-size: 15px; word-break: break-word; line-height: 1.5; }
.fp { background: rgba(0,0,0,.4); border-radius: 14px; padding: 14px; font-family: ui-monospace, monospace; font-size: 12.5px; letter-spacing: 1px; color: var(--gold); text-align: center; line-height: 1.7; }
.btn-danger { width: 100%; padding: 14px; border-radius: 16px; background: rgba(255,95,122,.12); color: var(--danger); font-weight: 700; font-size: 14.5px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-soft { width: 100%; padding: 14px; border-radius: 16px; background: var(--glass2); font-weight: 600; font-size: 14.5px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 8px; border-radius: 14px; font-size: 15px; text-align: left; }
.menu-item:hover { background: var(--glass); }
.menu-item .i { width: 20px; height: 20px; color: var(--pink); }
.menu-item.danger, .menu-item.danger .i { color: var(--danger); }
.react-row { display: flex; gap: 10px; justify-content: center; padding: 4px 0 16px; }
.react-row button { font-size: 24px; background: var(--glass); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); }

/* meu perfil */
.me-body { flex: 1; overflow-y: auto; padding: 4px 20px 30px; }
.me-body .avatar.big { margin-bottom: 14px; }
.me-body label { display: block; font-size: 11.5px; color: var(--txt2); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .12em; }
.me-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; color: var(--txt2); line-height: 1.55; }
.me-note .i { color: var(--gold); margin-top: 1px; }

/* ---------- chamada ---------- */
.call { position: fixed; inset: 0; z-index: 100; background: radial-gradient(900px 600px at 50% 0%, #2a0f3f, #07040d 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 30px; }
.call video { object-fit: cover; }
.remote-video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.remote-video video { width: 100%; height: 100%; }
.local-video { position: absolute; top: 20px; right: 16px; width: 116px; height: 168px; border-radius: 18px; background: #000; border: 1px solid rgba(255,255,255,.2); z-index: 2; object-fit: cover; box-shadow: 0 0 24px rgba(255,46,147,.3); }
.call-info { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: auto; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.call-info h2 { font-family: var(--font); font-size: 23px; }
.call-state { color: var(--txt2); font-size: 14px; }
.call-controls { position: relative; z-index: 3; display: flex; gap: 16px; margin-bottom: calc(24px + env(safe-area-inset-bottom)); }
.call-btn { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; }
.call-btn.off { background: rgba(255,255,255,.05); opacity: .55; }
.call-btn.hangup { background: var(--danger); width: 72px; height: 72px; box-shadow: 0 0 30px rgba(255,95,122,.5); }
.call-btn.hangup .i { transform: rotate(135deg); }
.call-btn.accept { background: linear-gradient(135deg, #2bff9a, #0fb872); width: 72px; height: 72px; box-shadow: 0 0 30px rgba(43,255,154,.45); }
.call-btn .i { width: 26px; height: 26px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(23,12,38,.92); border: 1px solid rgba(255,46,147,.35); color: var(--txt); padding: 12px 20px; border-radius: 18px; font-size: 14px; z-index: 200; box-shadow: 0 10px 36px rgba(0,0,0,.55), 0 0 24px rgba(255,46,147,.18); max-width: 88vw; backdrop-filter: blur(16px); text-align: center; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  #app { flex-direction: column; }
  .rail { order: 2; width: 100%; flex-direction: row; justify-content: space-around; padding: 4px 8px calc(max(8px, env(safe-area-inset-bottom))); border-right: none; border-top: 1px solid var(--line); gap: 0; z-index: 10; margin-top: auto; }
  .rail-logo { display: none; }
  .tab { flex: 1; max-width: 120px; width: auto; padding: 5px 0 3px; gap: 3px; font-size: 10px; }
  .badge { right: calc(50% - 26px); }
  .panel { order: 1; width: 100%; flex: 1; border-right: none; }
  .chatpane { position: fixed; inset: 0; z-index: 40; background: var(--bg); transform: translateX(100%); transition: transform .24s ease; }
  .chatpane.open { transform: none; }
  .icon-btn.back { display: inline-flex; }
  .msg { max-width: 86%; }
  .view-head { padding-top: calc(18px + env(safe-area-inset-top)); }
}
@media (min-width: 821px) and (max-width: 1080px) {
  .panel { width: 310px; }
}

/* ---------- foto de perfil ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit { position: relative; width: 104px; margin: 0 auto 6px; cursor: pointer; }
.avatar-edit .cam { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 16px rgba(255,46,147,.6); border: 2px solid var(--bg2); }
.avatar-edit .cam .i { width: 17px; height: 17px; color: #fff; }
.me-photo-actions { display: flex; justify-content: center; gap: 10px; margin: 8px 0 4px; }
.me-photo-actions button { padding: 8px 16px; border-radius: 14px; background: var(--glass2); font-size: 13px; }

/* ---------- status: lista ---------- */
.ring-av { padding: 3px; border-radius: 50%; background: rgba(255,255,255,.16); flex-shrink: 0; position: relative; }
.ring-av.new { background: conic-gradient(from 200deg, #ff2e93, #b13cff, #7a4dff, #ff2e93); box-shadow: 0 0 14px rgba(255,46,147,.4); }
.ring-av.add { background: transparent; border: 2px dashed rgba(255,255,255,.25); }
.ring-av .avatar { box-shadow: 0 0 0 2px var(--bg2); width: 48px; height: 48px; }
.ring-av .plus { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg2); }
.ring-av .plus .i { width: 12px; height: 12px; stroke-width: 2.6; color: #fff; }
.section-label { font-family: var(--font); font-size: 11px; letter-spacing: .2em; color: var(--txt2); text-transform: uppercase; padding: 16px 14px 6px; }

/* ---------- status: visualizador ---------- */
.story { position: fixed; inset: 0; z-index: 120; background: #000; display: flex; flex-direction: column; user-select: none; touch-action: manipulation; }
.story-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.story-stage img, .story-stage video { width: 100%; height: 100%; object-fit: contain; }
.story-text { max-width: 86%; text-align: center; font-family: var(--font); font-weight: 600; font-size: clamp(22px, 6vw, 34px); line-height: 1.35; white-space: pre-wrap; word-break: break-word; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.story-cap { position: absolute; left: 0; right: 0; bottom: 96px; padding: 0 22px; text-align: center; font-size: 15px; text-shadow: 0 1px 10px #000; background: linear-gradient(transparent, rgba(0,0,0,.55)); padding-top: 40px; padding-bottom: 8px; }
.story-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: calc(10px + env(safe-area-inset-top)) 12px 26px; background: linear-gradient(rgba(0,0,0,.6), transparent); pointer-events: none; }
.story-bars { display: flex; gap: 4px; }
.story-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.story-bars b { display: block; height: 100%; background: #fff; }
.story-head { display: flex; align-items: center; gap: 10px; margin-top: 12px; pointer-events: none; }
.story-head .avatar { width: 40px; height: 40px; font-size: 19px; }
.story-head button { pointer-events: auto; }
.story-who { flex: 1; min-width: 0; }
.story-who strong { display: block; font-size: 14.5px; }
.story-who span { font-size: 12px; opacity: .75; }
.story-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 30px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); display: flex; gap: 8px; align-items: center; justify-content: center; }
.story-foot input { flex: 1; padding: 13px 18px; border-radius: 26px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; font-size: 15px; outline: none; }
.story-foot .views { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 22px; background: rgba(255,255,255,.14); font-size: 14px; backdrop-filter: blur(10px); }
.story-foot .views .i { width: 18px; height: 18px; }
.story-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 13px; }

/* ---------- status: criar ---------- */
.scompose { position: fixed; inset: 0; z-index: 115; display: flex; flex-direction: column; }
.sc-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--grad); }
.sc-stage img, .sc-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.sc-top { position: relative; z-index: 2; display: flex; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 12px; }
.sc-top .icon-btn { background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.sc-bottom { position: relative; z-index: 2; margin-top: auto; display: flex; gap: 10px; align-items: flex-end; padding: 30px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.sc-bottom textarea { flex: 1; resize: none; padding: 13px 18px; border-radius: 22px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 15px; outline: none; font-family: inherit; }
.scompose.text .sc-bottom { position: absolute; inset: 0; margin: 0; padding: 0; background: none; align-items: center; justify-content: center; pointer-events: none; }
.scompose.text .sc-bottom textarea { pointer-events: auto; position: absolute; left: 7%; right: 7%; top: 50%; transform: translateY(-50%); height: 55%; max-height: 360px; background: none; border: none; text-align: center; font-family: var(--font); font-weight: 600; font-size: clamp(22px, 6vw, 34px); line-height: 1.35; text-shadow: 0 2px 18px rgba(0,0,0,.3); padding-top: 12%; }
.scompose.text .sc-bottom textarea::placeholder { color: rgba(255,255,255,.7); }
.scompose.text .sc-bottom .btn-send { pointer-events: auto; position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 54px; height: 54px; background: #fff; color: #b0187a; }
.scompose:not(.text) #sc-palette { display: none; }
.viewer-row { display: flex; align-items: center; gap: 13px; padding: 9px 4px; }
.viewer-row .avatar { width: 42px; height: 42px; font-size: 20px; }
.viewer-row small { margin-left: auto; color: var(--txt2); font-size: 12px; }

/* =====================================================================
   v3 — auth, grupos, bloqueio, perfil profissional, etc.
   ===================================================================== */
.h2 { font-family: var(--font); font-size: 22px; margin-top: 6px; text-align: center; }
.lead { color: var(--txt2); font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }
.lead.center { text-align: center; }
.center { text-align: center; }
.mt { margin-top: 10px; }
.lbl { display: block; font-size: 11.5px; color: var(--txt2); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .12em; }
.lbl small { text-transform: none; letter-spacing: 0; opacity: .7; }
.field { display: block; }
textarea.field { resize: none; font-family: inherit; }
select.field { appearance: none; }
.field.center { text-align: center; }
.row2 { display: flex; gap: 10px; align-items: stretch; }
.row2 > * { flex: 1; }
.err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; }
.brand-mark.sm { width: 56px; height: 56px; font-size: 28px; border-radius: 19px; margin: 0 auto 10px; }

.seg { display: flex; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin: 4px 0 6px; }
.seg button { flex: 1; padding: 10px; border-radius: 12px; font-size: 14px; color: var(--txt2); font-weight: 600; }
.seg button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(255,46,147,.35); }
.invite-note { background: rgba(255,210,122,.1); border: 1px solid rgba(255,210,122,.3); color: var(--gold); border-radius: 16px; padding: 12px 14px; font-size: 13px; margin-bottom: 12px; line-height: 1.5; text-align: center; }
.linkrow { display: flex; justify-content: space-between; margin-top: 16px; gap: 10px; }
.linkrow button { color: var(--txt2); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.check { display: flex !important; align-items: flex-start; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; line-height: 1.45; margin-top: 18px !important; color: var(--txt2) !important; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: #ff2e93; flex-shrink: 0; }
.check a { color: var(--gold); }
.code-box { font-family: ui-monospace, Menlo, monospace; font-size: 19px; letter-spacing: 2px; text-align: center; padding: 18px 10px; border-radius: 18px; background: rgba(0,0,0,.4); border: 1px dashed rgba(255,210,122,.5); color: var(--gold); margin: 14px 0; user-select: text; -webkit-user-select: text; word-break: break-all; }
.code-box.small { font-size: 13px; letter-spacing: 0; padding: 12px; }
.btn-soft { display: flex; }
.btn-mini { padding: 7px 14px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; margin-left: auto; }

/* tela de bloqueio */
.lock { position: fixed; inset: 0; z-index: 300; background: radial-gradient(900px 600px at 50% 0%, #2a0f3f, #07040d 70%); display: flex; align-items: center; justify-content: center; }
.lock-card { width: 100%; max-width: 340px; padding: 24px; text-align: center; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 22px 0 6px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); transition: all .12s; }
.pin-dots i.on { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 12px var(--pink); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.lock-err { color: var(--danger); font-size: 13px; min-height: 20px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px auto 14px; max-width: 280px; }
.keypad button { height: 66px; border-radius: 50%; background: var(--glass2); font-size: 24px; font-family: var(--font); border: 1px solid var(--line); }
.keypad button:active { background: rgba(255,46,147,.3); }
.veil { position: fixed; inset: 0; z-index: 290; background: #07040d; display: flex; align-items: center; justify-content: center; }

/* banner e etiquetas */
.banner { display: flex; align-items: center; gap: 10px; margin: 0 14px 8px; padding: 10px 12px; border-radius: 16px; background: rgba(255,46,147,.1); border: 1px solid rgba(255,46,147,.3); font-size: 12.5px; }
.banner span { flex: 1; display: flex; gap: 8px; align-items: center; line-height: 1.4; }
.banner .i { width: 18px; height: 18px; color: var(--pink); }
.banner button:not(.btn-mini) { color: var(--txt2); }
.label-bar { display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.label-bar::-webkit-scrollbar { display: none; }
.chip-f { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; color: var(--txt2); }
.chip-f.on { background: rgba(255,46,147,.18); border-color: rgba(255,46,147,.5); color: #fff; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; flex-shrink: 0; }
.chip-f .dot { margin-left: 0; }

/* lista */
.chat-meta .last { display: flex; align-items: center; gap: 6px; }
.chat-meta .last .pv { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-meta .last.strong { color: var(--txt); }
.chat-meta .last .pv b { color: var(--txt); font-weight: 600; }
.chat-meta .last .flags { display: flex; gap: 4px; flex-shrink: 0; }
.chat-meta .last .flag { width: 13px; height: 13px; opacity: .6; }
.chat-meta .name .vbadge, .chat-head-info .vbadge, .profile-head .vbadge, .sub .vbadge { width: 16px; height: 16px; color: #3aa0ff; vertical-align: -3px; margin-left: 4px; }
.chat-meta .last .tick.read { color: #58d7ff; }
.chat-meta .last .tickic { width: 13px; height: 13px; vertical-align: -2px; }
.avatar.sm { width: 40px; height: 40px; font-size: 19px; }
.discreet .chat-item .last .pv { filter: blur(6px); transition: filter .15s; }
.discreet .chat-item:hover .last .pv, .discreet .chat-item:focus .last .pv { filter: none; }

/* cabeçalho / barras da conversa */
.ttlmark { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); margin-left: 4px; }
.ttlmark .i { width: 12px; height: 12px; }
.add-bar.danger { background: rgba(255,95,122,.1); border-color: rgba(255,95,122,.25); color: var(--danger); }
.add-bar.danger button { background: var(--danger); color: #fff; }
.find-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(13,7,22,.85); border-bottom: 1px solid var(--line); color: var(--txt2); }
.find-bar .i { width: 18px; height: 18px; }
.find-bar input { flex: 1; background: none; border: none; outline: none; color: var(--txt); font-size: 14px; min-width: 0; }
.find-bar span { font-size: 12px; min-width: 34px; text-align: right; }
.messages-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.messages-wrap .messages { flex: 1; min-height: 0; }
.scroll-down { position: absolute; right: 14px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: rgba(23,12,38,.92); border: 1px solid rgba(255,46,147,.4); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.scroll-down b { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--pink); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.sys-note { align-self: center; max-width: 86%; text-align: center; font-size: 12px; color: var(--txt2); background: var(--glass); border: 1px solid var(--line); padding: 5px 12px; border-radius: 12px; margin: 6px 0; }
.empty-chat { margin: auto; text-align: center; color: var(--txt2); font-size: 12.5px; line-height: 1.6; padding: 30px; }
.empty-chat .i { width: 26px; height: 26px; color: var(--gold); margin-bottom: 8px; }
.msg .sender { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.msg .auto-tag { display: flex; align-items: center; gap: 5px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: 3px; }
.msg .auto-tag .i { width: 12px; height: 12px; }
.msg .txt a { color: inherit; text-decoration: underline; word-break: break-all; }
.msg .opt-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.msg .opt-btn { font: inherit; font-size: 14px; text-align: center; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass2); color: var(--txt); cursor: pointer; }
.msg .opt-btn:hover { border-color: var(--pink); }
.msg .opt-btn:active { transform: scale(.98); }
.msg .txt.cap { margin-top: 5px; }
.msg .meta .mi { width: 11px; height: 11px; opacity: .8; }
.msg .meta .tickic { width: 12px; height: 12px; }
.msg .tick.err { color: #ffd0da; font-weight: 700; }
.msg.sched { border: 1px dashed rgba(255,255,255,.55); opacity: .92; }
.msg .sched-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11.5px; margin-top: 5px; opacity: .9; }
.msg .sched-note .i { width: 13px; height: 13px; }
.msg .sched-note button { margin-left: auto; padding: 2px 10px; border-radius: 9px; background: rgba(0,0,0,.35); font-size: 11.5px; }
.msg.hit { outline: 1px dashed var(--gold); outline-offset: 2px; }
.msg.cur { outline: 2px solid var(--gold); }
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 96%; max-height: 92%; object-fit: contain; }
.lightbox button { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; background: rgba(0,0,0,.5); color: #fff; }

/* compositor */
.composer { position: relative; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 16px; background: rgba(255,210,122,.12); border: 1px solid rgba(255,210,122,.35); color: var(--gold); font-size: 12.5px; margin-bottom: 8px; }
.chip .i { width: 15px; height: 15px; }
.chip button { display: flex; color: var(--gold); }
.quick-pop { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); background: #170c26; border: 1px solid var(--line); border-radius: 18px; padding: 6px; box-shadow: 0 -10px 40px rgba(0,0,0,.5); max-height: 220px; overflow-y: auto; z-index: 5; }
.quick-pop button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 13px; align-items: baseline; }
.quick-pop button:hover { background: var(--glass2); }
.quick-pop b { color: var(--pink); flex-shrink: 0; }
.quick-pop span { color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-row input:disabled { opacity: .55; }
.composer-row button:disabled { opacity: .4; }

/* sheets e formulários */
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 14px; cursor: pointer; font-size: 14.5px; }
.pick:hover { background: var(--glass); }
.pick > span { flex: 1; min-width: 0; }
.pick small { color: var(--txt2); font-size: 12px; }
.pick input { accent-color: #ff2e93; width: 20px; height: 20px; flex-shrink: 0; margin: 0; }
.pick input[type=checkbox], .pick input[type=radio] { order: 5; }
.pick-list { max-height: 34dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; padding: 4px 6px; margin-bottom: 10px; }
.pill { display: inline-block; padding: 5px 14px; border-radius: 14px; background: var(--glass2); font-size: 12.5px; color: var(--txt2); margin: 6px 0 10px; }
.pill.ok { background: rgba(43,255,154,.12); color: #2bff9a; border: 1px solid rgba(43,255,154,.3); }
.tag { background: rgba(255,210,122,.15); color: var(--gold); padding: 2px 9px; border-radius: 9px; font-size: 11px !important; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.switch-row > span { flex: 1; }
.switch-row small, .menu-item small { display: block; color: var(--txt2); font-size: 12px; margin-top: 2px; }
.menu-item small { display: inline; margin-left: 6px; }
.menu-list { margin-top: 18px; border-top: 1px solid var(--line); }
a.menu-item { color: inherit; text-decoration: none; }
.switch.sm { width: 38px; height: 22px; }
.switch.sm span { border-radius: 11px; }
.switch.sm span::after { width: 16px; height: 16px; }
.switch.sm input:checked + span::after { transform: translateX(16px); }
.qr { width: 190px; margin: 6px auto 14px; background: #fff; padding: 8px; border-radius: 16px; }
.qr svg { width: 100%; height: auto; display: block; }

/* perfil profissional / catálogo */
.hours-edit { display: flex; flex-direction: column; gap: 6px; }
.hrow { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hrow b { width: 34px; font-weight: 600; }
.hrow i { color: var(--txt2); font-style: normal; font-size: 12px; }
.hrow input[type=time] { background: rgba(0,0,0,.38); border: 1px solid var(--line); border-radius: 10px; color: var(--txt); padding: 7px 8px; font-size: 13px; outline: none; }
.hours div { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; }
.hours span { color: var(--txt2); }
.qrow { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; }
.qrow .field:first-child { flex: 0 0 32%; }
.crow { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; padding: 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.cimg { width: 72px; height: 72px; border-radius: 14px; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; cursor: pointer; border: 1px dashed rgba(255,255,255,.25); color: var(--txt2); }
.cimg img { width: 100%; height: 100%; object-fit: cover; }
.cfields { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cfields .field { padding: 9px 12px; font-size: 13.5px; border-radius: 12px; }
.cat-row { display: flex; gap: 12px; padding: 10px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; align-items: center; }
.cat-row.static { cursor: default; }
.cat-row img, .cat-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; color: var(--txt2); }
.cat-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-info span { color: var(--gold); font-size: 13.5px; font-weight: 600; }
.cat-info small { color: var(--txt2); font-size: 12.5px; }
#sc-aud.on { background: var(--gold) !important; color: #2a1a00; }

/* empilhamento: #sheet (ações) sempre acima de #profile (perfil/grupo) */
#profile { z-index: 130; }
#sheet { z-index: 140; }

/* checkbox estilizado */
.check input, .pick input[type=checkbox] { appearance: none; -webkit-appearance: none; background: rgba(0,0,0,.4); border: 1.5px solid rgba(255,255,255,.28); border-radius: 7px; position: relative; cursor: pointer; }
.check input:checked, .pick input[type=checkbox]:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after, .pick input[type=checkbox]:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.pick input[type=radio] { appearance: none; -webkit-appearance: none; border: 1.5px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(0,0,0,.4); }
.pick input[type=radio]:checked { border-color: var(--pink); background: radial-gradient(circle, var(--pink) 45%, transparent 50%); }

/* =====================================================================
   Temas do chat (fundo, balões) — troca em Eu → Tema do chat
   ===================================================================== */
:root, body[data-theme="neon"] {
  --wall-a: rgba(255, 46, 147, .30); --wall-b: rgba(122, 77, 255, .38);
  --wall-bg: linear-gradient(170deg, #1d0a38 0%, #2a0f4a 45%, #180730 100%);
  --dot: rgba(255, 255, 255, .07);
  --peer-a: rgba(150, 95, 255, .46); --peer-b: rgba(74, 34, 140, .62); --peer-line: rgba(190, 150, 255, .40); --peer-glow: rgba(110, 50, 220, .30);
  --me-grad: linear-gradient(135deg, #ff2e93 0%, #c23cff 55%, #7a4dff 100%); --me-glow: rgba(255, 46, 147, .35);
  --bar: rgba(48, 20, 86, .78);
}
body[data-theme="vinho"] {
  --wall-a: rgba(255, 70, 90, .30); --wall-b: rgba(190, 30, 100, .34);
  --wall-bg: linear-gradient(170deg, #2b0716 0%, #3f0b22 45%, #1f0512 100%);
  --dot: rgba(255, 210, 220, .07);
  --peer-a: rgba(190, 60, 90, .46); --peer-b: rgba(96, 22, 48, .66); --peer-line: rgba(255, 150, 170, .38); --peer-glow: rgba(200, 40, 80, .28);
  --me-grad: linear-gradient(135deg, #ff5f6d 0%, #e11d74 55%, #a3195b 100%); --me-glow: rgba(255, 70, 100, .38);
  --bar: rgba(70, 14, 36, .80);
}
body[data-theme="oceano"] {
  --wall-a: rgba(46, 200, 255, .28); --wall-b: rgba(60, 100, 255, .34);
  --wall-bg: linear-gradient(170deg, #06182f 0%, #0a2650 45%, #051327 100%);
  --dot: rgba(200, 235, 255, .07);
  --peer-a: rgba(50, 130, 220, .46); --peer-b: rgba(16, 52, 116, .66); --peer-line: rgba(140, 200, 255, .38); --peer-glow: rgba(40, 110, 220, .28);
  --me-grad: linear-gradient(135deg, #2ec8ff 0%, #3a7bff 55%, #7a4dff 100%); --me-glow: rgba(46, 160, 255, .38);
  --bar: rgba(10, 36, 78, .80);
}
body[data-theme="ouro"] {
  --wall-a: rgba(255, 190, 80, .26); --wall-b: rgba(255, 46, 147, .26);
  --wall-bg: linear-gradient(170deg, #241004 0%, #38180a 45%, #1a0a10 100%);
  --dot: rgba(255, 230, 190, .07);
  --peer-a: rgba(200, 130, 50, .42); --peer-b: rgba(96, 52, 22, .66); --peer-line: rgba(255, 210, 130, .38); --peer-glow: rgba(210, 130, 40, .26);
  --me-grad: linear-gradient(135deg, #ffd27a 0%, #ff8a4c 50%, #ff2e93 100%); --me-glow: rgba(255, 170, 70, .38);
  --bar: rgba(60, 30, 12, .80);
}

/* fundo da conversa: degradê vivo + brilhos + pontinhos */
.conversation {
  background:
    radial-gradient(620px 420px at 100% -5%, var(--wall-a), transparent 62%),
    radial-gradient(640px 520px at -5% 105%, var(--wall-b), transparent 62%),
    var(--wall-bg);
}
.messages {
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
}
.chat-head.glass-bar, .conversation .chat-head { background: var(--bar); }
.msg.me { background: var(--me-grad); box-shadow: 0 6px 22px var(--me-glow); }
.msg.peer {
  background: linear-gradient(135deg, var(--peer-a), var(--peer-b));
  border: 1px solid var(--peer-line);
  box-shadow: 0 4px 18px var(--peer-glow);
  backdrop-filter: none;
}
.msg.peer .reply-quote, .msg.me .reply-quote { background: rgba(0, 0, 0, .28); }
.msg .audio .wave i { background: rgba(255, 255, 255, .42); }
.msg.peer .audio .play { background: var(--me-grad); }
.day-sep, .sys-note { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .16); color: #e6dcf7; }
.composer-row { background: var(--bar); border-color: rgba(255, 255, 255, .16); }
.composer-row:focus-within { border-color: rgba(255, 255, 255, .4); box-shadow: 0 0 22px var(--me-glow); }
.btn-send { background: var(--me-grad); box-shadow: 0 4px 18px var(--me-glow); }
.find-bar, .add-bar { background: var(--bar); }
.scroll-down { background: var(--bar); }
.empty-chat { color: #d8cdea; }
.reactions .r { background: rgba(0, 0, 0, .38); }

/* seletor de tema */
.theme-row { display: flex; gap: 12px; }
.theme-row button { flex: 1; height: 62px; border-radius: 16px; border: 2px solid transparent; position: relative; overflow: hidden; font-size: 11.5px; font-weight: 600; color: #fff; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.theme-row button.sel { border-color: #fff; box-shadow: 0 0 16px rgba(255, 255, 255, .35); }
.theme-row [data-t="neon"] { background: linear-gradient(135deg, #ff2e93, #7a4dff); }
.theme-row [data-t="vinho"] { background: linear-gradient(135deg, #ff5f6d, #7a0f4d); }
.theme-row [data-t="oceano"] { background: linear-gradient(135deg, #2ec8ff, #3a4dff); }
.theme-row [data-t="ouro"] { background: linear-gradient(135deg, #ffd27a, #ff2e93); }
.hint-small { font-size: 12px; color: var(--txt2); line-height: 1.5; margin-top: 6px; }

/* =====================================================================
   iPhone / PWA: tela cheia, áreas seguras (notch, barra de status, home)
   ===================================================================== */
html, body { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
html { background: #07040d; }
body { height: 100%; }
#app { position: absolute; inset: 0; height: auto; }
.screen { height: 100%; padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.chat-head { padding-top: calc(12px + env(safe-area-inset-top)); }
.local-video { top: calc(20px + env(safe-area-inset-top)); }
.call { padding-top: calc(30px + env(safe-area-inset-top)); }
.lock { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.msg, .chat-item { -webkit-touch-callout: none; }
button, .tab, .chat-item { touch-action: manipulation; }
@media (max-width: 820px) {
  #app { height: var(--app-h, 100%); bottom: auto; }
  .chatpane { height: var(--app-h, 100%); bottom: auto; }
  input, textarea, select, .field, .composer-row input, .search input { font-size: 16px !important; }
  .chat-head-actions .icon-btn { width: 40px; height: 40px; }
}

/* =====================================================================
   Chamada de vídeo: trocar imagem grande/pequena, espelho, efeitos
   ===================================================================== */
.local-video, .call-btn.on { transition: none; }
.local-video { cursor: pointer; }
.local-video.mirror, .fxprev video.mirror { transform: scaleX(-1); }
.remote-video { z-index: 1; }
.call.swap .local-video { top: 0; right: 0; width: 100%; height: 100%; border-radius: 0; border: none; z-index: 1; box-shadow: none; }
.call.swap .remote-video { inset: auto; top: calc(20px + env(safe-area-inset-top)); right: 16px; width: 116px; height: 168px; border-radius: 18px; overflow: hidden; z-index: 2; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 24px rgba(255,46,147,.3); cursor: pointer; background: #000; }
.call.swap .remote-video video { width: 100%; height: 100%; object-fit: cover; }
.call-controls { gap: 12px; }
.call-btn { width: 56px; height: 56px; }
.call-btn.hangup, .call-btn.accept { width: 66px; height: 66px; }
.call-btn.on { background: var(--grad); box-shadow: 0 0 20px rgba(255,46,147,.5); }
.call-btn.dim { opacity: .4; pointer-events: none; }

.fx-panel { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fx-panel::-webkit-scrollbar { display: none; }
.call .fx-panel { position: absolute; left: 0; right: 0; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 5; background: linear-gradient(transparent, rgba(0,0,0,.6) 40%); padding-top: 26px; }
.fx-cat { flex: 0 0 auto; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); align-self: center; padding: 0 2px; }
.fx-chip { flex: 0 0 auto; width: 66px; height: 78px; border-radius: 18px; background: rgba(255,255,255,.12); border: 2px solid transparent; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; }
.fx-chip span { font-size: 27px; line-height: 1; }
.fx-chip small { font-size: 10px; line-height: 1.1; text-align: center; padding: 0 3px; }
.fx-chip.sel { border-color: #ff2e93; background: rgba(255,46,147,.28); box-shadow: 0 0 16px rgba(255,46,147,.5); }
.fxprev { position: fixed; inset: 0; z-index: 260; background: #000; display: flex; flex-direction: column; }
.fxprev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fxprev-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.fxprev-msg { position: relative; z-index: 2; text-align: center; font-size: 13px; color: rgba(255,255,255,.85); text-shadow: 0 1px 8px #000; }
.fxprev .fx-panel { position: relative; z-index: 3; margin-top: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.65) 40%); padding-top: 28px; }

.call.vid .call-info { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 16px; margin: 0; align-items: flex-start; gap: 2px; z-index: 4; }
.call.vid .call-info .avatar { display: none; }
.call.vid .call-info h2 { font-size: 18px; }
.call.vid .call-info .call-state { font-size: 13px; color: rgba(255,255,255,.85); text-shadow: 0 1px 8px #000; }

/* app nativo */
.native #push-banner { display: none !important; }

/* ajuda e suporte */
.help-thread { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; max-height: 44dvh; overflow-y: auto; }
.help-thread .hb { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.help-thread .hb.user { align-self: flex-end; background: var(--grad); border-radius: 16px 16px 5px 16px; }
.help-thread .hb.admin { align-self: flex-start; background: var(--glass2); border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; }
.help-thread .hb small { display: block; opacity: .7; font-size: 11px; margin-top: 4px; }
#hp-list .tag { flex-shrink: 0; }

/* =====================================================================
   Vox Pro
   ===================================================================== */
.pro-tag { display: inline-block; padding: 1px 7px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: .08em; background: linear-gradient(135deg,#ffd27a,#ff8a4c); color: #2a1300; vertical-align: 2px; margin-left: 6px; }
.pro-card { margin: 18px 0 4px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(255,210,122,.14), rgba(255,46,147,.12)); border: 1px solid rgba(255,210,122,.35); display: flex; align-items: center; gap: 14px; cursor: pointer; }
.pro-card .pc-ic { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg,#ffd27a,#ff8a4c); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 20px rgba(255,190,90,.4); }
.pro-card .pc-ic .i { color: #2a1300; }
.pro-card b { display: block; font-family: var(--font); font-size: 15.5px; }
.pro-card small { color: var(--txt2); font-size: 12.5px; }
.pro-hero { text-align: center; padding: 6px 0 12px; }
.pro-hero .crown { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 10px; background: linear-gradient(135deg,#ffd27a,#ff8a4c); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 36px rgba(255,190,90,.5); }
.pro-hero .crown .i { width: 32px; height: 32px; color: #2a1300; }
.pro-hero h3 { margin: 0 0 4px; }
.pro-feats { display: grid; gap: 10px; margin: 8px 0 16px; }
.pro-feats div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.pro-feats .i { color: var(--gold); width: 20px; height: 20px; margin-top: 1px; }
.pro-feats b { display: block; } .pro-feats small { color: var(--txt2); font-size: 12.5px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.plan { padding: 14px 10px; border-radius: 18px; border: 2px solid var(--line); background: var(--glass); text-align: center; cursor: pointer; position: relative; }
.plan.sel { border-color: var(--gold); background: rgba(255,210,122,.1); }
.plan b { display: block; font-family: var(--font); font-size: 20px; } .plan span { font-size: 12.5px; color: var(--txt2); }
.plan .save { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #2a1300; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.btn-gold { width: 100%; padding: 15px; border-radius: 18px; font-size: 15px; font-weight: 800; background: linear-gradient(135deg,#ffd27a,#ff8a4c); color: #2a1300; margin-top: 6px; box-shadow: 0 10px 30px rgba(255,170,80,.35); }
.btn-gold:disabled { opacity: .6; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 6px 0; }
.bars i { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars i:hover::after { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 10px; font-style: normal; background: #000; padding: 1px 5px; border-radius: 5px; white-space: nowrap; }
.bars-legend { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--txt2); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 14px; }
.kpi { padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.kpi b { display: block; font-size: 22px; font-family: var(--font); } .kpi span { font-size: 12px; color: var(--txt2); }
.msg .auto-tag.ai { color: #ffe39a; }
.ai-bar { background: rgba(255,210,122,.08); }

.i.flip-x { transform: scaleX(-1); opacity: .6; }

.toast { pointer-events: none; }

/* =====================================================================
   Enquetes (E2E) e Transcrição de Áudio
   ===================================================================== */
.poll-box { min-width: 220px; max-width: 310px; display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.poll-q { display: flex; align-items: center; gap: 7px; font-size: 14.5px; line-height: 1.35; }
.poll-q .i { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.poll-sub, .poll-foot { font-size: 11.5px; opacity: .72; }
.poll-opts { display: flex; flex-direction: column; gap: 6px; margin: 2px 0; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 13.5px; text-align: left; }
.poll-opt.voted { border-color: rgba(255,210,122,.7); background: rgba(255,210,122,.12); }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.14); transition: width .22s ease; pointer-events: none; }
.poll-opt.voted .poll-bar { background: rgba(255,210,122,.24); }
.poll-lbl { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.poll-chk { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-style: normal; flex-shrink: 0; }
.poll-opt.voted .poll-chk { background: var(--gold); border-color: var(--gold); color: #2a1300; font-weight: 800; }
.poll-cnt { position: relative; z-index: 1; font-size: 12px; opacity: .85; }
.tr-btn { width: 28px; height: 28px; flex-shrink: 0; color: var(--gold); background: rgba(255,255,255,.1); }
.tr-box { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; opacity: .92; font-style: italic; }
.tr-box .i { width: 13px; height: 13px; color: var(--gold); vertical-align: -2px; margin-right: 4px; }

/* =====================================================================
   Vitrine de Destaques, Métricas Públicas e Mídia Paga (Pix)
   ===================================================================== */
.profile-tagline { margin: 6px auto 0; font-size: 13.5px; color: var(--gold); max-width: 90%; line-height: 1.4; }
.profile-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.pm-item { padding: 10px 6px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); text-align: center; }
.pm-item b { display: block; font-family: var(--font); font-size: 16px; color: #fff; }
.pm-item span { font-size: 11px; color: var(--txt2); white-space: nowrap; }

.sc-card { margin: 8px 12px; padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, transform .15s; }
.sc-card:hover { border-color: rgba(255,46,147,.45); }
.sc-card.boosted { background: linear-gradient(135deg, rgba(255,210,122,.11), rgba(255,46,147,.09)); border-color: rgba(255,210,122,.42); box-shadow: 0 6px 24px rgba(255,180,80,.12); }
.sc-top { display: flex; gap: 12px; align-items: center; }
.sc-info { flex: 1; min-width: 0; }
.sc-name-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 15px; }
.sc-sub { font-size: 12.5px; color: var(--txt2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sc-pill { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--txt2); }
.sc-pill.on { background: rgba(43,255,154,.14); color: #2bff9a; font-weight: 600; }
.sc-bio { margin: 10px 0 0; font-size: 13px; color: var(--txt); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; color: var(--txt2); }
.sc-metrics b { color: var(--txt); }
.sc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sc-actions .sm { padding: 9px 12px; font-size: 13px; border-radius: 12px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sc-actions .sm .i { width: 15px; height: 15px; }
.lchip { padding: 6px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 12px; color: var(--txt2); white-space: nowrap; }
.lchip.on { background: rgba(255,210,122,.18); border-color: var(--gold); color: #fff; font-weight: 600; }

.paid-row { margin: 10px 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,210,122,.08); border: 1px solid rgba(255,210,122,.28); }
.paid-cover .once-cover { background: linear-gradient(135deg, rgba(255,210,122,.16), rgba(255,46,147,.16)); border: 1px solid rgba(255,210,122,.45); }
.paid-cover .once-cover button { background: linear-gradient(135deg,#ffd27a,#ff8a4c); color: #2a1300; font-weight: 800; }
.paid-seller-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.28); font-size: 12px; }
.paid-seller-bar .unlocked-pill { color: #2bff9a; font-weight: 700; }

/* =====================================================================
   Classificados / Vitrine Profissional Multi-Tier (Vivastreet Style)
   ===================================================================== */
.ad-section-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.ad-section-title .badge-tier { font-size: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(255,210,122,.18); border: 1px solid rgba(255,210,122,.35); }

/* Master Tier: Card Grande / Hero com Carrossel */
.ad-master-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 6px 12px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.ad-card-master { flex: 0 0 88%; max-width: 380px; scroll-snap-align: center; border-radius: 22px; background: linear-gradient(180deg, rgba(30,15,45,.95), rgba(13,7,22,.98)); border: 1.5px solid rgba(255,210,122,.55); box-shadow: 0 10px 30px rgba(255,210,122,.15), 0 0 25px rgba(255,46,147,.15); overflow: hidden; display: flex; flex-direction: column; }
.ad-gallery { position: relative; width: 100%; height: 260px; background: #000; overflow: hidden; }
.ad-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-gallery-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.ad-g-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .15s; }
.ad-g-dot.active { background: #fff; width: 18px; border-radius: 4px; }
.ad-badge-top { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 99px; background: linear-gradient(135deg, #ffd27a, #ff914d); color: #1a0800; font-size: 11px; font-weight: 800; letter-spacing: .08em; display: flex; align-items: center; gap: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.ad-status-top { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 10px; border-radius: 99px; background: rgba(7,4,13,.75); backdrop-filter: blur(8px); font-size: 11px; font-weight: 600; color: #3dffb0; border: 1px solid rgba(61,255,176,.35); }
.ad-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ad-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ad-name { font-size: 18px; font-weight: 700; color: #fff; }
.ad-price { font-size: 16px; font-weight: 800; color: var(--gold); }
.ad-loc { font-size: 12.5px; color: var(--txt2); display: flex; align-items: center; gap: 4px; }
.ad-tagline { font-size: 13.5px; color: #f2e9fc; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-services { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.ad-serv-tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--txt2); }
.ad-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 10px; }
.ad-btn-call { background: linear-gradient(135deg, #2bff9a, #0fb872); color: #002d18; font-weight: 700; padding: 10px; border-radius: 12px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ad-btn-chat { background: var(--grad); color: #fff; font-weight: 700; padding: 10px; border-radius: 12px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* VIP Tier: Grid de 2 Colunas */
.ad-vip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 4px 12px 14px; }
.ad-card-vip { border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,46,147,.35); overflow: hidden; display: flex; flex-direction: column; }
.ad-card-vip .ad-gallery { height: 170px; }
.ad-card-vip .ad-body { padding: 10px; gap: 6px; }
.ad-card-vip .ad-name { font-size: 15px; }
.ad-card-vip .ad-price { font-size: 14px; }
.ad-card-vip .ad-btn-row { grid-template-columns: 1fr 1fr; gap: 6px; }
.ad-card-vip .ad-btn-call, .ad-card-vip .ad-btn-chat { padding: 8px 4px; font-size: 11.5px; }

/* Destaque & Básico: Grid Compacto de 3/4 Colunas */
.ad-compact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 4px 12px 20px; }
.ad-card-compact { border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .15s, border-color .15s; }
.ad-card-compact:hover { border-color: var(--pink); transform: translateY(-2px); }
.ad-card-compact .ad-img-box { position: relative; width: 100%; height: 130px; background: #000; }
.ad-card-compact img { width: 100%; height: 100%; object-fit: cover; }
.ad-card-compact .ad-body { padding: 8px; gap: 4px; }
.ad-card-compact .ad-name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-card-compact .ad-price { font-size: 12.5px; }
.ad-card-compact .ad-loc { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Period toggle no app / modal */
.period-toggle { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 99px; padding: 4px; display: inline-flex; gap: 4px; }
.btn-period { padding: 7px 16px; border-radius: 99px; background: transparent; border: none; color: var(--txt2); font-weight: 700; font-size: 13px; cursor: pointer; transition: all .2s; }
.btn-period.on { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(255,46,147,.35); }
.discount-tag { font-size: 10px; font-weight: 800; background: #2bff9a; color: #000; padding: 2px 6px; border-radius: 6px; margin-left: 4px; text-transform: uppercase; letter-spacing: .02em; }


