.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
}

.fab-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--cls-color-primary);
  color: var(--cls-color-text-white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
  transition: transform var(--cls-transition), box-shadow var(--cls-transition), background-color var(--cls-transition);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.fab-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.5);
}

.fab-trigger:active {
  transform: scale(0.95);
}

.fab-trigger.open {
  background: var(--cls-color-error);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
}

.fab-trigger.open:hover {
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.5);
}

.fab-trigger-icon {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.fab-trigger.open .fab-trigger-icon {
  transform: rotate(45deg);
}

.fab-menu {
  position: absolute;
  bottom: 68px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  pointer-events: none;
}

.fab-menu.open {
  pointer-events: auto;
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.fab-menu.open .fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-menu.open .fab-item:nth-child(1) {
  transition-delay: 0.05s;
}

.fab-menu.open .fab-item:nth-child(2) {
  transition-delay: 0.1s;
}

.fab-menu.open .fab-item:nth-child(3) {
  transition-delay: 0.15s;
}

.fab-item-label {
  background: var(--cls-color-bg-white);
  color: var(--cls-color-text);
  font-size: var(--cls-font-size-sm);
  font-weight: var(--cls-font-weight-medium);
  padding: 6px 14px;
  border-radius: var(--cls-radius-md);
  box-shadow: var(--cls-shadow-md);
  white-space: nowrap;
  pointer-events: none;
}

.fab-item-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform var(--cls-transition-fast), box-shadow var(--cls-transition-fast);
  box-shadow: var(--cls-shadow-md);
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.fab-item-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--cls-shadow-lg);
}

.fab-item-btn:active {
  transform: scale(0.95);
}

.fab-item-btn.seat {
  background: #E3F2FD;
  color: #1565C0;
}

.fab-item-btn.floating {
  background: #F3E5F5;
  color: #7B1FA2;
}

.fab-item-btn.call {
  background: #FFF3E0;
  color: #E65100;
}

.fab-item-btn.exit {
  background: #FFEBEE;
  color: #C62828;
}

.fab-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  display: none;
}

.fab-backdrop.open {
  display: block;
}

@media (max-width: 1024px) {
  .fab {
    bottom: 20px;
    right: 20px;
  }

  .fab-trigger {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .fab-menu {
    bottom: 60px;
  }

  .fab-item-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .fab {
    bottom: calc(var(--cls-bottom-nav-height) + var(--cls-safe-area-bottom) + 12px);
  }

  .fab-menu {
    bottom: calc(60px + var(--cls-bottom-nav-height));
  }
}
