/* BadgeShareModal */
.bsm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: bsm-fade-in 0.2s ease-out;
}
@keyframes bsm-fade-in { from { opacity: 0; } to { opacity: 1; } }

.bsm-modal {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  padding: 28px;
  position: relative;
  color: #e5e5e5;
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: bsm-slide-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes bsm-slide-in {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.bsm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid transparent;
  color: #888;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bsm-close:hover { background: #1a1a1a; color: #fff; border-color: #2a2a2a; }

.bsm-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-right: 32px;
}
.bsm-icon {
  width: 38px; height: 38px;
  background: rgba(10, 102, 194, 0.15);
  color: #0a66c2;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bsm-header h3 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.bsm-header p { font-size: 13px; color: #999; line-height: 1.5; }

.bsm-preview {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.bsm-preview-placeholder { width: 140px; height: 140px; background: #1a1a1a; border-radius: 4px; flex-shrink: 0; }
.bsm-preview-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bsm-preview-eyebrow {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.bsm-preview-title { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
.bsm-preview-holder { font-size: 13px; color: #999; margin-top: 4px; }

.bsm-text-block {
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.bsm-text-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 500; margin-bottom: 8px;
}
.bsm-text-copy {
  background: transparent; border: 1px solid #2a2a2a; color: #aaa;
  font-size: 11px; padding: 4px 8px; border-radius: 4px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: inherit; letter-spacing: 0.04em;
  transition: border-color 0.15s, color 0.15s;
}
.bsm-text-copy:hover { color: #fff; border-color: #3a3a3a; }
.bsm-text-block p { font-size: 13px; color: #ccc; line-height: 1.5; }

.bsm-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.bsm-btn {
  flex: 1 1 auto;
  min-width: 120px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
}
.bsm-btn:active { transform: translateY(1px); }
.bsm-btn-secondary { background: #1a1a1a; color: #ddd; border: 1px solid #2a2a2a; }
.bsm-btn-secondary:hover { background: #222; border-color: #333; }
.bsm-btn-primary { background: #0a66c2; color: #fff; }
.bsm-btn-primary:hover { background: #0d77df; }

.bsm-hint { font-size: 12px; color: #666; line-height: 1.5; }

/* Badge detail modal share row */
.ce-badge-modal-share {
  display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center;
}
.ce-badge-modal-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  font-family: inherit;
  border: 1px solid #2a2a2a; background: #1a1a1a; color: #ddd;
  transition: background 0.15s, border-color 0.15s;
}
.ce-badge-modal-share-btn:hover { background: #222; border-color: #333; color: #fff; }
.ce-badge-modal-share-btn.primary { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.ce-badge-modal-share-btn.primary:hover { background: #0d77df; border-color: #0d77df; }

/* Celebration overlay share CTA */
.vc-share-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(8px);
  animation: vc-share-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.8s forwards;
}
@keyframes vc-share-in {
  to { opacity: 1; transform: translateY(0); }
}
.vc-share-cta-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vc-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05); color: #fff;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.vc-share-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
.vc-share-btn.primary { background: #0a66c2; border-color: #0a66c2; }
.vc-share-btn.primary:hover { background: #0d77df; border-color: #0d77df; }
.vc-share-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .bsm-overlay, .bsm-modal, .vc-share-cta { animation: none; opacity: 1; transform: none; }
}
