:root {
  --studio-bg: #0f1115;
  --studio-surface: #161920;
  --studio-surface-2: #1e222c;
  --studio-border: #282e3b;
  --studio-border-hover: #3a4254;
  --studio-text: #f3f4f6;
  --studio-muted: #9ca3af;
  --studio-accent: #6366f1;
  --studio-accent-hover: #4f46e5;
  --studio-danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  overflow-x: clip;
  background: var(--studio-bg);
  color: var(--studio-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Top Bar */
.topbar {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: var(--studio-surface);
  border-bottom: 1px solid var(--studio-border);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.brand h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  color: var(--studio-muted);
  display: block;
}

/* Aspect Ratio Pills */
.ratio-pills {
  display: inline-flex;
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.ratio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--studio-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ratio-pill:hover {
  color: var(--studio-text);
}

.ratio-pill.active {
  background: var(--studio-surface-2);
  color: var(--studio-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.ratio-box {
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.ratio-4-5 {
  width: 11px;
  height: 14px;
}

.ratio-1-1 {
  width: 13px;
  height: 13px;
}

.ratio-9-16 {
  width: 9px;
  height: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 11px;
  font-size: 12.5px;
}

.btn-primary {
  background: var(--studio-accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--studio-accent-hover);
}

.btn-secondary {
  background: var(--studio-surface-2);
  border-color: var(--studio-border);
  color: var(--studio-text);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--studio-border-hover);
  background: #252a36;
}

.btn-ghost {
  background: transparent;
  color: var(--studio-muted);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--studio-surface-2);
  color: var(--studio-text);
}

.btn-donate {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fcd34d;
}

.btn-donate:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fef3c7;
}

.btn-danger-ghost {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.btn-danger-ghost:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}

.full-width {
  width: 100%;
  margin-top: 8px;
}

.link-btn {
  background: none;
  border: none;
  color: #818cf8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Main Workspace */
.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 350px;
  flex-shrink: 0;
  background: var(--studio-surface);
  border-right: 1px solid var(--studio-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tab-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--studio-border);
  padding: 0 8px;
  flex-shrink: 0;
}

.tab-btn {
  padding: 13px 6px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--studio-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--studio-text);
}

.tab-btn.active {
  color: var(--studio-text);
  border-bottom-color: var(--studio-accent);
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--studio-border);
  border-radius: 99px;
}

.tab-panel {
  display: none;
}

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

/* Form Controls */
.field-group {
  margin-bottom: 18px;
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 7px;
}

.panel-header-row .field-label,
.range-header .field-label {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--studio-surface-2);
  border: 1px solid var(--studio-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--studio-muted);
}

.muted-text {
  font-size: 12px;
  color: var(--studio-muted);
}

.field-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--studio-muted);
}

.field-hint code {
  background: var(--studio-surface-2);
  padding: 1px 5px;
  border-radius: 4px;
  color: #c7d2fe;
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-sm);
  color: var(--studio-text);
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 11px;
  outline: none;
  transition: border-color 0.15s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--studio-accent);
}

.textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.55;
}

/* Rich Text Editor Box & Toolbar */
.editor-box {
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-sm);
  background: var(--studio-bg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.editor-box:focus-within {
  border-color: var(--studio-accent);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 6px 8px;
  background: var(--studio-surface-2);
  border-bottom: 1px solid var(--studio-border);
}

.tb-btn {
  height: 28px;
  min-width: 28px;
  padding: 0 7px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--studio-text);
  font-family: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.tb-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.tb-btn:active {
  background: rgba(99, 102, 241, 0.28);
}

.tb-btn-text {
  font-size: 11.5px;
  color: var(--studio-muted);
  padding: 0 8px;
}

.tb-btn-text:hover {
  color: var(--studio-text);
}

.tb-sep {
  width: 1px;
  height: 16px;
  background: var(--studio-border-hover);
  margin: 0 4px;
}

.editor-textarea {
  border: none;
  border-radius: 0;
  background: transparent;
  display: block;
}

.editor-textarea:focus {
  border-color: transparent;
}

.divider {
  height: 1px;
  background: var(--studio-border);
  margin: 18px 0;
}

.btn-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Avatar Uploader */
.avatar-uploader {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
}

.avatar-preview-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.avatar-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-btn {
  position: relative;
  overflow: hidden;
}

/* Range Inputs */
.range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.range-val {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--studio-muted);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--studio-accent);
  cursor: pointer;
}

/* Theme Presets */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.preset-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  color: var(--studio-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  border-color: var(--studio-border-hover);
}

.preset-btn.active {
  border-color: var(--studio-accent);
  background: rgba(99, 102, 241, 0.12);
}

.preset-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* Color Pickers */
.color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.color-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--studio-muted);
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.color-input-wrap input[type="color"] {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.color-hex {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--studio-text);
  text-transform: uppercase;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 10px;
}

.toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--studio-accent);
}

.toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.toggle-card:hover {
  border-color: var(--studio-border-hover);
}

.toggle-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--studio-accent);
}

.toggle-card strong {
  display: block;
  font-size: 13px;
  color: var(--studio-text);
  margin-bottom: 2px;
}

.toggle-card span {
  display: block;
  font-size: 11.5px;
  color: var(--studio-muted);
  line-height: 1.45;
}

#profileFieldsWrap.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* Segmented Control */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.seg-btn {
  padding: 7px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--studio-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: var(--studio-surface-2);
  color: var(--studio-text);
}

.info-box {
  padding: 10px 12px;
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--studio-muted);
}

/* Preview Stage */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
  background-size: 24px 24px;
}

.canvas-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.canvas-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

#previewCanvas {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 175px);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Bottom Carousel Strip */
.slide-strip-bar {
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--studio-surface);
  border-top: 1px solid var(--studio-border);
}

.slide-strip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
}

.slide-strip::-webkit-scrollbar {
  height: 5px;
}

.slide-strip::-webkit-scrollbar-thumb {
  background: var(--studio-border);
  border-radius: 99px;
}

.slide-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  color: var(--studio-muted);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slide-chip:hover {
  border-color: var(--studio-border-hover);
  color: var(--studio-text);
}

.slide-chip.active {
  border-color: var(--studio-accent);
  background: rgba(99, 102, 241, 0.14);
  color: var(--studio-text);
}

.slide-chip-num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--studio-surface-2);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.slide-chip.active .slide-chip-num {
  background: var(--studio-accent);
  color: #fff;
}

.slide-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-add-chip {
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--studio-border-hover);
  background: transparent;
  color: var(--studio-text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slide-add-chip:hover {
  border-color: var(--studio-accent);
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.08);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 9999;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

.modal-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.icon-close {
  background: none;
  border: none;
  color: var(--studio-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.icon-close:hover {
  color: var(--studio-text);
}

.modal-desc {
  font-size: 13px;
  color: var(--studio-muted);
  margin-bottom: 14px;
}

.modal-desc code {
  background: var(--studio-surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: #c7d2fe;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #1f2430;
  border: 1px solid var(--studio-border-hover);
  color: var(--studio-text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Post Photo Attachment UI */
.media-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px dashed var(--studio-border-hover);
  border-radius: var(--radius-md);
  background: var(--studio-bg);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.media-dropzone.dragover {
  border-color: var(--studio-accent);
  background: rgba(99, 102, 241, 0.08);
}

.media-drop-hint {
  font-size: 11.5px;
  color: var(--studio-muted);
}

.media-drop-hint code {
  background: var(--studio-surface-2);
  padding: 1px 4px;
  border-radius: 4px;
  color: #c7d2fe;
}

.media-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.media-thumb-grid:empty {
  display: none;
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--studio-border);
  background: var(--studio-bg);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.12s ease;
}

.media-thumb-remove:hover {
  background: var(--studio-danger);
}

/* SEO Section Below Studio */
.seo-section {
  background: #0c0e12;
  border-top: 1px solid var(--studio-border);
  padding: 56px 24px 40px;
}

.seo-container {
  max-width: 980px;
  margin: 0 auto;
}

.seo-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.seo-kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.seo-hero h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.seo-lead {
  color: var(--studio-muted);
  font-size: 15px;
  line-height: 1.65;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.seo-card {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.seo-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--studio-text);
}

.seo-card p {
  font-size: 13.5px;
  color: var(--studio-muted);
  line-height: 1.6;
}

.seo-card code {
  background: var(--studio-surface-2);
  padding: 1px 5px;
  border-radius: 4px;
  color: #c7d2fe;
}

.seo-faq {
  margin-bottom: 40px;
}

.seo-faq h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.faq-item summary {
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--studio-muted);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--studio-muted);
  line-height: 1.65;
}

.seo-footer {
  border-top: 1px solid var(--studio-border);
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--studio-muted);
}

.seo-footer a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 500;
}

.seo-footer a:hover {
  text-decoration: underline;
}

/* Compact Sidebar Promo Bar */
.sidebar-promo {
  flex-shrink: 0;
  padding: 12px 16px;
  background: #12151c;
  border-top: 1px solid var(--studio-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-promo-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--studio-muted);
}

.sidebar-promo-head strong {
  color: var(--studio-text);
}

.sidebar-donate-link {
  margin-left: auto;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-donate-link:hover {
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(245, 158, 11, 0.6);
}

/* Donate QRIS Modal */
.donate-modal {
  max-width: 420px;
}

.qris-frame {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.qris-image {
  display: block;
  width: 100%;
  max-width: 300px;
  max-height: 52vh;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.qris-caption {
  text-align: center;
  font-size: 12px;
  color: var(--studio-muted);
  margin-bottom: 16px;
}

.donate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.donate-footer a {
  text-decoration: none;
}

.donate-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.75);
}

.sidebar-promo-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.promo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--studio-surface-2);
  border: 1px solid var(--studio-border);
  color: var(--studio-text);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.promo-chip:hover {
  border-color: var(--studio-border-hover);
  background: #252a36;
}

.promo-chip-accent {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}

.promo-chip-accent:hover {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(99, 102, 241, 0.65);
  color: #fff;
}

/* Dedicated Promo Showcase Section */
.promo-showcase {
  margin-bottom: 48px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(22, 25, 32, 0.6));
  border: 1px solid var(--studio-border);
}

.promo-showcase-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 24px;
}

.promo-showcase-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.promo-showcase-sub {
  font-size: 14px;
  color: var(--studio-muted);
  line-height: 1.6;
}

.promo-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.promo-card:hover {
  border-color: var(--studio-border-hover);
  transform: translateY(-2px);
}

.promo-card-biz {
  border-color: rgba(99, 102, 241, 0.42);
  background: linear-gradient(145deg, #171a26, #141720);
}

.promo-card-biz:hover {
  border-color: rgba(99, 102, 241, 0.72);
}

.promo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.promo-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--studio-surface-2);
  border: 1px solid var(--studio-border);
  font-size: 11px;
  font-weight: 600;
  color: #d1d5db;
}

.promo-badge-accent {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
}

.promo-domain {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--studio-muted);
}

.promo-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.promo-card p {
  font-size: 13.5px;
  color: var(--studio-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.promo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.promo-tags span {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  font-size: 11.5px;
  color: #d1d5db;
}

.promo-cta {
  width: 100%;
  text-decoration: none;
}

@media (max-width: 760px) {
  .promo-cards {
    grid-template-columns: 1fr;
  }

  .promo-showcase {
    padding: 20px 16px;
  }
}

/* Responsive — Tablet & Smaller Desktop */
@media (max-width: 1120px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 16px;
  }

  .topbar-center {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .sidebar {
    width: 320px;
  }
}

/* Responsive — Mobile & Portrait Tablet */
@media (max-width: 960px) {
  .app-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .workspace {
    flex-direction: column-reverse;
    overflow: visible;
  }

  .stage {
    width: 100%;
  }

  .canvas-stage {
    padding: 18px 14px;
  }

  #previewCanvas {
    max-height: 58vh;
    max-height: 58dvh;
  }

  .slide-strip-bar {
    height: auto;
    padding: 10px 14px;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--studio-border);
  }

  .tab-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--studio-surface);
  }

  .sidebar-scroll {
    overflow-y: visible;
    padding: 16px;
  }
}

/* Responsive — Smartphones */
@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .topbar-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
    border-radius: 8px;
  }

  .brand h1 {
    font-size: 14px;
  }

  .brand-sub {
    font-size: 10.5px;
  }

  .topbar-right {
    width: 100%;
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .topbar-right .btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12.5px;
    white-space: normal;
    text-align: center;
  }

  .topbar-center {
    order: 3;
    width: 100%;
  }

  .ratio-pills {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ratio-pill {
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
    gap: 5px;
  }

  .canvas-stage {
    padding: 14px 12px;
  }

  #previewCanvas {
    max-height: 52vh;
    max-height: 52dvh;
  }

  .slide-strip-bar {
    padding: 8px 12px;
    gap: 8px;
  }

  .slide-chip {
    max-width: 150px;
    padding: 8px 10px;
  }

  .slide-add-chip {
    padding: 8px 12px;
  }

  /* Prevent iOS Safari zoom on input focus */
  .input,
  .select,
  .textarea {
    font-size: 16px;
  }

  .tab-btn {
    padding: 13px 4px;
    font-size: 12.5px;
  }

  .tb-btn {
    height: 34px;
    min-width: 34px;
    padding: 0 9px;
  }

  .btn-grid-2 {
    gap: 8px;
  }

  .btn-sm {
    min-height: 36px;
  }

  .avatar-uploader {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .sidebar-promo {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .seo-section {
    padding: 40px 16px calc(32px + env(safe-area-inset-bottom));
  }

  .seo-hero h2 {
    font-size: 21px;
  }

  .seo-lead {
    font-size: 14px;
  }

  .seo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }

  .promo-showcase-head h2 {
    font-size: 19px;
  }

  .promo-card {
    padding: 18px;
  }

  .promo-card-top {
    flex-wrap: wrap;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .donate-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .donate-footer > a,
  .donate-footer-right {
    width: 100%;
    justify-content: flex-end;
  }

  .donate-footer-right .btn {
    flex: 1;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    text-align: center;
  }
}

/* Responsive — Ultra-Compact Phones (<= 360px) */
@media (max-width: 360px) {
  .ratio-pill {
    font-size: 11px;
    padding: 7px 4px;
  }

  .preset-grid,
  .color-grid,
  .btn-grid-2,
  .sidebar-promo-links {
    grid-template-columns: 1fr;
  }

  .media-thumb-grid {
    grid-template-columns: 1fr;
  }
}
