/* GHplay+ Authentication & UI Enhancements */
#topbox-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #151829 0%, #090a0f 60%, #040508 100%);
  color: #f3f4f6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(20px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

#topbox-auth-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.topbox-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: topboxFloat 10s ease-in-out infinite alternate;
}

.topbox-bg-glow-2 {
  position: absolute;
  width: 450px;
  height: 450px;
  bottom: 10%;
  right: 15%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: topboxFloat 14s ease-in-out infinite alternate-reverse;
}

@keyframes topboxFloat {
  0% { transform: translate(-30px, -20px) scale(0.95); }
  100% { transform: translate(30px, 30px) scale(1.05); }
}

.topbox-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(18, 20, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(56, 189, 248, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 36px 32px;
  backdrop-filter: blur(32px);
  animation: topboxCardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

@keyframes topboxCardAppear {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.topbox-brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.topbox-brand-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.35);
  margin-bottom: 14px;
}

.topbox-brand-icon-wrap svg {
  width: 34px;
  height: 34px;
  fill: #38bdf8;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.6));
}

.topbox-brand-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 40%, #38bdf8 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
}

.topbox-brand-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 14px; /* play - smaller */
  font-weight: 600;
  margin-left: 2px;
  color: #ffffff; /* play - white */
  padding: 2px 6px;
  border-radius: 4px;
}

.topbox-brand-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 6px;
  letter-spacing: 0.2px;
}

/* Tabs */
.topbox-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.topbox-tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.topbox-tab-btn:hover {
  color: #ffffff;
}

.topbox-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* Form */
.topbox-form-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.topbox-form-pane.active {
  display: flex;
}

.topbox-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topbox-field-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
}

.topbox-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.topbox-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbox-input-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.topbox-input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  font-size: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.topbox-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.topbox-input-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 2;
}

.topbox-input-toggle:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.topbox-input-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Divisor e Botão Solicitar Acesso via WhatsApp */
.topbox-login-footer {
  margin-top: 18px;
}

.topbox-divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 14px 0 12px 0;
}

.topbox-divider-text::before,
.topbox-divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbox-divider-text span {
  padding: 0 10px;
}

.topbox-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.38);
  border-radius: 14px;
  color: #4ade80;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.topbox-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #22c55e;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.topbox-whatsapp-btn svg {
  flex-shrink: 0;
  color: #25d366;
  filter: drop-shadow(0 2px 6px rgba(37, 211, 102, 0.4));
}

.topbox-wa-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.topbox-wa-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.topbox-wa-phone {
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  line-height: 1.2;
}

.topbox-row-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}

.topbox-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.topbox-checkbox-label input {
  accent-color: #38bdf8;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.topbox-btn-submit {
  margin-top: 6px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.topbox-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -4px rgba(37, 99, 235, 0.65), 0 0 25px rgba(56, 189, 248, 0.4);
}

.topbox-btn-submit:active {
  transform: translateY(0);
}

.topbox-btn-vip {
  background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
  box-shadow: 0 8px 20px -4px rgba(147, 51, 234, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.topbox-btn-vip:hover {
  box-shadow: 0 12px 26px -4px rgba(147, 51, 234, 0.65), 0 0 25px rgba(192, 132, 252, 0.4);
}

.topbox-demo-hint {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: 14px;
  line-height: 1.5;
}

.topbox-demo-hint b {
  color: #38bdf8;
  font-weight: 600;
}

.topbox-auth-alert {
  display: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  align-items: center;
  gap: 8px;
}

.topbox-auth-alert.error {
  display: flex;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.topbox-auth-alert.success {
  display: flex;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* ========================================================
   Barra Topo Harmonization (evita quebra ou sobreposição)
   ======================================================== */
.barra-topo {
  width: min(1380px, calc(100vw - 20px)) !important;
  max-width: calc(100vw - 20px) !important;
  padding: 0 10px 0 12px !important;
  gap: 8px !important;
}

.barra-abas {
  gap: 2px !important;
}

.barra-abas button {
  padding: 0 11px !important;
  font-size: 0.83rem !important;
  gap: 5px !important;
}

.barra-direita {
  flex-shrink: 0 !important;
  gap: 6px !important;
}

/* ========================================================
   Remoções Solicitadas: Discord, Download e Ajustes da Barra Principal
   (Deixados exclusivamente no Painel do Dev)
   ======================================================== */
.barra-discord,
a.barra-discord,
[aria-label*="Discord"],
[title*="Discord"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.barra-engrenagem,
button.barra-engrenagem,
[aria-label="Ajustes"],
[title*="Ajustes"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.barra-abas button.destacada,
.barra-abas button[title*="Baixar app"],
.barra-abas button[data-rota="/app"],
.header-download-btn,
button.header-download-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Abas exclusivas do Dev no Painel Master iniciam ocultas para Master e Membro */
.dev-only-tab {
  display: none;
}

/* Oculta aviso de aplicativo nos canais de TV e no player para todos */
.aviso-app,
.aviso-app-botao,
[class*="aviso-app"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* A janela /app (página de download de aplicativos) SÓ O DEV PODE VER */
html:not(.is-dev) .app-download-page,
html:not(.is-dev) [class*="download-page"],
html:not(.is-dev) [class*="app-download"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ========================================================
   GHplay+ Top Navigation Account Item & Dropdown Submenu
   ======================================================== */
.topbox-account-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
  z-index: 1002;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Fallback se a barra ainda não foi montada */
.topbox-account-nav-item.topbox-nav-fallback {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 99999;
}

/* Botão Pill Integrado na Barra Superior */
.topbox-account-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 9999px;
  padding: 2px 8px 2px 3px;
  height: 34px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.topbox-account-pill-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.topbox-account-nav-item.open .topbox-account-pill-btn {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Avatar Pill */
.topbox-account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11.5px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.topbox-account-avatar.dev {
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.topbox-account-avatar.master {
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}

.topbox-account-avatar.member {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.6);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.topbox-account-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  max-width: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.topbox-account-chevron {
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  flex-shrink: 0;
}

.topbox-account-nav-item.open .topbox-account-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

/* ========================================================
   Submenu Dropdown Suspenso
   ======================================================== */
.topbox-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  max-width: min(280px, calc(100vw - 20px));
  background: rgba(13, 17, 28, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.92), 
              0 0 30px rgba(56, 189, 248, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 10px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.22s;
  pointer-events: none;
}

.topbox-account-nav-item.open .topbox-account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header do Dropdown */
.topbox-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 12px 8px;
}

.topbox-dropdown-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  flex-shrink: 0;
}

.topbox-dropdown-avatar.dev {
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.topbox-dropdown-avatar.master {
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.35);
}

.topbox-dropdown-avatar.member {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.3);
}

.topbox-dropdown-user-info {
  flex: 1;
  min-width: 0;
}

.topbox-dropdown-display-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbox-dropdown-username {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 1px;
}

.topbox-dropdown-badge-wrap {
  margin-top: 6px;
}

.topbox-dropdown-badge-wrap .topbox-role-badge {
  font-size: 10px;
  padding: 2.5px 7px;
  letter-spacing: 0.03em;
}

/* Divisor */
.topbox-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

/* Lista de Itens */
.topbox-dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.topbox-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  outline: none;
}

.topbox-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(3px);
}

.topbox-dropdown-item.master-highlight {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
}

.topbox-dropdown-item.master-highlight:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.topbox-dropdown-item.danger {
  color: #fca5a5;
}

.topbox-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.topbox-dd-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.topbox-dropdown-item:hover .topbox-dd-icon {
  background: rgba(255, 255, 255, 0.12);
}

.topbox-dropdown-item.master-highlight .topbox-dd-icon {
  background: rgba(56, 189, 248, 0.2);
}

.topbox-dropdown-item.danger .topbox-dd-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.topbox-dd-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbox-dd-title {
  font-size: 12.5px;
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
}

.topbox-dd-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.3;
}

.topbox-dropdown-item:hover .topbox-dd-desc {
  color: #cbd5e1;
}

.topbox-dropdown-item.danger .topbox-dd-desc {
  color: #fca5a5;
  opacity: 0.8;
}

/* Responsividade: Telas médias e Mobile */
@media (max-width: 1280px) {
  .topbox-account-name {
    display: none;
  }
  .topbox-account-pill-btn {
    padding: 2px 5px 2px 2px;
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .topbox-account-name {
    display: none;
  }
  .topbox-account-pill-btn {
    padding: 2px 4px 2px 2px;
    gap: 3px;
  }
  .topbox-account-dropdown {
    right: -10px;
    width: 260px;
    max-width: calc(100vw - 20px);
  }
}

/* Legacy overrides */
#topbox-user-header {
  display: none !important;
}

/* Brand Typography GHplay+ (GH maiúsculo maior + play branco menor) */
.ghplay-brand-title {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.02em;
}

.ghplay-brand-title .gh-part {
  font-size: 1.28em;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.55);
}

.ghplay-brand-title .play-part {
  font-size: 0.88em;
  font-weight: 700;
  color: #ffffff !important;
  opacity: 0.96;
  text-transform: lowercase;
  margin-left: 1px;
}

.ghplay-brand-title .plus-part {
  font-size: 1.12em;
  font-weight: 900;
  color: #38bdf8;
  margin-left: 1px;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

/* Nav Brand inside React Header */
.ghplay-brand-nav {
  display: inline-flex;
  align-items: baseline;
  margin-left: 2px;
}

.ghplay-brand-nav .gh-part {
  font-size: 1.22em;
  font-weight: 900;
  color: #38bdf8;
  text-transform: uppercase;
}

.ghplay-brand-nav .play-part {
  font-size: 0.9em;
  font-weight: 700;
  color: #ffffff !important;
  text-transform: lowercase;
}

.ghplay-brand-nav .plus-part {
  font-size: 1.1em;
  font-weight: 900;
  color: #38bdf8;
}

/* ========================================================
   Tela de Carregamento / Splash Inicial (Abertura)
   Remove a imagem e deixa apenas a escrita GHPlay+ pulsando
   ======================================================== */
.abertura {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at center, #0e172a 0%, #080a12 65%, #030408 100%) !important;
  z-index: 100000 !important;
}

/* Oculta qualquer imagem, svg, canvas ou arte da abertura */
.abertura canvas,
.abertura svg,
.abertura img,
.abertura .abertura-luz,
.abertura .abertura-logo {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Escrita GHPlay+ Pulsando Centralizada */
.abertura-brand-pulse {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  animation: ghAberturaPulse 1.6s ease-in-out infinite alternate;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.abertura-brand-pulse .gh-part {
  font-size: clamp(52px, 11vw, 92px);
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 35px rgba(56, 189, 248, 0.75), 0 0 75px rgba(56, 189, 248, 0.45);
}

.abertura-brand-pulse .play-part {
  font-size: clamp(38px, 8vw, 68px);
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.01em;
  margin-left: 2px;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.abertura-brand-pulse .plus-part {
  font-size: clamp(48px, 10vw, 84px);
  font-weight: 900;
  color: #38bdf8;
  margin-left: 2px;
  text-shadow: 0 0 35px rgba(56, 189, 248, 0.85), 0 0 70px rgba(99, 102, 241, 0.6);
}

/* Fallback com CSS puro se o JS ainda não tiver injetado o container */
.abertura::after {
  content: "GHPlay+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(48px, 10vw, 86px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 0 35px rgba(56, 189, 248, 0.85), 0 0 75px rgba(56, 189, 248, 0.5);
  pointer-events: none;
  animation: ghAberturaPulse 1.6s ease-in-out infinite alternate;
}

.abertura:has(.abertura-brand-pulse)::after {
  display: none !important;
}

@keyframes ghAberturaPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.93);
    opacity: 0.82;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
    filter: drop-shadow(0 0 45px rgba(56, 189, 248, 0.9)) drop-shadow(0 0 85px rgba(99, 102, 241, 0.5));
  }
  100% {
    transform: translate(-50%, -50%) scale(0.93);
    opacity: 0.82;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
  }
}

.topbox-badge-vip {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.topbox-btn-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.topbox-btn-icon:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

#topbox-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.spinning {
  animation: topboxSpin 1s linear infinite;
}

@keyframes topboxSpin {
  100% { transform: rotate(360deg); }
}

/* ========================================================
   Garantir Barra Superior Fixa e no Topo de Tudo
   ======================================================== */
.barra-topo {
  z-index: 9999 !important;
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
  pointer-events: auto !important;
}

.topbox-account-nav-item {
  z-index: 10005 !important;
}

/* ========================================================
   Janela de Músicas (GHplay+ Músicas Nativo)
   ======================================================== */
.musicas-tela {
  width: 100vw !important;
  min-height: 100vh !important;
  max-width: 100vw !important;
  padding-top: 76px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  background: #080b11 !important;
  overflow-y: auto !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Ocultação segura sem corromper o Virtual DOM do React */
.barra-discord,
a.barra-discord,
[aria-label*="Discord"],
[title*="Discord"],
.barra-engrenagem,
button.barra-engrenagem,
[aria-label="Ajustes"],
[title*="Ajustes"],
.aviso-app,
.aviso-app-botao,
[class*="aviso-app"],
.barra-abas button.destacada,
.barra-abas button[data-rota="/app"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ocultar downloads para não-devs */
body:not(.topbox-is-dev) a[href*="/app"],
body:not(.topbox-is-dev) a[href*="/tvbox"],
body:not(.topbox-is-dev) a[href*="/celular"],
body:not(.topbox-is-dev) a[href*="/windows"],
body:not(.topbox-is-dev) a[href*="/mac"],
body:not(.topbox-is-dev) .header-download-btn,
body:not(.topbox-is-dev) [data-rota="/app"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Destaque para a aba de Músicas - Sempre visível, nítida e nunca apagada */
.barra-abas button[title*="Músicas"],
.barra-abas button.barra-aba-musicas {
  opacity: 1 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.barra-abas button[title*="Músicas"][data-ativa="1"],
.barra-abas button[title*="Músicas"].on,
.barra-abas button.barra-aba-musicas[data-ativa="1"],
.barra-abas button.barra-aba-musicas.on {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(168, 85, 247, 0.35)) !important;
  border: 1px solid rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4) !important;
  border-radius: 18px !important;
}

.barra-abas button[title*="Músicas"][data-ativa="1"] svg,
.barra-abas button[title*="Músicas"].on svg,
.barra-abas button.barra-aba-musicas[data-ativa="1"] svg,
.barra-aba-musicas.on svg {
  color: #38bdf8 !important;
}





