.float-nav {
  position: fixed;
  right: 24px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 9999;
}

/* Floating Action Button (FAB) */
.float-nav .float-fab {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0b1220 0%, #1f2a44 100%);
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.6), 0 0 0 1px rgba(148, 163, 184, 0.12) inset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: visible;
}

.float-nav .float-fab:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 45px rgba(91, 115, 255, 0.5);
}

/* Breathing effect */
.float-nav .float-fab::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.28), transparent 70%);
  animation: float-breathe 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-breathe {
  0%, 100% { opacity: 0.46; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

/* Water ripple rings */
.float-nav .float-fab .ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 2px solid rgba(59, 130, 246, 0.28);
  animation: ripple-wave 2.8s ease-out infinite;
}

.float-nav .float-fab .ripple.r2 { animation-delay: .9s; opacity: .8; }
.float-nav .float-fab .ripple.r3 { animation-delay: 1.8s; opacity: .6; }

@keyframes ripple-wave {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .55; }
  60% { opacity: .2; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* Menu container above FAB */
.float-nav .float-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
  align-items: flex-end;
}

.float-nav.open .float-menu {
  display: flex;
}

/* Appear animation */
.float-nav .float-card { opacity: 0; transform: translateY(8px) scale(0.98); }
.float-nav.open .float-card { opacity: 1; transform: translateY(0) scale(1); }
.float-nav.open .float-card:nth-child(1) { transition: opacity .18s ease .02s, transform .18s ease .02s, box-shadow .2s ease; }
.float-nav.open .float-card:nth-child(2) { transition: opacity .18s ease .06s, transform .18s ease .06s, box-shadow .2s ease; }

.float-nav .float-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-width: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.66));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.14);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-nav .float-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.55);
}

.float-nav .float-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.35);
  flex: 0 0 28px;
  font-size: 16px;
}

.float-nav .float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.float-nav .float-title {
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 700;
}

.float-nav .float-sub {
  font-size: 12px;
  color: #94a3b8;
}

.float-nav .float-card.home .float-icon {
  background: linear-gradient(135deg, #34d399 0%, #60a5fa 100%);
  box-shadow: 0 8px 22px rgba(52, 211, 153, 0.35);
}

.float-nav .float-card.me .float-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.35);
}

@media (max-width: 768px) {
  .float-nav {
    right: 16px;
    bottom: 20px;
    gap: 10px;
  }
  .float-nav .float-fab { width: 44px; height: 44px; }
  .float-nav .float-card {
    min-width: 70px;
    padding: 10px;
  }
}


