.oa-island-header {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  position: relative;
  z-index: 50;
  width: 100%;
}

.oa-island-header .oa-floating-island {
  width: min(100%, 48rem);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px -24px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.oa-island-header .oa-floating-island a {
  text-decoration: none;
  color: #334155;
}

.oa-island-header .oa-desktop-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border-radius: 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.oa-island-header .oa-desktop-nav-link:hover {
  color: #1e3a8a;
  background: #f8fafc;
}

.oa-island-header .oa-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
}

.oa-island-header .oa-mobile-nav-link:hover {
  color: #1e3a8a;
  background: #f1f5f9;
}

.oa-island-header #oa-mobile-menu {
  display: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.oa-island-header #oa-mobile-menu.open {
  display: block;
  max-height: min(72vh, 42rem);
  opacity: 1;
  overflow-y: auto;
}

.oa-island-header .oa-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 16rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.18);
  z-index: 50;
}

.oa-island-header .oa-dropdown.open,
.oa-island-header .group:hover .oa-dropdown {
  display: block;
}

.oa-island-header .oa-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
}

.oa-island-header .oa-dropdown-item:hover {
  background: #f8fafc;
  color: #1e3a8a;
}

@media (min-width: 1024px) {
  .oa-island-header {
    position: sticky;
    top: 4.25rem;
    z-index: 60;
  }

  .oa-island-header .oa-floating-island {
    width: min(100%, 80rem);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1023px) {
  body {
    padding-bottom: 6rem !important;
  }

  .oa-island-header {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    display: flex;
    justify-content: center;
    padding: 0 0.75rem;
    z-index: 70;
    pointer-events: none;
  }

  .oa-island-header .oa-floating-island {
    width: min(100%, 48rem);
    max-width: 48rem;
    margin: 0 auto;
    background: #ffffff;
    pointer-events: auto;
    position: relative;
    overflow: visible;
  }

  .oa-island-header #oa-mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 0.65rem);
    margin: 0;
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.28);
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 90;
  }

  .oa-island-header #oa-mobile-menu.open {
    max-height: min(68vh, 38rem);
    overflow-y: auto;
  }
}
