/* ==========================================================================
   COLMEIA LIVE — visual (favo de mel, noite quente)
   ========================================================================== */
:root {
  --bg: #0f0b07;
  --bg-2: #15100a;
  --surface: #1c150d;
  --surface-2: #261c12;
  --surface-3: #312417;
  --line: rgba(255, 210, 130, .12);
  --line-2: rgba(255, 210, 130, .22);
  --text: #fbf3e4;
  --muted: #bfae92;
  --faint: #8a7a62;
  --honey: #f5b301;
  --honey-2: #ffcf4a;
  --honey-ink: #2a1b00;
  --live: #ff3b4e;
  --ok: #35c46a;
  --warn: #ff9f1a;
  --danger: #ff5a5f;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--honey-2); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--honey-2); outline-offset: 2px; }

/* ---------------------------------------------------------------- base */
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.hex-spin {
  width: 46px; height: 52px; background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: hexpulse 1.2s ease-in-out infinite;
}
@keyframes hexpulse { 0%, 100% { transform: scale(.85); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-weight: 600; letter-spacing: .01em;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--honey-2), var(--honey)); color: var(--honey-ink); border-color: transparent; box-shadow: 0 6px 20px rgba(245, 179, 1, .25); }
.btn-primary:hover { background: linear-gradient(180deg, #ffd866, #f8bd12); }
.btn-live { background: var(--live); border-color: transparent; color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(255, 90, 95, .14); border-color: rgba(255, 90, 95, .4); color: #ffb3b5; }
.btn-ok { background: rgba(53, 196, 106, .16); border-color: rgba(53, 196, 106, .45); color: #a6f0c0; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 46px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.icon { width: 20px; height: 20px; flex: none; }
.btn-sm .icon { width: 17px; height: 17px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.field small { color: var(--faint); font-size: 12px; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); outline: none;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(245, 179, 1, .18); }
.input::placeholder { color: var(--faint); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.row-input > .btn { flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 0 12px; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 52px; }
.pass-toggle { position: absolute; right: 4px; top: 4px; height: 40px; width: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.link-btn { background: none; border: 0; color: var(--honey-2); padding: 6px 0; font-weight: 600; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 159, 26, .1); border: 1px solid rgba(255, 159, 26, .35); color: #ffd7a3; font-size: 14px; margin-bottom: 14px; }
.alert.err { background: rgba(255, 90, 95, .1); border-color: rgba(255, 90, 95, .4); color: #ffc2c4; }
.alert.ok { background: rgba(53, 196, 106, .1); border-color: rgba(53, 196, 106, .4); color: #b9f2cd; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--surface-3); color: var(--muted); }
.pill-live { background: var(--live); color: #fff; }
.pill-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.pill-honey { background: rgba(245, 179, 1, .16); color: var(--honey-2); }
.pill-ok { background: rgba(53, 196, 106, .16); color: #a6f0c0; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------------------------------------------------------------- marca */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; font-size: 18px; color: var(--text); text-decoration: none; }
.brand-mark { width: 34px; height: 38px; position: relative; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand b { color: var(--honey); font-weight: 800; }

/* ---------------------------------------------------------------- login */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-hero {
  position: sticky; top: 0; height: 100dvh; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(245, 179, 1, .22), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(255, 59, 78, .14), transparent 60%),
    var(--bg-2);
  border-right: 1px solid var(--line);
}
.auth-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17z M28 64l26 15v30' fill='none' stroke='%23f5b301' stroke-opacity='.18' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 98px;
  mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
  -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 16px; max-width: 12ch; }
.auth-hero h1 em { font-style: normal; color: var(--honey); }
.auth-hero p { color: var(--muted); max-width: 42ch; font-size: 17px; margin: 0; }
.hero-feats { display: grid; gap: 12px; margin-top: 30px; }
.hero-feat { display: flex; gap: 12px; align-items: center; color: var(--text); font-weight: 500; }
.hero-feat i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(245, 179, 1, .12); color: var(--honey-2); flex: none; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; }
.tab { border: 0; background: transparent; min-height: 42px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.tab.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.step-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); padding: 0 0 14px; font-weight: 600; }
.auth-mobile-brand { display: none; margin-bottom: 26px; }

@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-mobile-brand { display: flex; }
  .auth-main { place-items: start center; padding-top: calc(28px + var(--safe-t)); }
}

/* ---------------------------------------------------------------- topo / lobby */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + var(--safe-t)) 20px 12px; background: rgba(15, 11, 7, .92); border-bottom: 1px solid var(--line);
}
.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: linear-gradient(160deg, var(--honey-2), #c98a00); color: var(--honey-ink); flex: none; }
.avatar.cust { background: linear-gradient(160deg, #ffd3a8, #e8915a); }
.user-chip .who { line-height: 1.15; padding-right: 6px; }
.user-chip .who b { display: block; font-size: 14px; }
.user-chip .who span { font-size: 11.5px; color: var(--muted); }

.lobby { max-width: 1120px; margin: 0 auto; padding: 22px 20px calc(60px + var(--safe-b)); }
.lobby-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 26px; flex-wrap: wrap; }
.lobby-head h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; line-height: 1.1; }
.lobby-head p { margin: 6px 0 0; color: var(--muted); }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 30px 0 14px; font-weight: 700; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.room-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--text); transition: border-color .15s, transform .1s;
  overflow: hidden; min-height: 168px;
}
.room-card:hover { border-color: var(--line-2); }
.room-card:active { transform: scale(.99); }
.room-card.is-live { background: radial-gradient(120% 90% at 100% 0, rgba(255, 59, 78, .16), transparent 55%), var(--surface); border-color: rgba(255, 59, 78, .35); }
.room-card h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.room-card .desc { color: var(--muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; color: var(--muted); font-size: 13px; }
.room-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.empty { padding: 34px 20px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.empty b { color: var(--text); display: block; font-size: 17px; margin-bottom: 4px; }

/* ---------------------------------------------------------------- folhas (bottom sheet / modal) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet {
  width: 100%; max-width: 560px; max-height: min(88dvh, 860px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(22px + var(--safe-b)); animation: up .2s ease; box-shadow: var(--shadow);
}
.sheet::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-head h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
@media (min-width: 720px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 22px; border-bottom: 1px solid var(--line-2); }
  .sheet::before { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }

#toasts { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); top: calc(14px + var(--safe-t)); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; background: #2c2116; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: up .2s ease; white-space: pre-line; }
.toast.err { border-color: rgba(255, 90, 95, .5); background: #33171a; }
.toast.ok { border-color: rgba(53, 196, 106, .5); background: #13281b; }

/* ---------------------------------------------------------------- sala */
.room { height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) 380px; background: #000; }
.stage-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(90% 70% at 50% 40%, #1d150c, #000); }
.tiles { position: absolute; inset: 0; display: grid; gap: 3px; padding: 0; }
.tiles.n1 { grid-template: 1fr / 1fr; }
.tiles.n2 { grid-template: 1fr / 1fr 1fr; }
.tiles.n3 { grid-template: 1fr 1fr / 1fr 1fr; }
.tiles.n3 .tile:first-child { grid-row: span 2; }
.tiles.n4 { grid-template: 1fr 1fr / 1fr 1fr; }
@media (max-aspect-ratio: 4/5) {
  .tiles.n2 { grid-template: 1fr 1fr / 1fr; }
  .tiles.n3 { grid-template: 1.3fr 1fr / 1fr 1fr; }
  .tiles.n3 .tile:first-child { grid-row: auto; grid-column: span 2; }
}
.tile { position: relative; overflow: hidden; background: #120d08; min-width: 0; min-height: 0; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
@media (min-aspect-ratio: 4/3) { .tiles.n1 .tile video { object-fit: contain; } }
.tile.mirror video { transform: scaleX(-1); }
.tile .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.tile .ph .avatar { width: 84px; height: 84px; font-size: 32px; }
.tile.has-video .ph { display: none; }
.tile-label { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12.5px; font-weight: 700; max-width: calc(100% - 20px); }
.tile-label .tag { font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: var(--honey); color: var(--honey-ink); text-transform: uppercase; letter-spacing: .04em; }
.tile-label .tag.c { background: #ffd3a8; }
.tile-label .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-label .mic-off { color: #ffb3b5; display: inline-flex; }
.tile-label .mic-off svg { width: 14px; height: 14px; }

.stage-top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; padding: calc(10px + var(--safe-t)) 12px 30px; display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent); }
.stage-top .ttl { min-width: 0; flex: 1; }
.stage-top .ttl b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-top .ttl span { font-size: 12px; color: rgba(255, 255, 255, .75); }
.glass { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.viewers { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.viewers svg { width: 15px; height: 15px; }

.stage-msg { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 30px; }
.stage-msg h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.stage-msg p { margin: 0; color: var(--muted); max-width: 40ch; }
.countdown { font-variant-numeric: tabular-nums; font-size: clamp(36px, 7vw, 64px); font-weight: 800; color: var(--honey); letter-spacing: -.03em; }

.sound-btn { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.controls { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--safe-b)); display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .12); }
.ctl { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; }
.ctl.off { background: #fff; color: #111; }
.ctl.red { background: var(--live); }
.ctl svg { width: 22px; height: 22px; }

.pinned {
  position: absolute; z-index: 6; left: 12px; bottom: calc(92px + var(--safe-b)); width: min(330px, calc(100% - 24px));
  display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(20, 14, 8, .88); border: 1px solid rgba(245, 179, 1, .45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); text-align: left; color: var(--text); animation: up .25s ease;
}
.pinned img, .pinned .noimg { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-3); }
.pinned .info { min-width: 0; flex: 1; }
.pinned .info small { color: var(--honey-2); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.pinned .info b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font-weight: 800; color: var(--text); }
.price s { color: var(--faint); font-weight: 500; font-size: .85em; margin-right: 4px; }

/* painel lateral */
.side { display: flex; flex-direction: column; min-height: 0; background: var(--bg); border-left: 1px solid var(--line); }
.side-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.side-tabs::-webkit-scrollbar { display: none; }
.stab { position: relative; border: 0; background: transparent; color: var(--muted); padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.stab.on { background: var(--surface-2); color: var(--text); }
.stab .badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--live); color: #fff; font-size: 11px; display: grid; place-items: center; }
.side-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.pane { padding: 14px; }

.chat { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.chat-list { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { font-size: 14px; line-height: 1.38; word-wrap: break-word; }
.msg .n { font-weight: 700; margin-right: 6px; color: #ffd3a8; }
.msg.staff .n { color: var(--honey); }
.msg .badge-s { font-size: 10px; padding: 1px 5px; border-radius: 5px; background: var(--honey); color: var(--honey-ink); font-weight: 800; margin-right: 6px; vertical-align: 1px; }
.msg.sys { color: var(--honey-2); font-weight: 600; font-size: 13px; padding: 7px 10px; background: rgba(245, 179, 1, .08); border-radius: 10px; }
.msg.product { color: #fff; background: rgba(245, 179, 1, .15); border: 1px solid rgba(245, 179, 1, .3); }
.msg.k-order { color: #c9f5d8; }
.msg.k-order .n { color: #8ff0b3; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); }
.chat-form .input { min-height: 44px; border-radius: 999px; padding: 10px 16px; }

/* chat por cima do vídeo (celular) */
.overlay-chat { display: none; }

/* listas do painel */
.list { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.item .grow { flex: 1; min-width: 0; }
.item .grow b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .grow span { font-size: 12.5px; color: var(--muted); }
.item .acts { display: flex; gap: 6px; flex: none; }
button.item, a.item { width: 100%; text-align: left; color: inherit; cursor: pointer; }
label.item { cursor: pointer; margin-bottom: 8px; }
.group-t { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 18px 0 8px; }
.group-t:first-child { margin-top: 0; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.prod { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.prod.pinned-on { border-color: var(--honey); box-shadow: 0 0 0 1px var(--honey); }
.prod .ph { aspect-ratio: 1; background: var(--surface-3); position: relative; }
.prod .ph img { width: 100%; height: 100%; object-fit: cover; }
.prod .ph .so { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); font-weight: 800; letter-spacing: .06em; font-size: 13px; }
.prod .bd { padding: 10px; display: grid; gap: 6px; flex: 1; align-content: start; }
.prod .bd b { font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .bd .acts { display: flex; gap: 6px; margin-top: auto; }
.noimg { display: grid; place-items: center; color: var(--faint); }
.noimg svg { width: 34%; height: 34%; }

.order-card { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.order-card .hd { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.order-card .hd b { font-size: 15px; }
.order-card .addr { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; }
.oline { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 13.5px; align-items: center; }
.oline.done { opacity: .55; }
.oline .x { background: none; border: 0; color: var(--faint); padding: 2px 6px; }
.order-card .ft { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.order-card .ft .input { min-height: 38px; width: 120px; flex: none; padding: 6px 10px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--surface-2); font-size: 18px; font-weight: 700; }
.qty span { min-width: 38px; text-align: center; font-weight: 800; }

.big-prod { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; }
.big-prod img, .big-prod .noimg { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; background: var(--surface-3); }
.big-prod h4 { margin: 0 0 6px; font-size: 17px; line-height: 1.25; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { border: 1px solid var(--line-2); background: var(--surface-2); padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.chip.on { background: var(--honey); color: var(--honey-ink); border-color: transparent; }

.share-box { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; word-break: break-all; }

/* faixa de aviso dentro da sala */
.banner { position: absolute; z-index: 7; left: 50%; transform: translateX(-50%); top: calc(64px + var(--safe-t)); width: min(94%, 460px); padding: 12px 14px; border-radius: 14px; background: rgba(20, 14, 8, .94); border: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; font-size: 14px; box-shadow: var(--shadow); }
.banner .grow { flex: 1; }
.banner.invite { border-color: var(--honey); }

/* celular: vídeo em tela cheia, chat por cima, painel vira folha */
@media (max-width: 900px) {
  .room { grid-template-columns: 1fr; }
  .side {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: 72dvh; border-left: 0;
    border-radius: 22px 22px 0 0; border-top: 1px solid var(--line-2); transform: translateY(105%); transition: transform .22s ease;
    box-shadow: var(--shadow);
  }
  .side.open { transform: none; }
  .side .side-close { display: inline-flex; }
  .side .chat-tab { display: none; }
  .overlay-chat {
    display: flex; flex-direction: column; position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
    padding: 60px 12px calc(10px + var(--safe-b)); background: linear-gradient(0deg, rgba(0, 0, 0, .7) 40%, transparent);
    pointer-events: none;
  }
  .overlay-chat .ol-list { max-height: 30dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; mask-image: linear-gradient(180deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); }
  .overlay-chat .msg { text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
  .overlay-chat .msg.sys { background: rgba(0, 0, 0, .35); text-shadow: none; }
  .overlay-chat .ol-bar { display: flex; gap: 8px; margin-top: 10px; pointer-events: auto; align-items: center; }
  .overlay-chat .ol-bar .input { min-height: 44px; border-radius: 999px; background: rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .2); flex: 1; min-width: 0; }
  .room.has-controls .overlay-chat { padding-bottom: calc(84px + var(--safe-b)); }
  .controls { bottom: calc(14px + var(--safe-b)); }
  .pinned { bottom: auto; top: calc(66px + var(--safe-t)); width: min(300px, calc(100% - 24px)); }
  .side-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .45); }
  .desk-only { display: none !important; }
}
@media (min-width: 901px) {
  .side .side-close { display: none; }
  .side-backdrop { display: none; }
}
.side-close { display: none; }

@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .lobby { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .user-chip .who { display: none; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   v2 — cadastro simples, vitrine com liberação/preço da live, ajustes de celular
   ========================================================================== */
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { font-size: 26px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.group-t small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.group-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 8px; flex-wrap: wrap; }
.group-row .group-t { margin: 0; }
.thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-3); }
.thumb img, .thumb .noimg { width: 100%; height: 100%; object-fit: cover; }
.warn-t { color: var(--warn); }

/* selos de preço */
.deal { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; background: rgba(0, 0, 0, .7); color: #fff; max-width: calc(100% - 16px); white-space: nowrap; }
.deal .icon { width: 13px; height: 13px; }
.deal.live { background: var(--honey); color: var(--honey-ink); }
.deal.flash { background: var(--live); color: #fff; animation: flashpulse 1.6s ease-in-out infinite; }
.deal b { font-variant-numeric: tabular-nums; }
.deal.inline { position: static; }
@keyframes flashpulse { 50% { box-shadow: 0 0 0 4px rgba(255, 59, 78, .25); } }

.prod.is-hidden { opacity: .78; border-style: dashed; }
.prod.is-hidden .ph::after { content: "Escondido"; position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .7); font-size: 11px; font-weight: 700; color: var(--muted); }
.prod .bd .acts { flex-direction: column; align-items: stretch; }
.acts-row { display: flex; gap: 6px; justify-content: space-between; }
.acts-row .btn { flex: 1; }

.flash-box { padding: 14px; border-radius: 14px; border: 1px dashed rgba(255, 59, 78, .45); background: rgba(255, 59, 78, .06); display: grid; gap: 10px; }
.flash-box .field { margin: 0; }
.flash-box .field > span { display: inline-flex; align-items: center; gap: 6px; color: #ffb3b5; }
.flash-box .chips { margin: 0; }

.pinned.is-flash { border-color: var(--live); box-shadow: 0 0 0 1px var(--live), 0 10px 30px rgba(0, 0, 0, .4); }
.pinned .info small { display: inline-flex; align-items: center; gap: 4px; }
.pinned .info small .icon { width: 13px; height: 13px; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.qty-total { text-align: right; }
.qty-total .price { font-size: 20px; }

.has-badge { position: relative; }
.has-badge .dot { position: absolute; top: 7px; right: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px #000; }

/* sala: nada de "pular" a página no celular */
body:has(.room) { overflow: hidden; overscroll-behavior: none; }
.room { height: 100vh; height: 100dvh; }
.stage-wrap { touch-action: manipulation; }

/* ---------------------------------------------------------------- celular */
@media (max-width: 900px) {
  /* iPhone dá zoom em campos com letra menor que 16px */
  .input, select.input, textarea.input, .chat-form .input, .overlay-chat .ol-bar .input { font-size: 16px; }
  .side { height: 78dvh; max-height: calc(100dvh - 60px); }
  .side-body { padding-bottom: var(--safe-b); }
  .overlay-chat .ol-bar .btn-icon { width: 44px; min-height: 44px; flex: none; }
  .overlay-chat .ol-list { max-height: 26dvh; }
  /* produto em destaque logo acima do chat; nome de quem está no vídeo no topo do vídeo */
  .pinned { top: auto; bottom: calc(26dvh + 70px + var(--safe-b)); left: 12px; width: min(330px, calc(100% - 24px)); }
  .room.has-controls .pinned { bottom: calc(26dvh + 140px + var(--safe-b)); }
  .tile-label { bottom: auto; top: 8px; left: 8px; }
  .tiles .tile:first-child .tile-label,
  .tiles.n4 .tile:nth-child(2) .tile-label { top: calc(58px + var(--safe-t)); }
  .banner { flex-wrap: wrap; }
  .banner .grow { min-width: 60%; }
  .stage-top { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .stage-top .viewers { padding: 4px 8px; }
  .controls { gap: 8px; padding: 6px; }
  .ctl { width: 46px; height: 46px; }
  .sheet { max-height: 92dvh; padding-left: 16px; padding-right: 16px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .big-prod { grid-template-columns: 84px 1fr; gap: 12px; }
  .big-prod img, .big-prod .noimg { width: 84px; height: 84px; }
}
@media (max-width: 380px) {
  .stage-top .ttl span { display: none; }
  .pinned { width: calc(100% - 24px); }
  .pinned .btn { padding: 0 10px; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .tabs .tab { font-size: 14px; }
  .auth-card h2 { font-size: 23px; }
}
/* celular deitado (paisagem): painel lateral estreito em vez de folha */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .overlay-chat .ol-list { max-height: 34dvh; }
  .side { height: 100dvh; max-height: none; left: auto; width: min(380px, 60vw); border-radius: 0; }
  .pinned { bottom: calc(34dvh + 70px + var(--safe-b)); }
  .tiles.n2 .tile:nth-child(2) .tile-label { top: calc(58px + var(--safe-t)); }
}

/* ==========================================================================
   v3 — visual mais moderno + correções de layout (PC e celular)
   ========================================================================== */
:root {
  --radius: 18px;
  --ring: 0 0 0 1px var(--line);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --grad-honey: linear-gradient(135deg, #ffd65a 0%, #f5b301 55%, #e39b00 100%);
}
body {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(245, 179, 1, .10), transparent 60%),
    radial-gradient(900px 420px at -10% 10%, rgba(255, 59, 78, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: rgba(245, 179, 1, .35); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 210, 130, .25) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(255, 210, 130, .22); border-radius: 8px; }

/* botões */
.btn { border-radius: 12px; letter-spacing: 0; transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:hover { border-color: rgba(255, 210, 130, .35); }
.btn-primary { background: var(--grad-honey); box-shadow: 0 8px 22px rgba(245, 179, 1, .22), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { background: var(--grad-honey); filter: brightness(1.05); box-shadow: 0 10px 28px rgba(245, 179, 1, .3), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); }
.btn-icon { border-radius: 12px; }
.ctl, .user-chip, .pill, .chip { border-radius: 999px; }
.input { border-radius: 12px; background: rgba(0, 0, 0, .25); transition: border-color .15s, box-shadow .15s, background .15s; }
.input:hover { border-color: rgba(255, 210, 130, .3); }
.input:focus { background: rgba(0, 0, 0, .35); }

/* topo (barra fixa) — o botão do usuário não corta mais o nome */
.topbar {
  background: rgba(15, 11, 7, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  min-height: 64px;
}
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.top-actions .btn { flex: none; }
.user-chip { flex: none; max-width: 260px; padding: 4px 10px 4px 4px; cursor: pointer; transition: border-color .15s, background .15s; }
.user-chip:hover { border-color: var(--line-2); background: var(--surface-2); }
.user-chip .who { min-width: 0; text-align: left; padding-right: 2px; }
.user-chip .who b, .user-chip .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.user-chip .chev { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* lobby */
.lobby { padding-top: 28px; }
.lobby-head {
  position: relative; overflow: hidden; margin: 0 0 8px; padding: 28px 28px 26px; border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(245, 179, 1, .18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0)),
    var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.lobby-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17z M28 64l26 15v30' fill='none' stroke='%23f5b301' stroke-opacity='.14' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 98px;
  mask-image: linear-gradient(270deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(270deg, #000, transparent 60%);
}
.lobby-head > * { position: relative; z-index: 1; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sec-title { margin-top: 34px; }
.cards { gap: 18px; }
.room-card {
  padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--surface);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.room-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-honey); opacity: .55; }
.room-card.is-live::before { background: linear-gradient(90deg, #ff3b4e, #ff8a3d); opacity: 1; }
.room-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.room-card h3 { font-size: 19px; }
.empty { background: rgba(255, 255, 255, .015); }

/* login */
@media (min-width: 881px) {
  .auth-card { padding: 34px 32px; border-radius: 24px; background: rgba(28, 21, 13, .7); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
}

/* folhas / modais */
.sheet { border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); background: linear-gradient(180deg, #221a10, var(--surface) 120px); }
@media (min-width: 720px) { .sheet { border-radius: 24px; } }
.sheet-backdrop { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* sala: painel lateral e cartões de produto mais limpos */
.side { background: linear-gradient(180deg, #120d08, var(--bg)); }
.side-tabs { gap: 2px; }
.stab { border-radius: 10px; transition: background .15s, color .15s; }
.stab:hover { color: var(--text); }
.prod { border-radius: 16px; transition: border-color .15s, transform .15s; }
.prod:hover { border-color: var(--line-2); }
.item { border-radius: 14px; }
.order-card { border-radius: 16px; box-shadow: var(--shadow-sm); }
.toast { border-radius: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------------------------------------------------------------- PC: ajustes */
@media (min-width: 901px) {
  .room { grid-template-columns: minmax(0, 1fr) clamp(340px, 28vw, 420px); }
  .stage-top { padding: 14px 16px 34px; }
  .controls { bottom: 22px; }
  .pinned { left: 18px; bottom: 96px; }
  .side-body .pane { padding: 16px; }
}
@media (min-width: 1500px) {
  .lobby { max-width: 1280px; }
}

/* ---------------------------------------------------------------- celular: pente fino */
@media (max-width: 720px) {
  .topbar { min-height: 58px; padding-top: calc(10px + var(--safe-t)); padding-bottom: 10px; }
  .top-actions { gap: 6px; }
  .top-actions .btn { min-height: 40px; padding: 0 12px; }
  .user-chip .chev { display: none; }
  .lobby { padding-top: 16px; }
  .lobby-head { padding: 20px 18px; border-radius: 18px; flex-direction: column; align-items: stretch; }
  .lobby-head h1 { font-size: 26px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; min-width: 0; padding: 0 12px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .room-card { min-height: 0; padding: 18px; }
  .sec-title { margin: 26px 0 12px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 30px; height: 34px; }
}
@media (max-width: 520px) {
  .user-chip { padding: 3px; max-width: none; }
  .top-actions .btn span.hide-sm { display: none; }
  .top-actions .btn { width: 40px; padding: 0; }
  .grid-3 { grid-template-columns: 1fr 110px; }
}
@media (max-width: 360px) {
  .head-actions { flex-direction: column; }
  .lobby { padding-left: 12px; padding-right: 12px; }
  .topbar { padding-left: 12px; padding-right: 12px; }
}

/* ==========================================================================
   v4 — destaque na tela: 1 produto por vez, relâmpago com botão Comprar
   ========================================================================== */
.pinned { animation: none; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease; }
.pinned:active { transform: scale(.98); }
.pinned.enter { animation: pinIn .38s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pinIn { from { transform: translateY(18px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.pinned .btn { flex: none; }
.pinned .btn .icon { width: 16px; height: 16px; }
.pin-mod { flex: none; color: var(--muted); padding-right: 4px; }
.pinned.is-flash {
  width: min(380px, calc(100% - 24px)); padding: 12px;
  background: linear-gradient(135deg, rgba(60, 10, 16, .94), rgba(28, 12, 6, .94));
  border: 1px solid var(--live);
  box-shadow: 0 0 0 1px rgba(255, 59, 78, .5), 0 14px 36px rgba(255, 59, 78, .28);
  animation: flashGlow 1.8s ease-in-out infinite;
}
.pinned.is-flash.enter { animation: pinIn .38s cubic-bezier(.2, .9, .3, 1.2), flashGlow 1.8s ease-in-out .4s infinite; }
@keyframes flashGlow { 50% { box-shadow: 0 0 0 1px rgba(255, 59, 78, .8), 0 14px 44px rgba(255, 59, 78, .45); } }
.pinned.is-flash img, .pinned.is-flash .noimg { width: 66px; height: 66px; }
.pinned.is-flash .info small { color: #ffb3b5; font-size: 11.5px; }
.pinned.is-flash .info small b { color: #fff; font-variant-numeric: tabular-nums; }
.pinned.is-flash .price { font-size: 17px; }
.pinned.is-flash .price s { color: rgba(255, 255, 255, .5); }
.pinned.is-flash .btn-live { min-height: 40px; padding: 0 14px; box-shadow: 0 6px 18px rgba(255, 59, 78, .35); }

/* vitrine da vendedora: qual produto está na tela agora */
.prod.pinned-on .ph::before {
  content: "Na tela"; position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 3px 8px; border-radius: 999px;
  background: var(--honey); color: var(--honey-ink); font-size: 11px; font-weight: 800;
}

@media (max-width: 900px) {
  .pinned.is-flash { width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .pinned.is-flash, .pinned.enter { animation: none !important; }
}
/* cartão da relâmpago em duas linhas: faixa + produto */
.pinned.is-flash { flex-direction: column; align-items: stretch; gap: 10px; }
.pinned.is-flash .flash-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #ffd0d3; white-space: nowrap; }
.pinned.is-flash .flash-top > span:first-child { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pinned.is-flash .flash-top .icon { width: 14px; height: 14px; color: #ffd65a; flex: none; }
.pinned.is-flash .flash-top .cd { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--live); color: #fff; font-weight: 700; letter-spacing: 0; }
.pinned.is-flash .flash-top .cd b { font-variant-numeric: tabular-nums; }
.pinned.is-flash .flash-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pinned.is-flash .info { min-width: 0; flex: 1; }
.pinned .price { white-space: nowrap; }
@media (max-width: 380px) { .pinned.is-flash .flash-top .cd { font-size: 0; } .pinned.is-flash .flash-top .cd b { font-size: 11.5px; } }
.pinned.is-flash .price s { display: block; font-size: 12px; line-height: 1.2; margin: 1px 0 0; }
.pinned.is-flash .info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   v5 — celular: destaque pequeno no canto superior direito (o PC continua igual)
   ========================================================================== */
.pinned i.pf, .pinned i.te { font-style: normal; }
@media (max-width: 900px) {
  .pinned, .room.has-controls .pinned,
  .pinned.is-flash, .room.has-controls .pinned.is-flash {
    top: calc(58px + var(--safe-t)); bottom: auto; left: auto; right: 10px;
    width: 168px; max-width: calc(100% - 20px); padding: 7px; gap: 6px 8px; border-radius: 14px;
    display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  }
  .room.has-banner .pinned { top: calc(150px + var(--safe-t)); }
  .pinned > img, .pinned > .noimg, .pinned .flash-row > img, .pinned .flash-row > .noimg { width: 40px; height: 40px; border-radius: 9px; }
  .pinned .info { min-width: 0; }
  .pinned .info small { font-size: 9.5px; letter-spacing: .04em; gap: 3px; }
  .pinned .info small .icon { width: 11px; height: 11px; }
  .pinned .info b { font-size: 12px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pinned .price { font-size: 13px; }
  .pinned .price s { font-size: 10.5px; margin-right: 3px; }
  .pinned > .btn, .pinned .flash-row > .btn { grid-column: 1 / -1; width: 100%; min-height: 30px; padding: 0 8px; font-size: 12.5px; border-radius: 9px; }
  .pinned > .btn .icon, .pinned .flash-row > .btn .icon { width: 14px; height: 14px; }
  .pinned .pin-mod { grid-column: 1 / -1; text-align: center; font-size: 11px; padding: 0; }

  /* relâmpago: mesma caixinha, com a faixa vermelha e a contagem */
  .pinned.is-flash { display: flex; flex-direction: column; align-items: stretch; width: 176px; animation: flashGlow 1.8s ease-in-out infinite; }
  .pinned.is-flash.enter { animation: pinIn .38s cubic-bezier(.2, .9, .3, 1.2), flashGlow 1.8s ease-in-out .4s infinite; }
  .pinned.is-flash .flash-top { font-size: 9.5px; gap: 6px; }
  .pinned.is-flash .flash-top .icon { width: 11px; height: 11px; }
  .pinned.is-flash .flash-top .cd { padding: 2px 7px; font-size: 10.5px; }
  .pinned.is-flash .flash-top .cd b { font-size: 10.5px; }
  .pinned i.pf, .pinned i.te { display: none; }
  .pinned.is-flash .flash-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 8px; align-items: center; }
  .pinned.is-flash .price { font-size: 14px; }
  .pinned.is-flash .price s { display: block; font-size: 10.5px; }
  .pinned.is-flash .btn-live { min-height: 30px; box-shadow: 0 4px 12px rgba(255, 59, 78, .35); }
}
@media (max-width: 340px) {
  .pinned, .pinned.is-flash { width: 150px; }
}
@media (max-width: 900px) { .pinned .price s { display: block; line-height: 1.2; } }

/* ---------- Pedidos: chamar no WhatsApp → aguardando pagamento → pago (vai para a loja) ---------- */
.n-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--live); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.n-badge[hidden] { display: none; }
.pill-new { background: var(--live); color: #fff; }
.orders-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.orders-sum label { display: flex; gap: 6px; align-items: center; }
.orders-page .orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.orders-page .order-card { margin: 0; }
.orders-page .orders-grid > .empty { grid-column: 1 / -1; }
.order-card.is-new { border-color: rgba(255, 59, 78, .55); }
.order-card .oline .pill { padding: 2px 8px; font-size: 11px; }
.ol-main { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.ol-main input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--honey); }
.ol-end { display: flex; gap: 4px; align-items: center; flex: none; }
.ft-total { margin-left: auto; font-size: 15px; }
.pay-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pay-acts .btn { flex: 1 1 150px; min-height: 42px; padding: 0 10px; font-size: 14px; }
.store-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.45; }
.store-note .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.store-note.is-known { color: #a6f0c0; }
.store-note.is-warn { color: #ffd7a3; }
.item.mine { align-items: flex-start; }
.item.mine .grow b { white-space: normal; }
.item.mine .trk { display: block; margin-top: 4px; }
.item.mine .trk b { display: inline; font-size: 12.5px; }
@media (max-width: 640px) {
  .lobby-head .head-actions { display: flex; flex-wrap: wrap; }
  .lobby-head .head-actions .btn { flex: 1 1 40%; min-width: 0; }
}

/* ---------- Moderação ---------- */
.mod-cta { align-self: flex-start; margin-top: 12px; }
.msg[data-mid] { cursor: pointer; border-radius: 8px; }
.msg[data-mid]:hover, .msg[data-mid]:focus-visible { background: rgba(255, 255, 255, .07); outline: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .07); }
.overlay-chat .msg[data-mid] { pointer-events: auto; }
.chat-notice { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; margin: 10px 12px 0; border-radius: 12px; background: rgba(245, 179, 1, .16); border: 1px solid rgba(245, 179, 1, .35); font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.chat-notice[hidden] { display: none; }
.chat-notice .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--honey); }
.overlay-chat .chat-notice { margin: 0 0 8px; background: rgba(40, 28, 4, .85); align-self: flex-start; max-width: 100%; }
.mod-quote { padding: 10px 14px; border-left: 3px solid var(--honey); background: var(--surface); border-radius: 0 10px 10px 0; margin-bottom: 14px; overflow-wrap: anywhere; }
.mod-menu .btn { justify-content: flex-start; }
.mod-pane .group-row { margin-bottom: 8px; }
.mod-pane .field { margin-top: 12px; }
.mod-pane .item .grow b { white-space: normal; }
.mod-pane label.item input, .sheet label.item input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--honey); }
.item .grow .cdw, .item .grow .muted-t { display: inline; font-size: inherit; color: var(--warn); font-variant-numeric: tabular-nums; }
.mod-log { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; }
.mod-log > div { display: flex; gap: 10px; }
.mod-log time { color: var(--faint, var(--muted)); flex: none; font-variant-numeric: tabular-nums; }
.mod-log span { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.mod-log b { color: var(--text); font-weight: 600; }
.ol-bar .input:disabled, .chat-form .input:disabled { opacity: .75; }
.mod-pane > div + div { margin-top: 20px; }
.side-tabs { gap: 0; padding: 10px 8px; }
.side-tabs .stab { padding: 9px 7px; font-size: 12.5px; }
.side-tabs .side-close { position: sticky; right: -10px; background: var(--bg); flex: none; }
/* Pessoas: com 3 botões, eles descem para a linha de baixo em vez de sair do painel */
#side-body .item:has(> .acts) { flex-wrap: wrap; }
#side-body .item:has(> .acts) > .grow { flex: 1 1 120px; min-width: 0; }
#side-body .item > .acts { margin-left: auto; }
#side-body .list + form, #side-body .list + .field { margin-top: 18px; }
