/* ==========================================================================
   THEUZINHOTV - BARRA DE NAVEGAÇÃO GLOBAL (HEADER & MENU)
   ==========================================================================
   Componente global reutilizável em todas as páginas da plataforma:
   - Header fixo translúcido com efeito de scroll (GPU accelerated)
   - Logotipo oficial TheuzinhoTV
   - Navegação central (Início, Ao Vivo, Filmes, Séries, etc.)
   - Busca rápida expansível com dropdown de resultados instantâneos
   - Menu de perfil com avatar e dropdown
   - Menu lateral gaveta (drawer) para dispositivos móveis
   - Responsividade completa (desktop, tablet e celular)
   ========================================================================== */

/* ==========================================================================
   BARRA DE NAVEGAÇÃO FIXA (HEADER)
   ========================================================================== */
.main-header,
.main-header *,
.main-header *::before,
.main-header *::after,
.mobile-nav-drawer,
.mobile-nav-drawer *,
.mobile-nav-drawer *::before,
.mobile-nav-drawer *::after {
  box-sizing: border-box;
}

.main-header {
  position: fixed;
  top: var(--global-banner-height, 0px);
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  background: linear-gradient(180deg, rgba(6, 9, 15, 0.8) 0%, rgba(6, 9, 15, 0.4) 60%, transparent 100%);
  border: none;
  box-shadow: none;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
  transform: translateZ(0);
}

.main-header.header-scrolled {
  background: #06090f;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

/* Logotipo */
.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-brand, 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-text .brand-tv {
  color: var(--accent-blue, #0084ff);
  text-shadow: 0 0 16px rgba(var(--accent-rgb, 0, 132, 255), 0.5);
}

/* Menu Central com Ícone + Nome */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 8px);
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.nav-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.95;
  overflow: visible;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75));
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(var(--accent-rgb, 0, 132, 255), 0.14);
  border-color: rgba(var(--accent-rgb, 0, 132, 255), 0.3);
  text-shadow: 0 0 10px rgba(var(--accent-rgb, 0, 132, 255), 0.35);
}

.nav-link:hover svg {
  color: var(--accent-blue, #0084ff);
  transform: translateY(-1px);
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb, 0, 132, 255), 0.55));
}

.nav-link.active {
  color: #ffffff;
  background: rgba(var(--accent-rgb, 0, 132, 255), 0.2);
  border: 1px solid rgba(var(--accent-rgb, 0, 132, 255), 0.45);
  box-shadow: 0 0 16px rgba(var(--accent-rgb, 0, 132, 255), 0.3);
  text-shadow: 0 0 12px rgba(var(--accent-rgb, 0, 132, 255), 0.55);
}

.nav-link.active svg {
  color: var(--accent-blue, #0084ff);
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb, 0, 132, 255), 0.6));
}

/* Lado Direito: Busca Rápida & Perfil */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Lupa de Busca Rápida Expansível */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0;
  width: 42px;
  height: 42px;
  min-width: 42px;
  box-sizing: border-box;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.search-box:hover {
  background: rgba(var(--accent-rgb, 0, 132, 255), 0.12);
  border-color: rgba(var(--accent-rgb, 0, 132, 255), 0.4);
}

.search-box.expanded {
  width: 290px;
  background: rgba(14, 20, 32, 0.98);
  border-color: var(--accent-blue, #0084ff);
  box-shadow: 0 0 18px rgba(var(--accent-rgb, 0, 132, 255), 0.35);
  cursor: default;
}

.btn-search-trigger {
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.search-box:hover .btn-search-trigger,
.search-box.expanded .btn-search-trigger {
  color: var(--accent-blue, #0084ff);
}

.btn-search-trigger svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: block;
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
  font-size: 0.88rem;
  padding: 0 6px 0 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-box.expanded .search-input {
  opacity: 1;
  pointer-events: auto;
}

.search-input::placeholder {
  color: var(--text-muted, #64748b);
}

/* Botão Fechar / Limpar (X) */
.btn-search-clear {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: color 0.15s ease, background-color 0.15s ease, opacity 0.2s ease, transform 0.15s ease;
}

.search-box.expanded .btn-search-clear {
  opacity: 1;
  pointer-events: auto;
}

.btn-search-clear:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.btn-search-clear svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
  display: block;
}

/* Dropdown de Resultados da Busca Instantânea */
.search-results-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: 340px;
  max-height: 420px;
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  display: none;
  z-index: 1050;
  animation: fadeIn 0.2s ease;
}

.search-results-dropdown.visible {
  display: block;
}

.search-results-header {
  padding: 10px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
  cursor: pointer;
}

.search-result-item:hover {
  background: rgba(var(--accent-rgb, 0, 132, 255), 0.15);
}

.search-result-thumb {
  width: 42px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
  background: #182236;
  flex-shrink: 0;
}

.search-result-thumb.is-channel {
  object-fit: contain;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.search-result-info {
  flex: 1;
  overflow: hidden;
}

.search-result-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.74rem;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 0.86rem;
}

/* Área de Perfil do Usuário com Dropdown */
.profile-menu-container {
  position: relative;
}

.profile-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 4px;
  border-radius: 9999px;
  transition: transform 0.15s ease;
}

.profile-trigger-btn:hover {
  transform: scale(1.05);
}

.profile-avatar-thumb {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue, #0084ff);
  object-fit: cover;
  background: #141c2e;
  box-shadow: 0 0 10px rgba(var(--accent-rgb, 0, 132, 255), 0.3);
  -webkit-mask-image: radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), transparent 4.5px, #000 5.5px);
  mask-image: radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), transparent 4.5px, #000 5.5px);
}

.avatar-wrapper-rel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: #64748b;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.avatar-status-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.avatar-status-dot.offline {
  background: #64748b;
  box-shadow: none;
}

.profile-chevron-icon {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75));
  transition: transform 0.2s ease, color 0.2s ease;
}

.profile-trigger-btn:hover .profile-chevron-icon,
.profile-menu-container.open .profile-chevron-icon {
  color: var(--accent-blue, #0084ff);
}

.profile-menu-container.open .profile-chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Oculto do Perfil */
.profile-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 230px;
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  display: none;
  flex-direction: column;
  padding: 8px 0;
  z-index: 1050;
  animation: scaleUp 0.18s ease;
}

.profile-menu-container.open .profile-dropdown {
  display: flex;
}

.profile-dropdown-header {
  padding: 10px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

.profile-email {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-status-row {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.profile-plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb, 0, 132, 255), 0.15);
  border: 1px solid rgba(var(--accent-rgb, 0, 132, 255), 0.3);
  color: var(--accent-cyan, #38bdf8);
  font-size: 0.68rem;
  font-weight: 600;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-telemetry-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.66rem;
  color: var(--text-muted, #64748b);
}

.profile-telemetry-row .telemetry-value {
  color: #cbd5e1;
  font-weight: 500;
}

.profile-dropdown-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.profile-dropdown-item:hover:not(.item-danger),
.profile-dropdown-item.active {
  background: rgba(var(--accent-rgb, 0, 132, 255), 0.14);
  color: #ffffff;
}

.profile-dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
  overflow: visible;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.profile-dropdown-item:hover:not(.item-danger) svg,
.profile-dropdown-item.active svg {
  color: var(--accent-blue, #0084ff);
  opacity: 1;
}

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

.profile-dropdown-item.item-danger {
  color: var(--color-danger, #ef4444);
}

.profile-dropdown-item.item-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* Botão Mobile Hambúrguer */
.btn-mobile-menu {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.btn-mobile-menu svg {
  width: 24px;
  height: 24px;
}

/* Bloqueia rolagem da página secundária quando a gaveta mobile está aberta */
html.mobile-drawer-open,
body.mobile-drawer-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* Drawer / Menu Lateral Mobile */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  opacity: 0;
  overscroll-behavior: contain;
  touch-action: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-drawer.open {
  display: flex;
  opacity: 1;
}

.mobile-drawer-content {
  width: 260px;
  height: 100%;
  background: #090e18;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  margin-bottom: 14px;
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.mobile-nav-links .nav-link {
  font-size: 1.2rem;
  padding: 9px 12px;
  gap: 10px;
  justify-content: flex-start;
}

.mobile-nav-links .nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
  flex-shrink: 0;
}

.mobile-drawer-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-logout-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-logout-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mobile-logout-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

/* ==========================================================================
   RESPONSIVIDADE DO HEADER (TV / TABLETS / MOBILE)
   ========================================================================== */
@media (min-width: 901px) and (max-width: 1200px) {
  .main-header {
    padding: 0 24px;
  }

  .brand-text {
    font-size: 1.42rem;
  }

  .header-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 7px 10px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .nav-link svg {
    width: 15px;
    height: 15px;
  }

  .header-actions {
    gap: 12px;
  }

  .search-wrapper {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .search-box {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1060;
  }

  .search-box.expanded {
    width: min(300px, calc(100vw - 140px));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.85), 0 0 18px rgba(var(--accent-rgb, 0, 132, 255), 0.35);
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .main-header {
    padding: 0 18px;
  }

  .brand-text {
    font-size: 1.32rem;
  }

  .header-nav {
    gap: 2px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 0.8rem;
    gap: 5px;
  }

  .nav-link svg {
    width: 14px;
    height: 14px;
  }

  .header-actions {
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .main-header { padding: 0 20px; }
  .header-nav { display: none; }
  .btn-mobile-menu { display: flex; }
  .header-actions { gap: 12px; }

  .search-wrapper {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .search-box {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1060;
  }

  .search-box.expanded {
    width: min(280px, calc(100vw - 170px));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.85), 0 0 18px rgba(var(--accent-rgb, 0, 132, 255), 0.35);
  }
}

@media (max-width: 600px) {
  .main-header { padding: 0 16px; height: 64px; }
  .brand-text { font-size: 1.4rem; }
  .header-actions { gap: 10px; }

  .search-wrapper {
    width: 40px;
    height: 40px;
  }

  .search-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .btn-search-trigger {
    width: 38px;
    height: 38px;
  }

  .search-box.expanded {
    width: min(260px, calc(100vw - 152px));
  }

  .search-results-dropdown {
    position: fixed;
    top: 68px;
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 360px;
  }
}

/* Animações específicas dos menus e dropdowns */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   MODAL DE CONFIRMAÇÃO DE LOGOUT / DESCONEXÃO
   ========================================================================== */
.logout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}

.logout-modal-overlay.open {
  display: flex;
}

.logout-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg, 16px);
  padding: 34px 28px 26px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
  animation: scaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-close-logout-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.btn-close-logout-modal:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-close-logout-modal svg {
  width: 18px;
  height: 18px;
}

.logout-modal-icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.logout-modal-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.logout-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.logout-modal-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 8px;
}

.logout-modal-desc strong {
  color: #ffffff;
}

.logout-modal-subdesc {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
  margin: 0 0 24px;
}

.logout-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-logout-cancel {
  flex: 1;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-logout-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-logout-confirm {
  flex: 1;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--color-danger, #ef4444);
  border: 1px solid rgba(239, 68, 68, 0.8);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-logout-confirm:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5);
}

.btn-logout-confirm:active {
  transform: translateY(0);
}

.btn-logout-confirm.btn-loading {
  opacity: 0.75;
  cursor: wait;
}

/* Acessibilidade: foco visível via teclado e redução de movimento */
:is(
  .header-brand,
  .nav-link,
  .btn-search-trigger,
  .btn-search-clear,
  .profile-trigger-btn,
  .profile-dropdown-item,
  .btn-mobile-menu,
  .btn-close-drawer,
  .mobile-logout-btn,
  .btn-close-logout-modal,
  .btn-logout-cancel,
  .btn-logout-confirm
):focus-visible {
  outline: 2px solid var(--accent-blue, #0084ff);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .main-header,
  .nav-link,
  .nav-link svg,
  .search-box,
  .search-input,
  .btn-search-trigger,
  .btn-search-clear,
  .profile-trigger-btn,
  .profile-chevron-icon,
  .mobile-nav-drawer,
  .mobile-drawer-content,
  .mobile-logout-btn,
  .btn-logout-cancel,
  .btn-logout-confirm {
    transition: none;
  }

  .search-results-dropdown,
  .profile-dropdown,
  .logout-modal-overlay,
  .logout-modal-card {
    animation: none;
  }
}
