/* ── Modal Overlay ── */
.modal-3-popup {
  z-index: 9999;
  background-color: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(0.25rem);
  -webkit-backdrop-filter: blur(0.25rem);
  align-items: flex-start;
  width: 100%;
  height: 100vh;
  padding: 3rem 2rem;
  display: none;
  position: fixed;
  inset: 0%;
  overflow: auto;
}

.modal-3-popup .modal {
  background-color: #fff;
  border-radius: 1rem;
  flex: none;
  width: 100%;
  max-width: 64rem;
  height: auto;
  margin: auto;
  position: relative;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.12);
}

.modal-3-popup .modal-bg {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0%;
}

.modal-3-popup .close-btn-w {
  z-index: 5;
  float: right;
  cursor: pointer;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 1.5rem;
  margin-right: 1.5rem;
  display: flex;
  position: sticky;
  top: -1.5rem;
  background: rgba(10, 10, 10, 0.05);
  transition: background 0.2s;
}

.modal-3-popup .close-btn-w:hover {
  background: rgba(10, 10, 10, 0.1);
}

.modal-3-popup .close-btn-w::before,
.modal-3-popup .close-btn-w::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1.5px;
  background: #0a0a0a;
  border-radius: 1px;
}

.modal-3-popup .close-btn-w::before {
  transform: rotate(45deg);
}

.modal-3-popup .close-btn-w::after {
  transform: rotate(-45deg);
}

.modal-3-popup .modal-content-w {
  padding: 2rem 3rem 3rem;
}

#scfContainer {
  background: #ffffff;
  color: #0a0a0a;
  font-family: 'Roobert Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 2rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

#scfContainer *,
#scfContainer *::before,
#scfContainer *::after {
  font-family: 'Roobert Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Header ── */
.scf-header {
  margin-bottom: 2rem;
}

.scf-title {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #0a0a0a;
}

.scf-subtitle {
  font-size: 1rem;
  color: rgba(10, 10, 10, 0.5);
  margin-bottom: 0;
}

/* ── Type Selector ── */
.scf-type-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.scf-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  border-radius: 2rem;
  background: #fff;
  color: rgba(10, 10, 10, 0.6);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.scf-type-btn:hover {
  border-color: rgba(10, 10, 10, 0.3);
  color: #0a0a0a;
}

.scf-type-btn.active {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}

.scf-type-icon {
  font-size: 1rem;
}

/* ── Section ── */
.scf-section {
  margin-bottom: 1.5rem;
}

/* ── Buttons ── */
.scf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #0a0a0a;
  color: #fff;
  transition: all 0.2s;
  font-family: inherit;
}

.scf-btn-primary:hover {
  background: #222;
}

.scf-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 0.0625rem solid rgba(10, 10, 10, 0.1);
  background: transparent;
  color: rgba(10, 10, 10, 0.6);
  transition: all 0.2s;
  font-family: inherit;
}

.scf-btn-secondary:hover {
  border-color: rgba(10, 10, 10, 0.3);
  color: #0a0a0a;
}

.scf-btn-small {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  background: #fff;
  color: #0a0a0a;
  transition: all 0.2s;
  font-family: inherit;
}

.scf-btn-small:hover {
  border-color: rgba(10, 10, 10, 0.3);
}

.scf-btn-danger {
  color: #dc2626;
}

.scf-btn-link {
  background: none;
  border: none;
  color: rgba(10, 10, 10, 0.5);
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.25rem 0;
  font-family: inherit;
}

.scf-btn-link:hover {
  color: #0a0a0a;
}

/* ── URL Input ── */
.scf-url-input {
  display: none;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.scf-url-input.visible {
  display: flex;
}

.scf-upload-hint {
  font-size: 0.75rem;
  color: rgba(10, 10, 10, 0.4);
}

.scf-upload-content {
  color: rgba(10, 10, 10, 0.4);
}

.scf-upload-content p {
  font-size: 0.875rem;
  margin: 0;
}

.scf-image-actions {
  display: none;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.scf-upload-zone.has-image .scf-image-actions {
  display: flex;
}

.scf-upload-zone.has-image .scf-upload-content {
  display: none;
}

/* ── Row / Columns ── */
.scf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.scf-steps-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.scf-step-indicator {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 0.125rem solid rgba(10, 10, 10, 0.15);
  background: #fff;
  color: rgba(10, 10, 10, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.scf-step-indicator:hover {
  border-color: rgba(10, 10, 10, 0.3);
}

.scf-step-indicator.active {
  border-color: #0a0a0a;
  color: #fff;
  background: #0a0a0a;
  box-shadow: none;
}

.scf-step-indicator.completed {
  border-color: #0a0a0a;
  color: #0a0a0a;
  background: #fff;
}

.scf-step-connector {
  flex: 1;
  height: 0.125rem;
  background: rgba(10, 10, 10, 0.1);
  transition: background 0.3s ease;
}

.scf-step-connector.completed {
  background: #0a0a0a;
}

.scf-step-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: rgba(10, 10, 10, 0.4);
  white-space: nowrap;
  font-weight: 500;
}

.scf-step-indicator.active .scf-step-label {
  color: #0a0a0a;
}

.scf-step-indicator.completed .scf-step-label {
  color: #0a0a0a;
}

.scf-step-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.scf-step-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.625rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scf-step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.0625rem solid rgba(10, 10, 10, 0.06);
}

.scf-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.scf-nav-btn.prev {
  background: transparent;
  color: rgba(10, 10, 10, 0.6);
  border: 0.0625rem solid rgba(10, 10, 10, 0.1);
}

.scf-nav-btn.prev:hover {
  border-color: rgba(10, 10, 10, 0.3);
  color: #0a0a0a;
}

.scf-nav-btn.prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.scf-nav-btn.next {
  background: #0a0a0a;
  color: #fff;
}

.scf-nav-btn.next:hover {
  background: #222;
}

.scf-nav-spacer {
  flex: 1;
}

.scf-step-title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}

.scf-step-subtitle {
  font-size: 0.875rem;
  color: rgba(10, 10, 10, 0.5);
  margin-bottom: 2rem;
}

.scf-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.scf-type-card {
  padding: 1.25rem 1rem;
  border: 0.125rem solid rgba(10, 10, 10, 0.1);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: transparent;
}

.scf-type-card:hover {
  border-color: rgba(10, 10, 10, 0.25);
}

.scf-type-card.active {
  border-color: #0a0a0a;
  background: rgba(10, 10, 10, 0.03);
  box-shadow: none;
}

.scf-type-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #0a0a0a;
}

.scf-type-card.active .scf-type-card-icon {
  color: #0a0a0a;
}

.scf-type-card-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #0a0a0a;
}

.scf-type-card.active .scf-type-card-label {
  color: #0a0a0a;
}

.scf-field-group {
  margin-bottom: 1.25rem;
}

.scf-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: #0a0a0a;
  margin-bottom: 0.375rem;
}

.scf-label .optional {
  font-weight: 400;
  color: rgba(10, 10, 10, 0.4);
}

.scf-input,
.scf-textarea,
.scf-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
  color: #0a0a0a;
  box-sizing: border-box;
}

.scf-textarea {
  height: auto;
  min-height: 6.25rem;
  resize: vertical;
}

.scf-input::placeholder,
.scf-textarea::placeholder {
  color: rgba(10, 10, 10, 0.3);
}

.scf-input:focus,
.scf-textarea:focus,
.scf-select:focus {
  outline: none;
  border-color: #0a0a0a;
  box-shadow: 0 0 0 0.1875rem rgba(10, 10, 10, 0.06);
  background: #fff;
}

.scf-select option {
  background: #fff;
  color: #000;
}

.scf-tag-input-wrap {
  position: relative;
}

.scf-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.scf-tag-list li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #000;
  color: #fff;
  border-radius: 3.125rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.scf-tag-remove {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.8;
  padding: 0;
}

.scf-tag-remove:hover {
  opacity: 1;
}

.scf-tag-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 0.0625rem solid #ccc;
  border-radius: 0;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  max-height: 12.5rem;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.scf-tag-suggestions.visible {
  display: block;
}

.scf-tag-suggestion {
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #000;
}

.scf-tag-suggestion:hover {
  background: #f5f5f5;
}

.scf-panel {
  display: none;
}

.scf-panel.active {
  display: block;
}

.scf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #fafafa;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
}

.scf-toolbar button {
  padding: 0.5rem 0.625rem;
  background: none;
  border: 0.0625rem solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.85rem;
  color: #333;
  transition: all 0.15s;
}

.scf-toolbar button:hover {
  background: #e0e0e0;
}

.scf-toolbar button.is-active {
  background: #0a0a0a;
  color: #fff;
  border-radius: 0.25rem;
}

.scf-toolbar-divider {
  width: 0.0625rem;
  background: #ccc;
  margin: 0 0.25rem;
}

.scf-toolbar-break {
  flex-basis: 100%;
  height: 0;
}

.scf-editor {
  min-height: 12.5rem;
  padding: 1rem;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  border-radius: 0 0 0.5rem 0.5rem;
  background: #fff;
  color: #0a0a0a;
}

.scf-editor .ProseMirror {
  outline: none;
  min-height: 10rem;
  color: #000;
}

.scf-editor .ProseMirror p {
  margin: 0 0 1em 0;
}
.scf-editor .ProseMirror h1,
.scf-editor .ProseMirror h2,
.scf-editor .ProseMirror h3,
.scf-editor .ProseMirror h4,
.scf-editor .ProseMirror h5 {
  margin: 1em 0 0.5em 0;
}
.scf-editor .ProseMirror h1 {
  font-size: 2rem;
}
.scf-editor .ProseMirror h2 {
  font-size: 1.5rem;
}
.scf-editor .ProseMirror h3 {
  font-size: 1.25rem;
}
.scf-editor .ProseMirror h4 {
  font-size: 1.125rem;
}
.scf-editor .ProseMirror h5 {
  font-size: 1rem;
}
.scf-editor .ProseMirror ul,
.scf-editor .ProseMirror ol {
  padding-left: 1.5em;
  margin: 0.5em 0;
}
.scf-editor .ProseMirror blockquote {
  border-left: 0.1875rem solid rgba(10, 10, 10, 0.2);
  padding-left: 1em;
  margin: 1em 0;
  color: #666;
}

/* Markdown editor textarea */
.scf-markdown-editor {
  width: 100%;
  min-height: 12.5rem;
  padding: 1rem;
  border: 0.0625rem solid #ccc;
  border-radius: 0;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  tab-size: 2;
}
.scf-markdown-editor:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 0.125rem rgba(10, 10, 10, 0.1);
}
.scf-toolbar button[data-action='markdownToggle'].is-active {
  background: #1e1e1e !important;
  color: #d4d4d4 !important;
  border-color: #555 !important;
}
.scf-toolbar button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Embed blocks injected outside TipTap schema */
.scf-embed-block {
  position: relative;
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px dashed #ccc;
  border-radius: 4px;
  background: #fafafa;
  user-select: none;
}

.scf-embed-block-inner {
  overflow: hidden;
}

.scf-embed-block-inner iframe {
  display: block;
  max-width: 100%;
}

.scf-embed-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: #c00;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.scf-embed-remove:hover {
  opacity: 1;
}

.scf-upload-zone {
  border: 0.125rem dashed rgba(10, 10, 10, 0.15);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(10, 10, 10, 0.02);
  position: relative;
}

.scf-upload-zone:hover,
.scf-upload-zone.dragover {
  border-color: rgba(10, 10, 10, 0.3);
  background: rgba(10, 10, 10, 0.04);
}

.scf-upload-zone.has-image {
  padding: 1rem;
}
.scf-upload-icon {
  font-size: 2.5rem;
  color: #999;
  margin-bottom: 0.75rem;
}
.scf-upload-text {
  color: #666;
  font-size: 0.9rem;
}
.scf-upload-text strong {
  color: #0a0a0a;
}

.scf-image-preview {
  max-width: 100%;
  max-height: 18.75rem;
  border-radius: 0;
  display: none;
}

.scf-upload-zone.has-image .scf-image-preview {
  display: block;
  margin: 0 auto 1rem;
}
.scf-upload-zone.has-image .scf-upload-placeholder {
  display: none;
}

.scf-upload-actions {
  display: none;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.scf-upload-zone.has-image .scf-upload-actions {
  display: flex;
}

.scf-upload-btn {
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 0.0625rem solid rgba(10, 10, 10, 0.1);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  color: #0a0a0a;
}

.scf-upload-btn:hover {
  background: #fff;
}
.scf-upload-btn.danger {
  color: #dc2626;
}
.scf-upload-btn.danger:hover {
  background: #fff;
}

.scf-author-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.scf-author-preview {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 0.1875rem solid #000;
  display: none;
}
.scf-author-preview.visible {
  display: block;
}
.scf-author-placeholder {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #e5e5e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(10, 10, 10, 0.5);
  font-size: 0.625rem;
  font-weight: 500;
  gap: 0.125rem;
  cursor: pointer;
  overflow: hidden;
}

.scf-author-placeholder svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: rgba(10, 10, 10, 0.4);
}

.scf-progress {
  height: 0.25rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
  margin-top: 0.5rem;
  overflow: hidden;
  display: none;
}
.scf-progress.visible {
  display: block;
}
.scf-progress-bar {
  height: 100%;
  background: #000;
  transition: width 0.3s ease;
  width: 0%;
}

.scf-compress-info {
  font-size: 0.8rem;
  color: rgba(10, 10, 10, 0.5);
  margin-top: 0.5rem;
  display: none;
}
.scf-compress-info.visible {
  display: block;
}

.scf-doc-list {
  margin-top: 1rem;
}
.scf-doc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem;
  background: #fff;
  border-radius: 0;
  margin-bottom: 0.5rem;
}
.scf-doc-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #000;
  color: #fff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.scf-doc-info {
  flex: 1;
}
.scf-doc-info input {
  border: 1px solid #ddd;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  width: 100%;
  color: #000;
  border-radius: 3px;
}
.scf-doc-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: #000;
}
.scf-doc-size {
  font-size: 0.75rem;
  color: #666;
}
.scf-doc-remove {
  background: none;
  border: none;
  color: #999;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.scf-doc-remove:hover {
  color: #dc2626;
}
.scf-doc-download {
  background: #e0f0e0;
  border: none;
  color: #2a7a2a;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: all 0.15s ease;
}
.scf-doc-download:hover {
  background: #c0e0c0;
}
.scf-doc-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.scf-doc-name-input {
  color: #000;
}

.scf-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 0;
  border: 0.0625rem solid #ccc;
  min-height: 3.75rem;
  color: #999;
  font-size: 0.9rem;
}

.scf-payment-grid {
  display: grid;
  gap: 1rem;
}

.scf-pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}
.scf-pay-row.header {
  font-weight: 600;
  font-size: 0.8rem;
  color: #0a0a0a;
  margin-bottom: 0.75rem;
}
.scf-pay-row input {
  padding: 0.625rem;
  border: 0.0625rem solid #ccc;
  border-radius: 0;
  font-size: 0.9rem;
  background: #fff;
  color: #000;
}
.scf-pay-row input:focus {
  outline: none;
  border-color: #000;
  background: #fff;
}

.scf-remove-btn {
  background: none;
  border: none;
  color: rgba(10, 10, 10, 0.4);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.6;
}
.scf-remove-btn:hover {
  opacity: 1;
}

.scf-add-btn {
  padding: 0.625rem 1rem;
  background: #0a0a0a;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.scf-add-btn:hover {
  background: #333;
}

.scf-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.scf-checkbox-wrap input[type='checkbox'] {
  margin-top: 0.1875rem;
  accent-color: #0a0a0a;
  width: 1.125rem;
  height: 1.125rem;
}
.scf-checkbox-wrap label {
  font-size: 0.9rem;
  color: #0a0a0a;
  line-height: 1.5;
}
.scf-checkbox-wrap label a {
  color: #0a0a0a;
  text-decoration: underline;
}

.scf-message {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.scf-message.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: none;
}
.scf-message.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: none;
}

.scf-submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.scf-submit-btn:hover {
  background: #333;
}
.scf-submit-btn:disabled {
  background: rgba(10, 10, 10, 0.15);
  color: rgba(10, 10, 10, 0.3);
  cursor: not-allowed;
}

.scf-loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 0.125rem solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scf-visibility-options {
  display: flex;
  gap: 0.75rem;
}
.scf-visibility-option {
  flex: 1;
  padding: 1.25rem 1rem;
  border: 0.125rem solid rgba(10, 10, 10, 0.1);
  border-radius: 0.75rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: transparent;
}
.scf-visibility-option:hover {
  border-color: rgba(10, 10, 10, 0.25);
}
.scf-visibility-option.active {
  border-color: #0a0a0a;
  background: rgba(10, 10, 10, 0.03);
}
.scf-visibility-option input {
  display: none;
}
.scf-visibility-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #0a0a0a;
}
.scf-visibility-option.active .scf-visibility-label {
  color: #0a0a0a;
}
.scf-visibility-desc {
  font-size: 0.6875rem;
  color: rgba(10, 10, 10, 0.5);
  margin-top: 0.25rem;
  line-height: 1.3;
}
.scf-visibility-option.active .scf-visibility-desc {
  color: rgba(10, 10, 10, 0.6);
}

#scfBlocked {
  display: none;
  padding: 2rem;
  text-align: center;
  background: #fee2e2;
  border-radius: 0.75rem;
  color: #991b1b;
  font-family: 'Roobert Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Embed textarea for music/video/stripe */
.scf-embed-textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #ccc;
  color: #000;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}
.scf-embed-textarea:focus {
  outline: none;
  border-color: #000;
}
.scf-embed-textarea::placeholder {
  color: #999;
  font-size: 0.7rem;
}

.scf-embed-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: rgba(10, 10, 10, 0.4);
}

.scf-embed-preview {
  min-height: 4rem;
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 0;
  text-align: center;
}
.scf-embed-preview.has-preview {
  border-style: solid;
  border-color: #ccc;
  padding: 0;
  overflow: hidden;
}
.scf-embed-preview iframe {
  width: 100% !important;
  max-width: 100%;
  border: none;
  display: block;
}
.scf-embed-preview stripe-buy-button {
  display: block;
  margin: 1rem auto;
}

@media (max-width: 640px) {
  .scf-steps-progress {
    padding: 0.5rem 0;
  }
  .scf-step-connector {
    width: 1.875rem;
  }
  .scf-step-indicator {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
  .scf-step-label {
    display: none;
  }
  .scf-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .scf-pay-row {
    grid-template-columns: 1fr 1fr;
  }
  .scf-pay-row .pay-label {
    grid-column: span 2;
  }
  .scf-visibility-options {
    flex-direction: column;
  }
}

/* ── Advanced Collapsible Section ── */
.scf-advanced-section {
  border: 0.0625rem solid rgba(10, 10, 10, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
}

.scf-advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(10, 10, 10, 0.02);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.6);
  font-family: inherit;
  transition: color 0.2s;
}

.scf-advanced-toggle:hover {
  color: #0a0a0a;
}

.scf-advanced-toggle svg {
  transition: transform 0.2s;
}

.scf-advanced-section.is-open .scf-advanced-toggle svg {
  transform: rotate(180deg);
}

.scf-advanced-content {
  display: none;
  padding: 1rem;
}

.scf-advanced-section.is-open .scf-advanced-content {
  display: block;
}

/* ── OG Preview Card ── */
.scf-og-preview {
  display: flex;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fafafa;
  margin-top: 0.5rem;
}

.scf-og-preview__img {
  width: 7.5rem;
  height: auto;
  min-height: 5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.scf-og-preview__text {
  padding: 0.75rem;
  flex: 1;
  min-width: 0;
}

.scf-og-preview__title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #0a0a0a;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scf-og-preview__desc {
  font-size: 0.75rem;
  color: rgba(10, 10, 10, 0.5);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scf-og-preview__url {
  font-size: 0.6875rem;
  color: rgba(10, 10, 10, 0.35);
  margin-top: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── Validation Messages ── */
.scf-validation-msg {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.scf-validation-msg.valid {
  color: #16a34a;
}

.scf-validation-msg.invalid {
  color: #dc2626;
}

.scf-validation-msg.warn {
  color: #d42626;
}

/* ── Code Textarea (JSON-LD) ── */
.scf-code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  tab-size: 2;
  background: #fafafa;
}

/* ── Image Aspect Ratio Buttons ── */
.scf-ratio-buttons {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.scf-ratio-btn {
  padding: 0.3125rem 0.625rem;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  border-radius: 0.375rem;
  background: #fff;
  color: rgba(10, 10, 10, 0.5);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.scf-ratio-btn:hover {
  border-color: rgba(10, 10, 10, 0.3);
  color: #0a0a0a;
}

.scf-ratio-btn.active {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}

/* ── Inline Checkbox ── */
.scf-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(10, 10, 10, 0.6);
  cursor: pointer;
  margin-bottom: 0.375rem;
}

.scf-checkbox-inline input[type='checkbox'] {
  accent-color: #0a0a0a;
  width: 0.875rem;
  height: 0.875rem;
  cursor: pointer;
}

/* ── Source Toggle Active State ── */
.scf-toolbar button[data-action='source'].is-active {
  background: #1e1e1e;
  color: #d4d4d4;
  border-color: #555;
}

/* ── Source View Textarea ── */
.scf-source-textarea {
  width: 100%;
  min-height: 12.5rem;
  padding: 1rem;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  border-radius: 0 0 0.5rem 0.5rem;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  tab-size: 2;
  box-sizing: border-box;
  display: none;
}

.scf-source-textarea:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 0.125rem rgba(10, 10, 10, 0.1);
}

/* ── Custom Select Overrides for Card Wizard + Stack Wizard ── */
.modal-content-w .profile-custom-select,
.stack-wizard-content .profile-custom-select {
  width: 100%;
  min-width: 0;
}

.modal-content-w .profile-custom-select__trigger,
.stack-wizard-content .profile-custom-select__trigger {
  height: auto;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  border-radius: 0;
  background: #fff;
  color: #0a0a0a;
  font-family: 'Roobert Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

.modal-content-w .profile-custom-select__trigger:hover,
.stack-wizard-content .profile-custom-select__trigger:hover {
  border-color: rgba(10, 10, 10, 0.3);
}

.modal-content-w .profile-custom-select.is-open .profile-custom-select__trigger,
.stack-wizard-content .profile-custom-select.is-open .profile-custom-select__trigger {
  border-color: #0a0a0a;
  box-shadow: none;
}

.modal-content-w .profile-custom-select__options,
.stack-wizard-content .profile-custom-select__options {
  z-index: 10010;
  border: 0.0625rem solid rgba(10, 10, 10, 0.15);
  border-top: none;
  border-radius: 0;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.modal-content-w .profile-custom-select__option,
.stack-wizard-content .profile-custom-select__option {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-family: 'Roobert Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0a0a0a;
}

.modal-content-w .profile-custom-select__option:hover,
.stack-wizard-content .profile-custom-select__option:hover {
  background: rgba(10, 10, 10, 0.04);
}

.modal-content-w .profile-custom-select__option.is-selected,
.stack-wizard-content .profile-custom-select__option.is-selected {
  background: #0a0a0a;
  color: #fff;
}

.modal-content-w .profile-custom-select__option.is-selected:hover,
.stack-wizard-content .profile-custom-select__option.is-selected:hover {
  background: #222;
}

/* ── Email Invite Section ── */
.scf-invite-section .scf-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.scf-invite-section .scf-label svg {
  flex-shrink: 0;
}

.scf-invite-list {
  margin-top: 1rem;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  padding-top: 0.75rem;
}

.scf-invite-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.6);
}

.scf-invite-count {
  background: rgba(10, 10, 10, 0.06);
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
}

.scf-invite-list-items {
  max-height: 10rem;
  overflow-y: auto;
}

.scf-invite-empty {
  color: rgba(10, 10, 10, 0.4);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.75rem;
}

.scf-invite-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.04);
}

.scf-invite-item:last-child {
  border-bottom: none;
}

.scf-invite-email {
  font-size: 0.75rem;
  color: #0a0a0a;
}

.scf-invite-status {
  font-size: 0.625rem;
  color: rgba(10, 10, 10, 0.4);
  margin-left: 0.375rem;
  text-transform: capitalize;
}

.scf-invite-remove {
  background: none;
  border: none;
  color: rgba(10, 10, 10, 0.3);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.6875rem;
  font-family: inherit;
  transition: color 0.15s;
}

.scf-invite-remove:hover {
  color: #dc2626;
}

/* ========================================================================
   CARD REORDER
   ======================================================================== */

.scf-position-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  top: 0.375rem;
  left: 0.375rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(10, 10, 10, 0.15);
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.scf-position-input {
  width: 2rem;
  border: 1px solid rgba(10, 10, 10, 0.15);
  background: #fff;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.125rem;
  color: #0a0a0a;
}

.scf-position-input:focus {
  outline: none;
  border-color: #0a0a0a;
}

.scf-save-order-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10001;
  background: #0a0a0a;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.15s;
}

.scf-save-order-btn:hover {
  background: #333;
}

.scf-save-order-btn.visible {
  display: block;
}

/* ---- Lock button inside position badge ---- */

.scf-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(10, 10, 10, 0.15);
  cursor: pointer;
  padding: 0.125rem;
  color: rgba(10, 10, 10, 0.35);
  transition: color 0.15s, background 0.15s;
}

.scf-lock-btn:hover {
  color: #0a0a0a;
}

.scf-lock-btn.locked {
  color: #fff;
  background: rgba(10, 10, 10, 0.85);
  border-color: rgba(10, 10, 10, 0.85);
}

/* ---- Locked card visual state ---- */

.card-carousel-item.is-locked {
  outline: 2px solid rgba(153, 0, 0, 0.3);
  outline-offset: -2px;
}

.card-carousel-item.is-locked .scf-position-input {
  color: #999;
  pointer-events: none;
}

/* ── Two-Column Form Layout with Live Preview ── */
.scf-form-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.scf-form-col {
  flex: 1;
  min-width: 0;
}

.scf-preview-col {
  width: 18rem;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}

.scf-preview-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(10, 10, 10, 0.4);
  text-align: center;
  margin-bottom: 0.75rem;
}

.scf-live-preview {
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  min-height: 16rem;
}

.scf-live-preview__type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.4);
  margin-bottom: 0.5rem;
}

.scf-live-preview__image {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.scf-live-preview__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.scf-live-preview__title {
  font-size: 1rem;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  word-break: break-word;
}

.scf-live-preview__desc {
  font-size: 0.8rem;
  color: rgba(10, 10, 10, 0.5);
  line-height: 1.4;
  word-break: break-word;
}

.scf-live-preview__content {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(10, 10, 10, 0.4);
  line-height: 1.5;
  max-height: 12rem;
  overflow: hidden;
}

.scf-live-preview__content p {
  margin: 0 0 0.35rem;
}

.scf-live-preview__content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

@media (max-width: 768px) {
  .scf-form-layout {
    flex-direction: column;
  }
  .scf-preview-col {
    width: 100%;
    position: static;
    order: -1;
  }
}
