:root {
  --bg-obsidian: #070510;
  --bg-surface: #110c21;
  --bg-panel: rgba(20, 14, 38, 0.88);
  --bg-glass: rgba(15, 11, 29, 0.78);
  --border-neon: rgba(139, 92, 246, 0.34);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --crimson: #ff2a5f;
  --crimson-glow: rgba(255, 42, 95, 0.45);
  --cyan: #00f5d4;
  --cyan-glow: rgba(0, 245, 212, 0.35);
  --purple: #8b5cf6;
  --gold: #ffb703;
  --emerald: #10b981;
  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius-lg: 16px;
  --radius-md: 11px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 12% 10%, rgba(255, 42, 95, 0.12), transparent 36%),
    radial-gradient(circle at 88% 85%, rgba(0, 245, 212, 0.1), transparent 38%),
    var(--bg-obsidian);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* ==================== GATE / LOCK SCREEN ==================== */
.gate-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 42, 95, 0.18), transparent 45%), var(--bg-obsidian);
}

.gate-card {
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  border-radius: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border-neon);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 42, 95, 0.12);
  text-align: center;
  backdrop-filter: blur(18px);
}

.gate-logo {
  font-size: 52px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 18px var(--crimson-glow));
}

.gate-card h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, var(--cyan), var(--crimson));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.gate-msg {
  color: #e2e8f0;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 22px;
}

.gate-steps {
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.gate-steps span {
  color: var(--cyan);
  font-weight: 600;
}

.gate-steps code {
  background: rgba(139, 92, 246, 0.2);
  color: #e9d5ff;
  padding: 2px 6px;
  border-radius: 5px;
}

.gate-actions {
  margin-top: 22px;
}

/* ==================== APP SHELL ==================== */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
}

.app-shell.theater-mode .top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.08;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.app-shell.theater-mode .top-bar:hover,
.app-shell.theater-mode .bottom-dock:hover {
  opacity: 1;
}

.app-shell.theater-mode .bottom-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.14;
  transition: opacity 0.25s ease;
  z-index: 40;
}

/* ==================== TOP BAR ==================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-neon);
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
  z-index: 30;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-fox {
  font-size: 28px;
  filter: drop-shadow(0 0 10px var(--crimson-glow));
}

.brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.badge-hd {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--crimson), var(--purple));
  color: #fff;
  letter-spacing: 0.04em;
}

.room-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  flex-shrink: 0;
}

.dot-live.offline {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* Tab Switcher */
.tab-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  padding: 3px;
  gap: 4px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--crimson), #c9184a);
  color: #fff;
  box-shadow: 0 0 16px var(--crimson-glow);
}

.tab-count {
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 0.72rem;
}

.wp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-balance-pill {
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid rgba(255, 183, 3, 0.35);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.share-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 6px;
  user-select: none;
}

.audio-toggle input {
  accent-color: var(--cyan);
  cursor: pointer;
}

/* ==================== BUTTONS & INPUTS ==================== */
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), #b5179e);
  box-shadow: 0 0 18px rgba(255, 42, 95, 0.28);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 24px var(--crimson-glow);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

.btn-warning.active {
  background: #f59e0b;
  color: #0b0718;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
  color: #e2e8f0;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.btn-secondary.active {
  background: rgba(0, 245, 212, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-gold {
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #0b0718;
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.3);
}

.btn-clip {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.22), rgba(139, 92, 246, 0.3));
  border-color: rgba(0, 245, 212, 0.45);
  color: #ecfeff;
}

.btn-dock {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-subtle);
  padding: 7px 11px;
}

.btn-dock.active {
  background: rgba(255, 42, 95, 0.28);
  border-color: var(--crimson);
  box-shadow: 0 0 14px var(--crimson-glow);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-subtle);
  padding: 7px 9px;
  font-size: 0.95rem;
}

.btn-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.76rem;
}

.btn-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.select-input,
.text-input {
  background: rgba(11, 7, 24, 0.9);
  border: 1px solid var(--border-neon);
  color: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.82rem;
  outline: none;
}

.select-input:focus,
.text-input:focus {
  border-color: var(--cyan);
}

.full-width {
  width: 100%;
}

kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
}

.buffer-badge {
  background: rgba(0, 245, 212, 0.2);
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 0.7rem;
}

/* ==================== MAIN STAGE ==================== */
.stage-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 0;
}

.screens-view,
.watch-party-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 12px;
  min-height: 0;
  position: relative;
}

/* Empty Stage */
.empty-stage {
  margin: auto;
  max-width: 580px;
  text-align: center;
  padding: 36px 28px;
  border-radius: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border-neon);
  position: relative;
  overflow: hidden;
}

.empty-icon {
  font-size: 52px;
  margin-bottom: 12px;
}

.empty-stage h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.empty-stage p {
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.empty-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.empty-perks span {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 0.76rem;
  color: #e2e8f0;
}

/* ==================== MULTI-TELA GRID ==================== */
.streams-grid {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 12px;
  min-height: 0;
}

.streams-grid[data-count='1'] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.streams-grid[data-count='2'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
}

.streams-grid[data-count='3'],
.streams-grid[data-count='4'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* Focus Mode Layout */
.streams-grid.focus-mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.streams-grid.focus-mode .stream-tile.focused {
  flex: 1;
  min-height: 0;
}

.streams-grid.focus-mode .stream-tile:not(.focused) {
  height: 124px;
  flex-shrink: 0;
}

/* Stream Tile */
.stream-tile {
  position: relative;
  border-radius: var(--radius-lg);
  background: #040309;
  border: 1px solid var(--border-neon);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  min-height: 0;
  min-width: 0;
}

.stream-tile.focused {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(0, 245, 212, 0.18);
}

.video-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.video-viewport.panning-ready {
  cursor: grab;
}

.video-viewport.panning-active {
  cursor: grabbing;
}

.video-viewport.laser-active {
  cursor: crosshair;
}

.stream-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.06s linear;
  user-select: none;
  pointer-events: none;
}

.laser-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
}

.laser-canvas.interactive {
  pointer-events: auto;
  touch-action: none;
}

/* Cortina de Modo Privacidade (Blur) */
.privacy-curtain {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.35), rgba(7, 5, 16, 0.96));
  backdrop-filter: blur(26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}

.privacy-curtain .shield-icon {
  font-size: 46px;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Overlays do Tile */
.tile-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.tile-streamer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 5, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  padding: 5px 10px 5px 6px;
  border-radius: 99px;
  pointer-events: auto;
}

.tile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--crimson);
}

.tile-name {
  font-size: 0.8rem;
  font-weight: 700;
}

.tile-live-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--crimson);
  color: #fff;
  padding: 2px 6px;
  border-radius: 99px;
}

.tile-stats-pill {
  background: rgba(7, 5, 16, 0.78);
  border: 1px solid rgba(0, 245, 212, 0.25);
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  padding: 5px 9px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.tile-bottom-bar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.stream-tile:hover .tile-bottom-bar,
.stream-tile.focused .tile-bottom-bar {
  opacity: 1;
}

.tile-controls-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 5, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 5px 8px;
  border-radius: 10px;
  pointer-events: auto;
}

.vol-slider {
  width: 78px;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* ==================== MINI-HUD ORÁCULO DA CALL ==================== */
.oracle-hud {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 45;
  width: 300px;
  background: rgba(17, 12, 33, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.55);
  border-radius: 14px;
  padding: 11px 13px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 22px rgba(139, 92, 246, 0.25);
}

.oracle-hud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.oracle-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #c4b5fd;
  letter-spacing: 0.05em;
}

.oracle-status {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
}

.oracle-question {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.3;
}

.oracle-bar-wrap {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 7px;
}

.oracle-bar-win {
  background: linear-gradient(90deg, #10b981, #00f5d4);
  transition: width 0.4s ease;
}

.oracle-bar-lose {
  background: linear-gradient(90deg, #ff2a5f, #ef4444);
  transition: width 0.4s ease;
}

.oracle-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.win-txt {
  color: #6ee7b7;
}

.lose-txt {
  color: #fda4af;
}

.pot-txt {
  color: var(--gold);
}

/* ==================== TIP ALERTS (TWITCH STYLE) ==================== */
.tip-alert-container {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 92vw;
}

.tip-alert-banner {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.94), rgba(139, 92, 246, 0.94));
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 13px 22px;
  box-shadow: 0 12px 45px rgba(255, 42, 95, 0.45), 0 0 32px rgba(255, 183, 3, 0.4);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: tipSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tipSlideIn {
  from {
    opacity: 0;
    transform: translateY(-28px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tip-alert-coins {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.tip-alert-text {
  font-size: 0.92rem;
  font-weight: 700;
}

.tip-alert-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: #fef9c3;
  margin-top: 2px;
}

/* ==================== WATCH PARTY ==================== */
.wp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.wp-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 260px;
}

.wp-input-group .text-input {
  flex: 1;
}

.wp-controller-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--cyan);
}

.wp-player-shell {
  flex: 1;
  border-radius: var(--radius-lg);
  background: #040309;
  border: 1px solid var(--border-neon);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.wp-empty {
  text-align: center;
  max-width: 440px;
  padding: 24px;
  color: var(--text-muted);
}

.wp-empty h3 {
  color: #fff;
  margin-bottom: 8px;
}

.yt-player-mount,
.yt-player-mount iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================== FLOATING REACTIONS ==================== */
.reactions-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 35;
}

.floating-react {
  position: absolute;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: floatUp 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.floating-react .emoji {
  font-size: 2.3rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

.floating-react .author {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(7, 5, 16, 0.78);
  padding: 2px 7px;
  border-radius: 99px;
  color: #e2e8f0;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.7);
  }
  15% {
    opacity: 1;
    transform: translateY(-25px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-340px) scale(1);
  }
}

/* ==================== PEERS DRAWER ==================== */
.peers-drawer {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 290px;
  max-width: 85vw;
  z-index: 50;
  background: var(--bg-panel);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-header h3 {
  font-size: 0.9rem;
}

.peers-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.peer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.peer-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.peer-item-name {
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peer-tag {
  font-size: 0.64rem;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
}

/* ==================== BOTTOM DOCK ==================== */
.bottom-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border-top: 1px solid var(--border-neon);
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
  z-index: 30;
}

.dock-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reactions-bar {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  padding: 3px 6px;
}

.react-btn {
  border: none;
  background: transparent;
  font-size: 1.15rem;
  padding: 4px 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.15s ease;
}

.react-btn:hover {
  transform: scale(1.24);
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 3, 10, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-neon);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}

.modal-sm {
  max-width: 390px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 12px 0 6px;
}

.tip-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tip-amount-btn {
  border: 1px solid rgba(255, 183, 3, 0.35);
  background: rgba(255, 183, 3, 0.08);
  color: var(--gold);
  font-weight: 800;
  padding: 9px 6px;
  border-radius: 10px;
  cursor: pointer;
}

.tip-amount-btn.selected {
  background: var(--gold);
  color: #0b0718;
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.45);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.modal-footer.spread {
  justify-content: space-between;
}

.shot-preview-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  max-height: 220px;
  display: flex;
  justify-content: center;
}

.shot-preview-wrap img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.hotkeys-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.84rem;
  color: #e2e8f0;
}

/* ==================== TOASTS ==================== */
.toast-stack {
  position: fixed;
  bottom: 68px;
  right: 16px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  background: rgba(17, 12, 33, 0.94);
  border: 1px solid var(--border-neon);
  border-left: 4px solid var(--cyan);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.82rem;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  animation: fadeInToast 0.2s ease;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.gold {
  border-left-color: var(--gold);
}

.toast a {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

@keyframes fadeInToast {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESPONSIVE MOBILE ==================== */
@media (max-width: 820px) {
  .streams-grid[data-count='2'],
  .streams-grid[data-count='3'],
  .streams-grid[data-count='4'] {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    overflow-y: auto;
  }
  .stream-tile {
    min-height: 240px;
  }
  .oracle-hud {
    top: auto;
    bottom: 72px;
    right: 10px;
    width: calc(100vw - 20px);
    max-width: 320px;
  }
  .share-controls select,
  .audio-toggle,
  kbd {
    display: none;
  }
}
