.fv-island-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
  padding: 14px 12px 0;
  display: flex;
  justify-content: center;
}

.fv-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: min(1080px, calc(100vw - 20px));
  padding: 5px 5px 5px 12px;
  border-radius: 999px;
  background: rgba(7, 10, 20, 0.78);
  border: 1px solid rgba(180, 210, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.fv-island-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 2px;
  flex-shrink: 0;
  text-decoration: none;
}

.fv-island-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55));
}

.fv-island-brand span {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: transparent;
  background: linear-gradient(90deg, #38bdf8, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
}

.fv-island-nav {
  position: relative;
  display: none;
  align-items: center;
  gap: 1px;
  min-width: 0;
}

.fv-island-thumb {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.fv-island-thumb.is-ready {
  opacity: 1;
}

.fv-island-nav a {
  position: relative;
  z-index: 1;
  padding: 8px 13px;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.fv-island-nav a:hover,
.fv-island-nav a.is-on {
  color: #f0f9ff;
}

.fv-island-auth {
  position: relative;
  flex-shrink: 0;
  margin-left: 4px;
}

.fv-island-auth-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fv-island-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #38bdf8;
  color: #020617;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.fv-island-cta:hover {
  filter: brightness(1.08);
}

.fv-island-cta:active {
  transform: scale(0.97);
}

.fv-island-cta--ghost {
  background: rgba(15, 23, 42, 0.9);
  color: #7dd3fc;
  box-shadow: none;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.fv-island-menu,
.fv-island-user {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #7dd3fc;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 10rem;
}

.fv-island-user span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv-island-mobile {
  position: relative;
}

.fv-island-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 198px;
  background: rgba(6, 10, 20, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 60;
}

.fv-island-drop a,
.fv-island-drop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
  text-decoration: none;
  cursor: pointer;
}

.fv-island-drop a:hover,
.fv-island-drop button:hover {
  background: rgba(14, 165, 233, 0.08);
  color: #38bdf8;
}

.fv-island-drop button.is-out {
  margin-top: 8px;
  border-top: 1px solid rgba(248, 113, 113, 0.28);
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.14);
}

.fv-island-drop button.is-out:hover {
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

@media (min-width: 860px) {
  .fv-island-nav {
    display: flex;
  }
  .fv-island-mobile {
    display: none;
  }
}

@media (max-width: 420px) {
  .fv-island-brand span {
    display: none;
  }
}
