@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&display=swap');

:root {
  --mstec-bg:#f3f7fb;
  --mstec-white:#ffffff;
  --mstec-text:#16324e;
  --mstec-muted:#6b7f94;
  --mstec-line:rgba(15,35,62,.08);
  --mstec-dark:#08131f;
  --mstec-blue:#117bda;
  --mstec-blue-2:#2ab8ff;
  --mstec-blue-3:#0d5ca8;
  --mstec-soft:#eef6ff;
  --mstec-shadow:0 18px 55px rgba(7,23,43,.12);
  --mstec-shadow-soft:0 12px 30px rgba(17,123,218,.10);
}

.mstec-live-header,
.mstec-live-header * {
  box-sizing: border-box;
}

.mstec-live-header {
  direction: rtl;
  position: relative;
  z-index: 100000;
  font-family: "Alexandria", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mstec-text);
  background: transparent;
}

.mstec-live-header a {
  color: inherit;
  text-decoration: none;
}

.mstec-live-header img {
  max-width: 100%;
  display: block;
}

.mstec-live-header button {
  font-family: inherit;
}

.mstec-live-container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

/* Floating black notice */
.mstec-floating-wrap {
  padding: 12px 0 8px;
  background:
    radial-gradient(circle at top right, rgba(42,184,255,.08), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

.mstec-floating-bar {
  background: linear-gradient(180deg, rgba(8,19,31,.98), rgba(13,29,46,.98));
  color: #fff;
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: var(--mstec-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.mstec-floating-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(42,184,255,.10), transparent 16%),
    radial-gradient(circle at 80% 10%, rgba(42,184,255,.08), transparent 18%);
  pointer-events: none;
}

.mstec-floating-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #39b8ff;
  box-shadow:
    0 0 0 6px rgba(57,184,255,.10),
    0 0 18px rgba(57,184,255,.85);
  animation: mstecPulse 1.6s infinite ease-in-out;
  position: relative;
  z-index: 2;
  flex: 0 0 10px;
}

@keyframes mstecPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: .82; }
}

.mstec-floating-text {
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

/* Main header */
.mstec-site-head {
  padding: 8px 0 8px;
  background:
    radial-gradient(circle at top right, rgba(42,184,255,.08), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

.mstec-header-shell {
  background: linear-gradient(135deg, #0f71c8 0%, #1388e6 55%, #21b4ff 100%);
  border-radius: 28px;
  box-shadow: var(--mstec-shadow);
  padding: 14px 18px 16px;
  position: relative;
  overflow: hidden;
}

.mstec-header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.14), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255,255,255,.10), transparent 24%);
  pointer-events: none;
}

.mstec-header-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  direction: ltr;
}

.mstec-logo-box {
  width: 205px;
  min-width: 205px;
  min-height: 82px;
  border-radius: 22px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(8,24,39,.25), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  display: grid;
  place-items: center;
}

.mstec-logo-box img {
  width: 100%;
  object-fit: contain;
}

.mstec-main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  direction: rtl;
}

.mstec-main-nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 14px;
  transition: .25s ease;
  white-space: nowrap;
}

.mstec-main-nav a:hover,
.mstec-main-nav a.active {
  background: rgba(8,24,39,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

.mstec-header-actions {
  min-width: 270px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mstec-action-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  transition: .25s ease;
  white-space: nowrap;
}

.mstec-action-btn.phone {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.36);
}

.mstec-action-btn.phone:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

.mstec-action-btn.whatsapp {
  background: #fff;
  color: #0d5ca8;
  box-shadow: 0 10px 26px rgba(255,255,255,.18);
}

.mstec-action-btn.whatsapp:hover {
  transform: translateY(-2px);
}

.mstec-contact-strip {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px;
  box-shadow: var(--mstec-shadow-soft);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  overflow: hidden;
}

.mstec-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 16px;
}

.mstec-contact-item + .mstec-contact-item {
  border-right: 1px solid rgba(15,35,62,.08);
}

.mstec-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg,#eef6ff,#dbeeff);
  color: #117bda;
  box-shadow: inset 0 0 0 1px rgba(17,123,218,.10);
  flex: 0 0 48px;
}

.mstec-contact-icon.whatsapp {
  color: #20b15a;
  background: linear-gradient(180deg,#f1fff7,#dbffe8);
}

.mstec-contact-text {
  min-width: 0;
}

.mstec-contact-label {
  font-size: 12px;
  color: var(--mstec-muted);
  margin-bottom: 5px;
  font-weight: 600;
}

.mstec-contact-value {
  font-size: 15px;
  font-weight: 800;
  color: #0d5ca8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide old Vue header only */
body.mstec-live-header-ready #fsb_background,
body.mstec-live-header-ready #app .navbar,
body.mstec-live-header-ready #app nav.navbar {
  display: none !important;
}

body.mstec-live-header-ready .mstec-old-header-hidden {
  display: none !important;
}

@media (max-width: 1150px) {
  .mstec-header-main {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mstec-logo-box {
    order: 1;
  }

  .mstec-main-nav {
    order: 2;
    width: 100%;
  }

  .mstec-header-actions {
    order: 3;
    width: 100%;
    min-width: unset;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mstec-live-container {
    width: min(100% - 20px, 1280px);
  }

  .mstec-floating-text {
    font-size: 12px;
  }

  .mstec-header-shell {
    padding: 14px 12px;
    border-radius: 22px;
  }

  .mstec-logo-box {
    width: 180px;
    min-width: 180px;
    min-height: 76px;
  }

  .mstec-main-nav {
    gap: 6px;
  }

  .mstec-main-nav a {
    font-size: 12px;
    padding: 10px 12px;
  }

  .mstec-header-actions {
    gap: 8px;
  }

  .mstec-action-btn {
    font-size: 12px;
    min-height: 42px;
    padding: 0 14px;
  }

  .mstec-contact-strip {
    grid-template-columns: 1fr;
  }

  .mstec-contact-item + .mstec-contact-item {
    border-right: none;
    border-top: 1px solid rgba(15,35,62,.08);
  }
}

/* === FINAL BLACK HEADER KILL SWITCH === */
body.mstec-live-header-ready > header:not(#mstec-live-header),
body.mstec-live-header-ready > nav,
body.mstec-live-header-ready > .modern-header,
body.mstec-live-header-ready > .premium-header,
body.mstec-live-header-ready > .enterprise-header,
body.mstec-live-header-ready > .site-header,
body.mstec-live-header-ready > .main-header,
body.mstec-live-header-ready > .top-header,
body.mstec-live-header-ready > .black-header,
body.mstec-live-header-ready > .header,
body.mstec-live-header-ready #modern-header,
body.mstec-live-header-ready #premium-header,
body.mstec-live-header-ready #enterprise-header,
body.mstec-live-header-ready .modern-header,
body.mstec-live-header-ready .premium-header,
body.mstec-live-header-ready .enterprise-header,
body.mstec-live-header-ready .black-header {
  display: none !important;
}

body.mstec-live-header-ready #mstec-live-header {
  display: block !important;
}
/* === END FINAL BLACK HEADER KILL SWITCH === */
