/* Shared Responsive Layout, Unified Header, Payment Banner, Footer & FABs */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Unified Single-Line Desktop Header (1180px - 1920px) */
.header-wrapper {
  background: #004aad;
  color: #ffffff;
  padding: 14px 24px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 74, 173, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.header-left a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.header-left img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  animation: none !important;
}

.site-title {
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
}

.menu-flags {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.menu-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.menu-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 18px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.menu-links a:hover,
.menu-links a.active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.flag-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.2rem;
  line-height: 1;
}

.flag-switch a {
  text-decoration: none;
  transition: transform 0.2s;
}

.flag-switch a:hover {
  transform: scale(1.2);
}

.header-right {
  flex: 0 0 auto;
  text-align: right;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: nowrap;
}

.header-right a {
  color: #ffffff;
  text-decoration: none;
}

/* Compact Desktop Fit (1081px - 1380px, incl. 1180px & 1280px) */
@media (max-width: 1380px) {
  .header-wrapper {
    padding: 12px 14px;
    gap: 8px;
  }
  .header-left img {
    height: 40px;
    width: 40px;
  }
  .site-title {
    font-size: 1.1rem;
  }
  .menu-links {
    gap: 2px;
  }
  .menu-links a {
    font-size: 0.8rem;
    padding: 5px 7px;
  }
  .header-right {
    font-size: 0.74rem;
    line-height: 1.4;
  }
}

/* Tablet & Mobile Header (<= 1080px) */
@media (max-width: 1080px) {
  .header-wrapper {
    flex-direction: column;
    flex-wrap: nowrap;
    text-align: center;
    gap: 12px;
    padding: 16px 14px;
  }
  .header-left {
    justify-content: center;
  }
  .site-title {
    font-size: 1.3rem;
  }
  .menu-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .menu-links a {
    font-size: 0.86rem;
    padding: 6px 10px;
  }
  .header-right {
    text-align: center;
    white-space: normal;
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* Unified Sub-Bar (SIREN + Lab + QR) */
.sub-bar,
.top-widgets {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  max-width: 100%;
  width: 100%;
  margin: 0;
  border-radius: 0;
  gap: 12px;
  box-sizing: border-box;
}

.siren-badge {
  font-weight: 800;
  color: #004aad;
  font-size: 0.92rem;
  white-space: nowrap;
}

.sub-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sub-bar-label {
  font-size: 0.84rem;
  color: #475569;
  font-weight: 600;
}

.qr-badge img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  vertical-align: middle;
  display: block;
}

@media (max-width: 768px) {
  .sub-bar,
  .top-widgets {
    flex-direction: row !important;
    padding: 8px 14px;
    gap: 8px;
  }
  .sub-bar-label {
    display: none;
  }
}

/* Responsive Grids — prevent 320px/330px min-width overflow on 375-390px viewports */
.pay-methods-grid,
.gallery-grid,
.products-grid,
.calc-grid,
.grid-cards,
.steps-grid,
.lab-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)) !important;
}

.bank-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)) !important;
}

.adv-card-light {
  max-width: 100%;
}

@media (max-width: 600px) {
  .pay-card-light,
  .bank-box,
  .calc-card,
  .contact-box,
  .hero-neon-box,
  .hero-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
  .wrap,
  .pay-container,
  .gallery-container,
  .market-container,
  .calc-container,
  .adv-container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .animated-title {
    font-size: 1.85rem !important;
  }
}

/* Payment Trust Banner (compact replacement for stretched revolut image) */
.payment-trust-bar {
  max-width: 960px;
  margin: 24px auto 12px;
  padding: 16px 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 74, 173, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}

.payment-trust-bar img.revolut-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.pay-trust-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-trust-pill {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Unified Footer & Non-Overlapping Fixed Controls */
footer {
  background: #004aad;
  color: #ffffff;
  text-align: center;
  padding: 24px 18px 28px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 40px;
}

footer a {
  color: #bae6fd;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.whatsapp-button,
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
}

.facebook-fab {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 999;
}

.scroll-top {
  position: fixed;
  right: 26px;
  left: auto !important;
  bottom: 162px;
  width: 46px;
  height: 46px;
  z-index: 998;
}

@media (max-width: 900px) {
  footer {
    padding-bottom: 96px;
  }
}
