/* =========================
   Floating Tools
   ========================= */
.st-floating {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 99999;
  pointer-events: none;
  font-family: inherit;
}

.st-floating * {
  box-sizing: border-box;
}

.st-floating__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}

.st-btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 8px;
  background: #2c61fe;
  box-shadow: 0 8px 24px rgba(44, 97, 254, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
  padding: 0;
}

.st-btn:hover {
  background: #214fdb;
  transform: translateY(-2px);
}

.st-btn svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-btn--top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.st-btn--top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================
   Share Panel
   ========================= */
.st-share-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  pointer-events: none;
}

.st-share-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.st-share-panel {
  position: absolute;
  right: 76px;
  bottom: 0;
  width: 410px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  padding: 26px 24px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  pointer-events: none;
}

.st-share-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.st-share-panel::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 40px;
  width: 18px;
  height: 18px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.04);
}

.st-share-header {
  position: relative;
  text-align: center;
  margin-bottom: 22px;
}

.st-share-title {
  font-size: 20px;
  font-weight: 700;
  color: #1b2b48;
  line-height: 1.2;
}

.st-share-close {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #7c8aa5;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.st-share-close:hover {
  color: #3a4963;
}

.st-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 14px;
}

.st-share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  color: #4c586f;
  font: inherit;
}

.st-share-item:hover .st-share-icon {
  transform: translateY(-2px);
}

.st-share-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  transition: transform .18s ease;
}

.st-share-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-share-item span {
  font-size: 12px;
  line-height: 1.3;
  color: #4c586f;
}

.st-share-line { background: #06c755; }
.st-share-whatsapp { background: #25d366; }
.st-share-facebook { background: #1877f2; }
.st-share-x { background: #111; }
.st-share-linkedin { background: #0a66c2; }
.st-share-copy {
  background: #fff;
  color: #222;
  border: 1px solid #cfd8e6;
}
.st-share-mail {
  background: #fff;
  color: #222;
  border: 1px solid #cfd8e6;
}

/* toast */
.st-toast {
  position: fixed;
  right: 20px;
  bottom: 220px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(16, 24, 40, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 100000;
}

.st-toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media screen and (max-width: 767px) {
  #stShareBtn{
    display: none;
  }

  #stContactBtn{
    display: none;
  }
  
  .st-floating {
    right: 12px;
    bottom: 16px;
  }

  .st-btn {
    width: 50px;
    height: 50px;
    border-radius: 8px;
  }

  .st-btn svg {
    width: 22px;
    height: 22px;
  }

  .st-share-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 86px;
    padding: 22px 18px 18px;
  }

  .st-share-panel::after {
    display: none;
  }

  .st-share-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 10px;
  }

  .st-share-icon {
    width: 56px;
    height: 56px;
  }

  .st-toast {
    right: 12px;
    left: 12px;
    bottom: 180px;
    text-align: center;
  }
}