/* Hộp chọn mẫu ảnh chia sẻ sau khi donate (share-card.js). */
.sc-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--pay-radius, 18px); background: var(--surface); color: var(--ink); overflow: auto; }
.sc-dialog::backdrop { background: rgba(3, 6, 14, 0.7); backdrop-filter: blur(3px); }
.sc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sc-head h2 { margin: 0; font-size: 1.15rem; }
.sc-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sc-close:hover { background: var(--panel); }
.sc-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding: 20px; }
.sc-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 12px; border-radius: 14px; background: var(--panel); }
.sc-preview { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6); }
.sc-preview.is-story { width: auto; max-width: 100%; max-height: min(62dvh, 640px); }
.sc-label { margin: 0 0 8px; font-size: 0.85rem; font-weight: 600; opacity: 0.75; }
.sc-formats { display: flex; gap: 8px; margin-bottom: 18px; }
.sc-format { flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.sc-format[aria-checked="true"] { border-color: var(--cobalt, #1F5BFF); background: var(--accent-glow); }
.sc-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.sc-tpl { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 2px solid transparent; border-radius: 10px; background: var(--panel); color: inherit; font: inherit; font-size: 0.78rem; cursor: pointer; }
.sc-tpl canvas { width: 100%; height: auto; border-radius: 6px; }
.sc-tpl[aria-checked="true"] { border-color: var(--cobalt, #1F5BFF); }
.sc-actions { display: flex; flex-direction: column; gap: 8px; }
.sc-actions .btn { width: 100%; justify-content: center; }
.sc-note { min-height: 1.2em; margin: 10px 0 0; font-size: 0.85rem; opacity: 0.8; }
.donate-paid-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 720px) {
  .sc-body { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .sc-preview.is-story { max-height: 52dvh; }
  .sc-templates { grid-template-columns: repeat(4, 1fr); }
}
.dh-act .mo-share { margin-right: 6px; }
