/* Premium live room: tip drawer, private modal, chat CTAs, goal strip, promos */

body.sl-room-live-premium-active {
  --sl-premium-gold: #fbbf24;
  --sl-premium-green: #22c55e;
  --sl-premium-panel: #12151f;
  --sl-premium-border: rgba(255, 255, 255, 0.1);
}

body.sl-room-live-premium-active #privateShowBtn,
body.sl-room-live-premium-active #addonPanel,
body.sl-room-live-premium-active #slPremiumPrivatePanel,
body.sl-room-live-premium-active .tip-popup {
  display: none !important;
}

/* Action rail upgrades */
.sl-room-action-rail .sl-room-action[data-room-shell-action="tip"] {
  background: linear-gradient(180deg, #52b852 0%, #46a758 100%);
  color: #fff;
  border: 1px solid rgba(70, 167, 88, 0.45);
  font-weight: 800;
}

.sl-room-action-rail .sl-room-action[data-room-shell-action="tip"]:hover {
  filter: brightness(1.06);
  border-color: rgba(70, 167, 88, 0.65);
}

.sl-room-action-rail .sl-room-action.primary,
.sl-room-action-rail .sl-room-action[data-room-shell-action="private"] {
  background: rgba(15, 18, 28, 0.92);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-weight: 800;
}

.sl-room-action-rail .sl-room-action .sl-rate-tag {
  margin-left: 4px;
  opacity: 0.85;
  font-size: 11px;
}

/* Model notice strip (room topic only — king chip lives separately) */
.sl-room-model-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 12px;
  border-radius: 12px;
  background: rgba(15, 18, 28, 0.92);
  border: 1px solid var(--sl-premium-border);
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.sl-room-model-strip strong {
  color: #f8fafc;
}

/* Compact persistent king badge — docks in the offline bottom bar (never on tip CTA) */
.sl-room-king-chip {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  flex: 0 1 auto;
  max-width: min(200px, 46vw);
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  /* Solid opaque fill — gradients can compute as transparent and wash out on gold CTAs */
  background: #0f172a !important;
  background-image: linear-gradient(135deg, #111827 0%, #1e293b 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.55) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
  color: #fde68a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Live stage fallback when no offline bottom bar exists */
.sl-room-video-host > .sl-room-king-chip,
.videoContainer > .sl-room-king-chip,
#videos-container > .sl-room-king-chip {
  position: absolute !important;
  left: 10px !important;
  bottom: 56px !important;
  z-index: 28 !important;
}

.sl-room-offline-bottom-bar .sl-room-king-chip {
  order: 2;
  margin-left: auto !important;
  margin-right: 8px !important;
}

.sl-room-offline-bottom-bar .sl-room-offline-likes {
  order: 1;
}

.sl-room-offline-bottom-bar .sl-room-offline-btn--gold {
  order: 3;
}

.sl-room-king-chip[hidden] {
  display: none !important;
}

.sl-room-king-chip i {
  color: #fbbf24 !important;
  flex: 0 0 auto;
}

.sl-room-king-chip [data-sl-king-name] {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fef3c7 !important;
}

/* Offline celebration: disco fairy-lights on the docked chip (no floating card).
   Glow/opacity pulse only — avoid transform:scale (inflates hit-box into neighbors). */
.sl-room-king-chip.is-disco {
  border-color: rgba(251, 191, 36, 0.85) !important;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.25),
    0 0 18px rgba(251, 191, 36, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.45) !important;
  animation: slKingChipPulse 0.9s ease-in-out infinite;
  transform: none !important;
}

.sl-room-king-chip .sl-king-chip-lights {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 2px;
}

.sl-room-king-chip .sl-king-chip-lights i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 6px currentColor;
  animation: slKingDiscoBlink 0.7s ease-in-out infinite;
}

.sl-room-king-chip .sl-king-chip-lights i:nth-child(1) { color: #f87171; background: #f87171; animation-delay: 0s; }
.sl-room-king-chip .sl-king-chip-lights i:nth-child(2) { color: #fbbf24; background: #fbbf24; animation-delay: 0.1s; }
.sl-room-king-chip .sl-king-chip-lights i:nth-child(3) { color: #34d399; background: #34d399; animation-delay: 0.2s; }
.sl-room-king-chip .sl-king-chip-lights i:nth-child(4) { color: #38bdf8; background: #38bdf8; animation-delay: 0.3s; }
.sl-room-king-chip .sl-king-chip-lights i:nth-child(5) { color: #e879f9; background: #e879f9; animation-delay: 0.4s; }
.sl-room-king-chip .sl-king-chip-lights i:nth-child(6) { color: #f472b6; background: #f472b6; animation-delay: 0.5s; }
.sl-room-king-chip .sl-king-chip-lights i:nth-child(7) { color: #a3e635; background: #a3e635; animation-delay: 0.15s; }

@keyframes slKingChipPulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(251, 191, 36, 0.25),
      0 0 14px rgba(251, 191, 36, 0.28),
      0 6px 16px rgba(0, 0, 0, 0.45);
  }
  50% {
    filter: brightness(1.12);
    box-shadow:
      0 0 0 1px rgba(251, 191, 36, 0.45),
      0 0 22px rgba(251, 191, 36, 0.5),
      0 6px 16px rgba(0, 0, 0, 0.45);
  }
}

/* Disco splash — just above the stage bottom bar (never over avatar/schedule) */
.sl-king-disco-splash {
  position: absolute;
  left: 50%;
  top: auto;
  right: auto;
  bottom: 58px;
  z-index: 46;
  width: min(180px, calc(100% - 48px));
  max-width: 180px;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  padding: 10px 12px 9px;
  border-radius: 14px;
  background: #0b1220 !important;
  background-image:
    radial-gradient(120% 140% at 10% 0%, rgba(251, 191, 36, 0.28) 0%, transparent 50%),
    radial-gradient(100% 120% at 90% 100%, rgba(236, 72, 153, 0.2) 0%, transparent 46%),
    linear-gradient(165deg, #111827, #0b1220) !important;
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.55);
  color: #fef3c7;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: slKingDiscoIn 0.35s ease forwards;
}

.sl-king-disco-splash.is-out {
  animation: slKingDiscoOut 0.4s ease forwards;
}

.sl-king-disco-splash__lights {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
}

.sl-king-disco-splash__lights span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: slKingDiscoBlink 0.7s ease-in-out infinite;
}

.sl-king-disco-splash__lights span:nth-child(1) { color: #f87171; background: #f87171; animation-delay: 0s; }
.sl-king-disco-splash__lights span:nth-child(2) { color: #fbbf24; background: #fbbf24; animation-delay: 0.1s; }
.sl-king-disco-splash__lights span:nth-child(3) { color: #34d399; background: #34d399; animation-delay: 0.2s; }
.sl-king-disco-splash__lights span:nth-child(4) { color: #38bdf8; background: #38bdf8; animation-delay: 0.3s; }
.sl-king-disco-splash__lights span:nth-child(5) { color: #e879f9; background: #e879f9; animation-delay: 0.4s; }
.sl-king-disco-splash__lights span:nth-child(6) { color: #f472b6; background: #f472b6; animation-delay: 0.5s; }
.sl-king-disco-splash__lights span:nth-child(7) { color: #a3e635; background: #a3e635; animation-delay: 0.15s; }

.sl-king-disco-splash__crown {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.55));
}

.sl-king-disco-splash__kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fcd34d;
  margin-bottom: 4px;
}

.sl-king-disco-splash__name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff7ed;
  line-height: 1.2;
  word-break: break-word;
}

.sl-king-disco-splash__tokens {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fde68a;
}

@keyframes slKingDiscoIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes slKingDiscoOut {
  to { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.94); }
}

@keyframes slKingDiscoBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Enhanced goal bar */
.sl-room-goal-bar {
  bottom: 56px;
}

.sl-room-goal-bar-pct {
  flex: 0 0 auto;
  min-width: 44px;
  text-align: right;
  font-weight: 800;
  color: #86efac;
  font-size: 12px;
}

body.sl-room-live-premium-active.has-sl-room-promo .sl-room-goal-bar {
  bottom: 112px;
}

/* Chat quick actions (legacy 2-button grid). Pinned engagement cards use
   .sl-room-pinned-cards and must stay a column — see legacy-theme-reset. */
.sl-room-chat-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 10px 0;
}

.sl-room-chat-quick.sl-room-pinned-cards {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
}

.sl-room-chat-quick button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--sl-premium-border);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sl-room-chat-quick button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.sl-room-chat-quick button.is-private {
  color: #fde68a;
}

.sl-room-chat-quick button.is-tip {
  color: #86efac;
}

/* Tip messages in chat */
.sl-room-tip-event {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  margin: 4px 0;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  font-size: 13px;
}

.sl-room-tip-event .user {
  color: #93c5fd;
  font-weight: 700;
}

.sl-room-tip-event .action {
  color: #cbd5e1;
}

.sl-room-tip-event .amount {
  color: #4ade80;
  font-weight: 800;
}

.sl-room-tip-event .menu-item {
  color: #fde68a;
  font-size: 12px;
}

.sl-room-tip-event .sl-room-tip-menu-ref {
  flex-basis: 100%;
  color: #fde68a;
  font-size: 12px;
  font-weight: 600;
}

.sl-room-tip-event .sl-room-tip-menu-ref i {
  margin-right: 4px;
  opacity: 0.85;
}

.sl-chat-user-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.sl-room-tip-event .sl-chat-user-badges {
  flex-basis: auto;
  margin-left: 0;
}

.sl-chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sl-chat-badge.is-king {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
}

.sl-chat-badge.is-vip {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.12);
}

.sl-chat-badge.is-league .sl-chat-badge-level {
  font-size: 9px;
}

.sl-room-chip.likes {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.12);
}

.sl-room-chip.likes i {
  color: #fb7185;
}

#messages li .from + .sl-chat-user-badges {
  margin-right: 2px;
}

.sl-room-tip-event-wrap {
  list-style: none;
}

.sl-room-tip-event-wrap .sl-room-tip-event {
  width: 100%;
}

/* Tip drawer */
.sl-room-tip-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100060;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sl-room-tip-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sl-room-tip-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100061;
  width: min(100vw, 380px);
  background: linear-gradient(180deg, #0f121a 0%, #0a0c12 100%);
  border-left: 1px solid var(--sl-premium-border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(104%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  color: #e2e8f0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.sl-room-tip-drawer.is-open {
  transform: translateX(0);
}

.sl-room-tip-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--sl-premium-border);
}

.sl-room-tip-drawer-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
}

.sl-room-tip-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--sl-premium-border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.sl-room-tip-drawer-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px 18px 18px;
}

.sl-room-tip-table-head,
.sl-room-tip-table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.sl-room-tip-table-head {
  padding: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sl-room-tip-table-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.sl-room-tip-table-row:hover,
.sl-room-tip-table-row.is-selected {
  background: rgba(34, 197, 94, 0.06);
}

.sl-room-tip-table-row .activity {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.sl-room-tip-table-row .tokens {
  font-size: 13px;
  font-weight: 800;
  color: #86efac;
}

.sl-room-tip-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.sl-room-tip-presets button {
  flex: 1 1 calc(33.333% - 8px);
  min-width: 72px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font-weight: 700;
  cursor: pointer;
}

.sl-room-tip-presets button.is-active {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.sl-room-tip-custom label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.sl-room-tip-custom input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--sl-premium-border);
  background: rgba(0, 0, 0, 0.35);
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
}

.sl-room-tip-drawer-foot {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sl-premium-border);
  background: rgba(0, 0, 0, 0.25);
}

.sl-room-tip-send-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669 0%, #22c55e 100%);
  color: #052e16;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.sl-room-tip-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sl-room-tip-balance {
  margin-top: 10px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

.sl-room-tip-balance strong {
  color: #f8fafc;
}

.sl-room-tip-balance .need-more {
  color: #4ade80;
  font-weight: 700;
}

.sl-room-tip-balance a {
  color: #fde68a;
  font-weight: 700;
}

.sl-room-tip-drawer-promo {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Private modal */
.sl-room-private-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100070;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sl-room-private-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sl-room-private-modal {
  width: min(100%, 920px);
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 20px;
  background: linear-gradient(145deg, #141824 0%, #0b0d14 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sl-room-private-backdrop.is-open .sl-room-private-modal {
  transform: translateY(0) scale(1);
}

.sl-room-private-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--sl-premium-border);
}

.sl-room-private-model {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sl-room-private-model img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.sl-room-private-model h3 {
  margin: 0;
  font-size: 18px;
  color: #f8fafc;
}

.sl-room-private-badge {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fde68a;
  font-size: 11px;
  font-weight: 800;
}

.sl-room-private-rating {
  text-align: right;
  font-size: 13px;
  color: #cbd5e1;
}

.sl-room-private-rating strong {
  display: block;
  font-size: 22px;
  color: #fbbf24;
}

.sl-room-private-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--sl-premium-border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 20px;
}

.sl-room-private-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 22px;
}

.sl-room-private-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sl-premium-border);
}

.sl-room-private-card.is-exclusive {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.sl-room-private-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
}

.sl-room-private-icon.standard {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.sl-room-private-icon.exclusive {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #111827;
}

.sl-room-private-vip-tagline {
  margin: 0 0 10px;
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sl-room-private-card.is-group {
  border-color: rgba(250, 204, 21, 0.35);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.08), rgba(18, 21, 31, 0.96));
}

.sl-room-private-card.is-group .sl-room-private-icon.group {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #1a1204;
}

.sl-room-private-card h4 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #f8fafc;
}

.sl-room-private-card.is-exclusive h4 {
  color: #fde68a;
}

.sl-room-private-rateline {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 12px;
}

.sl-room-private-rateline strong {
  font-size: 18px;
  color: #f8fafc;
  font-weight: 800;
}

.sl-room-private-card.is-exclusive .sl-room-private-rateline strong {
  color: #fde68a;
}

.sl-room-private-addons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}

.sl-room-private-addons:empty {
  display: none;
}

.sl-room-addon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: #e2e8f0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sl-room-addon:hover {
  border-color: rgba(251, 191, 36, 0.4);
}

.sl-room-addon input {
  accent-color: #fbbf24;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.sl-room-addon.is-included {
  cursor: default;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.sl-room-addon-name {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
}

.sl-room-addon-name i {
  width: 15px;
  text-align: center;
  color: #a78bfa;
}

.sl-room-addon-price {
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}

.sl-room-addon-inc {
  font-style: normal;
  font-weight: 700;
  color: #34d399;
}

.sl-room-private-start {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 14px;
}

.sl-room-private-card:not(.is-exclusive) .sl-room-private-start {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
}

.sl-room-private-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #cbd5e1;
}

.sl-room-private-perks span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-room-private-activities {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
}

.sl-room-private-card.is-exclusive .sl-room-private-activities {
  border-color: rgba(251, 191, 36, 0.18);
}

.sl-room-private-foot {
  padding: 0 22px 20px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  text-align: center;
}

/* Bottom promo banner */
.sl-room-promo-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100054;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 55%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
}

.sl-room-promo-bar[hidden] {
  display: none !important;
}

.sl-room-promo-bar .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sl-room-promo-bar .copy {
  flex: 1 1 auto;
  min-width: 0;
}

.sl-room-promo-bar .copy strong {
  display: block;
  font-size: 14px;
}

.sl-room-promo-bar .copy span {
  font-size: 12px;
  opacity: 0.92;
}

.sl-room-promo-bar .cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: #fbbf24;
  color: #111827;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.sl-room-promo-bar .dismiss {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  cursor: pointer;
}

/* Tip banners already emitted by VideoChat — premium styling */
.chatWindow .chatRoom #messages li.system .tip-banner-inner,
.chatWindow .chatRoom #messages .tip-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  font-size: 13px;
  color: #cbd5e1;
}

.chatWindow .chatRoom #messages .tip-banner-inner {
  font-weight: 600;
}

body.sl-room-live-premium-active .chatWindow .chatRoom .message {
  position: relative;
}

body.sl-room-live-premium-active .chatWindow .chatRoom .message #sendMessage {
  border-radius: 999px;
  min-width: 42px;
  min-height: 42px;
}

@media (max-width: 860px) {
  .sl-room-private-grid {
    grid-template-columns: 1fr;
  }

  .sl-room-king-chip {
    max-width: min(150px, 40vw);
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  .sl-room-offline-bottom-bar .sl-room-king-chip {
    margin-right: 6px !important;
  }

  .sl-king-disco-splash {
    bottom: 54px;
    width: min(160px, calc(100% - 40px));
    max-width: 160px;
  }

  .sl-room-promo-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .sl-room-tip-drawer {
    width: 100vw;
  }
}

/* ---- Interactive games (Play & Win: Wheel of Fortune / Dice) ---- */
.sl-room-chat-quick button.is-games {
  color: #fbbf24;
}

/* General hide toggle — applies to the desktop chat CTA button AND the
   unified-shell (mobile/tablet) action-bar games entries until a game is found. */
.sl-games-hidden {
  display: none !important;
}

.sl-room-games-drawer .sl-room-games-intro {
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 14px;
}

.sl-room-games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sl-room-game {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sl-premium-border, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.sl-room-game h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sl-room-wheel-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
}

.sl-room-wheel-pointer {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 17px solid #fbbf24;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.sl-room-wheel {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.25);
  transition: transform 4.5s cubic-bezier(0.14, 0.72, 0.14, 1);
  background: #0f1524;
}

.sl-room-die {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1b2540, #0f1524);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: #60a5fa;
}

.sl-room-die.rolling {
  animation: slRoomDieShake 0.5s linear infinite;
}

@keyframes slRoomDieShake {
  0% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
  100% { transform: rotate(-12deg); }
}

.sl-room-game-result {
  min-height: 20px;
  font-weight: 800;
  font-size: 13px;
  color: #fde68a;
  margin-bottom: 12px;
}

.sl-room-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
}

.sl-room-game-btn:hover {
  filter: brightness(1.08);
}

.sl-room-game-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── "Go Ultimate to chat privately" upsell (shown in the Private modal to
   logged-in members who are not Ultimate). Additive, dark-theme consistent. ── */
.sl-room-private-upsell {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 13px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(219, 39, 119, 0.22));
  border: 1px solid rgba(168, 85, 247, 0.45);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.sl-room-private-upsell:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.sl-room-private-upsell-ic {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #facc15, #f59e0b);
}
.sl-room-private-upsell-tx {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
}
.sl-room-private-upsell-tx strong {
  display: block;
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
}
.sl-room-private-upsell-tx span {
  display: block;
  color: #e2d8f7;
  font-size: 12px;
  margin-top: 2px;
}
.sl-room-private-upsell-cta {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  padding: 9px 15px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Minimum-duration surface on private tier cards (upfront-charged floor). */
.sl-room-private-min{
  margin:2px 0 8px;font-size:12px;font-weight:600;color:#fbbf24;
  display:flex;align-items:center;gap:6px;line-height:1.3;
}
.sl-room-private-min i{opacity:.9;}
.sl-room-private-min strong{color:#fde68a;font-weight:800;}

/* "Buy a Private as a gift" link in the private modal footer. */
.sl-room-private-gift{text-align:center;margin:6px 0 2px;}
.sl-room-private-gift-link{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 16px;border-radius:999px;
  background:rgba(124,58,237,.14);border:1px solid rgba(124,58,237,.45);
  color:#c4b5fd;font-weight:700;font-size:13px;text-decoration:none;
  transition:background .15s,color .15s;
}
.sl-room-private-gift-link:hover{background:rgba(124,58,237,.28);color:#fff;}
.sl-room-private-gift-link i{color:#a78bfa;}
