.apm-site-header, 
.apm-site-header * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
}

.apm-site-header {
  width: 100%;
  height: 64px;
  padding: 0 32px;
  background-color: #001834 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 999;
  border-bottom: 1px solid rgba(143, 168, 204, 0.28);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.apm-site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(143, 168, 204, 0.05) 0%,
    rgba(143, 168, 204, 0.22) 18%,
    rgba(143, 168, 204, 0.36) 50%,
    rgba(143, 168, 204, 0.22) 82%,
    rgba(143, 168, 204, 0.05) 100%
  );
  box-shadow: 0 1px 5px rgba(143, 168, 204, 0.18);
  pointer-events: none;
}

/* LOGO */

.apm-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.apm-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apm-logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apm-logo-text {
  display: flex;
  flex-direction: column;
}

.apm-brand-name {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.apm-brand-tagline {
  color: #8fa8cc;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}

/* NAVIGATION */

.apm-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.apm-main-nav a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.apm-main-nav a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07);
}

/* DROPDOWN */

.apm-nav-dropdown {
  position: relative;
}

.apm-nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.apm-nav-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8fa8cc;
  transition: transform 0.2s ease;
}

.apm-nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.apm-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 170px;
  padding: 6px;
  background: #001834 !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.apm-nav-dropdown:hover .apm-dropdown-menu {
  display: block;
}

.apm-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: #d0dce8 !important;
  font-size: 13px;
  border-radius: 5px;
  text-decoration: none;
}

.apm-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

/* RIGHT ACTIONS */

.apm-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.apm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.apm-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.apm-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
}

.apm-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff !important;
}

.apm-btn-cta {
  background: #f0a500;
  border: none;
  color: #0d1b3e !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
}

.apm-btn-cta:hover {
  background: #e09600;
  color: #0d1b3e !important;
}

.apm-arrow {
  font-size: 15px;
  line-height: 1;
}

/* RESPONSIVE */

@media (max-width: 1220px) {
  .apm-site-header {
    padding: 0 22px;
    gap: 16px;
  }

  .apm-main-nav a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .apm-btn {
    padding: 7px 12px;
  }

  .apm-btn-cta {
    padding: 8px 14px;
  }
}

@media (max-width: 1024px) {
  .apm-site-header {
    height: auto;
    min-height: 64px;
    padding: 14px 22px;
    flex-wrap: wrap;
  }

  .apm-logo-area {
    width: 100%;
    justify-content: center;
  }

  .apm-main-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .apm-header-actions {
    order: 2;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .apm-site-header {
    padding: 14px 16px;
  }

  .apm-logo-placeholder {
    width: 40px;
    height: 40px;
  }

  .apm-brand-name {
    font-size: 13px;
  }

  .apm-brand-tagline {
    font-size: 10.5px;
  }

  .apm-main-nav a {
    font-size: 12.5px;
    padding: 6px 8px;
  }

  .apm-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .apm-btn {
    width: 100%;
  }
}

.apm-site-header .apm-brand-name {
  font-size: 16px !important;
}

.apm-site-header .apm-brand-tagline {
  font-size: 13px !important;
}

.apm-site-header .apm-btn,
.apm-site-header .apm-btn-outline,
.apm-site-header .apm-btn-cta {
  font-size: 12px !important;
}

/* ==========================================
   LOGGED IN ACCOUNT BUTTON
========================================== */

.apm-account-wrapper {
  position: relative;
}

.apm-btn-account {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #ffffff !important;
}

.apm-btn-account:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

.apm-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8fa8cc;
  transition: transform .2s ease;
}

.apm-account-wrapper:hover .apm-chevron {
  transform: rotate(180deg);
}

.apm-account-menu {
  left: auto;
  right: 0;
}

.apm-account-wrapper:hover .apm-account-menu {
  display: block;
}

.apm-btn-account svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}