/* ==========================================
   MODERN HEADER - CSS Component
   Componente reutilizável para header
   ========================================== */

/* ==========================================
   CSS VARIABLES (se não definidas)
   ========================================== */
:root {
  /* Colors */
  --hd-primary: #ff7933;
  --hd-primary-hover: #e66a2a;
  --hd-primary-light: #fff5f0;
  --hd-primary-subtle: #ffe8dc;
  --hd-text-heading: #4e5159;
  --hd-text-primary: #4e5159;
  --hd-text-secondary: #4e5159;
  --hd-text-tertiary: #6b7280;
  --hd-bg-white: #ffffff;
  --hd-border-light: #e5e7eb;
  
  /* Typography */
  --hd-font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hd-text-xs: 11px;
  --hd-text-sm: 13px;
  --hd-text-base: 15px;
  --hd-text-lg: 17px;
  --hd-text-xl: 20px;
  
  /* Font weights */
  --hd-font-normal: 400;
  --hd-font-medium: 500;
  --hd-font-semibold: 600;
  --hd-font-bold: 700;
  
  /* Spacing */
  --hd-space-1: 4px;
  --hd-space-2: 8px;
  --hd-space-3: 12px;
  --hd-space-4: 16px;
  --hd-space-5: 20px;
  --hd-space-6: 24px;
  --hd-space-8: 32px;
  
  /* Border radius */
  --hd-radius-sm: 4px;
  --hd-radius-md: 8px;
  --hd-radius-lg: 12px;
  --hd-radius-xl: 16px;
  
  /* Transitions */
  --hd-transition-fast: 0.15s ease;
  --hd-transition-base: 0.2s ease;
}

/* ==========================================
   GLOBAL FOCUS STYLES
   ========================================== */
.modern-topbar a:focus-visible,
.modern-topbar button:focus-visible,
.modern-header a:focus-visible,
.modern-header button:focus-visible,
.modern-nav a:focus-visible,
.modern-nav button:focus-visible,
.modern-megamenu a:focus-visible,
.modern-mobile-menu a:focus-visible,
.modern-mobile-menu button:focus-visible,
.modern-search-overlay input:focus-visible,
.modern-search-overlay button:focus-visible {
  outline: 2px solid var(--hd-primary);
  outline-offset: 2px;
}

/* Remove default outline for non-keyboard users */
.modern-topbar a:focus:not(:focus-visible),
.modern-topbar button:focus:not(:focus-visible),
.modern-header a:focus:not(:focus-visible),
.modern-header button:focus:not(:focus-visible),
.modern-nav a:focus:not(:focus-visible),
.modern-nav button:focus:not(:focus-visible),
.modern-megamenu a:focus:not(:focus-visible),
.modern-mobile-menu a:focus:not(:focus-visible),
.modern-mobile-menu button:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================
   TOPBAR
   ========================================== */
.modern-topbar {
  background: #f8f9fa;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #e5e7eb;
  font-family: var(--hd-font-sans);
}

.modern-topbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.modern-topbar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.modern-topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4e5159;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.modern-topbar__item:hover {
  color: #0a0a0a;
}

.modern-topbar__item svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.modern-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modern-topbar__link {
  color: #4e5159;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.modern-topbar__link:hover {
  color: #0a0a0a;
}

.modern-topbar__cta {
  background: #4e5159;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  border: 1px solid transparent;
}

.modern-topbar__cta:hover {
  background: #ff7933;
  color: #fff !important;
}

/* Search button in topbar */
.modern-topbar__search {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s ease;
}

.modern-topbar__search svg {
  width: 16px;
  height: 16px;
}

.modern-topbar__search:hover {
  color: #374151;
}

.modern-topbar__search:hover svg {
  color: #374151;
}

/* Login in topbar */
.modern-topbar__login {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4e5159;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.modern-topbar__login svg {
  width: 16px;
  height: 16px;
}

.modern-topbar__login:hover {
  color: #374151;
}

.modern-topbar__login:hover svg {
  color: #374151;
}

/* ==========================================
   TOPBAR DROPDOWNS
   ========================================== */
.modern-topbar__dropdown {
  position: relative;
}

.modern-topbar__dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px 8px;
  color: #4e5159;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: var(--hd-font-sans);
}

.modern-topbar__dropdown-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.modern-topbar__dropdown-btn:hover {
  color: #0a0a0a;
}

.modern-topbar__dropdown:hover .modern-topbar__dropdown-btn svg {
  transform: rotate(180deg);
}

.modern-topbar__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 1100;
}

.modern-topbar__dropdown:hover .modern-topbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modern-topbar__dropdown-item {
  display: block;
  padding: 8px 14px;
  color: #374151;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.modern-topbar__dropdown-item:hover {
  background: #f3f4f6;
  color: #0a0a0a;
}

/* ==========================================
   TOPBAR MEGAMENUS
   ========================================== */
.modern-topbar__megamenu-item {
  position: relative;
}

.modern-topbar__megamenu-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 10px 12px; /* Aumentado para min 44px de altura */
  min-height: 44px; /* Touch target mínimo */
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  font-family: var(--hd-font-sans);
}

.modern-topbar__megamenu-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.modern-topbar__megamenu-btn:hover {
  color: #0a0a0a;
  background: rgba(0, 0, 0, 0.04);
}

.modern-topbar__megamenu-item:hover .modern-topbar__megamenu-btn svg,
.modern-topbar__megamenu-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.modern-topbar__megamenu {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px; /* Espaço visual, mas mantém área de hover contínua */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1100;
}

/* Ponte invisível para manter hover ao mover o mouse para o megamenu */
.modern-topbar__megamenu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  height: 8px;
}

.modern-topbar__megamenu-item:hover .modern-topbar__megamenu,
.modern-topbar__megamenu-item:focus-within .modern-topbar__megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.modern-topbar__megamenu-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 16px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Ferramentas Megamenu - Layout Horizontal */
.modern-topbar__megamenu--tools {
  right: auto;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}

.modern-topbar__megamenu-item:hover .modern-topbar__megamenu--tools,
.modern-topbar__megamenu-item:focus-within .modern-topbar__megamenu--tools {
  transform: translateX(-50%) translateY(0);
}

.modern-topbar__megamenu--tools .modern-topbar__megamenu-wrapper {
  min-width: 620px !important;
  max-width: 700px;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px;
  padding: 20px;
}

.modern-topbar__megamenu--tools .modern-topbar__megamenu-link {
  flex: 0 0 calc(50% - 4px);
  min-width: 280px;
  box-sizing: border-box;
}

.modern-topbar__megamenu--tools .modern-topbar__megamenu-link--all {
  flex: 1 1 100%;
  margin-top: 8px;
  border-radius: 10px;
}

.modern-topbar__megamenu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.modern-topbar__megamenu-link:hover {
  background: #f9fafb;
}

/* Disabled links */
.modern-topbar__megamenu-link--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.modern-topbar__megamenu-link--disabled:hover {
  background: transparent;
}

.modern-topbar__megamenu-link--disabled .modern-topbar__megamenu-icon {
  opacity: 0.5;
}

/* Title styling (replacing h4) */
.modern-topbar__megamenu-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4e5159;
  margin: 0 0 2px;
}

.modern-topbar__megamenu-link--all {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 10px 10px;
}

.modern-topbar__megamenu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.modern-topbar__megamenu-icon svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
}

.modern-topbar__megamenu-link:hover .modern-topbar__megamenu-icon {
  background: #e5e7eb;
}

.modern-topbar__megamenu-link:hover .modern-topbar__megamenu-icon svg {
  color: #374151;
}

.modern-topbar__megamenu-icon--primary {
  background: var(--hd-primary-light);
}

.modern-topbar__megamenu-icon--primary svg {
  color: var(--hd-primary);
}

.modern-topbar__megamenu-link:hover .modern-topbar__megamenu-icon--primary {
  background: var(--hd-primary-subtle);
}

.modern-topbar__megamenu-content {
  flex: 1;
  min-width: 0;
}

.modern-topbar__megamenu-content h4 {
  font-size: 13px;
  font-weight: 600;
  color: #4e5159;
  margin: 0 0 2px;
}

.modern-topbar__megamenu-content p {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Topbar Divider */
.modern-topbar__divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  margin: 0 8px;
}

/* ==========================================
   MAIN HEADER - Sticky Glassmorphism
   ========================================== */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  font-family: var(--hd-font-sans);
}

.modern-header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.modern-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

/* Logo */
.modern-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.modern-header__logo img {
  height: 32px;
  width: auto;
}

.modern-header__logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.modern-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.modern-nav__item {
  position: relative;
  padding: 8px 16px;
  color: #4e5159;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.modern-nav__item--link {
  cursor: pointer;
}

.modern-nav__item--link:hover svg {
  transform: none;
}

.modern-nav__item-link {
  color: inherit;
  text-decoration: none;
}

.modern-nav__item:hover .modern-nav__item-link {
  color: #0a0a0a !important;
}

/* Nav item text (for dropdowns without link) */
.modern-nav__item-text {
  color: inherit;
  cursor: pointer;
}

.modern-nav__item:hover {
  color: #0a0a0a !important;
  background: rgba(0, 0, 0, 0.04);
}

.modern-nav__item--active {
  color: #0a0a0a !important;
  background: rgba(0, 0, 0, 0.04);
}

.modern-nav__item svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.modern-nav__item:hover svg {
  transform: rotate(180deg);
}

/* Nav item button (for Data Center dropdown) */
/* ==========================================
   MEGAMENU
   ========================================== */
.modern-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  padding-top: 12px; /* Espaço visual, mas mantém área de hover contínua */
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

/* Ponte invisível para manter hover ao mover o mouse para o megamenu */
.modern-megamenu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  height: 12px;
}

.modern-nav__item:hover .modern-megamenu,
.modern-nav__item:focus-within .modern-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.modern-megamenu__wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 24px;
  min-width: 600px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.modern-megamenu__wrapper--large {
  min-width: 800px;
  grid-template-columns: repeat(3, 1fr);
}

.modern-megamenu__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.modern-megamenu__item:hover {
  background: #f9fafb;
}

/* Disabled megamenu items */
.modern-megamenu__item--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.modern-megamenu__item--disabled:hover {
  background: transparent;
}

.modern-megamenu__item--disabled .modern-megamenu__icon {
  opacity: 0.5;
}
}

.modern-megamenu__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.modern-megamenu__icon svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.modern-megamenu__item:hover .modern-megamenu__icon {
  background: #e5e7eb;
}

.modern-megamenu__item:hover .modern-megamenu__icon svg {
  color: #374151;
}

.modern-megamenu__icon--purple {
  background: #f3f4f6;
}

.modern-megamenu__icon--purple svg {
  color: #6b7280;
}

.modern-megamenu__icon--green {
  background: #f3f4f6;
}

.modern-megamenu__icon--green svg {
  color: #6b7280;
}

.modern-megamenu__icon--orange {
  background: #f3f4f6;
}

.modern-megamenu__icon--orange svg {
  color: #6b7280;
}

.modern-megamenu__content {
  flex: 1;
}

.modern-megamenu__title {
  font-size: 14px;
  font-weight: 600;
  color: #4e5159;
  margin: 0 0 4px;
}

.modern-megamenu__desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================
   HEADER ACTIONS
   ========================================== */
.modern-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-header__search {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
}

.modern-header__search:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0a0a0a;
}

.modern-header__search svg {
  width: 18px;
  height: 18px;
}

.modern-header__login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #4e5159;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modern-header__login:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0a0a0a;
}

.modern-header__login svg {
  width: 18px;
  height: 18px;
}

.modern-header__cta {
  background: #0a0a0a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.modern-header__cta:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   MOBILE MENU TOGGLE
   ========================================== */
.modern-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.modern-header__toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.modern-header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #0a0a0a;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.modern-header__toggle span:nth-child(2) {
  margin: 6px 0;
}

/* Hide original header when using modern header */
.blog-modern-header .header {
  display: none !important;
}

/* ==========================================
   MOBILE MENU OVERLAY
   ========================================== */
.modern-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modern-mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.modern-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.modern-mobile-menu--open .modern-mobile-menu__panel {
  transform: translateX(0);
}

.modern-mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.modern-mobile-menu__close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modern-mobile-menu__close:hover {
  background: #f3f4f6;
}

.modern-mobile-menu__nav {
  padding: 16px 0;
}

.modern-mobile-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  min-height: 48px; /* Touch target adequado */
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.modern-mobile-menu__item:hover {
  background: #f9fafb;
}

.modern-mobile-menu__item--highlight {
  background: #f3f4f6;
  font-weight: 600;
}

.modern-mobile-menu__submenu {
  display: none;
  background: #f9fafb;
  padding: 8px 0;
}

.modern-mobile-menu__submenu--open {
  display: block;
}

.modern-mobile-menu__subitem {
  display: block;
  padding: 12px 20px 12px 36px;
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
}

.modern-mobile-menu__subitem:hover {
  color: #0a0a0a;
  background: #f3f4f6;
}

.modern-mobile-menu__cta {
  margin: 20px;
  display: block;
  text-align: center;
  background: #0a0a0a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* ==========================================
   SEARCH OVERLAY
   ========================================== */
.modern-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.modern-search-overlay--open {
  opacity: 1;
  visibility: visible;
}

.modern-search-overlay__container {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}

.modern-search-overlay__form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  gap: 16px;
}

.modern-search-overlay__icon {
  width: 24px;
  height: 24px;
  color: #9ca3af;
  flex-shrink: 0;
}

.modern-search-overlay__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  color: #0a0a0a;
  background: transparent;
  font-family: var(--hd-font-sans);
}

.modern-search-overlay__input::placeholder {
  color: #9ca3af;
}

.modern-search-overlay__close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modern-search-overlay__close:hover {
  background: #e5e7eb;
}

.modern-search-overlay__close svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
}

.modern-search-overlay__hint {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.modern-search-overlay__hint kbd {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
  .modern-nav {
    display: none;
  }
  
  /* Esconde megamenus completamente para evitar scroll horizontal */
  .modern-megamenu,
  .modern-topbar__megamenu {
    display: none !important;
  }
  
  .modern-header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .modern-header__login {
    display: none;
  }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
  .modern-topbar {
    display: none;
  }
  
  .modern-header__container {
    padding: 0 16px;
    height: 56px;
  }
  
  .modern-header__cta {
    padding: 8px 14px;
    font-size: 13px;
  }
}