/* ============================================================================
 * VN69 EDITION EXCLUSIVE STYLES (Scoped 100% under body.vn69-edition)
 * - Hides all full-body stage hostesses (#view-lobby, #floating-companion, #viproom-hostess-dock)
 * - Preserves 60FPS Anti-iOS-Player <canvas> (#shortv-canvas & #cinema-canvas)
 * - Adds Top 2-Tier Content Gate Switcher & Multi-Companion Messenger Chat Heads
 * ============================================================================ */

body.vn69-edition #view-lobby,
body.vn69-edition #floating-companion,
body.vn69-edition #viproom-hostess-dock,
body.vn69-edition #tt-btn-hostess-profile,
body.vn69-edition [data-exp-mode="lobby"],
body.vn69-edition [data-exp-mode="viproom"] {
  display: none !important;
}

/* Push top tabs slightly lower so the Vn69 Mode Switcher sits cleanly above */
body.vn69-edition #shortv-top-tabs {
  top: calc(env(safe-area-inset-top, 0px) + 46px) !important;
}

/* Hide adult filter tabs while in Clean Mode */
body.vn69-edition.vn69-clean-active #shortv-top-tabs .tt-live-tv-badge,
body.vn69-edition.vn69-clean-active #shortv-top-tabs [data-tt-feed="sugar baby"],
body.vn69-edition.vn69-clean-active #shortv-top-tabs [data-tt-feed="ntr"],
body.vn69-edition.vn69-clean-active #shortv-top-tabs [data-tt-feed="việt nam"],
body.vn69-edition.vn69-clean-active #shortv-top-tabs [data-tt-feed="x18"],
body.vn69-edition.vn69-clean-active #search-sheet-tabs [data-s-tab="livestream"],
body.vn69-edition.vn69-clean-active #search-sheet-tabs [data-s-tab="main"],
body.vn69-edition.vn69-clean-active #search-sheet-tabs [data-s-tab="vip"],
body.vn69-edition.vn69-clean-active #search-sheet-tabs [data-s-tab="zo3x"] {
  display: none !important;
}

/* Top 2-Tier Content Source Switcher Bar */
.vn69-top-mode-bar {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(9, 12, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
  max-width: calc(100vw - 16px);
  white-space: nowrap;
}

.vn69-mode-pill {
  appearance: none;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.vn69-mode-pill.active-normal {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.45);
}

.vn69-mode-pill.active-adult {
  background: linear-gradient(135deg, #f43f5e, #d946ef);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(244, 63, 94, 0.5);
}

.vn69-login-unlock-btn {
  appearance: none;
  border: 1px solid rgba(245, 185, 66, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(244, 63, 94, 0.25));
  color: #fde68a;
  font-size: 11.8px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  animation: vn69PulseGlow 2.4s infinite ease-in-out;
}

.vn69-safe-shield-btn {
  appearance: none;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
}

@keyframes vn69PulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 14px 2px rgba(244, 63, 94, 0.42); }
}

/* ============================================================================
 * MESSENGER MULTI-CHAT HEADS (Draggable Bubble + Multi-Girl Simultaneous Tabs)
 * ============================================================================ */
.vn69-messenger-root {
  position: fixed;
  z-index: 2400;
  pointer-events: none;
  inset: 0;
}

.vn69-chat-head-bubble {
  pointer-events: auto;
  position: fixed;
  right: 12px;
  bottom: 132px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2.5px solid #ec4899;
  background: radial-gradient(circle at 30% 30%, #1e293b, #090d16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(236, 72, 153, 0.45);
  cursor: grab;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  transition: transform 0.16s ease;
}

.vn69-chat-head-bubble:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.vn69-ch-main-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.vn69-ch-mini-stack {
  position: absolute;
  left: -6px;
  bottom: -3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #090d16;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.vn69-ch-online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #090d16;
}

.vn69-ch-unread-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #090d16;
}

.vn69-ch-unread-badge.hidden {
  display: none !important;
}

.vn69-ch-label {
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 13, 22, 0.88);
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #fbcfe8;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Messenger Chat Window */
.vn69-messenger-window {
  pointer-events: auto;
  position: fixed;
  right: 14px;
  bottom: 72px;
  width: min(375px, calc(100vw - 20px));
  height: min(510px, calc(100dvh - 130px));
  background: linear-gradient(180deg, rgba(15, 20, 34, 0.97), rgba(9, 12, 22, 0.98));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(236, 72, 153, 0.34);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vn69-messenger-window.hidden {
  display: none !important;
}

/* Top Messenger Chat Heads Strip (Switch between multiple girls simultaneously) */
.vn69-heads-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.vn69-heads-strip::-webkit-scrollbar {
  display: none;
}

.vn69-head-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
  position: relative;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
}

.vn69-head-avatar-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  transition: all 0.16s ease;
}

.vn69-head-tab.active .vn69-head-avatar-ring {
  border-color: #ec4899;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.55);
  transform: translateY(-1px);
}

.vn69-head-tab.active {
  color: #fdf2f8;
}

.vn69-head-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.vn69-head-group-icon {
  font-size: 19px;
}

.vn69-head-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
}

.vn69-head-badge {
  position: absolute;
  top: -3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vn69-win-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vn69-win-title-col strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
}

.vn69-win-title-col span {
  font-size: 11px;
  color: #34d399;
}

.vn69-win-close-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.vn69-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vn69-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 90%;
}

.vn69-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.vn69-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(236, 72, 153, 0.45);
}

.vn69-msg-bubble {
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 12.8px;
  line-height: 1.48;
  color: #f1f5f9;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vn69-msg-row.user .vn69-msg-bubble {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  border: none;
}

.vn69-msg-sender {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #f472b6;
  margin-bottom: 2px;
}

.vn69-rec-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 7px;
}

.vn69-rec-btn {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #bae6fd;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.vn69-chips-row {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vn69-chips-row::-webkit-scrollbar {
  display: none;
}

.vn69-quick-chip {
  appearance: none;
  border: 1px solid rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.1);
  color: #fbcfe8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}

.vn69-input-form {
  display: flex;
  gap: 6px;
  padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: rgba(9, 12, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vn69-input-form input {
  flex: 1;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.vn69-input-form button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0 14px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
