body { font-family: 'DM Sans', sans-serif; }

.pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  position: relative;
  top: -3px;
}

.tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.04);
}

.section-label {
  font-size: .7rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

/* ── TWO-COLUMN LAYOUT ── */
.pro-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .pro-wrap { grid-template-columns: 1fr; }
}

/* ── PREVIEW ── */
.slide-preview {
  position: relative; overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  width: 100%;
  background: #059669;
}
.slide-preview.r1x1 { aspect-ratio: 1/1; }
.slide-preview.r4x5 { aspect-ratio: 4/5; }

.slide-canvas {
  position: absolute; inset: 0;
  overflow: hidden;
}

.slide-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 5px;
  z-index: 10;
}
.dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.4); transition:background .15s; }
.dot.on { background:rgba(255,255,255,0.95); }

.slide-wm {
  position: absolute; bottom: 7px; right: 9px;
  font-size: 9px; font-weight: 500; opacity: .65;
  pointer-events: none; z-index: 10;
  font-family: 'DM Sans', sans-serif;
}

/* ── THUMB STRIP ── */
.thumb-strip { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; margin-top:10px; }
.thumb-strip::-webkit-scrollbar { height:3px; }
.thumb-strip::-webkit-scrollbar-thumb { background:#d1d5db; border-radius:2px; }

.thumb {
  width:52px; height:52px; border-radius:8px; flex-shrink:0;
  cursor:pointer; position:relative; border:2.5px solid transparent;
  overflow:hidden; transition:border-color .15s;
  display:flex; align-items:center; justify-content:center;
}
.thumb.on { border-color:#059669; }
.thumb-lbl { font-size:7px; text-align:center; padding:2px; line-height:1.2; position:relative; z-index:1; font-weight:700; }
.thumb-type {
  position:absolute; top:2px; left:2px;
  font-size:6px; font-weight:700; background:rgba(0,0,0,.35);
  color:#fff; padding:1px 3px; border-radius:3px;
  text-transform:uppercase; letter-spacing:.04em;
}
.thumb-del {
  position:absolute; top:-3px; right:-3px;
  background:#ef4444; color:#fff; border-radius:50%;
  width:15px; height:15px; font-size:10px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:10;
}
.thumb-add {
  width:52px; height:52px; border-radius:8px; flex-shrink:0;
  cursor:pointer; border:2px dashed #d1d5db;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; color:#9ca3af;
  transition:border-color .15s, color .15s;
}
.thumb-add:hover { border-color:#059669; color:#059669; }

/* ── LAYOUT GRID ── */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.layout-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem; padding: .6rem .3rem;
  border: 1.5px solid #e5e7eb; border-radius: .6rem;
  cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
  font-size: .68rem; font-weight: 600; color: #6b7280;
  text-align: center;
}
.layout-btn .layout-icon { font-size: 1.2rem; }
.layout-btn:hover { border-color: #059669; color: #059669; }
.layout-btn.on { border-color: #059669; background: #f0fdf4; color: #065f46; }

/* ── CONTENT FIELDS ── */
.field-label { font-size: .75rem; font-weight: 600; color: #374151; display:block; margin-bottom:.25rem; }
.field-hint  { font-size: .68rem; color: #9ca3af; margin-bottom:.5rem; display:block; }
.field-input {
  border: 1px solid #e5e7eb; border-radius: .5rem;
  padding: .45rem .7rem; font-size: .82rem; width:100%;
  font-family: inherit;
  transition: border-color .15s;
  outline: none;
}
.field-input:focus { border-color: #059669; }
textarea.field-input { resize: none; }
.field-row { margin-bottom: .75rem; }
.steps-list { display:flex; flex-direction:column; gap:.4rem; }
.step-row { display:flex; align-items:center; gap:.4rem; }
.step-num {
  width:22px; height:22px; border-radius:50%;
  background:#059669; color:#fff;
  font-size:.68rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.step-input {
  border: 1px solid #e5e7eb; border-radius: .4rem;
  padding: .35rem .6rem; font-size: .8rem; flex:1;
  font-family: inherit; outline:none;
}
.step-input:focus { border-color: #059669; }

/* ── BRAND ── */
.palette-grid { display:flex; flex-wrap:wrap; gap:.5rem; }
.palette-card {
  display:flex; align-items:center; gap:.5rem;
  padding:.4rem .6rem; border:1.5px solid #e5e7eb; border-radius:.5rem;
  cursor:pointer; transition: border-color .15s;
  flex: 0 0 calc(50% - .25rem);
}
.palette-card:hover { border-color:#059669; }
.palette-card.on { border-color:#059669; background:#f0fdf4; }
.palette-swatch { width:28px; height:28px; border-radius:6px; flex-shrink:0; }
.palette-name { font-size:.7rem; font-weight:600; color:#374151; }

.font-grid { display:flex; flex-direction:column; gap:.4rem; }
.font-btn {
  padding:.45rem .75rem; border:1.5px solid #e5e7eb; border-radius:.5rem;
  cursor:pointer; text-align:left; font-size:.8rem; background:#fff;
  transition:border-color .15s;
}
.font-btn:hover { border-color:#059669; }
.font-btn.on { border-color:#059669; background:#f0fdf4; color:#065f46; }

/* ── MOBILE TABS ── */
.mob-tabs { display:none; }
@media (max-width:900px) {
  .mob-tabs {
    display:flex; border-bottom:1px solid #e5e7eb; margin-bottom:1rem; overflow-x:auto;
  }
  .mob-tab {
    flex-shrink:0; padding:.5rem .75rem; text-align:center; font-size:.72rem; font-weight:600;
    color:#9ca3af; border-bottom:2px solid transparent; cursor:pointer;
    transition:color .15s, border-color .15s;
  }
  .mob-tab.on { color:#059669; border-bottom-color:#059669; }
  /* Mobile: hide all panes by default */
  .tab-pane { display:none; }
  .tab-pane.on { display:flex; flex-direction:column; gap:.75rem; }
}
@media (min-width:901px) {
  /* Desktop: always show all panes */
  .tab-pane { display:flex !important; flex-direction:column; gap:.75rem; }
  .mob-tabs { display:none !important; }
}

/* ── RATIO PILLS ── */
.r-pill {
  padding:.3rem .85rem; border-radius:999px;
  border:1.5px solid #e5e7eb; font-size:.75rem; font-weight:600;
  cursor:pointer; background:#fff;
  transition:background .15s, border-color .15s, color .15s;
}
.r-pill.on { background:#059669; border-color:#059669; color:#fff; }

/* ── EXPORT ── */
.ex-btn {
  display:flex; align-items:center; justify-content:center; gap:.4rem;
  padding:.55rem 1rem; border-radius:.6rem;
  font-size:.82rem; font-weight:600; cursor:pointer; border:none; width:100%;
  font-family:inherit;
  transition:opacity .15s, transform .1s;
}
.ex-btn:hover  { opacity:.88; transform:translateY(-1px); }
.ex-btn:active { transform:translateY(0); }
.eg { background:#059669; color:#fff; }
.ed { background:#1f2937; color:#fff; }
.ew { background:#f3f4f6; color:#374151; border:1px solid #e5e7eb; }

input[type=color] { width:32px; height:32px; padding:2px; border:1px solid #e5e7eb; border-radius:6px; cursor:pointer; }

/* ── SLIDE LAYOUTS rendered in DOM ── */

/* COVER */
.sl-cover {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; padding:10%;
  overflow:hidden;
}
.sl-cover .deco-circle {
  position:absolute; border-radius:50%;
  opacity:.15;
}
.sl-cover .tag-pill {
  font-size:.55em; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  padding:.15em .7em; border-radius:999px;
  margin-bottom:.6em; display:inline-block;
}
.sl-cover .cover-title {
  font-weight:800; line-height:1.1;
  margin-bottom:.35em; word-break:break-word;
}
.sl-cover .cover-sub {
  opacity:.78; line-height:1.4; word-break:break-word;
}
.sl-cover .cover-handle {
  position:absolute; bottom:4%; font-size:.45em;
  font-weight:600; opacity:.7; letter-spacing:.04em;
}

/* STEPS */
.sl-steps {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  padding:8% 9%;
  overflow:hidden;
}
.sl-steps .steps-title {
  font-weight:800; line-height:1.15;
  margin-bottom:.6em; word-break:break-word;
}
.sl-steps .step-item {
  display:flex; align-items:flex-start; gap:.5em;
  margin-bottom:.4em;
}
.sl-steps .step-badge {
  width:1.5em; height:1.5em; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; flex-shrink:0; font-size:.8em;
  margin-top:.1em;
}
.sl-steps .step-text { line-height:1.35; word-break:break-word; opacity:.9; }
.sl-steps .deco-bar {
  position:absolute; left:0; top:0; bottom:0; width:5px; border-radius:0 3px 3px 0;
}

/* QUOTE */
.sl-quote {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; padding:9% 11%;
  overflow:hidden;
}
.sl-quote .quote-mark {
  font-size:4em; line-height:.6; font-weight:900;
  opacity:.25; margin-bottom:.1em; font-family:'DM Serif Display', serif;
}
.sl-quote .quote-text {
  font-weight:600; line-height:1.4; font-style:italic;
  word-break:break-word; margin-bottom:.5em;
}
.sl-quote .quote-attr {
  font-size:.55em; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; opacity:.65;
}
.sl-quote .deco-line {
  width:40px; height:3px; border-radius:2px;
  margin:0 auto .6em; opacity:.4;
}

/* STAT */
.sl-stat {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; padding:8%;
  overflow:hidden;
}
.sl-stat .stat-label {
  font-size:.5em; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  opacity:.7; margin-bottom:.3em;
}
.sl-stat .stat-number {
  font-weight:900; line-height:.95;
  margin-bottom:.2em; word-break:break-word;
}
.sl-stat .stat-desc {
  font-size:.52em; opacity:.78; line-height:1.4;
  word-break:break-word; max-width:80%;
}
.sl-stat .deco-ring {
  position:absolute; border-radius:50%;
  border-style:solid; opacity:.12;
}

/* TIP */
.sl-tip {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  padding:8% 9%;
  overflow:hidden;
}
.sl-tip .tip-icon-wrap {
  margin-bottom:.5em;
}
.sl-tip .tip-icon {
  width:1.6em; height:1.6em; border-radius:.4em;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2em;
}
.sl-tip .tip-number {
  font-size:.5em; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
  opacity:.6; margin-bottom:.2em;
}
.sl-tip .tip-title {
  font-weight:800; line-height:1.15;
  margin-bottom:.4em; word-break:break-word;
}
.sl-tip .tip-body {
  opacity:.84; line-height:1.5;
  word-break:break-word;
}
.sl-tip .tip-tag {
  margin-top:auto; padding-top:.5em;
  font-size:.44em; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  opacity:.55;
}

/* CTA */
.sl-cta {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; padding:9%;
  overflow:hidden;
}
.sl-cta .cta-title {
  font-weight:900; line-height:1.1;
  margin-bottom:.4em; word-break:break-word;
}
.sl-cta .cta-sub {
  opacity:.78; line-height:1.45;
  word-break:break-word; margin-bottom:.8em;
}
.sl-cta .cta-btn {
  display:inline-block;
  font-size:.5em; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  padding:.6em 1.6em; border-radius:999px;
}
.sl-cta .cta-handle {
  margin-top:.6em; font-size:.44em; font-weight:600; opacity:.65; letter-spacing:.05em;
}
.sl-cta .deco-dots {
  position:absolute; opacity:.1;
}

#exportArea { position:fixed; left:-9999px; top:0; }
