.footer {
  border-top: 1px solid rgba(103, 146, 188, 0.24);
  background: rgba(6, 14, 29, 0.58);
  color: var(--txt, #eef6ff);
  opacity: 1;
  filter: none;
  padding: clamp(26px, 3vw, 36px) 0 18px;
}

.footer__inner {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
}

.footer > .container {
  width: min(1680px, calc(100% - clamp(40px, 12.5vw, 240px))) !important;
}

.footer__services-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-inline: auto;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(103, 146, 188, 0.18);
}

.footer__section-head {
  display: block;
}

.footer__section-head h2 {
  margin: 0;
  color: currentColor;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.footer__service-col {
  display: grid;
  gap: 5px;
  align-content: start;
  min-height: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(103, 146, 188, 0.22);
  border-radius: 15px;
  background: rgba(11, 25, 46, 0.28);
}

.footer__service-col a {
  color: var(--muted-2, var(--muted2, #9fb8d1));
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.footer__service-col a:hover,
.footer__group a:hover,
.footer__legal-btn:hover {
  color: var(--accent-cyan, #19d2ff);
}

.footer__service-col .footer__service-title {
  margin-bottom: 1px;
  color: currentColor;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer__info-row {
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(103, 146, 188, 0.18);
}

.footer__info-row > .footer__brand {
  flex: 1 1 520px;
  min-width: 0;
}

.footer__info-row > .footer__group {
  flex: 0 0 clamp(130px, 12vw, 190px);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  color: inherit;
  text-decoration: none;
}

.footer__brand-text {
  display: grid;
  gap: 2px;
}

.footer__brand-text strong {
  color: currentColor;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.footer__brand-text span {
  color: var(--muted-2, var(--muted2, #9fb8d1));
  font-size: 12px;
  line-height: 1.35;
}

.footer__group {
  display: grid;
  gap: 7px;
  align-content: start;
}

.footer__group h2 {
  margin: 0 0 2px;
  color: currentColor;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__group a,
.footer__legal-btn,
.footer__vat {
  color: var(--muted-2, var(--muted2, #9fb8d1));
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.footer__legal-btn {
  display: inline-flex;
  width: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin: 0;
  padding: 0;
  appearance: none;
  font-family: inherit;
  font-weight: inherit;
  text-align: left;
}

.footer__bottom {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted-2, var(--muted2, #9fb8d1));
  font-size: 12px;
}

.footer__location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: inherit;
}

.footer__dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(115, 152, 194, 0.58);
  flex: 0 0 3px;
}

.footer__service-col a:focus-visible,
.footer__group a:focus-visible,
.footer__legal-btn:focus-visible {
  outline: 2px solid rgba(25, 210, 255, 0.72);
  outline-offset: 3px;
  border-radius: 10px;
}

html[data-zx-theme="hub"] .footer,
html[data-zx-theme="web"] .footer {
  border-top-color: rgba(95, 125, 165, 0.2);
  background: rgba(255, 255, 255, 0.68);
  color: var(--foreground-color, #0b1a2c);
}

html[data-zx-theme="hub"] .footer__services-panel,
html[data-zx-theme="hub"] .footer__info-row,
html[data-zx-theme="web"] .footer__services-panel,
html[data-zx-theme="web"] .footer__info-row {
  border-color: rgba(95, 125, 165, 0.2);
}

html[data-zx-theme="hub"] .footer__service-col,
html[data-zx-theme="web"] .footer__service-col {
  border-color: rgba(95, 125, 165, 0.24);
  background: rgba(255, 255, 255, 0.46);
}

html[data-zx-theme="hub"] .footer__service-col a,
html[data-zx-theme="hub"] .footer__brand-text span,
html[data-zx-theme="hub"] .footer__group a,
html[data-zx-theme="hub"] .footer__legal-btn,
html[data-zx-theme="hub"] .footer__vat,
html[data-zx-theme="hub"] .footer__bottom,
html[data-zx-theme="hub"] .footer__location,
html[data-zx-theme="web"] .footer__service-col a,
html[data-zx-theme="web"] .footer__brand-text span,
html[data-zx-theme="web"] .footer__group a,
html[data-zx-theme="web"] .footer__legal-btn,
html[data-zx-theme="web"] .footer__vat,
html[data-zx-theme="web"] .footer__bottom,
html[data-zx-theme="web"] .footer__location {
  color: rgba(80, 98, 128, 0.92);
}

html[data-zx-theme="ai"] .footer,
html[data-zx-theme="trading"] .footer {
  background: rgba(6, 14, 29, 0.72) !important;
  color: #eef6ff !important;
}

html[data-zx-theme="ai"] .footer__service-col,
html[data-zx-theme="trading"] .footer__service-col {
  background: rgba(11, 25, 46, 0.32) !important;
}

html[data-zx-theme="ai"] .footer__service-col a,
html[data-zx-theme="ai"] .footer__brand-text span,
html[data-zx-theme="ai"] .footer__group a,
html[data-zx-theme="ai"] .footer__legal-btn,
html[data-zx-theme="ai"] .footer__vat,
html[data-zx-theme="ai"] .footer__bottom,
html[data-zx-theme="ai"] .footer__location,
html[data-zx-theme="trading"] .footer__service-col a,
html[data-zx-theme="trading"] .footer__brand-text span,
html[data-zx-theme="trading"] .footer__group a,
html[data-zx-theme="trading"] .footer__legal-btn,
html[data-zx-theme="trading"] .footer__vat,
html[data-zx-theme="trading"] .footer__bottom,
html[data-zx-theme="trading"] .footer__location {
  color: rgba(178, 205, 232, 0.94);
}

.cmp-backdrop[hidden],
.chat-overlay[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .footer__services-grid,
  .footer__info-row,
  .footer__bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer__info-row > .footer__brand,
  .footer__info-row > .footer__group {
    flex-basis: auto;
  }
}

/* Shared floating AI CTA: keep access visible without competing with footer/navigation. */
.contact-fabs .fab--chat-pill {
  width: 86px;
  height: 52px;
  min-width: 0;
  border-radius: 18px;
  gap: 10px;
  padding: 0 14px;
  border-color: rgba(103, 146, 188, 0.42);
  background: linear-gradient(135deg, rgba(11, 25, 46, 0.42), rgba(25, 210, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(103, 146, 188, 0.16), 0 10px 24px rgba(2, 8, 18, 0.18);
  opacity: 0.9;
}

.contact-fabs .fab--chat-pill .fab__icon {
  width: 22px;
  height: 22px;
}

.contact-fabs .fab--chat-pill .fab__label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.35px;
}

html[data-zx-theme="hub"] .contact-fabs .fab--chat-pill,
html[data-zx-theme="web"] .contact-fabs .fab--chat-pill {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(56, 189, 248, 0.14));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.16), 0 10px 24px rgba(17, 40, 77, 0.1);
}

@media (max-width: 640px) {
  .contact-fabs .fab--chat-pill {
    width: 78px;
    height: 48px;
    border-radius: 16px;
  }

  .contact-fabs .fab--chat-pill .fab__icon {
    width: 20px;
    height: 20px;
  }

  .contact-fabs .fab--chat-pill .fab__label {
    font-size: 11px;
  }
}
