/* ===== floating-buttons - merged & fixed ===== */
.floating-buttons {
  position: fixed;
  top: 70%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 9999;
  -webkit-font-smoothing: antialiased;
}


.floating-buttons .btn {
  width: 55px;
  height: 55px;
  background: #000040;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
  font-size: 22px;
  box-sizing: border-box;
}


.floating-buttons .btn:first-child{
  border-radius: 30px 0 0 0;
}
.floating-buttons .btn:last-child{
  border-radius: 0 0  0 30px;
}


.floating-buttons .btn.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 55px; 
  padding: 6px 6px;
  transition: height 0.25s ease;
  overflow: hidden;
}

.floating-buttons .btn.download .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.floating-buttons .btn.download .text {
  display: none;
  opacity: 0;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-6px);
  color: #ffffff;
  /* pointer-events: none; */
  line-height: 1rem;
  padding-right: 5px;
}

.floating-buttons .btn.download:hover {
  height: 100px;
}
.floating-buttons .btn.download:hover .text {
  opacity: 1;
  display: block;
  transform: translateY(0);
}

.floating-buttons .btn.download:hover .icon {
  margin-top: 0;
}

/* ----------------- دکمه هدفون / سوشال‌ها ----------------- */
.floating-buttons .btn.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  overflow: visible;
}


.floating-buttons .btn.contact .socials {
  position: absolute;
  top: 0;
  right: 0; 
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  background: #000040;
  border-radius: 0 0 0 30px;
  overflow: hidden;
  box-shadow: none;
}


.floating-buttons .btn.contact:hover .socials,
.floating-buttons .btn.contact:focus-within .socials {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}


.floating-buttons .btn.contact .social {
  width: 55px;
  height: 55px;
  background: #000040;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 0 0 0 30px;
  box-sizing: border-box;
  transition: background 0.18s ease;
}

.floating-buttons .btn.contact .social svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: fill 0.18s ease;
  fill: #E5E7EB; 
}

.floating-buttons .btn.contact .social:hover svg{
  fill: #09B5FF;
}

@media (max-width: 480px) {
  .floating-buttons { top: 70%; right: 6px; transform: translateY(-50%); }
  .floating-buttons .btn { width: 50px; height: 50px; }
  .floating-buttons .btn.download:hover { height: 95px; }
  .floating-buttons .btn.contact .socials { right: 0; }
  .floating-buttons .btn.contact .social { width: 50px; height: 50px; }
}
