/* ===================================================================
   LiveCast — design system
   =================================================================== */
:root {
  --bg: #08080a;
  --bg-2: #0e0e12;
  --panel: #121218;
  --panel-2: #18181f;
  --panel-3: #22222c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --txt: #f4f5fa;
  --muted: #9aa0b8;
  --muted-2: #6d7390;
  --accent: #7b6cf6;
  --accent-soft: rgba(123, 108, 246, 0.16);
  --accent-2: #9df0c0;
  --live: #ff2d55;
  --danger: #ff4d6a;
  --gold: #e8c547;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.75);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(123, 108, 246, 0.22), transparent 60%),
    radial-gradient(900px 520px at 92% 8%, rgba(232, 197, 71, 0.10), transparent 62%),
    radial-gradient(700px 480px at 50% 110%, rgba(255, 45, 85, 0.08), transparent 58%),
    var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: #c4b8ff; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { line-height: 1.6; }

/* ---------- botões ---------- */
.btn {
  --btn-bg: var(--panel-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
  background: var(--btn-bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, opacity 0.16s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { background: var(--panel-3); border-color: rgba(255,255,255,.26); }
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, #8b7cf8, #5646d8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(108, 92, 231, 0.85);
}
.btn-primary:hover { background: linear-gradient(135deg, #9b8cfa, #6353e6); border-color: transparent; color: #fff; }

.btn-live {
  background: linear-gradient(135deg, #ff3d63, #d61b41);
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(255, 45, 85, 0.85);
}
.btn-live:hover { background: linear-gradient(135deg, #ff5177, #e02248); }

.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 999px; }
.btn-block { width: 100%; }

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  background: rgba(10, 10, 22, 0.62);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}
.btn-icon:hover { background: rgba(30, 30, 55, 0.9); }
.btn-icon.is-off { background: rgba(255, 45, 85, 0.9); border-color: transparent; }
.btn-icon.is-on { background: rgba(0, 220, 174, 0.9); border-color: transparent; color: #04231d; }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--txt);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.input::placeholder { color: var(--muted-2); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.08);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
}
.input-code {
  text-transform: uppercase;
  letter-spacing: .42em;
  font-weight: 700;
  font-size: 19px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- cartões / superfícies ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge-live { background: rgba(255, 45, 85, 0.16); border-color: rgba(255, 45, 85, 0.5); color: #ff7d95; }
.badge-tv { background: rgba(0, 220, 174, 0.14); border-color: rgba(0, 220, 174, 0.42); color: #6ff0d4; }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted-2);
  flex: 0 0 auto;
}
.dot.live { background: var(--live); box-shadow: 0 0 0 0 rgba(255,45,85,.7); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,45,85,.65); }
  70% { box-shadow: 0 0 0 9px rgba(255,45,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); }
}

.hr { height: 1px; background: var(--line); border: 0; margin: 18px 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }

/* ---------- vídeo ---------- */
.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #04040a;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #04040a;
}
.video-shell video::-webkit-media-controls-start-playback-button { display: none !important; }
.video-shell video::-webkit-media-controls { display: none !important; }
.video-shell.cover video { object-fit: cover; }
.vid-cast {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  background: rgba(8, 8, 16, .62);
  backdrop-filter: blur(10px);
}
.vid-cast:hover { background: rgba(8, 8, 16, .86); }
.vid-cast.is-on { color: #ffd76e; background: rgba(255, 196, 46, .2); }
.tv-qr-wrap {
  width: 220px; height: 220px; margin: 8px auto 12px;
  background: #fff; border-radius: 16px; padding: 10px;
}
.tv-qr-wrap img { width: 100%; height: 100%; display: block; }
.tv-qr-link {
  text-align: center; font-weight: 800; font-size: 16px; letter-spacing: .02em;
  margin: 0 0 14px;
}
.tv-code-form { display: flex; flex-direction: column; gap: 10px; }
.tv-code-form label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6d7390; }
.tv-code-form .input { text-align: center; letter-spacing: .22em; font-weight: 800; font-size: 18px; text-transform: uppercase; }

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(12,12,26,.55), rgba(4,4,10,.94));
  z-index: 6;
}
.video-overlay .big { font-size: 18px; font-weight: 700; }
.video-overlay .sub { color: var(--muted); font-size: 14px; max-width: 420px; }

.spinner {
  width: 30px; height: 30px;
  border: 3px solid rgba(255,255,255,.16);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toasts ---------- */
.toasts {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 999;
  width: min(92vw, 440px);
}
.toast {
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 12px;
  background: rgba(24, 24, 44, .97);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  animation: toast-in .22s ease;
}
.toast.err { border-color: rgba(255, 77, 106, .55); }
.toast.ok { border-color: rgba(0, 220, 174, .5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 4, 10, 0.72);
  backdrop-filter: blur(6px);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(94vw, 520px);
  max-height: 86vh;
  overflow: auto;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px #000;
}
.modal h3 { font-size: 19px; margin-bottom: 10px; }
.modal p, .modal li { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.modal ol, .modal ul { padding-left: 20px; margin: 10px 0; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- menu de cast ---------- */
.cast-menu {
  position: absolute;
  z-index: 950;
  width: 268px;
  padding: 6px;
  background: rgba(18, 18, 32, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px #000;
  backdrop-filter: blur(14px);
  animation: toast-in .16s ease;
}
.cast-menu button {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--txt);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.cast-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.cast-menu b { display: block; font-size: 14px; font-weight: 600; }
.cast-menu small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cast-menu .cm-ico { font-size: 17px; width: 22px; text-align: center; }

/* ---------- avatar ---------- */
.avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 800;
  color: #0b0b16;
  background: linear-gradient(135deg, #a99bff, #6ff0d4);
  margin-right: 7px;
  vertical-align: middle;
}

/* ---------- switch / volume ---------- */
input[type="range"].vol {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  outline: none;
}
input[type="range"].vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.6);
}
input[type="range"].vol::-moz-range-thumb {
  width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; cursor: pointer;
}

/* ---------- ícones dentro de botões ---------- */
.btn .ico { display: inline-flex; align-items: center; justify-content: center; }
.btn .ico svg { width: 17px; height: 17px; }
.btn-icon, .btn-icon .ico { display: inline-flex; align-items: center; justify-content: center; }
.btn-icon svg, .btn-icon .ico svg { width: 20px; height: 20px; }
.stage-controls .btn-icon svg { width: 21px; height: 21px; }
.cast-menu .cm-ico svg { width: 19px; height: 19px; }

/* ---------- marca ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; opacity: 0.93; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: #101020;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.9);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-names { display: flex; flex-direction: column; line-height: 1.06; min-width: 0; }
.brand-names b {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand-names > span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--accent-2);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .brand-names b { font-size: 12.5px; }
  .brand-names > span { font-size: 8px; letter-spacing: 0.2em; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
}

/* ==================================================================
   Folha "Passar a live para a TV" (Chromecast · AirPlay · Modo TV)
   Pensada para celular: desliza de baixo, largura total, sem popover.
   ================================================================== */
html.sheet-open, html.sheet-open body { overflow: hidden; }

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3, 3, 9, 0);
  transition: background .22s ease;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  touch-action: manipulation;
}
.sheet-back.in { background: rgba(3, 3, 9, .74); }

.sheet {
  width: min(560px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #0f0f1c;
  border: 1px solid var(--line-strong, rgba(255,255,255,.14));
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -30px 70px -20px #000;
  transform: translateY(18px);
  opacity: .6;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow: hidden;
}
.sheet-back.in .sheet { transform: translateY(0); opacity: 1; }
@media (min-width: 720px) {
  .sheet-back { align-items: center; }
  .sheet { border-radius: 20px; border-bottom: 1px solid var(--line-strong, rgba(255,255,255,.14)); }
}

.sheet-grip {
  width: 42px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.22);
  margin: 8px auto 0;
  flex: 0 0 auto;
}
@media (min-width: 720px) { .sheet-grip { display: none; } }

.sheet-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line, rgba(255,255,255,.08));
  flex: 0 0 auto;
}
.sheet-head h3 { flex: 1; margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: .01em; }
.sheet-head-pad { width: 34px; flex: 0 0 auto; }
.sheet-x, .sheet-back-btn {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 10px; cursor: pointer;
  font-size: 20px; line-height: 1;
  color: var(--muted, #9a9ab0);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line, rgba(255,255,255,.08));
}
.sheet-x:hover, .sheet-back-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

.sheet-body {
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sheet-lead { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted, #9a9ab0); }

.sheet-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 12px; margin-bottom: 8px;
  text-align: left; cursor: pointer;
  color: inherit; font: inherit;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 14px;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(123,108,246,.28);
  position: relative;
  z-index: 2;
}
.sheet-opt * { pointer-events: none; }
.sheet-opt:active { transform: scale(.99); }
.sheet-opt:hover { background: rgba(255,255,255,.08); border-color: rgba(140,120,255,.45); }
.sheet-opt .so-ico {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #cfc6ff;
  background: linear-gradient(135deg, rgba(124,108,246,.28), rgba(76,59,208,.16));
  border: 1px solid rgba(124,108,246,.32);
}
.sheet-opt .so-ico svg { width: 20px; height: 20px; }
.sheet-opt .so-txt { flex: 1; min-width: 0; }
.sheet-opt b { display: block; font-size: 14.5px; font-weight: 700; }
.sheet-opt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted-2, #7d7d94); line-height: 1.35; }
.sheet-opt .so-go { flex: 0 0 auto; font-size: 22px; color: var(--muted-2, #7d7d94); }
.pill {
  display: inline-block; margin-left: 6px; padding: 2px 7px;
  font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 99px;
  color: #9df0c0; background: rgba(46, 204, 130, .14);
  border: 1px solid rgba(46, 204, 130, .34);
  vertical-align: middle;
}

.sheet-block {
  margin: 12px 0; padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.028);
  border: 1px solid var(--line, rgba(255,255,255,.08));
}
.sheet-block.is-primary { border-color: rgba(124,108,246,.4); background: rgba(124,108,246,.07); }
.sheet-block h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 800; }
.sheet-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--muted, #9a9ab0); }
.sheet-steps li { margin-bottom: 6px; }
.sheet-steps li:last-child { margin-bottom: 0; }
.sheet-steps b { color: #e7e5ff; font-weight: 700; }

.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.sheet-actions .btn-block { width: 100%; }
.sheet-link { margin: 12px 0; }
.sheet-link code {
  display: block; padding: 10px 12px; margin-bottom: 10px;
  font-size: 12px; line-height: 1.4; word-break: break-all;
  border-radius: 10px; color: #cfc6ff;
  background: rgba(0,0,0,.4); border: 1px solid var(--line-strong, rgba(255,255,255,.14));
}
.sheet-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted-2, #7d7d94); }
.sheet-actions { margin: 4px 0 8px; }
.tv-scan-wait {
  width: 36px; height: 36px; margin: 16px auto 6px;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: #8b7cf8;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.sheet-warn { margin: 10px 0; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; color: #ffcc8a; background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.35); }
.sheet-note {
  margin: 14px 0 0; padding: 11px 12px;
  font-size: 12px; line-height: 1.5; color: var(--muted-2, #7d7d94);
  border-radius: 12px; background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.12);
}
.sheet-note b { color: #d8d5f0; }
.sheet-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }


/* ==================================================================
   Faixa da marca (logo oficial no site)
   ================================================================== */
.brand-band {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
  margin: clamp(28px, 5vw, 54px) 0;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(124, 108, 246, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.09));
  box-shadow: 0 30px 70px -40px #000;
}
@media (max-width: 820px) {
  .brand-band { grid-template-columns: 1fr; text-align: center; }
  .brand-band .band-logo { margin: 0 auto; }
}
.band-logo {
  width: min(320px, 78vw);
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 60px -28px rgba(108, 92, 231, 0.85);
  background: #0b0b14;
}
.band-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-band h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 12px; letter-spacing: -0.01em; }
.brand-band h2 .grad {
  background: linear-gradient(95deg, #b9abff, #7b6cf6 55%, #4fd1c5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-band p { color: var(--muted, #9a9ab0); line-height: 1.65; margin: 0 0 10px; font-size: 15px; }
.brand-band .band-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 820px) { .brand-band .band-tags { justify-content: center; } }
.band-tags .pill {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #d9d4ff; background: rgba(124, 108, 246, 0.14);
  border: 1px solid rgba(124, 108, 246, 0.34);
}

/* logo nas telas de espera (TV / receptor) */
.wait-logo {
  width: clamp(96px, 12vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px -24px rgba(108, 92, 231, 0.9);
  margin-bottom: 6px;
}

/* ---------- card de entrada do cliente (home) ---------- */
.join-head { margin-bottom: 18px; }
.join-head h2 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }
.join-head p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted, #9a9ab0); }
.admin-link {
  margin: 18px 0 0; padding-top: 14px; text-align: center;
  border-top: 1px solid var(--line, rgba(255,255,255,.08));
  font-size: 12.5px;
}
.admin-link a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted-2, #7d7d94); text-decoration: none;
  transition: color .15s ease;
}
.admin-link a:hover { color: #cfc6ff; }
.admin-link svg { width: 13px; height: 13px; }

/* ---------- reações / super chat / share ---------- */
.super-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  overflow: hidden;
}
.emoji-pop { display: none !important; }
.chat-body .react-layer {
  display: block;
  position: absolute;
  right: 46px;
  top: 0;
  bottom: 0;
  width: 72px;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.react-float {
  position: absolute;
  bottom: 8%;
  animation: react-up 2s ease-out forwards;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  user-select: none;
  will-change: transform, opacity;
  line-height: 1;
}
@keyframes react-up {
  0% { transform: translate3d(0, 18px, 0) scale(.65); opacity: 0; }
  12% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(var(--dx, 8px), -260px, 0) scale(1.18); opacity: 0; }
}
.react-dock {
  position: absolute; right: 8px; bottom: 10px; z-index: 6;
  display: flex; flex-direction: column; gap: 4px;
  padding: 7px 5px; border-radius: 999px;
  background: rgba(12,12,20,.82);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px -16px #000;
}
.video-shell > .react-dock { display: none; }
.chat-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-body .chat-list { flex: 1; min-height: 0; padding: 12px 48px 12px 14px; }
.gift-strip {
  display: flex; gap: 8px; padding: 8px 12px 10px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124,108,246,.08), transparent);
}
.gift-strip.hidden { display: none !important; }
.gift-strip .gift-card { min-width: 168px; flex: 0 0 auto; }
.gift-card {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(100deg, #6d4dff 0%, #b14dff 55%, #e07bff 100%);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(140, 70, 255, .8);
}
.gift-card .avatar { margin: 0; width: 28px; height: 28px; }
.gift-meta { flex: 1; min-width: 0; }
.gift-meta b { display: block; font-size: 12.5px; font-weight: 800; }
.gift-meta small { display: block; font-size: 11px; opacity: .88; }
.gift-spark { font-size: 16px; }
.gift-cash {
  font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 999px;
  background: rgba(0,0,0,.22);
}
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg .avatar { margin: 2px 0 0; flex: 0 0 auto; }
.msg .msg-body { min-width: 0; }
.msg .who { font-weight: 800; }
.msg-react { align-items: center; font-size: 15px; }
.msg-react .react-em { font-size: 18px; }
.livepix-pin {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-top: 1px solid var(--line);
  background: rgba(90, 80, 210, .14);
  font-size: 12.5px;
}
.livepix-pin.hidden { display: none !important; }
.livepix-pin a { color: inherit; text-decoration: none; font-weight: 700; }
.livepix-pin small { color: var(--muted); font-weight: 500; }
.react-btn {
  width: 36px; height: 36px; border: 0; background: transparent;
  font-size: 20px; line-height: 1; cursor: pointer; border-radius: 50%;
  transition: transform .12s ease, background .12s ease;
}
.react-btn:hover { background: rgba(255,255,255,.08); transform: scale(1.12); }
.react-btn:active { transform: scale(.92); }
.react-btn.is-pop { transform: scale(1.28); background: rgba(255,215,110,.16); }

.super-layer {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
  padding: 18px 22px 72px; gap: 8px; z-index: 8;
}
.super-card {
  width: min(92%, 560px);
  padding: 16px 18px 17px;
  border-radius: 18px;
  background:
    linear-gradient(120deg, #5b3dff 0%, #9b4dff 42%, #ffb84d 160%);
  border: 1px solid rgba(255, 215, 110, .55);
  box-shadow: 0 22px 48px -16px rgba(255, 196, 46, .7), 0 0 0 1px rgba(255,255,255,.08) inset;
  transform: translateY(22px); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  color: #fff;
}
.super-card.is-on { transform: none; opacity: 1; }
.super-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.super-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .16em;
  color: #1a1408; background: #ffd76e; padding: 4px 9px; border-radius: 999px;
}
.super-cash { font-weight: 800; color: #ffd76e; font-size: 18px; margin-left: auto; }
.super-who { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.super-txt { margin-top: 6px; font-size: 16px; line-height: 1.4; color: #fff6d8; }

.msg-super {
  padding: 8px 10px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,215,110,.16), rgba(124,108,246,.1));
  border: 1px solid rgba(255,215,110,.28);
}
.online-edit {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.online-edit input {
  width: 72px; padding: 5px 8px; font-size: 12px; font-weight: 700;
  text-align: center;
}
.bot-box {
  margin: 0; padding: 8px 14px 12px;
  border-top: 1px solid var(--line);
  background: rgba(124, 108, 246, .06);
}
.bot-box summary {
  cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted);
  list-style: none;
}
.bot-box summary::-webkit-details-marker { display: none; }
.bot-box[open] summary { margin-bottom: 10px; color: var(--txt); }
.bot-box .bot-on { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.bot-box .field { margin-bottom: 8px; }
.bot-box textarea { min-height: 86px; resize: vertical; font-size: 13px; }

.super-chip {
  display: inline-block; margin-right: 8px; padding: 1px 7px;
  font-size: 10.5px; font-weight: 800; border-radius: 999px;
  color: #1a1408; background: #ffd76e;
}

.chat-form .chat-tools { display: flex; gap: 4px; align-items: center; }
.chat-ico {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: inherit; cursor: pointer;
  display: grid; place-items: center;
}
.chat-ico:hover { background: rgba(255,255,255,.08); }
.chat-ico svg { width: 18px; height: 18px; }
.emoji-pop {
  position: absolute; bottom: 58px; left: 10px; z-index: 8;
  display: flex; gap: 4px; padding: 6px; border-radius: 14px;
  background: #12121c; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px -18px #000;
}
.emoji-pop button {
  width: 34px; height: 34px; border: 0; background: transparent;
  font-size: 18px; cursor: pointer; border-radius: 10px;
}
.emoji-pop button:hover { background: rgba(255,255,255,.08); }

.share-lead { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.share-url code {
  display: block; padding: 10px 12px; margin-bottom: 12px; word-break: break-all;
  font-size: 12.5px; border-radius: 12px; color: #cfc6ff;
  background: rgba(0,0,0,.4); border: 1px solid var(--line-strong);
}
.share-grid { display: flex; flex-direction: column; gap: 8px; }
.gift-amts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.gift-amt {
  padding: 8px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px;
  color: #e7e5ff; background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.gift-amt.is-on { color: #1a1408; background: #ffd76e; border-color: #ffd76e; }
.gift-status { min-height: 1.3em; margin: 8px 0 0; font-size: 13px; color: #ffd76e; }

@media (max-width: 640px) {
  .react-dock { right: 6px; padding: 6px 4px; }
  .react-btn { width: 32px; height: 32px; font-size: 17px; }
}
