.dropdown-toggle::after {
  display: none;
}

.top-header {
  background: #004968;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.top-header-left i {
  font-size: 1rem;
}

.top-header-right {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.1s;
  font-size: 1rem;
}

.social-link:hover {
  background: white;
  color: #f97316;
  transform: translateY(-2px);
}

.main-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: #f97316;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: #ea580c;
}

.logo i {
  font-size: 2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: #f97316;
}

.nav-link.active {
  color: #f97316;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-toggle i.arrow {
  font-size: 0.875rem;
  transition: transform 0.1s;
}

.dropdown-toggle.active i.arrow {
  transform: rotate(180deg);
}

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 0.5rem;
  /* border-top transparente cria uma "ponte" invisível sobre o gap,
     impedindo que o mouse perca o hover ao passar do botão pro menu */
  border-top: 0.5rem solid transparent;
  background-clip: padding-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.1s;
  z-index: 1000;
}

.dropdown-menu-custom.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item-custom {
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  transition: all 0.1s;
  font-weight: 500;
}

.dropdown-item-custom:hover {
  background: #f97316;
  color: white;
}

.dropdown-item-custom i {
  font-size: 1.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header .btn-assinar {
  background: #f97316;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.1s;
  white-space: nowrap;
}

header .btn-assinar:hover {
  transform: translateY(-2px);
  color: white;
}

.btn-area-cliente {
  background: white;
  color: #374151;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.1s;
  border: 2px solid #e5e7eb;
  white-space: nowrap;
}

.btn-area-cliente:hover {
  border-color: #f97316;
  color: white;
  background: #f97316;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #374151;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn:hover {
  color: #f97316;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  transition: right 0.1s;
  z-index: 2000;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #374151;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  padding: 1rem;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover {
  background: #fef3c7;
  color: #f97316;
}

.mobile-dropdown {
  /* border-bottom: 1px solid #f3f4f6; */
}

.mobile-dropdown-toggle {
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  color: #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.1s;
}

.mobile-dropdown-toggle:hover {
  background: #fef3c7;
  color: #f97316;
}

.mobile-dropdown-toggle i.arrow {
  transition: transform 0.1s;
}

.mobile-dropdown-toggle.active i.arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.1s;
  padding-left: 1rem;
}

.mobile-dropdown-content.show {
  max-height: 500px;
}

.mobile-dropdown-item {
  padding: 0.875rem 1rem;
  color: #6b7280;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  transition: all 0.1s;
}

.mobile-dropdown-item:hover {
  background: #f9fafb;
  color: #f97316;
}

.mobile-menu-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  transition: opacity 0.1s;
}

.menu-overlay.active {
  opacity: 1;
}

.bottom-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.bottom-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.bottom-nav-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bottom-nav-link:hover {
  color: #f97316;
  background: white;
}

.bottom-nav-link i {
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 1rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  header .btn-assinar,
  .btn-area-cliente {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
  }
}

/* Breakpoint mais cedo para mobile - 992px ao invés de 768px */
@media (max-width: 992px) {
  .top-header-left span {
    display: none;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .bottom-header {
    display: none;
  }
}

@media (max-width: 768px) {
  .bottom-nav {
    gap: 1rem;
  }

  .bottom-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .top-header {
    font-size: 0.75rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .social-link {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  .bottom-nav {
    gap: 0.5rem;
  }

  .bottom-nav-link {
    font-size: 0.8rem;
  }
}

/* ===== ASSINE JÁ DROPDOWN ===== */

.assine-dropdown-menu {
  min-width: 420px;
  max-width: 450px;
  padding: 0;
  right: auto;
  left: 0;
}

.assine-header {
  background: linear-gradient(135deg, #004968 0%, #0077aa 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px 12px 0 0;
}

.assine-header h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.assine-section {
  padding: 1.25rem 1.5rem;
}

.assine-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.assine-section-title i {
  font-size: 1.1rem;
  color: #004968;
}

.assine-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assine-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: #f9fafb;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.assine-item:hover {
  background: #e0f2fe;
  border-color: #004968;
  transform: translateX(4px);
}

.assine-item i {
  font-size: 1.5rem;
  color: #004968;
  flex-shrink: 0;
}

.assine-item:hover i {
  transform: scale(1.1);
}

.assine-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.assine-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.assine-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

.assine-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0 1.5rem;
}

.assine-footer {
  padding: 1rem 1.5rem;
  background: #fef3c7;
  border-radius: 0 0 12px 12px;
  text-align: center;
}

.assine-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.assine-footer i {
  font-size: 1.1rem;
  color: #f97316;
}

.assine-footer .link-ligamos {
  color: #f97316;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.3s;
}

.assine-footer .link-ligamos:hover {
  color: #ea580c;
}

/* ===== MOBILE ASSINE JÁ ===== */

.mobile-assine-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #004968;
  padding: 0.75rem 1rem;
  background: #e0f2fe;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.mobile-assine-section {
  margin-bottom: 1rem;
}

.mobile-assine-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  padding-left: 0.5rem;
}

.mobile-assine-title i {
  font-size: 1rem;
  color: #004968;
}

.mobile-assine-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: #f9fafb;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.mobile-assine-item:hover {
  background: #e0f2fe;
  border-color: #004968;
}

.mobile-assine-item i {
  font-size: 1.35rem;
  color: #004968;
  flex-shrink: 0;
}

.mobile-assine-item div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.mobile-assine-item span {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
}

.mobile-assine-item strong {
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 700;
}

.mobile-assine-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 1rem 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .assine-dropdown-menu {
    min-width: 380px;
  }
}

@media (max-width: 992px) {
  .assine-dropdown-menu {
    display: none;
  }
}

/* ===== ÁREA DO CLIENTE DROPDOWN ===== */

.area-cliente-dropdown {
  min-width: 420px;
  max-width: 450px;
  padding: 0;
  right: 0;
  left: auto;
}

.area-cliente-content {
  padding: 1.5rem;
}

.area-section {
  margin-bottom: 1rem;
}

.area-section:last-child {
  margin-bottom: 0;
}

.area-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.25rem;
}

.area-title i {
  font-size: 1.35rem;
  color: #004968;
}

.app-buttons {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
}

.app-btn {
  display: block;
  transition: all 0.3s;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1f2937;
}

.app-btn img {
  height: 48px;
  width: auto;
  display: block;
  transition: all 0.3s;
}

.app-btn:hover {
  transform: translateY(-3px);
}

.app-btn:hover img {
  filter: brightness(1.1);
}

.area-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 1.5rem 0;
}

.btn-portal-web {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: #004968;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: 2px solid #004968;
}

.btn-portal-web:hover {
  background: #0077aa;
  border-color: #0077aa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 73, 104, 0.3);
  color: white;
}

.btn-portal-web i {
  font-size: 1.25rem;
}

/* ===== MOBILE ÁREA DO CLIENTE ===== */

.mobile-area-section {
  margin-bottom: 1rem;
}

.mobile-area-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 1rem;
  text-transform: uppercase;
  padding-left: 0.5rem;
}

.mobile-area-title i {
  font-size: 1rem;
  color: #004968;
}

.mobile-app-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0 0.5rem;
  flex-direction: column;
}

.mobile-app-btn {
  background-color: #1f2937;
  display: block;
  transition: all 0.3s;
  border-radius: 8px;
  overflow: hidden;
}

.mobile-app-btn img {
  height: 44px;
  width: auto;
  display: block;
}

.mobile-app-btn:hover {
  transform: scale(1.05);
}

.mobile-area-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 1rem 0;
}

.mobile-portal-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #004968;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.mobile-portal-btn:hover {
  background: #0077aa;
  transform: translateX(4px);
  color: white;
}

.mobile-portal-btn i:first-child {
  font-size: 1.35rem;
}

.mobile-portal-btn i:last-child {
  font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .area-cliente-dropdown {
    min-width: 380px;
  }
}

@media (max-width: 992px) {
  .area-cliente-dropdown {
    display: none;
  }
}

/* Adicionar ao header.css existente */

/* ===== FIX DROPDOWN OVERLAP ===== */

/* Garante que dropdowns fiquem acima de tudo */
.dropdown-menu-custom {
  z-index: 9999 !important;
}

/* Fecha dropdown quando perde o foco */
.nav-dropdown:not(:hover) .dropdown-menu-custom {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  pointer-events: none !important;
}

/* Mostra dropdown no hover */
.nav-dropdown:hover .dropdown-menu-custom {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: all !important;
}

/* Rotaciona seta no hover */
.nav-dropdown:hover .dropdown-toggle i.arrow {
  transform: rotate(180deg);
}

/* Mantém dropdown aberto enquanto mouse está sobre ele */
.dropdown-menu-custom:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* ===== FIX MOBILE APP BUTTONS ===== */

.mobile-app-buttons {
  flex-direction: row !important;
  gap: 0.5rem !important;
}

.mobile-app-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.mobile-app-btn img {
  height: 20px !important;
  width: auto !important;
  margin: 0 auto !important;
}

/* ===== FIX DESKTOP APP BUTTONS ===== */

.app-btn {
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-btn img {
  height: 44px !important;
}

/* ===== REMOVE TRANSITIONS CONFLITANTES ===== */

.dropdown-menu-custom {
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease !important;
}

/* ===== FIX DROPDOWN OVERFLOW (impede scroll horizontal) ===== */

/* Todos os dropdowns abrem alinhados à direita do botão */
.dropdown-menu-custom {
  left: auto !important;
  right: 0 !important;
}

/* Assine Já: garante que não ultrapasse a borda esquerda da tela */
.assine-dropdown-menu {
  right: 0 !important;
  left: auto !important;
}
