/* ── CUSTOM SHARE MODAL ── */

.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.share-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.share-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-modal-overlay.active .share-modal-card {
  transform: translateY(0) scale(1);
}

.sh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sh-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sh-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.sh-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.sh-desc {
  margin: -12px 0 20px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Link Copy Section */
.sh-copy-area {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.sh-link-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  padding: 8px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
}

.sh-copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.sh-copy-btn:active { transform: scale(0.95); }

/* Grid Section */
.sh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sh-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.sh-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  transition: transform 0.3s var(--anim-ease-out);
}

.sh-option:hover .sh-icon-wrap { transform: translateY(-4px); }

.sh-opt-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Social Colors */
.sh-wa { background: #25D366; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2); }
.sh-tw { background: #000000; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.sh-ln { background: #0077B5; box-shadow: 0 8px 20px rgba(0, 119, 181, 0.2); }
.sh-fb { background: #1877F2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.2); }
