/* ── Share Button ── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 8px 20px;
  background: #065fd4;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.share-btn:hover {
  background: #0553b5;
}
.share-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ── Overlay ── */
.share-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
.share-overlay.active {
  display: flex;
}

/* ── Modal Box ── */
.share-modal {
  background: #212121;
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: shareIn 0.18s ease;
}
@keyframes shareIn {
  from {
    transform: scale(0.93);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.share-modal h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
}

/* ── Close Button ── */
.share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.share-close:hover {
  color: #fff;
}

/* ── Social Icons ── */
.share-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.share-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #3f3f3f;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
  min-width: 64px;
}
.share-icon-btn:hover {
  background: #555;
}
.share-icon-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* ── Copy Link Row ── */
.share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #3f3f3f;
  border-radius: 8px;
  padding: 8px 12px;
}
.share-link-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  min-width: 0;
}
.share-copy-btn {
  background: #065fd4;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.share-copy-btn:hover {
  background: #0553b5;
}
.share-copy-btn.copied {
  background: #2e7d32;
}
