/* =================================================================
   BAGSANDGO HEADER STYLES - PROFESSIONAL & MODERN
   ================================================================= */

:root {
  /* Header Colors */
  --header-primary: linear-gradient(135deg, #0984e3, #74b9ff);
  --header-accent: linear-gradient(135deg, #ff6b6b, #ee5a24);
  --header-success: linear-gradient(135deg, #00b894, #55efc4);
  
  /* Background Colors */
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-bg-solid: rgba(255, 255, 255, 0.98);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --mobile-bg: rgba(255, 255, 255, 0.99);
  
  /* Text Colors */
  --header-text: #2d3436;
  --header-text-light: #636e72;
  --header-text-white: #ffffff;
  --header-link-hover: #0984e3;
  
  /* Spacing */
  --header-height: 80px;
  --banner-height: 40px;
  --container-padding: 20px;
  
  /* Shadows */
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --dropdown-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --mobile-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --header-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --fast-transition: all 0.2s ease;
}

/* =================================================================
   PROMOTIONAL BANNER
   ================================================================= */

a.language-toggle {
    color: #000;
}

a.language-toggle:hover {
    color: #fff;
}


.header-promo-banner {
  background: var(--banner-bg);
  background-color: #1746FF;
  height: var(--banner-height);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: var(--header-transition);
  text-decoration: none;
  cursor: pointer;
}

.header-promo-banner:hover {
  background-color: #1540E6;
  transform: scale(1.005);
}

.promo-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.promo-ticker {
  display: flex;
  animation: scroll-left 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--header-text-white);
  font-weight: 600;
  font-size: 14px;
  margin-right: 120px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  flex-shrink: 0;
  min-width: max-content;
}

.promo-icon {
  font-size: 16px;
  animation: bounce 3s ease-in-out infinite;
  display: inline-block;
  line-height: 1;
}



@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-16.666667%); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}

/* =================================================================
   MAIN HEADER
   ================================================================= */

.bagsandgo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--header-transition);
}

.header-main {
  background: transparent;
  height: var(--header-height);
  position: fixed;
  top: var(--banner-height);
  left: 0;
  right: 0;
  z-index: 1001;
  box-shadow: none;
  transition: var(--header-transition);
}

.header-main.scrolled {
  background-color: rgb(0 0 0 / 70%) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
  z-index: 1002 !important;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* =================================================================
   LOGO SECTION
   ================================================================= */

.header-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.logo-link {
  display: block;
  transition: var(--fast-transition);
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-tagline {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 700;
  color: var(--header-text);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tagline-line {
  background: var(--header-primary);
  -webkit-background-clip: text;
    -webkit-text-fill-color: #f57d01;
  background-clip: text;
}

/* =================================================================
   DESKTOP NAVIGATION
   ================================================================= */

/* Ensure navigation is visible by default */
.header-nav {
  opacity: 1;
  visibility: visible;
}

/* Navigation items base styling */
.nav-item {
  position: relative;
  display: inline-block;
}

.nav-item.has-dropdown {
  position: relative;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  flex: 1;
  justify-content: center;
}

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--header-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 0;
  transition: var(--fast-transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--header-primary);
  transition: var(--fast-transition);
}

.nav-link:hover {
  color: var(--header-link-hover);
}

.nav-link:focus {
  outline: 2px solid var(--header-link-hover);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  width: 100%;
}

.nav-arrow {
  transition: var(--fast-transition);
}

.nav-item.open .nav-arrow {
  transform: rotate(180deg);
}

/* =================================================================
   DROPDOWN MENUS
   ================================================================= */

.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-15px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1002;
  border: 1px solid rgba(74, 144, 226, 0.15);
  min-width: 320px;
  pointer-events: none;
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

/* Mantener el dropdown visible cuando se hace hover sobre él */
.nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-content {
  padding: 25px;
  min-width: 300px;
}

/* Services Dropdown */
.services-dropdown .dropdown-content {
  min-width: 350px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border-radius: 12px;
  transition: var(--fast-transition);
  text-decoration: none;
  color: var(--header-text);
  border: 1px solid transparent;
}

.service-icon {
  width: 40px;
  height: 40px;
  background: var(--header-primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.service-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--header-text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.service-content p {
  font-size: 14px;
  color: var(--header-text-light);
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.service-price-header {
  font-size: 14px;
  font-weight: 800;
  color: var(--header-primary);
  background: rgba(9, 132, 227, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

/* Locations Dropdown */
.locations-dropdown .dropdown-content {
  min-width: 400px;
}

/* Dropdown section titles */
.dropdown-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--header-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 12px 0 8px 0;
  padding: 0 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 6px;
}

.dropdown-section-title:first-child {
  margin-top: 0;
}

.header-location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 10px;
  transition: var(--fast-transition);
  text-decoration: none;
  color: var(--header-text);
  margin-bottom: 8px;
}

.header-location-item:hover {
  background: rgba(74, 144, 226, 0.08);
  color: var(--header-primary);
}

.header-location-icon {
  width: 35px;
  height: 35px;
  background: #fbead9;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.location-info h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.location-info span {
  font-size: 13px;
  color: var(--header-text-light);
  line-height: 1.2;
}

/* Simple dropdown for other items */
.simple-dropdown .dropdown-content {
  min-width: 220px;
  padding: 20px 0;
}

.dropdown-item {
  display: block;
  padding: 12px 25px;
  color: var(--header-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--fast-transition);
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background: rgba(74, 144, 226, 0.08);
  color: var(--header-primary);
  border-left-color: var(--header-primary);
}

.dropdown-item i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}



.service-item:hover {
  background: rgba(9, 132, 227, 0.05);
  border-color: rgba(9, 132, 227, 0.15);
  box-shadow: 0 2px 8px rgba(9, 132, 227, 0.1);
}

.service-item:hover .service-icon {
  background: rgba(9, 132, 227, 0.9);
  transform: scale(1.02);
}

.service-item:hover .service-content h3 {
  color: var(--header-primary);
}

.service-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.service-link {
  text-decoration: none;
  color: inherit;
}

.service-link h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: var(--header-text);
  transition: var(--fast-transition);
}

.service-link p {
  font-size: 13px;
  color: var(--header-text-light);
  margin: 0;
}

.service-item:hover .service-link h3 {
  color: #0984e3;
}

.service-price-header {
  font-size: 18px;
  font-weight: 700;
  color: #0984e3;
  margin-top: 8px;
}

.service-promo,
.service-features {
  font-size: 11px;
  font-weight: 600;
  color: #ff6b6b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
  margin: 15px 0;
}

/* Locations Dropdown */
.locations-dropdown .dropdown-content {
  min-width: 400px;
}

.header-locations-grid {
  display: flex !important;           /* enforce rows, not grid */
  flex-direction: column !important;  /* stack rows vertically */
  gap: 8px;
  margin-top: 0;
}

.header-location-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--header-text);
  transition: var(--fast-transition);
  font-size: 14px;
  font-weight: 500;
}

/* New compact row layout: Title + actions */
.header-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: var(--fast-transition);
  border: 1px solid transparent;
  white-space: nowrap; /* keep all content in a single line */
}

.header-location-row:hover {
  background: rgba(74, 144, 226, 0.08);
  border-color: rgba(74, 144, 226, 0.15);
}

.header-location-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;           /* take remaining space */
  min-width: 0;      /* allow text truncation */
}

/* Truncate long location titles gracefully */
.header-location-info h5,
.header-location-info .location-title,
.header-location-info .header-location-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ensure the name itself can shrink and truncate */
.header-location-name {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.location-actions {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;     /* prevent wrapping of action buttons */
}

.loc-action {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  transition: var(--fast-transition);
  white-space: nowrap; /* keep label in one line */
}

.loc-action.transfer {
  background: rgba(9, 132, 227, 0.08);
  color: #0984e3;
}

.loc-action.storage {
  background: #FFF4E8;
  color: #ff6b00;
}

.loc-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.header-location-item:hover {
  background: rgba(9, 132, 227, 0.08);
  transform: translateX(3px);
  color: #0984e3;
}

.header-location-icon {
  font-size: 16px;
}

.dropdown-footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 15px;
  text-align: center;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0984e3;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--fast-transition);
}

.view-all-link:hover {
  gap: 10px;
  color: #ff6b6b;
}

/* =================================================================
   HEADER ACTIONS
   ================================================================= */

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
}

.current-language,
.language-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--header-text);
  font-weight: 600;
  font-size: 13px;
  transition: var(--fast-transition);
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.current-language:hover,
.language-toggle:hover {
  background: rgba(9, 132, 227, 0.12);
  border-color: #0984e3;
  color: #0984e3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.15);
}

.current-language img,
.language-toggle img {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Main CTA Button */
.header-cta {
  position: relative;
}

span.nav-text {
    color: #fff;
}

.cta-button-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--header-accent);
    color: #fff !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    background: #f57d01;
    font-weight: 700;
    font-size: 14px;
    transition: var(--fast-transition);
    position: relative;
    overflow: visible;
}


.cta-button-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.cta-text {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.cta-price {
  font-size: 16px;
  font-weight: 800;
}

.cta-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ffd700;
  color: #d63031;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 12px;
  animation: pulse 2s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.6);
  z-index: 10;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 2px solid #333333;
  padding: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 9999;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mobile-menu-toggle:hover {
  background: #f0f0f0;
  border-color: #1746FF;
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: #333333;
  display: block;
  border-radius: 2px;
  border-radius: 2px;
  transition: var(--fast-transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* =================================================================
   MOBILE MENU
   ================================================================= */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  min-height: 100vh; /* Fallback */
  background: var(--mobile-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--mobile-shadow);
  transition: var(--header-transition);
  z-index: 1003;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  overscroll-behavior: contain; /* Prevent background scroll */
}

.mobile-menu.open {
  right: 0;
  background: #00000082;
}

.mobile-menu-header {
display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgb(255 152 44);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #fff !important;
    background: none!important;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--fast-transition);
}

.mobile-menu-close:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.mobile-menu-content {
  padding: 20px;
  padding-bottom: 40px; /* Extra space at bottom for scroll */
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: calc(100vh - 80px); /* Ensure content fills available space */
  min-height: calc(100dvh - 80px); /* Dynamic viewport height */
}

.mobile-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #fff !important;
    padding-bottom: 8px;
    border-bottom: 2px solid #fff0;
    background: var(--header-primary);
    -webkit-background-clip: text;
    background-clip: text;
    border-bottom-color: #ffffff;
}

.mobile-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-service {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--header-text);
  transition: var(--fast-transition);
      border: 1px solid rgb(255 255 255 / 10%);
}

.mobile-service:hover {
  background: rgba(9, 132, 227, 0.05);
  border-color: #0984e3;
  transform: translateX(5px);
}

.mobile-service-icon {
  font-size: 24px;
}

.mobile-service-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color:#fff;
}

.mobile-service-content p {
  font-size: 13px;
  color: #fff;
  margin: 0;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff!important;
  font-weight: 500;
  transition: var(--fast-transition);
}

.mobile-link:hover {
  background: rgba(9, 132, 227, 0.08);
  color: #0984e3;
  transform: translateX(3px);
}

.mobile-link-icon {
  font-size: 18px;
}

/* Mobile CTA Section */
.mobile-cta-section {
    padding-top: 20px;
    border-top: 2px solid rgb(255 255 255 / 10%);
}

.mobile-cta-button {
  display: block;
  background: var(--header-accent);
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  transition: var(--fast-transition);
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

.mobile-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.mobile-cta-text {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.mobile-cta-badge {
  font-size: 12px;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.mobile-contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 2px solid #0984e3;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  transition: var(--fast-transition);
  background: rgba(9, 132, 227, 0.05);
}

.mobile-contact-btn:hover {
  background: #0984e3;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

.mobile-contact-btn.whatsapp {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.05);
}

.mobile-contact-btn.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  color:#fff;
  align-items: flex-start;
  text-align: left;
}

.contact-label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-number {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height */
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--fast-transition);
  z-index: 1002;
  overscroll-behavior: none; /* Prevent background scroll */
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  -webkit-overflow-scrolling: touch;
}

/* Additional mobile menu improvements for Chrome mobile */
.mobile-menu::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Ensure mobile menu stays on top of everything */
.mobile-menu.open {
  z-index: 9999;
}

.mobile-menu-overlay.open {
  z-index: 9998;
}

/* =================================================================
   HEADER SPACER
   ================================================================= */

.header-spacer {
  height: calc(var(--header-height) + var(--banner-height));
  transition: var(--header-transition);
}

.header-spacer.banner-hidden {
  height: var(--header-height);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 1024px) {
  .header-nav {
    gap: 25px;
  }
  
  .logo-tagline {
    display: none;
  }
  
  .header-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --banner-height: 35px;
    --container-padding: 15px;
  }
  
  .header-nav,
  .language-switcher {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 9999 !important;
    position: relative !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(23, 70, 255, 0.3) !important;
    order: 2 !important;
    flex-shrink: 0 !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  }
  
  .mobile-menu-toggle:hover {
    background: rgba(23, 70, 255, 0.1) !important;
    border-color: rgba(23, 70, 255, 0.6) !important;
    transform: scale(1.05) !important;
  }
  
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  
  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 0 12px !important;
  }
  
  .header-logo {
    flex-shrink: 1 !important;
  }
  
  .logo-tagline {
    display: none !important;
  }
  
  .hamburger-line {
    background: #333333 !important;
    height: 3px !important;
    width: 20px !important;
    display: block !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-menu-toggle:hover .hamburger-line {
    background: #1746FF !important;
  }
  
  .header-container {
    gap: 15px;
  }
  
  .logo-img {
    height: 30px;
  }
  
  .header-cta {
    flex-shrink: 0 !important;
    margin-right: 8px !important;
  }
  
  .cta-button-header {
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 25px !important;
    gap: 4px !important;
    justify-content: center !important;
  }
  
  .cta-text {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  
  .cta-price {
    display: none !important;
  }
  
  .cta-badge {
    top: -6px !important;
    right: -6px !important;
    font-size: 8px !important;
    padding: 2px 4px !important;
  }
  
  .ticker-item {
    font-size: 12px;
  }
}

/* =================================================================
   MOBILE LANGUAGE SELECTOR STYLES
   ================================================================= */

.mobile-language-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-language-title {
  font-size: 16px;
  font-weight: 700;
     color: #ffffff !important;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-language-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-language-option {
display: flex;
    align-items: center;
    color: #fff !important;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid rgb(0 0 0 / .1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--header-text);
    font-weight: 500;
    font-size: 14px;
    transition: var(--fast-transition);
    background: rgb(255 255 255 / .5);
    flex: 1;
    justify-content: center;
}

.mobile-language-option:hover {
  border-color: #0984e3;
  background: rgba(9, 132, 227, 0.05);
  transform: translateY(-1px);
}

.mobile-language-option.active {
  border-color: #0984e3;
  background: #0984e3;
  color: white;
  font-weight: 700;
}

.mobile-language-option img {
  border-radius: 3px;
  object-fit: cover;
}

/* Enhanced Mobile CTA Section */
.mobile-cta-section {
  padding-top: 20px;
  border-top: 2px solid #fff;
}

.mobile-cta-button {
  width: 100%;
background:#ffffff;
  margin-bottom: 20px;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(9, 132, 227, 0.3);
}

.mobile-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(9, 132, 227, 0.4);
}
  
  .promo-close {
    right: 15px;
    width: 26px;
    height: 26px;
  }


@media (max-width: 480px) {
  .mobile-menu {
    width: 280px;
    /* Ensure full height coverage on small screens */
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none;
  }
  
  .mobile-menu-content {
    padding: 15px;
    padding-bottom: 60px; /* Extra space for very small screens */
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
  }
  
  .mobile-menu-overlay {
    /* Ensure overlay covers everything on small screens */
    height: 100vh !important;
    height: 100dvh !important;
  }
  
  .header-container {
    padding: 0 10px !important;
    gap: 6px !important;
  }
  
  .mobile-menu-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
  }
  
  .hamburger-line {
    width: 18px !important;
  }
  
  .cta-button-header {
    padding: 8px 12px;
  }
  
  .header-actions {
    gap: 10px;
  }
  
  /* Additional fixes for scroll issues */
  body.mobile-menu-open {
    height: 100vh !important; 
    height: 100dvh !important;
  }
}

