/* ==========================================================================
   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; }
}
