/* ════════════════════════════════════════════════════════
   SHARE CARD — Bouton "Partager ma carte" + modal preview
════════════════════════════════════════════════════════ */

/* Bouton injecté dans les écrans de fin */
.zikof-card-share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px auto 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #7c3aed, #f59e0b);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}
.zikof-card-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.55);
}
.zikof-card-share-btn span:first-child { font-size: 1.2rem; }

/* Modal preview */
.zikof-share-card-modal {
  position: fixed; inset: 0;
  background: rgba(15, 11, 30, 0.88);
  backdrop-filter: blur(12px);
  z-index: 10004;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: zscm-fadein 0.25s ease;
}
.zikof-share-card-modal.show { display: flex; }

@keyframes zscm-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.zscm-content {
  position: relative;
  background: linear-gradient(135deg, #1a1333, #241d40);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 20px;
  padding: 24px 22px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  animation: zscm-pop 0.35s cubic-bezier(0.16, 1.4, 0.3, 1);
}

@keyframes zscm-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.zscm-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: background 0.15s;
}
.zscm-close:hover { background: rgba(239, 68, 68, 0.4); }

.zscm-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #7c3aed, #f59e0b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.zscm-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0 16px;
}

.zscm-preview {
  margin: 0 auto 18px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.zscm-preview-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
  border-radius: 14px;
}
.zscm-loading {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  padding: 50px 20px;
}

.zscm-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.zscm-btn {
  flex: 1;
  min-width: 120px;
  padding: 11px 18px;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s;
}
.zscm-btn-share {
  background: linear-gradient(135deg, #7c3aed, #f59e0b);
  color: #fff;
}
.zscm-btn-dl {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}
.zscm-btn:hover { transform: translateY(-1px); }

.zscm-msg {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}
.zscm-msg.success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.zscm-msg.error { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

@media (max-width: 480px) {
  .zscm-content { padding: 18px 14px; }
  .zscm-preview-img { max-width: 100%; }
  .zscm-btn { font-size: 0.85rem; padding: 10px 14px; min-width: 100px; }
}
