.floating-social {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 0;

  &.is-collapsed {
    .floating-social__panel {
      width: 0;
      min-width: 0;
      margin-right: 0;
      padding: 0;
      opacity: 0;
      visibility: hidden;
      transform: translateX(18px) scale(0.96);
      pointer-events: none;
      overflow: hidden;
      box-shadow: none;
    }

    .floating-social__toggle {
      border-radius: 18px 0 0 18px;
      box-shadow: 0 18px 32px rgba(20, 46, 36, 0.16);
    }

    .floating-social__toggle .bi-chevron-left {
      transform: rotate(180deg);
    }
  }

  .floating-social__toggle {
    width: 46px;
    min-height: 132px;
    padding: 14px 10px;
    border: 0;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, #163239 0%, #0f6b4d 100%);
    color: #ffffff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 18px 32px rgba(20, 46, 36, 0.18);
    cursor: pointer;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      background 0.25s ease;

    &:hover {
      transform: translateX(-3px);
      box-shadow: 0 22px 36px rgba(20, 46, 36, 0.22);
    }

    .bi {
      font-size: 1rem;
      line-height: 1;
    }

    .bi-chevron-left {
      transition: transform 0.25s ease;
    }
  }

  .floating-social__toggle-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .floating-social__panel {
    width: 98px;
    min-width: 98px;
    margin-right: 10px;
    padding: 14px 12px;
    border-radius: 24px 0 0 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 32px rgba(20, 46, 36, 0.14);
    transition:
      width 0.32s ease,
      min-width 0.32s ease,
      margin-right 0.32s ease,
      padding 0.32s ease,
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.32s ease,
      box-shadow 0.32s ease;
  }

  .floating-social__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
  }

  .floating-social__link {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(20, 46, 36, 0.16);
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      filter 0.25s ease;

    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 18px 30px rgba(20, 46, 36, 0.2);
      filter: saturate(1.06);
    }

    .bi {
      font-size: 1.5rem;
      line-height: 1;
    }
  }

  .floating-social__link--instagram {
    background: radial-gradient(
      circle at 30% 30%,
      #ffe38a 0%,
      #ff6b57 28%,
      #f40097 58%,
      #5c33ff 100%
    );
  }

  .floating-social__link--facebook {
    background: linear-gradient(135deg, #4f7cff 0%, #315bd8 100%);
  }

  .floating-social__link--linkedin {
    background: linear-gradient(135deg, #3d74de 0%, #2450b8 100%);
  }

  .floating-social__link--whatsapp {
    background: linear-gradient(135deg, #23de74 0%, #08c85d 100%);
  }
  @media (max-width: 991px) {
    &.is-collapsed {
      .floating-social__toggle {
        border-radius: 16px 0 0 16px;
      }
    }

    .floating-social__toggle {
      width: 42px;
      min-height: 118px;
    }

    .floating-social__panel {
      margin-right: 8px;
      width: 86px;
      min-width: 86px;
      padding: 12px 10px;
    }

    .floating-social__link {
      width: 54px;
      height: 54px;

      .bi {
        font-size: 1.32rem;
      }
    }
  }

  @media (max-width: 767px) {
    &.is-collapsed {
      .floating-social__toggle {
        border-radius: 14px 0 0 14px;
      }
    }

    .floating-social__toggle {
      width: 38px;
      min-height: 104px;
      padding: 12px 8px;

      .bi {
        font-size: 0.9rem;
      }
    }

    .floating-social__toggle-text {
      font-size: 0.66rem;
    }

    .floating-social__panel {
      margin-right: 6px;
      width: 74px;
      min-width: 74px;
      padding: 10px 8px;
      border-radius: 20px 0 0 20px;
    }

    .floating-social__list {
      gap: 10px;
    }

    .floating-social__link {
      width: 48px;
      height: 48px;

      .bi {
        font-size: 1.15rem;
      }
    }
  }
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;

  &.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .back-to-top__btn {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #d7f15c 0%, #0f6b4d 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(20, 46, 36, 0.18);
    cursor: pointer;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      filter 0.25s ease;

    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 34px rgba(20, 46, 36, 0.22);
      filter: saturate(1.04);
    }

    .bi {
      font-size: 1.2rem;
      line-height: 1;
    }
  }

  @media (max-width: 991px) {
    right: 18px;
    bottom: 18px;

    .back-to-top__btn {
      width: 50px;
      height: 50px;
    }
  }

  @media (max-width: 767px) {
    right: 14px;
    bottom: 14px;

    .back-to-top__btn {
      width: 46px;
      height: 46px;

      .bi {
        font-size: 1rem;
      }
    }
  }
}
