.floating-menu {
  display: none;
}

/* ========================================
   DRAWER MENU (Menu Gaveta) - GLOBAL
   Funciona em qualquer resolução
   ======================================== */

.floating-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000 !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.floating-menu-drawer {
  position: fixed !important;
  top: 0 !important;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  z-index: 10001 !important;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: block !important;
}

.floating-menu-drawer.open {
  right: 0 !important;
}

.floating-menu-drawer-header {
  padding: 24px 20px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.floating-menu-drawer-user {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
}

.floating-menu-drawer-user-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.floating-menu-drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.floating-menu-drawer-username {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.floating-menu-drawer-balance {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.floating-menu-drawer-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.floating-menu-drawer-close:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

.floating-menu-drawer-content {
  padding: 12px 0;
}

.floating-menu-drawer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 16px;
  font-weight: 500;
}

.floating-menu-drawer-item i {
  width: 24px;
  font-size: 18px;
  color: #2196f3;
}

.floating-menu-drawer-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.floating-menu-drawer-item.logout {
  color: #ff5252;
}

.floating-menu-drawer-item.logout i {
  color: #ff5252;
}

.floating-menu-drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 20px;
}

/* ========================================
   FLOATING MENU - MOBILE ONLY
   ======================================== */

@media (max-width: 991px) {
  .floating-menu {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
      180deg,
      rgba(26, 26, 26, 0.95) 0%,
      rgba(35, 35, 35, 0.98) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    z-index: 50; /* Baixo para não sobrepor footer */
    justify-content: space-around;
    align-items: center;
    gap: 4px;
  }

  .floating-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
    flex: 1;
    padding: 8px 4px;
    border-radius: 12px;
    position: relative;
  }

  .floating-menu-item:active {
    transform: scale(0.95);
  }

  .floating-menu-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
  }

  .floating-menu-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
  }

  .floating-menu-item.center {
    position: relative;
    margin-top: -24px;
  }

  .floating-menu-item.center .floating-menu-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2196f3 0%, #1e88e5 50%, #1976d2 100%);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.5),
      0 4px 12px rgba(33, 150, 243, 0.3);
    font-size: 32px;
    border: 4px solid rgba(26, 26, 26, 0.95);
  }

  .floating-menu-item.center .floating-menu-label {
    margin-top: 4px;
    font-size: 12px;
    color: #fff;
  }

  .floating-menu-item.active:not(.center) .floating-menu-icon {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
  }

  .floating-menu-item.active:not(.center) .floating-menu-label {
    color: #2196f3;
  }

  /* Animação de hover/tap */
  .floating-menu-item:not(.center):active .floating-menu-icon {
    background: rgba(255, 255, 255, 0.05);
  }

  .floating-menu-item.center:active .floating-menu-icon {
    transform: scale(0.95);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.4);
  }

  @media (max-width: 380px) {
    .floating-menu {
      padding: 6px 8px 6px;
      gap: 2px;
    }

    .floating-menu-icon {
      width: 44px;
      height: 44px;
      font-size: 20px;
    }

    .floating-menu-item.center .floating-menu-icon {
      width: 64px;
      height: 64px;
      font-size: 28px;
    }

    .floating-menu-label {
      font-size: 10px;
    }

    .floating-menu-item.center .floating-menu-label {
      font-size: 11px;
    }
  }
}
