:root {
  --bg-primary: #0d0e11;
  --bg-panel: #14161a;
  --bg-elevated: #1c1f25;
  --bg-soft: #242830;
  --btw-orange: #f87125;
  --accent: #f87125;
  --accent-red: #f87125;
  --accent-glow: rgba(248, 113, 37, 0.28);
  --red-glow: rgba(248, 113, 37, 0.32);
  --text-main: #f7f7f5;
  --text-muted: #9ca3af;
  --border-color: #2c3039;
  --panel-shadow: 10px 0 30px rgba(0,0,0,0.45);
  --control-bg: #1c1f25;
  --control-bg-focus: #242830;
  --tab-bg: #0f1114;
  --radius: 6px;
  --radius-lg: 10px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.ui-light {
  --bg-primary: #f5f4f0;
  --bg-panel: #ffffff;
  --bg-elevated: #f9f8f5;
  --bg-soft: #eceae4;
  --btw-orange: #f87125;
  --accent: #f87125;
  --accent-red: #f87125;
  --accent-glow: rgba(248, 113, 37, 0.2);
  --red-glow: rgba(248, 113, 37, 0.22);
  --text-main: #151619;
  --text-muted: #686d76;
  --border-color: #dfddd6;
  --panel-shadow: 10px 0 28px rgba(15,15,15,0.08);
  --control-bg: #f6f5f1;
  --control-bg-focus: #ffffff;
  --tab-bg: #eae8e1;
}

.hidden { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border-width: 0 !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.sidebar-toggle-button {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 40;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg-panel) 88%, transparent);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: left var(--transition-normal), background var(--transition-fast), color var(--transition-fast);
}
.sidebar-toggle-button:hover {
  background: var(--accent-red);
  color: #fff;
}

/* ─────────────────────────────────────────────
   SIDEBAR LAYOUT
───────────────────────────────────────────── */
.sidebar {
  width: 420px;
  background-color: var(--bg-panel);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: var(--panel-shadow);
  z-index: 10;
  transition: margin-left var(--transition-normal), opacity var(--transition-normal);
}

body.sidebar-collapsed .sidebar {
  margin-left: -420px;
  opacity: 0;
  pointer-events: none;
}

body.sidebar-collapsed .sidebar-toggle-button {
  left: 1rem;
}

body:not(.sidebar-collapsed) .sidebar-toggle-button {
  left: 0.8rem;
}

.sidebar-header {
  padding: 1.1rem 1.5rem 1.1rem 4.1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background:
    radial-gradient(circle at 0% 0%, rgba(248, 113, 37, 0.16), transparent 60%),
    color-mix(in srgb, var(--bg-panel) 88%, #000 12%);
}
.btw-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.sidebar-brand-icon {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(248, 113, 37, 0.28));
}
.btw-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.btw-brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-brand-wordmark {
  height: 19px;
  width: auto;
  object-fit: contain;
  display: block;
}
.wordmark-light { display: none; }
body.ui-light .wordmark-dark { display: none; }
body.ui-light .wordmark-light { display: block; }
.badge-btw-post {
  background: var(--btw-orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(248, 113, 37, 0.35);
}
.btw-brand-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 2.6px;
  color: var(--btw-orange);
  text-transform: uppercase;
}
.theme-toggle-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle-button:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  transform: translateY(-1px);
}
.theme-toggle-button i {
  width: 17px;
  height: 17px;
}

/* ─────────────────────────────────────────────
   MAIN TABS (TEXTO / DESIGN / TUTORIAL)
───────────────────────────────────────────── */
.main-tabs {
  display: flex;
  background: var(--tab-bg);
  border-bottom: 2px solid var(--border-color);
  flex-shrink: 0;
}

.main-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  padding: 0.85rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
  margin-bottom: -2px;
}
.main-tab-btn:hover { color: var(--text-main); }
.main-tab-btn.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}
.main-tab-btn.tutorial-tab {
  color: var(--accent-red);
  font-weight: 900;
}
.main-tab-btn.tutorial-tab.active {
  border-bottom-color: var(--accent-red);
}

.main-tab-content {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.main-tab-content.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

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

/* ─────────────────────────────────────────────
   SCROLL AREA
───────────────────────────────────────────── */
.editor-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.editor-scroll::-webkit-scrollbar { width: 4px; }
.editor-scroll::-webkit-scrollbar-track { background: transparent; }
.editor-scroll::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 4px; }

/* ─────────────────────────────────────────────
   FORM COMPONENTS
───────────────────────────────────────────── */
fieldset {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: color-mix(in srgb, var(--bg-panel) 92%, var(--text-main) 8%);
}
legend {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--bg-panel) 92%, var(--text-main) 8%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.control-section h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.range-header { display: flex; justify-content: space-between; }

.input-group { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.input-group small { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

select, input:not([type="checkbox"]):not([type="color"]), textarea {
  background: var(--control-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  width: 100%;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent-red); background: var(--control-bg-focus); }

input[type="color"] {
  padding: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
  background: var(--control-bg);
  border: 1px solid var(--border-color);
}
input[type="range"] { padding: 0; background: transparent; border: none; cursor: pointer; accent-color: var(--accent-red); }

.design-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.button-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1rem; }

.profile-panel {
  background: var(--control-bg);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
}

.hint-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────────
   SLIDE TABS (per-slide)
───────────────────────────────────────────── */
.slide-tabs { display: flex; gap: 4px; background: var(--tab-bg); padding: 4px; border-radius: 8px; margin-bottom: 1.5rem; }
.slide-tab-btn { flex: 1; background: transparent; border: none; color: var(--text-muted); padding: 8px; font-size: 0.75rem; font-weight: 700; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.slide-tab-btn.active { background: var(--accent); color: var(--bg-primary); }
.slide-tab-content { display: none; }
.slide-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* Borderless Textareas */
.borderless-textarea { background: transparent !important; border: 1px solid transparent !important; padding: 0 !important; width: 100%; resize: none; overflow: hidden; }
.borderless-textarea:focus { border-color: transparent !important; }
.title-area { font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: var(--text-main); margin-bottom: 0.5rem; caret-color: var(--accent); }
.body-area { font-size: 1rem; line-height: 1.5; color: var(--text-muted); caret-color: var(--accent); }
.borderless-textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 55%, transparent); }

/* ─────────────────────────────────────────────
   SLIDE LIST / EDITOR ITEMS
───────────────────────────────────────────── */
.slide-editor-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.16);
}
.slide-editor-item:hover { transform: scale(1.015); border-color: var(--accent-red); box-shadow: 0 8px 30px var(--red-glow); }
.slide-editor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.slide-number { background: var(--accent-red); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 900; }

.empty-message { text-align: center; padding: 2rem; border: 2px dashed var(--border-color); border-radius: var(--radius); color: var(--text-muted); font-size: 0.8rem; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.ai-button {
  background: linear-gradient(135deg, #f87125 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  padding: 1.1rem;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 20px var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ai-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); filter: brightness(1.08); }

.accent-button {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 1.1rem;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--red-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.accent-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--red-glow); filter: brightness(1.15); }

.outline-button {
  background: var(--control-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 1.1rem;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.outline-button:hover { background: var(--control-bg-focus); border-color: var(--accent-red); transform: translateY(-1px); }
.outline-button.full-row { grid-column: 1 / -1; }
.outline-button.danger-action {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.08);
}
.outline-button.danger-action:hover {
  color: #fff;
  border-color: #ef4444;
  background: #ef4444;
}

.icon-btn {
  background: var(--control-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.icon-btn:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); transform: translateY(-1px); box-shadow: 0 4px 12px var(--red-glow); }
.icon-btn.danger { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.2); color: #f87171; }
.icon-btn.danger:hover { color: #fff; background: #ef4444; border-color: #ef4444; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.icon-btn.success { background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.2); color: #4ade80; }
.icon-btn.success:hover { color: #000; background: #22c55e; border-color: #22c55e; box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); }
.icon-btn.active { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }

.file-upload-btn { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.file-upload-btn:hover { color: var(--text-main); }

.btw-ids-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 0.55rem;
}
.ids-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  background: #16181d;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ids-preset-btn img {
  height: 22px;
  width: 100%;
  object-fit: contain;
  display: block;
}
.ids-preset-btn span {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ids-preset-btn:hover {
  border-color: var(--btw-orange);
  color: #fff;
  transform: translateY(-1px);
}
.ids-preset-btn.active {
  border-color: var(--btw-orange);
  background: color-mix(in srgb, var(--btw-orange) 16%, #16181d);
  color: #fff;
  box-shadow: 0 0 0 1px var(--btw-orange);
}

.page-logo-control {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 64px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--control-bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.page-logo-control:hover {
  border-color: var(--accent-red);
  background: var(--control-bg-focus);
  transform: translateY(-1px);
}
.page-logo-preview {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14161a;
  border: 1px solid rgba(248, 113, 37, 0.35);
  overflow: hidden;
}
.page-logo-preview img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}
.page-logo-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 0.18rem;
}
.page-logo-copy strong {
  color: var(--text-main);
  font-size: 0.82rem;
  line-height: 1.1;
}
.page-logo-copy small {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.page-logo-control > i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   MULTIPLE IMAGES
───────────────────────────────────────────── */
.multi-images-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  min-height: 120px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.multi-images-dropzone:hover,
.multi-images-dropzone.drag-over {
  border-color: var(--accent-red);
  background: color-mix(in srgb, var(--accent-red) 10%, transparent);
}

.multi-images-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 120px;
}

.multi-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
}

.multi-img-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: grab;
  border: 2px solid transparent;
  transition: all 0.2s;
  user-select: none;
}
.multi-img-thumb:active { cursor: grabbing; }
.multi-img-thumb.dragging { opacity: 0.4; border-color: var(--accent-red); }
.multi-img-thumb.drag-target { border-color: var(--accent-red); box-shadow: 0 0 0 2px var(--accent-red); }

.multi-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.multi-img-number {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
}

.multi-img-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(239,68,68,0.9);
  border: none;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.multi-img-thumb:hover .multi-img-remove { opacity: 1; }

/* ─────────────────────────────────────────────
   MODO BLINDADO TOGGLE
───────────────────────────────────────────── */
.modo-blindado-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--control-bg);
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.modo-blindado-header {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  flex: 1;
}
.modo-blindado-icon { font-size: 1.3rem; flex-shrink: 0; }
.modo-blindado-header strong { font-size: 0.85rem; display: block; margin-bottom: 3px; }
.modo-blindado-header small { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; display: block; }

.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #333; border-radius: 24px; transition: 0.3s;
}
.toggle-slider:before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent-red); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* ─────────────────────────────────────────────
   TUTORIAL
───────────────────────────────────────────── */
.tutorial-content { display: flex; flex-direction: column; gap: 1.5rem; }

.tutorial-section {
  background: color-mix(in srgb, var(--bg-panel) 92%, var(--text-main) 8%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
}

.tutorial-step-badge {
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.tutorial-section h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: var(--text-main);
}

.tutorial-section p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.tutorial-section p strong { color: var(--text-main); }
.tutorial-section p a { color: var(--accent-red); text-decoration: none; }
.tutorial-section p:last-child { margin-bottom: 0; }

.tutorial-code-block {
  background: var(--tab-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-main);
  margin: 0.7rem 0;
  line-height: 1.8;
}
.code-comment { color: var(--text-muted); }

.kbd {
  background: var(--control-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-red);
  font-family: monospace;
}

/* ─────────────────────────────────────────────
   PREVIEW PANEL
───────────────────────────────────────────── */
.preview-panel {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  position: relative;
}
.preview-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: color-mix(in srgb, var(--bg-panel) 92%, #000 8%);
  border-bottom: 1px solid var(--border-color);
  z-index: 5;
}
.preview-toolbar strong { display: flex; align-items: center; gap: 0.65rem; font-size: 0.9rem; color: var(--text-main); font-weight: 700; letter-spacing: 0.5px; }
.preview-toolbar i { color: var(--accent); width: 18px; }
.toolbar-btw-icon {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}
.toolbar-controls-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.format-pills {
  display: flex;
  gap: 4px;
  background: var(--tab-bg);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}
.format-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.format-pill:hover {
  color: var(--text-main);
}
.format-pill.active {
  background: var(--btw-orange);
  color: #fff;
}
.resolution-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.scale-wrapper {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 4rem;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.carousel-track {
  display: flex;
  gap: 40px;
  transform: scale(0.35);
  transform-origin: top left;
  margin-bottom: 2000px;
  margin-right: 5000px;
}

/* ─────────────────────────────────────────────
   CAROUSEL CARDS
───────────────────────────────────────────── */
.carousel-card {
  width: var(--card-width, 1080px);
  height: var(--card-height, 1350px);
  min-width: var(--card-width, 1080px);
  container-type: size;
  container-name: slidecard;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}
.btw-highlight {
  background: var(--slide-highlight, var(--btw-orange, #f87125));
  color: #ffffff;
  padding: 0.04em 0.22em 0.08em;
  border-radius: 0.08em;
  font-weight: 900;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.btw-underline {
  text-decoration: underline;
  text-decoration-color: var(--slide-highlight, var(--btw-orange, #f87125));
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.15em;
}
.btw-strike {
  text-decoration: line-through;
  opacity: 0.72;
}
.hook-swapper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: color-mix(in srgb, var(--btw-orange) 14%, transparent);
  color: var(--btw-orange);
  border: 1px solid color-mix(in srgb, var(--btw-orange) 42%, transparent);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.hook-swapper-btn:hover {
  background: var(--btw-orange);
  color: #fff;
}
.card-img-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: background-position-y 0.3s ease;
}

.page-logo-placeholder {
  position: absolute;
  top: 2.2em;
  left: 2.2em;
  z-index: 20;
  width: 4.4em;
  height: 4.4em;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 16, 20, 0.88);
  border: 1.5px solid rgba(248, 113, 37, 0.45);
  box-shadow: 0 0.7em 2.2em rgba(0,0,0,0.28);
  overflow: hidden;
  pointer-events: none;
}
.page-logo-placeholder.logo-pos-top-left { top: 2.2em; left: 2.2em; right: auto; bottom: auto; }
.page-logo-placeholder.logo-pos-top-right { top: 2.2em; right: 2.2em; left: auto; bottom: auto; }
.page-logo-placeholder.logo-pos-bottom-left { bottom: 2.2em; left: 2.2em; top: auto; right: auto; }
.page-logo-placeholder.logo-pos-bottom-right { bottom: 2.2em; right: 2.2em; top: auto; left: auto; }

/* Per-slide Image Filter Presets */
.carousel-card.img-filter-bw-contrast .insider-top-img,
.carousel-card.img-filter-bw-contrast .poster-bg,
.carousel-card.img-filter-bw-contrast .manifesto-media,
.carousel-card.img-filter-bw-contrast .aula-media,
.carousel-card.img-filter-bw-contrast .mercado-bg,
.carousel-card.img-filter-bw-contrast .pub-image,
.carousel-card.img-filter-bw-contrast .case-sports-bg,
.carousel-card.img-filter-bw-contrast .swiss-media,
.carousel-card.img-filter-bw-contrast .glass-bg,
.carousel-card.img-filter-bw-contrast .bento-media,
.carousel-card.img-filter-bw-contrast .brutal-media,
.carousel-card.img-filter-bw-contrast .revista-media,
.carousel-card.img-filter-bw-contrast .thread-media,
.carousel-card.img-filter-bw-contrast .metric-bg,
.carousel-card.img-filter-bw-contrast .terminal-media {
  filter: grayscale(1) contrast(1.22) brightness(0.92) !important;
}
.carousel-card.img-filter-cinema-warm .insider-top-img,
.carousel-card.img-filter-cinema-warm .poster-bg,
.carousel-card.img-filter-cinema-warm .manifesto-media,
.carousel-card.img-filter-cinema-warm .aula-media,
.carousel-card.img-filter-cinema-warm .mercado-bg,
.carousel-card.img-filter-cinema-warm .pub-image,
.carousel-card.img-filter-cinema-warm .case-sports-bg,
.carousel-card.img-filter-cinema-warm .swiss-media,
.carousel-card.img-filter-cinema-warm .glass-bg,
.carousel-card.img-filter-cinema-warm .bento-media,
.carousel-card.img-filter-cinema-warm .brutal-media,
.carousel-card.img-filter-cinema-warm .revista-media,
.carousel-card.img-filter-cinema-warm .thread-media,
.carousel-card.img-filter-cinema-warm .metric-bg,
.carousel-card.img-filter-cinema-warm .terminal-media {
  filter: sepia(0.26) saturate(1.35) contrast(1.12) brightness(0.94) !important;
}
.carousel-card.img-filter-matte-dark .insider-top-img,
.carousel-card.img-filter-matte-dark .poster-bg,
.carousel-card.img-filter-matte-dark .manifesto-media,
.carousel-card.img-filter-matte-dark .aula-media,
.carousel-card.img-filter-matte-dark .mercado-bg,
.carousel-card.img-filter-matte-dark .pub-image,
.carousel-card.img-filter-matte-dark .case-sports-bg,
.carousel-card.img-filter-matte-dark .swiss-media,
.carousel-card.img-filter-matte-dark .glass-bg,
.carousel-card.img-filter-matte-dark .bento-media,
.carousel-card.img-filter-matte-dark .brutal-media,
.carousel-card.img-filter-matte-dark .revista-media,
.carousel-card.img-filter-matte-dark .thread-media,
.carousel-card.img-filter-matte-dark .metric-bg,
.carousel-card.img-filter-matte-dark .terminal-media {
  filter: saturate(0.55) contrast(0.95) brightness(0.76) !important;
}
.carousel-card.img-filter-blur-glass .insider-top-img,
.carousel-card.img-filter-blur-glass .poster-bg,
.carousel-card.img-filter-blur-glass .manifesto-media,
.carousel-card.img-filter-blur-glass .aula-media,
.carousel-card.img-filter-blur-glass .mercado-bg,
.carousel-card.img-filter-blur-glass .pub-image,
.carousel-card.img-filter-blur-glass .case-sports-bg,
.carousel-card.img-filter-blur-glass .swiss-media,
.carousel-card.img-filter-blur-glass .glass-bg,
.carousel-card.img-filter-blur-glass .bento-media,
.carousel-card.img-filter-blur-glass .brutal-media,
.carousel-card.img-filter-blur-glass .revista-media,
.carousel-card.img-filter-blur-glass .thread-media,
.carousel-card.img-filter-blur-glass .metric-bg,
.carousel-card.img-filter-blur-glass .terminal-media {
  filter: blur(8px) brightness(0.82) scale(1.06) !important;
}

/* Modo Blindado (Non-destructive Clean Focus Mode) */
.carousel-card.modo-blindado-active .insider-tag,
.carousel-card.modo-blindado-active .poster-kicker,
.carousel-card.modo-blindado-active .tarja-kicker,
.carousel-card.modo-blindado-active .tarja-pill,
.carousel-card.modo-blindado-active .aula-kicker,
.carousel-card.modo-blindado-active .mercado-kicker,
.carousel-card.modo-blindado-active .pub-topbar,
.carousel-card.modo-blindado-active .case-sports-eyebrow,
.carousel-card.modo-blindado-active .swiss-topbar,
.carousel-card.modo-blindado-active .glass-card-top,
.carousel-card.modo-blindado-active .bento-header-box,
.carousel-card.modo-blindado-active .brutal-topbar,
.carousel-card.modo-blindado-active .revista-masthead,
.carousel-card.modo-blindado-active .thread-kicker,
.carousel-card.modo-blindado-active .metric-topbar,
.carousel-card.modo-blindado-active .terminal-prompt-line,
.carousel-card.modo-blindado-active .page-logo-placeholder,
.carousel-card.modo-blindado-active .brand-header,
.carousel-card.modo-blindado-active .brand-header-icon {
  display: none !important;
}

/* Container Queries for 1:1 Square and 9:16 Vertical Responsiveness */
@container slidecard (max-height: 1120px) {
  .insider-top-img { height: 50%; }
  .insider-gradient { height: 56%; }
  .insider-content { padding: 3.2em; padding-top: 42%; }
  .insider-title { font-size: 4.6em; margin-bottom: 0.65em; }
  .insider-body { font-size: 2.85em; }
  .tarja-shell { padding: 5.5em 5em; }
  .tarja-title { font-size: 5.8em; }
  .tarja-ribbon { font-size: 3.9em; }
  .aula-shell { padding: 5em 5.5em 3.8em; }
  .aula-title { font-size: 4.3em; }
  .aula-media { width: 68%; margin-top: 2em; }
  .mercado-shell { padding: 5em 5.2em; }
  .pub-content { padding: 5.8em 5.8em 5em; }
  .case-sports-content { padding: 5.6em 5.6em 5.2em; }
  .case-sports-title { font-size: 4.6em; }
}

@container slidecard (min-height: 1650px) {
  .insider-top-img { height: 56%; }
  .insider-gradient { height: 62%; }
  .insider-content { padding: 5.2em; padding-top: 66%; }
  .poster-content { margin-top: 11em; }
  .case-sports-cover .case-sports-content { padding-bottom: 14em; }
}
.page-logo-placeholder img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}
.brand-header-logo {
  height: 1.55em;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}


/* Theme: Marketing Insider */
.theme-marketing-insider { background-color: var(--card-bg); border: 2px solid rgba(255,255,255,0.05); }
.insider-top-img { position: absolute; top: 0; left: 0; right: 0; height: 60%; background-size: cover; background-position: center; z-index: 1; }
.insider-gradient { position: absolute; top: 0; left: 0; right: 0; height: 65%; background: linear-gradient(to bottom, transparent 0%, var(--card-bg) 95%); z-index: 2; }
.insider-content { position: relative; z-index: 3; padding: 4em; padding-top: 55%; display: flex; flex-direction: column; height: 100%; }
.insider-tag { font-family: 'Inter', sans-serif; font-size: 1.8em; font-weight: 800; letter-spacing: 2px; color: var(--card-title); opacity: 0.8; margin-bottom: 1.5em; text-transform: uppercase; }
.insider-title { font-family: 'Inter', sans-serif; font-size: 5.5em; font-weight: 800; color: var(--card-title); line-height: 1.2; letter-spacing: -2px; margin-bottom: 1em; transition: color 0.3s ease; }
.insider-body { font-family: 'Inter', sans-serif; font-size: 3.5em; font-weight: 400; color: var(--card-body); line-height: 1.5; letter-spacing: -0.5px; transition: color 0.3s ease; }
.insider-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2em; }

/* Shared model pieces */
.brand-header,
.brand-header-icon {
  color: var(--card-title);
  font-family: var(--font-body);
  font-size: 1.35em;
  font-weight: 900;
  line-height: 1;
}
.model-topline,
.model-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  width: 100%;
  color: currentColor;
  font-family: var(--font-body);
  font-size: 1.45em;
  font-weight: 800;
}
.model-profile {
  display: flex;
  align-items: center;
  gap: 0.55em;
  min-width: 0;
}
.model-profile img {
  width: 2em;
  height: 2em;
  border-radius: 999px;
  object-fit: cover;
}
.model-profile span {
  color: currentColor;
  font-weight: 800;
  white-space: nowrap;
}

/* Model: Poster Cinematico */
.theme-poster-cinematico {
  background: #050506;
}
.poster-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
    #171717;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.08);
}
.poster-vignette {
  position: absolute;
  inset: 0;
  opacity: calc(var(--shadow-alpha, 0.7) * 1.15);
  background:
    radial-gradient(circle at 50% 35%, rgba(0,0,0,0) 0 24%, rgba(0,0,0,0.58) 74%),
    linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.12) 42%, rgba(0,0,0,0.72));
}
.poster-content {
  position: relative;
  z-index: 2;
  width: 82%;
  margin: 7.2em auto 0;
  text-align: center;
  text-transform: uppercase;
}
.poster-kicker {
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 3.2em;
  font-style: italic;
  font-weight: 900;
  text-transform: none;
  margin-bottom: -0.15em;
  text-shadow: 0 0.15em 0.7em rgba(0,0,0,0.55);
}
.poster-title {
  position: relative;
  color: var(--card-title);
  font-family: var(--font-heading);
  font-size: 5.2em;
  font-weight: 900;
  line-height: 0.95;
  text-shadow: 0 0.12em 0.8em rgba(0,0,0,0.6);
}
.poster-title::before {
  content: '';
  position: absolute;
  left: 7%;
  right: 8%;
  top: 35%;
  height: 0.22em;
  background: rgba(232,50,90,0.9);
  transform: rotate(-13deg);
  transform-origin: center;
  z-index: -1;
}
.poster-stamp {
  display: inline-block;
  color: #fff;
  background: #e83232;
  font-family: var(--font-heading);
  font-size: 2.2em;
  font-weight: 900;
  line-height: 1;
  margin-top: 0.25em;
  padding: 0.18em 0.55em;
  border: 0.08em solid rgba(255,255,255,0.65);
  box-shadow: 0 0.35em 1em rgba(0,0,0,0.35);
}
.poster-brand {
  position: absolute;
  z-index: 2;
  bottom: 5.5em;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
}

/* Model: Tarja Destaque */
.theme-tarja-destaque {
  background: #fff8d8;
}
.tarja-shell {
  min-height: 100%;
  padding: 8em 7em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #15151d;
  background:
    radial-gradient(circle at 50% 40%, rgba(67,112,245,0.08), transparent 36%),
    #fff8d8;
}
.tarja-logo {
  position: absolute;
  top: 4.5em;
  left: 50%;
  transform: translateX(-50%);
}
.tarja-logo .brand-header,
.tarja-logo .brand-header-icon {
  color: #2e6bff;
}
.tarja-content {
  width: 100%;
  text-align: center;
}
.tarja-kicker {
  color: #15151d;
  font-family: var(--font-body);
  font-size: 2.4em;
  font-weight: 700;
  margin-bottom: 0.3em;
}
.tarja-title {
  color: var(--card-title);
  font-family: var(--font-heading);
  font-size: 7.4em;
  font-weight: 900;
  line-height: 0.92;
}
.tarja-ribbon {
  display: inline-block;
  color: var(--card-body);
  background: #2567ff;
  font-family: var(--font-heading);
  font-size: 4.8em;
  font-weight: 900;
  line-height: 1;
  margin-top: 0.05em;
  padding: 0.12em 0.42em 0.18em;
  box-shadow: 0.14em 0.14em 0 #111;
}
.tarja-pill {
  display: inline-block;
  color: #15151d;
  background: #fffdf0;
  border: 0.08em solid #15151d;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 2.2em;
  line-height: 1.1;
  margin-top: 0.55em;
  padding: 0.24em 0.75em;
}
.tarja-corner {
  position: absolute;
  right: 3em;
  bottom: 3em;
  color: #15151d;
  font-family: var(--font-body);
  font-size: 1.5em;
  font-weight: 900;
}

/* Model: Manifesto Split */
.theme-manifesto-split {
  background: #242f8f;
}
.manifesto-shell {
  min-height: 100%;
  display: grid;
  grid-template-columns: 49% 51%;
  color: #fff8e8;
}
.manifesto-media {
  min-height: 100%;
  background:
    linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)),
    #111;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.08);
}
.manifesto-content {
  min-height: 100%;
  padding: 8em 6em 5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    #27318f;
  background-size: 70px 70px;
}
.manifesto-title {
  color: #27318f;
  font-family: var(--font-heading);
  font-size: 4.9em;
  font-weight: 900;
  line-height: 1.06;
  margin: 1em 0 0.8em;
}
.manifesto-title strong,
.manifesto-title {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.manifesto-title {
  display: inline;
  background: #fff8e8;
  padding: 0.04em 0.18em 0.08em;
}
.manifesto-body {
  color: var(--card-body);
  font-family: var(--font-body);
  font-size: 2.55em;
  font-weight: 500;
  line-height: 1.22;
  max-width: 9.4em;
  white-space: pre-line;
}
.manifesto-body strong {
  font-weight: 900;
}

/* Model: Aula Azul */
.theme-aula-azul {
  background: #0961dd;
}
.aula-shell {
  min-height: 100%;
  padding: 7em 7em 5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 26%),
    linear-gradient(135deg, #0b72f0, #074dc1);
}
.aula-content {
  width: 100%;
  text-align: center;
}
.aula-kicker {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 2.2em;
  font-weight: 800;
  margin-bottom: 0.6em;
}
.aula-title {
  color: var(--card-title);
  font-family: var(--font-heading);
  font-size: 5.2em;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.45em;
}
.aula-labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
}
.aula-labels p {
  display: inline-block;
  max-width: 92%;
  font-family: var(--font-body);
  font-size: 2.25em;
  font-weight: 700;
  line-height: 1.12;
  padding: 0.15em 0.5em 0.2em;
}
.aula-label-light {
  color: #1555d8;
  background: #fffdf2;
}
.aula-label-blue {
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 0.05em solid rgba(255,255,255,0.2);
}
.aula-media {
  width: 78%;
  aspect-ratio: 16 / 9;
  margin-top: 3.2em;
  border-radius: 0.75em;
  background: rgba(255,255,255,0.16);
  background-size: cover;
  background-position: center;
  box-shadow: 0 1em 2em rgba(0,0,0,0.22);
}
.aula-pagination {
  margin-top: auto;
  color: rgba(255,255,255,0.82);
  font-family: var(--font-body);
  font-size: 1.35em;
  font-weight: 800;
}

/* Model: Mercado Modular */
.theme-mercado-modular {
  background: #1f5bd8;
}
.mercado-shell {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7em 6.5em;
  color: #fff;
  background: #1f5bd8;
}
.mercado-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.88) contrast(1.05);
}
.mercado-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  pointer-events: none;
  opacity: 0.35;
}
.mercado-noise {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 65%, rgba(255,255,255,0.1) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 12%, transparent 88%, rgba(255,255,255,0.06));
  background-size: 90px 110px, 130px 90px, 100% 100%;
  mix-blend-mode: screen;
  opacity: 0.24;
  pointer-events: none;
}
.mercado-photo-question,
.mercado-photo-stacks {
  background: #111;
}
.mercado-photo-question::before,
.mercado-photo-stacks::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 30, 0.72);
  opacity: var(--shadow-alpha, 0.7);
  z-index: 1;
}
.mercado-solid-blue {
  background: #1f5bd8;
}
.mercado-solid-yellow {
  background: #efbd2d;
  color: #18333c;
}
.mercado-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2em;
}
.mercado-kicker {
  color: currentColor;
  font-family: var(--font-body);
  font-size: 2.1em;
  font-style: italic;
  line-height: 1.35;
  opacity: 0.9;
}
.mercado-question {
  color: #1f5bd8;
  background: #efbd2d;
  font-family: var(--font-heading);
  font-size: 4.25em;
  font-weight: 500;
  line-height: 1.08;
  padding: 0.38em 0.72em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mercado-solid-yellow .mercado-question,
.mercado-photo-stacks .mercado-question {
  color: #fff;
  background: #1f5bd8;
}
.mercado-solid-blue .mercado-question {
  color: #fff;
  background: transparent;
  padding: 0;
  max-width: 760px;
}
.mercado-photo-stacks .mercado-question {
  transform: rotate(-2deg);
  font-size: 4.75em;
  font-weight: 800;
  padding: 0.18em 0.35em;
}
.mercado-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  width: 100%;
}
.mercado-lines p {
  color: currentColor;
  font-family: var(--font-body);
  font-size: 2.35em;
  font-weight: 400;
  line-height: 1.28;
  max-width: 780px;
}
.mercado-lines strong {
  font-weight: 900;
}
.mercado-photo-stacks .mercado-lines {
  gap: 2.4em;
}
.mercado-photo-stacks .mercado-line-primary,
.mercado-photo-stacks .mercado-line-secondary {
  padding: 0.38em 0.72em;
}
.mercado-photo-stacks .mercado-line-primary {
  color: #fff;
  background: #1f5bd8;
}
.mercado-photo-stacks .mercado-line-secondary {
  color: #1f5bd8;
  background: #efbd2d;
}
.mercado-solid-yellow .mercado-line-primary,
.mercado-solid-yellow .mercado-line-secondary {
  color: #18333c;
}
.mercado-solid-yellow .mercado-line-primary {
  font-style: italic;
}
.mercado-solid-blue .mercado-lines {
  margin-top: 0.4em;
}
.mercado-solid-blue .mercado-lines p {
  color: #fff;
}
.mercado-footer {
  position: absolute;
  z-index: 2;
  left: 7em;
  right: 7em;
  bottom: 3.2em;
  display: flex;
  justify-content: space-between;
  color: currentColor;
  font-family: var(--font-body);
  font-size: 1.25em;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Model: Publicidade Premium */
.theme-publicidade-premium {
  background: #101010;
}
.pub-shell {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  color: #f6f0df;
  background: #101010;
}
.pub-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(circle at 28% 30%, rgba(185,242,140,0.08), transparent 36%);
  background-size: 100% 120px, 100% 100%;
  opacity: 0.36;
  pointer-events: none;
}
.pub-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.82) contrast(1.04);
}
.pub-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 8, 0.45);
  opacity: calc(var(--shadow-alpha, 0.7) * 1.15);
}
.pub-topbar,
.pub-footer {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: currentColor;
  font-family: var(--font-body);
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}
.pub-topbar {
  top: 0;
  padding: 1.45em 3.8em 1em;
  border-bottom: 1px solid rgba(246,240,223,0.62);
}
.pub-footer {
  bottom: 0;
  padding: 1em 0.25em 1.2em;
  border-top: 1px solid rgba(246,240,223,0.62);
  font-size: 1.05em;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
}
.pub-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 7.6em 7.2em 6.4em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pub-title {
  color: var(--card-title);
  font-family: 'Playfair Display', serif;
  font-size: 4.8em;
  font-weight: 900;
  line-height: 1.03;
  text-transform: uppercase;
  max-width: 780px;
}
.pub-title strong {
  font-weight: 900;
}
.pub-body {
  color: var(--card-body);
  font-family: var(--font-body);
  font-size: 2.45em;
  line-height: 1.22;
  max-width: 790px;
  margin-top: 1.4em;
}
.pub-body p + p {
  margin-top: 1em;
}
.pub-body strong {
  color: inherit;
  font-weight: 900;
}
.pub-body em {
  font-style: italic;
}
.pub-cover {
  align-items: flex-end;
}
.pub-cover .pub-scrim {
  background: linear-gradient(to bottom, rgba(8,9,8,0.08), rgba(8,9,8,0.52) 48%, rgba(8,9,8,0.72));
}
.pub-cover .pub-content {
  justify-content: flex-end;
  padding-bottom: 10.5em;
}
.pub-cover .pub-title {
  font-family: var(--font-heading);
  font-size: 5.35em;
  line-height: 0.98;
  max-width: 930px;
}
.pub-cover .pub-body {
  color: #111;
  background: #b9f28c;
  font-size: 2.1em;
  max-width: 930px;
  padding: 0.16em 0.45em 0.22em;
}
.pub-split .pub-image {
  bottom: auto;
  height: 48%;
}
.pub-split .pub-scrim {
  background: rgba(8,9,8,0.12);
}
.pub-split .pub-content {
  justify-content: flex-end;
  background: linear-gradient(to bottom, transparent 0 47%, #b9f28c 47% 100%);
  color: #111;
  padding-top: 50%;
}
.pub-split .pub-title {
  display: none;
}
.pub-split .pub-body {
  color: #111;
  max-width: 760px;
  margin: 0 auto 3.2em;
}
.pub-duo {
  display: grid;
  grid-template-rows: 1fr 1fr;
}
.pub-duo .pub-image {
  inset: 0 0 50% 0;
}
.pub-duo .pub-scrim {
  background: linear-gradient(to bottom, rgba(12,12,12,0.18), rgba(12,12,12,0.46) 48%, rgba(12,12,12,0.86) 50%, rgba(12,12,12,0.68));
}
.pub-duo .pub-content {
  justify-content: space-between;
  gap: 2em;
}
.pub-duo .pub-title {
  align-self: flex-start;
  color: #fff;
  border-left: 0.12em solid #b9f28c;
  padding-left: 0.55em;
  font-family: var(--font-body);
  font-size: 2.7em;
  font-weight: 500;
  line-height: 1.12;
  text-transform: none;
  max-width: 760px;
  margin-top: 10em;
}
.pub-duo .pub-body {
  align-self: flex-end;
  color: #fff;
  border-right: 0.12em solid #b9f28c;
  padding-right: 0.55em;
  text-align: right;
  max-width: 720px;
  margin-top: auto;
}
.pub-black .pub-content {
  justify-content: center;
}
.pub-black .pub-title {
  font-size: 4.4em;
  max-width: 760px;
}
.pub-black .pub-body {
  max-width: 760px;
}
.pub-green {
  color: #111;
  background: #b9f28c;
}
.pub-green .pub-topbar,
.pub-green .pub-footer {
  border-color: rgba(17,17,17,0.45);
}
.pub-green .pub-content {
  align-items: center;
  text-align: center;
}
.pub-green .pub-title {
  display: none;
}
.pub-green .pub-body {
  color: #111;
  max-width: 780px;
  margin-top: 0;
}
.pub-green .pub-body p {
  font-size: 1.02em;
}
.pub-minimal {
  color: #f6f0df;
  background: #101010;
}
.pub-minimal .pub-content {
  justify-content: flex-start;
  padding-top: 18em;
}
.pub-minimal .pub-title {
  font-family: var(--font-body);
  font-size: 2.9em;
  font-weight: 500;
  line-height: 1.18;
  text-transform: none;
  max-width: 790px;
  border-left: 0.12em solid #b9f28c;
  padding-left: 0.62em;
}
.pub-minimal .pub-body {
  color: #f6f0df;
  font-size: 2.15em;
  max-width: 770px;
}
.pub-statement {
  color: #f6f0df;
  background:
    radial-gradient(circle at 75% 30%, rgba(185,242,140,0.12), transparent 28%),
    #101010;
}
.pub-statement .pub-content {
  align-items: flex-start;
}
.pub-statement .pub-title {
  font-family: var(--font-heading);
  font-size: 4.9em;
  max-width: 850px;
}
.pub-statement .pub-body {
  color: #111;
  background: #b9f28c;
  max-width: 870px;
  padding: 0.22em 0.48em;
}

/* Model: Case Esportivo */
.theme-case-esportivo {
  background: #050505;
}
.case-sports-shell {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 210, 31, 0.12), transparent 30%),
    linear-gradient(135deg, #121212, #030303);
}
.case-sports-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.72) contrast(1.12) brightness(0.78);
  transform: scale(1.02);
}
.case-sports-scrim {
  position: absolute;
  inset: 0;
  opacity: calc(var(--shadow-alpha, 0.7) * 1.15);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.86), rgba(0,0,0,0.48) 48%, rgba(0,0,0,0.22)),
    linear-gradient(0deg, rgba(0,0,0,0.82), transparent 46%, rgba(0,0,0,0.24));
}
.case-sports-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 100% 126px, 126px 100%;
  opacity: 0.32;
  pointer-events: none;
}
.case-sports-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  padding: 7.3em 6.8em 6.6em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.case-sports-cover .case-sports-content {
  justify-content: flex-end;
  padding-bottom: 10.6em;
}
.case-sports-eyebrow {
  width: max-content;
  max-width: 100%;
  margin-bottom: 1.2em;
  padding: 0.42em 0.72em;
  color: #111;
  background: var(--card-title);
  font-family: var(--font-body);
  font-size: 1.2em;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.case-sports-title {
  max-width: 900px;
  color: var(--card-title);
  font-family: var(--font-heading);
  font-size: 5.55em;
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}
.case-sports-title strong {
  color: #fff;
  font-weight: 900;
}
.case-sports-cover-note {
  max-width: 760px;
  margin-top: 1.2em;
  color: #fff;
  font-family: var(--font-body);
  font-size: 2.05em;
  font-weight: 600;
  line-height: 1.22;
}
.case-sports-number {
  color: var(--card-title);
  font-family: var(--font-heading);
  font-size: 5.1em;
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 0.35em;
}
.case-sports-kicker {
  max-width: 760px;
  color: var(--card-title);
  font-family: var(--font-heading);
  font-size: 2.55em;
  font-weight: 900;
  line-height: 1.04;
  margin-bottom: 0.78em;
  text-transform: uppercase;
}
.case-sports-body {
  position: relative;
  max-width: 790px;
  color: var(--card-body);
  font-family: var(--font-body);
  font-size: 2.45em;
  line-height: 1.22;
}
.case-sports-body::before {
  content: '';
  position: absolute;
  top: 0.15em;
  left: -0.75em;
  width: 0.22em;
  height: 2.45em;
  background: #ff6a1a;
}
.case-sports-body p + p {
  margin-top: 0.8em;
}
.case-sports-body strong {
  color: var(--card-title);
  font-weight: 900;
}
.case-sports-footer {
  position: absolute;
  z-index: 3;
  left: 5.4em;
  right: 5.4em;
  bottom: 3.2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-body);
  font-size: 1.02em;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}
.case-sports-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1.25em;
  height: 1px;
  background: rgba(255,255,255,0.22);
}
.case-sports-solid .case-sports-scrim {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 106, 26, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(20,20,20,0.95), rgba(0,0,0,0.98));
}

/* ══════════════════════════════════════════════════════
   NEW MODELS FROM OPEN-SOURCE REPOSITORIES
══════════════════════════════════════════════════════ */

/* 9. Model: Swiss Grid BTW (guizang-social-card-skill Swiss International Style) */
.theme-swiss-grid {
  background: var(--card-bg, #f4f1ea);
}
.swiss-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #f4f1ea);
  color: var(--card-body, #141413);
  border: 0.15em solid rgba(20,20,19,0.14);
}
.swiss-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.8em 4.8em;
  border-bottom: 2px solid currentColor;
  font-size: 1.35em;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.swiss-meta {
  color: var(--card-title, #f87125);
}
.swiss-main {
  flex: 1;
  display: grid;
  grid-template-columns: 24% 76%;
  min-height: 0;
}
.swiss-index-col {
  border-right: 2px solid currentColor;
  padding: 4em 2em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.swiss-giant-num {
  font-size: 6.8em;
  font-weight: 900;
  line-height: 0.85;
  color: var(--card-title, #f87125);
  letter-spacing: -0.05em;
}
.swiss-content {
  padding: 5em 5.2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.2em;
}
.swiss-title {
  color: var(--card-title, #f87125);
  font-size: 4.8em;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.swiss-body {
  color: var(--card-body, #141413);
  font-size: 2.45em;
  font-weight: 500;
  line-height: 1.32;
  white-space: pre-line;
}
.swiss-media {
  width: 100%;
  height: 22em;
  background-size: cover;
  background-position: center;
  border: 2px solid currentColor;
  margin-top: 0.8em;
}
.swiss-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.4em 4.8em;
  border-top: 2px solid currentColor;
  font-size: 1.35em;
  font-weight: 800;
}
.swiss-handle {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 10. Model: Glassmorphism Pro (Apple / Polotno Frosted Card) */
.theme-glassmorphism-pro {
  background: #090a0f;
}
.glass-shell {
  position: relative;
  min-height: 100%;
  padding: 6.5em 5.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 20% 15%, #1e2336 0%, #090a0f 70%);
}
.glass-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.55;
}
.glass-orb-1 {
  width: 34em;
  height: 34em;
  top: -6em;
  right: -6em;
  background: var(--btw-orange, #f87125);
}
.glass-orb-2 {
  width: 28em;
  height: 28em;
  bottom: -5em;
  left: -5em;
  background: #3b82f6;
}
.glass-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.55);
  opacity: calc(var(--shadow-alpha, 0.7) * 1.15);
}
.glass-card-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 78%;
  padding: 5.2em 5em;
  border-radius: 2.8em;
  background: rgba(18, 20, 28, 0.68);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2.5em 6em rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3em;
  color: #fff;
}
.glass-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.glass-pill {
  background: rgba(248, 113, 37, 0.22);
  border: 1px solid rgba(248, 113, 37, 0.55);
  color: #fff;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.glass-counter {
  font-size: 1.45em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
}
.glass-content {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}
.glass-title {
  color: var(--card-title, #ffffff);
  font-size: 4.85em;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.glass-body {
  color: var(--card-body, #e5e7eb);
  font-size: 2.45em;
  line-height: 1.38;
  white-space: pre-line;
}
.glass-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.2em;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* 11. Model: Bento Spotlight (Vercel Satori / Linear Style) */
.theme-bento-spotlight {
  background: var(--card-bg, #09090b);
}
.bento-shell {
  position: relative;
  min-height: 100%;
  padding: 5.8em 5.4em;
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg, #09090b);
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  color: #f4f4f5;
  overflow: hidden;
}
.bento-spotlight-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 45%;
  background: radial-gradient(circle, rgba(248, 113, 37, 0.28) 0%, transparent 70%);
  pointer-events: none;
}
.bento-grid-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}
.bento-box {
  background: rgba(24, 24, 27, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 2em;
  padding: 2.6em 3.6em;
  box-shadow: 0 1.4em 3.5em rgba(0, 0, 0, 0.45);
}
.bento-header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.4em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-title, #f87125);
}
.bento-dot {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--btw-orange, #f87125);
  box-shadow: 0 0 12px var(--btw-orange, #f87125);
}
.bento-step {
  font-size: 1.45em;
  font-weight: 800;
  color: #a1a1aa;
}
.bento-main-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.2em;
  padding: 4.5em 4.2em;
}
.bento-content {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
}
.bento-title {
  color: var(--card-title, #f87125);
  font-size: 4.9em;
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.bento-body {
  color: var(--card-body, #f4f4f5);
  font-size: 2.4em;
  line-height: 1.38;
  white-space: pre-line;
}
.bento-media {
  width: 100%;
  height: 21em;
  border-radius: 1.4em;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bento-footer-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bento-cta {
  font-size: 1.5em;
  font-weight: 900;
  color: var(--btw-orange, #f87125);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 12. Model: Neo-Brutalist Pop (Hard Shadow & Thick Borders) */
.theme-neo-brutalist {
  background: var(--card-bg, #fffbeb);
}
.brutal-shell {
  min-height: 100%;
  padding: 5.8em 5.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg, #fffbeb);
  background-image: radial-gradient(#111 1.2px, transparent 1.2px);
  background-size: 28px 28px;
}
.brutal-card {
  width: 100%;
  min-height: 84%;
  background: #ffffff;
  border: 5px solid #111111;
  border-radius: 1.4em;
  box-shadow: 1.1em 1.1em 0px #111111;
  padding: 4.4em 4.4em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.4em;
  color: #111111;
}
.brutal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.8em;
  border-bottom: 4px solid #111111;
}
.brutal-sticker {
  background: var(--btw-orange, #f87125);
  color: #ffffff;
  border: 3px solid #111111;
  box-shadow: 0.25em 0.25em 0px #111111;
  padding: 0.35em 0.9em;
  font-size: 1.5em;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}
.brutal-dots {
  display: flex;
  gap: 0.55em;
}
.brutal-dots span {
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  border: 3px solid #111111;
  background: #fbbf24;
}
.brutal-dots span:first-child { background: #f87125; }
.brutal-dots span:last-child { background: #34d399; }
.brutal-media {
  width: 100%;
  height: 20em;
  background-size: cover;
  background-position: center;
  border: 4px solid #111111;
  box-shadow: 0.5em 0.5em 0px #111111;
}
.brutal-content {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  margin: auto 0;
}
.brutal-title {
  color: var(--card-title, #111111);
  font-size: 5em;
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}
.brutal-body {
  color: var(--card-body, #111111);
  font-size: 2.45em;
  font-weight: 600;
  line-height: 1.32;
  white-space: pre-line;
}
.brutal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8em;
  border-top: 4px solid #111111;
}
.brutal-page-badge {
  background: #111111;
  color: #ffffff;
  padding: 0.35em 0.85em;
  font-size: 1.4em;
  font-weight: 900;
}

/* 13. Model: Revista Editorial (Guizang Editorial Magazine Style) */
.theme-revista-editorial {
  background: var(--card-bg, #fbf9f5);
}
.revista-shell {
  min-height: 100%;
  padding: 6.5em 6.5em 5.2em;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #fbf9f5);
  color: var(--card-body, #44403c);
}
.revista-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3em;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #78716c;
  padding-bottom: 1.1em;
}
.revista-rule-double {
  height: 6px;
  border-top: 2px solid #1c1917;
  border-bottom: 1px solid #1c1917;
  margin-bottom: 4em;
}
.revista-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.4em;
}
.revista-title {
  color: var(--card-title, #1c1917);
  font-size: 5.3em;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.revista-media {
  width: 100%;
  height: 23em;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(28, 25, 23, 0.2);
}
.revista-body {
  color: var(--card-body, #44403c);
  font-size: 2.45em;
  line-height: 1.42;
  border-left: 4px solid var(--btw-orange, #f87125);
  padding-left: 1.1em;
  white-space: pre-line;
}
.revista-footer {
  margin-top: 3.5em;
  padding-top: 1.8em;
  border-top: 1px solid rgba(28, 25, 23, 0.22);
  display: flex;
  justify-content: space-between;
  font-size: 1.25em;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #57534e;
}

/* 14. Model: Social Thread Card (X / LinkedIn Creator Post) */
.theme-tweet-thread {
  background: var(--card-bg, #0f172a);
}
.thread-shell {
  min-height: 100%;
  padding: 6.2em 5.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, #0f172a);
}
.thread-card {
  width: 100%;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 2.2em;
  padding: 4.8em 4.6em;
  box-shadow: 0 2.5em 6em rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2.8em;
  color: #f8fafc;
}
.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.thread-user {
  display: flex;
  align-items: center;
  gap: 1.2em;
}
.thread-avatar {
  width: 4.6em;
  height: 4.6em;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--btw-orange, #f87125);
}
.thread-name {
  font-size: 1.85em;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.35em;
}
.thread-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-size: 0.75em;
  font-weight: 900;
}
.thread-handle {
  font-size: 1.45em;
  color: #94a3b8;
  font-weight: 600;
}
.thread-counter {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4em 0.95em;
  border-radius: 999px;
  font-size: 1.35em;
  font-weight: 800;
  color: #cbd5e1;
}
.thread-content {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
}
.thread-kicker {
  color: var(--btw-orange, #f87125);
  font-size: 1.45em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.thread-title {
  color: var(--card-title, #f87125);
  font-size: 4.35em;
  font-weight: 800;
  line-height: 1.08;
}
.thread-body {
  color: var(--card-body, #f8fafc);
  font-size: 2.45em;
  line-height: 1.38;
  white-space: pre-line;
}
.thread-media {
  width: 100%;
  height: 21em;
  border-radius: 1.4em;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.thread-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 2em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 1.35em;
  font-weight: 700;
}

/* 15. Model: Data & ROI Showcase (Big Metric / Growth Card) */
.theme-data-metric {
  background: var(--card-bg, #041f14);
}
.metric-shell {
  position: relative;
  min-height: 100%;
  padding: 6.5em 6em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 80% 15%, rgba(74, 222, 128, 0.16), transparent 45%), var(--card-bg, #041f14);
  color: #f8fafc;
  overflow: hidden;
}
.metric-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.metric-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(4, 31, 20, 0.92), rgba(6, 15, 12, 0.85));
  opacity: calc(var(--shadow-alpha, 0.7) * 1.15);
}
.metric-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5em;
}
.metric-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-tag {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #4ade80;
  padding: 0.45em 1.1em;
  border-radius: 0.6em;
  font-size: 1.4em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.metric-step {
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}
.metric-hero-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 6px solid var(--card-title, #4ade80);
  padding: 3.2em 3.4em;
  border-radius: 0 1.6em 1.6em 0;
}
.metric-title {
  color: var(--card-title, #4ade80);
  font-size: 5.2em;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.metric-body {
  color: var(--card-body, #f8fafc);
  font-size: 2.5em;
  line-height: 1.36;
  white-space: pre-line;
}
.metric-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2em;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.metric-brand {
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4ade80;
}

/* 16. Model: Terminal Tech / IA (macOS Dev Window) */
.theme-terminal-code {
  background: var(--card-bg, #090d16);
}
.terminal-shell {
  min-height: 100%;
  padding: 6em 5.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.16), transparent 50%),
    var(--card-bg, #090d16);
}
.terminal-window {
  width: 100%;
  min-height: 82%;
  background: #0d1117;
  border: 1.5px solid #30363d;
  border-radius: 1.6em;
  box-shadow: 0 2.5em 6em rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #e6edf3;
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6em 2.4em;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}
.terminal-lights {
  display: flex;
  gap: 0.6em;
}
.terminal-lights span {
  width: 1em;
  height: 1em;
  border-radius: 50%;
}
.t-red { background: #ff5f56; }
.t-yellow { background: #ffbd2e; }
.t-green { background: #27c93f; }
.terminal-filename {
  font-family: monospace;
  font-size: 1.35em;
  font-weight: 700;
  color: #8b949e;
}
.terminal-page {
  font-family: monospace;
  font-size: 1.35em;
  font-weight: 700;
  color: var(--btw-orange, #f87125);
}
.terminal-content {
  flex: 1;
  padding: 4.2em 4.4em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.2em;
}
.terminal-prompt-line {
  font-family: monospace;
  font-size: 1.55em;
  color: #8b949e;
}
.t-arrow {
  color: #4ade80;
  font-weight: 900;
}
.t-cmd {
  color: #38bdf8;
}
.terminal-title {
  color: var(--card-title, #38bdf8);
  font-size: 4.6em;
  font-weight: 900;
  line-height: 1.04;
}
.terminal-body {
  color: var(--card-body, #e2e8f0);
  font-size: 2.35em;
  line-height: 1.4;
  white-space: pre-line;
}
.terminal-media {
  width: 100%;
  height: 20em;
  border-radius: 1em;
  background-size: cover;
  background-position: center;
  border: 1px solid #30363d;
}
.terminal-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 1.2em 2.4em;
  background: #161b22;
  border-top: 1px solid #30363d;
  font-family: monospace;
  font-size: 1.15em;
  font-weight: 700;
  color: #8b949e;
}

/* ─────────────────────────────────────────────
   EXPORT FOOTER
───────────────────────────────────────────── */
.export-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   LOADING OVERLAY
───────────────────────────────────────────── */
#loading-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}
.loading-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.loading-content p { color: var(--text-muted); font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; }
.spin-animation { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────
   FEEDBACK TOAST
───────────────────────────────────────────── */
#feedback-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
#feedback-toast.show {
  opacity: 1;
  transform: translateY(0);
}
#feedback-toast.success { border-color: #22c55e; color: #4ade80; }
#feedback-toast.error { border-color: #ef4444; color: #f87171; }
/* ══════════════════════════════════════════════════════
   FONT PAIR & ALIGNMENT OVERRIDES
══════════════════════════════════════════════════════ */
.carousel-card {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --text-h-align: center;
    --text-h-align-items: center;
    --text-v-align: center;
}

/* Heading font overrides */
.insider-title,
.poster-title,
.tarja-title,
.tarja-ribbon,
.manifesto-title,
.aula-title,
.mercado-question,
.pub-title,
.case-sports-title,
.case-sports-number,
.case-sports-kicker,
.swiss-title,
.swiss-giant-num,
.glass-title,
.bento-title,
.brutal-title,
.revista-title,
.thread-title,
.metric-title,
.terminal-title {
    font-family: var(--font-heading) !important;
}

/* Body font overrides */
.insider-body,
.insider-tag,
.poster-kicker,
.poster-stamp,
.tarja-kicker,
.tarja-pill,
.manifesto-body,
.aula-kicker,
.aula-labels p,
.mercado-kicker,
.mercado-lines p,
.mercado-footer,
.pub-body,
.pub-topbar,
.pub-footer,
.case-sports-eyebrow,
.case-sports-cover-note,
.case-sports-body,
.case-sports-footer,
.swiss-body,
.swiss-topbar,
.swiss-footer,
.glass-body,
.glass-pill,
.bento-body,
.bento-badge,
.brutal-body,
.brutal-sticker,
.revista-body,
.revista-masthead,
.revista-footer,
.thread-body,
.thread-kicker,
.metric-body,
.metric-tag,
.terminal-body {
    font-family: var(--font-body) !important;
}

/* Text alignment overrides */
.insider-content,
.tarja-content,
.aula-content,
.mercado-content,
.pub-content,
.case-sports-content,
.swiss-content,
.glass-content,
.bento-main-box,
.brutal-content,
.revista-content,
.thread-content,
.metric-content,
.terminal-content {
    text-align: var(--text-h-align, center);
    justify-content: var(--text-v-align, center);
}

.manifesto-content {
    justify-content: var(--text-v-align, center);
}

.poster-content {
    text-align: var(--text-h-align, center);
}

/* ─────────────────────────────────────────────
   ALIGNMENT BUTTON GROUP
───────────────────────────────────────────── */
.align-btn-group {
    display: flex;
    gap: 4px;
    background: #000;
    padding: 4px;
    border-radius: 8px;
}

.align-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    letter-spacing: 0.3px;
}

.align-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.06);
}

.align-btn.active {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 2px 8px var(--red-glow);
}

.align-btn i {
    width: 14px;
    height: 14px;
}

/* ─────────────────────────────────────────────
   BRAND HEADER ROW (@ toggle)
───────────────────────────────────────────── */
.brand-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ══════════════════════════════════════════════════════
   SOCIAL MEDIA SIMULATOR (INSTAGRAM / LINKEDIN / STORIES / GRID)
══════════════════════════════════════════════════════ */
.toolbar-brand-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.view-mode-switcher {
  display: flex;
  gap: 4px;
  background: var(--tab-bg);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.view-mode-btn i {
  width: 15px;
  height: 15px;
  color: currentColor;
}
.view-mode-btn:hover {
  color: var(--text-main);
}
.view-mode-btn.active {
  background: var(--btw-orange);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(248, 113, 37, 0.35);
}

.social-simulator-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.simulator-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2rem;
  background: color-mix(in srgb, var(--bg-panel) 94%, #000 6%);
  border-bottom: 1px solid var(--border-color);
}

.simulator-network-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-net-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--control-bg);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.sim-net-btn i {
  width: 14px;
  height: 14px;
}
.sim-net-btn:hover {
  color: var(--text-main);
  border-color: var(--btw-orange);
}
.sim-net-btn.active {
  background: color-mix(in srgb, var(--btw-orange) 16%, var(--control-bg));
  color: var(--btw-orange);
  border-color: var(--btw-orange);
}

.simulator-caption-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 520px;
}
.simulator-caption-bar label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.simulator-caption-bar input {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  height: 34px;
}

.simulator-stage {
  flex: 1;
  overflow-y: auto;
  padding: 2.2rem 1.5rem 4rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Shared mini-slide viewport inside mockups */
.sim-slide-viewport {
  position: relative;
  overflow: hidden;
  background: #0d0e11;
  user-select: none;
}
.sim-slide-scaler {
  transform-origin: top left;
  pointer-events: none;
}

/* Carousel navigation overlay inside simulator */
.sim-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 16, 20, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}
.sim-carousel-nav:hover {
  background: var(--btw-orange);
  transform: translateY(-50%) scale(1.08);
}
.sim-carousel-nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.sim-carousel-nav.prev { left: 10px; }
.sim-carousel-nav.next { right: 10px; }

.sim-counter-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
  background: rgba(15, 16, 20, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* 1. INSTAGRAM FEED MOCKUP */
.sim-ig-mockup {
  width: 396px;
  background: #000000;
  color: #f5f5f5;
  border: 1px solid #262626;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.sim-ig-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.sim-ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #1a1a1a;
}
.sim-ig-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sim-ig-avatar-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim-ig-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  border: 2px solid #000;
}
.sim-ig-username {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sim-ig-sub {
  font-size: 0.68rem;
  color: #a8a8a8;
}
.sim-ig-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  position: relative;
}
.sim-ig-actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sim-ig-icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.sim-ig-icon-btn.liked {
  color: #ff3040;
}
.sim-ig-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.sim-ig-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #404040;
  transition: all 0.2s;
}
.sim-ig-dot.active {
  background: #0095f6;
  transform: scale(1.15);
}
.sim-ig-body {
  padding: 0 14px 18px;
  font-size: 0.8rem;
  line-height: 1.42;
}
.sim-ig-likes {
  font-weight: 700;
  margin-bottom: 6px;
}
.sim-ig-caption strong {
  font-weight: 700;
  margin-right: 6px;
}
.sim-ig-more-btn {
  background: none;
  border: none;
  color: #a8a8a8;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}
.sim-ig-time {
  margin-top: 6px;
  font-size: 0.65rem;
  color: #737373;
  text-transform: uppercase;
}

/* 2. LINKEDIN PDF PLAYER MOCKUP */
.sim-li-mockup {
  width: 504px;
  background: #1b1f23;
  color: #e9e9ea;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.sim-li-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}
.sim-li-header img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  border: 1px solid rgba(248, 113, 37, 0.4);
}
.sim-li-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sim-li-author strong {
  font-size: 0.9rem;
  color: #fff;
}
.sim-li-author span {
  font-size: 0.74rem;
  color: #9ca3af;
}
.sim-li-caption {
  padding: 0 16px 12px;
  font-size: 0.84rem;
  line-height: 1.48;
  color: #e5e7eb;
}
.sim-li-doc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: #111417;
  border-top: 1px solid #2b3036;
  border-bottom: 1px solid #2b3036;
  font-size: 0.74rem;
  font-weight: 700;
  color: #cbd5e1;
}
.sim-li-reactions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid #2b3036;
  font-size: 0.74rem;
  color: #9ca3af;
}
.sim-li-footer-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px;
  border-top: 1px solid #2b3036;
}
.sim-li-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 10px 6px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sim-li-btn:hover {
  background: rgba(255,255,255,0.06);
}

/* 3. STORIES / REELS SAFE ZONE MOCKUP */
.sim-stories-mockup {
  width: 360px;
  height: 640px;
  border-radius: 32px;
  border: 6px solid #22252b;
  position: relative;
  overflow: hidden;
  background: #0a0b0d;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.sim-stories-safezone-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 92px;
  z-index: 25;
  background: linear-gradient(to bottom, rgba(0,0,0,0.68), transparent);
  border-bottom: 1px dashed rgba(248, 113, 37, 0.75);
  padding: 12px 14px;
  pointer-events: none;
}
.sim-stories-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.sim-stories-bar {
  flex: 1;
  height: 2.5px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
}
.sim-stories-bar.active {
  background: #ffffff;
}
.sim-stories-safezone-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 118px;
  z-index: 25;
  background: linear-gradient(to top, rgba(0,0,0,0.78), transparent);
  border-top: 1px dashed rgba(248, 113, 37, 0.75);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.sim-stories-safezone-right {
  position: absolute;
  right: 10px;
  bottom: 130px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 6px;
  border: 1px dashed rgba(248, 113, 37, 0.65);
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 0.6rem;
  pointer-events: none;
}
.sim-safezone-tag {
  display: inline-block;
  background: rgba(248, 113, 37, 0.9);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* 4. INSTAGRAM PROFILE 3x3 GRID MOCKUP */
.sim-grid-mockup {
  width: 402px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #262626;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65);
}
.sim-grid-profile-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid #1f1f1f;
}
.sim-grid-profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.sim-grid-profile-top img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--btw-orange);
  padding: 2px;
  background: #111;
}
.sim-grid-stats {
  display: flex;
  gap: 18px;
  text-align: center;
}
.sim-grid-stats div strong {
  display: block;
  font-size: 0.92rem;
}
.sim-grid-stats div span {
  font-size: 0.7rem;
  color: #a8a8a8;
}
.sim-grid-bio strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 3px;
}
.sim-grid-bio p {
  font-size: 0.75rem;
  color: #d4d4d8;
  line-height: 1.38;
}
.sim-grid-matrix {
  display: grid;
  grid-template-columns: repeat(3, 132px);
  gap: 3px;
  background: #000;
}
.sim-grid-cell {
  width: 132px;
  height: 165px;
  position: relative;
  overflow: hidden;
  background: #14161a;
}
.sim-grid-cell.active-cover {
  outline: 2px solid var(--btw-orange);
  z-index: 2;
}
.sim-grid-carousel-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 800;
}

/* ══════════════════════════════════════════════════════
   WORD + POWERPOINT + CANVA STUDIO & LLM COPILOT BAR
══════════════════════════════════════════════════════ */

/* Undo / Redo Toolbar Buttons */
.history-undo-group {
  display: flex;
  gap: 4px;
}
.history-undo-group .icon-btn:disabled {
  opacity: 0.32;
  pointer-events: none;
}

/* Active Slide Highlighting in Sidebar & Canvas */
.slide-editor-item.active-slide-item {
  border-color: var(--btw-orange);
  box-shadow: 0 0 0 1px var(--btw-orange), 0 8px 26px rgba(248, 113, 37, 0.2);
}
.carousel-card.active-canvas-card {
  outline: 6px solid var(--btw-orange);
  outline-offset: 6px;
  cursor: pointer;
}
.carousel-card {
  cursor: pointer;
}

/* Word Mini-Ribbon Toolbar inside each Slide Editor */
.word-ribbon-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  margin-bottom: 0.9rem;
  background: var(--tab-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}
.word-fmt-btn {
  background: var(--control-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 8px;
  min-width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.word-fmt-btn:hover {
  border-color: var(--btw-orange);
  background: var(--btw-orange);
  color: #fff;
}
.word-fmt-btn.highlight-btn {
  color: var(--btw-orange);
  border-color: color-mix(in srgb, var(--btw-orange) 45%, var(--border-color));
}
.word-fmt-btn.highlight-btn:hover {
  color: #fff;
}
.word-highlight-color {
  width: 28px !important;
  height: 28px !important;
  padding: 2px !important;
  margin-left: auto;
  border-radius: 4px;
}

/* Canva Floating Contextual Bar above Canvas */
.canva-floating-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.55rem 1.25rem;
  background: color-mix(in srgb, var(--bg-panel) 95%, #000 5%);
  border-bottom: 1px solid var(--border-color);
  z-index: 6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.canva-bar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.canva-bar-divider {
  width: 1px;
  height: 22px;
  background: var(--border-color);
  margin: 0 4px;
}
.canva-slide-pill {
  background: color-mix(in srgb, var(--btw-orange) 18%, transparent);
  color: var(--btw-orange);
  border: 1px solid color-mix(in srgb, var(--btw-orange) 45%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.canva-mini-select {
  width: auto !important;
  padding: 4px 8px !important;
  height: 30px;
  font-size: 0.74rem !important;
  font-weight: 700;
  border-radius: 6px !important;
}
.canva-tool-btn {
  background: var(--control-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.canva-tool-btn:hover {
  border-color: var(--btw-orange);
  color: var(--btw-orange);
}
.canva-tool-btn.accent {
  background: var(--btw-orange);
  border-color: var(--btw-orange);
  color: #fff;
}
.canva-scale-readout {
  font-size: 0.74rem;
  font-weight: 800;
  min-width: 38px;
  text-align: center;
  color: var(--text-main);
}
.canva-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--control-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 6px;
  height: 30px;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}
.canva-color-chip input[type="color"] {
  width: 20px;
  height: 20px;
  border: none;
  padding: 0;
}

/* Per-slide Line Height, Letter Spacing, Text Shadows, Patterns & Stickers */
.carousel-card .insider-title,
.carousel-card .poster-title,
.carousel-card .tarja-title,
.carousel-card .manifesto-title,
.carousel-card .aula-title,
.carousel-card .mercado-question,
.carousel-card .pub-title,
.carousel-card .case-sports-title,
.carousel-card .swiss-title,
.carousel-card .glass-title,
.carousel-card .bento-title,
.carousel-card .brutal-title,
.carousel-card .revista-title,
.carousel-card .thread-title,
.carousel-card .metric-title,
.carousel-card .terminal-title {
  letter-spacing: var(--slide-letter-spacing, 0px);
}

.carousel-card .insider-body,
.carousel-card .manifesto-body,
.carousel-card .pub-body,
.carousel-card .case-sports-body,
.carousel-card .swiss-body,
.carousel-card .glass-body,
.carousel-card .bento-body,
.carousel-card .brutal-body,
.carousel-card .revista-body,
.carousel-card .thread-body,
.carousel-card .metric-body,
.carousel-card .terminal-body {
  line-height: var(--slide-line-height, 1.35);
}

.carousel-card.text-shadow-soft .insider-title,
.carousel-card.text-shadow-soft .poster-title,
.carousel-card.text-shadow-soft .tarja-title,
.carousel-card.text-shadow-soft .aula-title,
.carousel-card.text-shadow-soft .pub-title,
.carousel-card.text-shadow-soft .case-sports-title,
.carousel-card.text-shadow-soft .swiss-title,
.carousel-card.text-shadow-soft .glass-title,
.carousel-card.text-shadow-soft .bento-title,
.carousel-card.text-shadow-soft .brutal-title,
.carousel-card.text-shadow-soft .revista-title,
.carousel-card.text-shadow-soft .thread-title,
.carousel-card.text-shadow-soft .metric-title,
.carousel-card.text-shadow-soft .terminal-title {
  text-shadow: 0 0.14em 0.45em rgba(0, 0, 0, 0.65) !important;
}

.carousel-card.text-shadow-hard .insider-title,
.carousel-card.text-shadow-hard .poster-title,
.carousel-card.text-shadow-hard .tarja-title,
.carousel-card.text-shadow-hard .aula-title,
.carousel-card.text-shadow-hard .pub-title,
.carousel-card.text-shadow-hard .case-sports-title,
.carousel-card.text-shadow-hard .swiss-title,
.carousel-card.text-shadow-hard .glass-title,
.carousel-card.text-shadow-hard .bento-title,
.carousel-card.text-shadow-hard .brutal-title,
.carousel-card.text-shadow-hard .revista-title,
.carousel-card.text-shadow-hard .thread-title,
.carousel-card.text-shadow-hard .metric-title,
.carousel-card.text-shadow-hard .terminal-title {
  text-shadow: 0.08em 0.08em 0px #000000 !important;
}

.carousel-card.text-shadow-glow .insider-title,
.carousel-card.text-shadow-glow .poster-title,
.carousel-card.text-shadow-glow .tarja-title,
.carousel-card.text-shadow-glow .aula-title,
.carousel-card.text-shadow-glow .pub-title,
.carousel-card.text-shadow-glow .case-sports-title,
.carousel-card.text-shadow-glow .swiss-title,
.carousel-card.text-shadow-glow .glass-title,
.carousel-card.text-shadow-glow .bento-title,
.carousel-card.text-shadow-glow .brutal-title,
.carousel-card.text-shadow-glow .revista-title,
.carousel-card.text-shadow-glow .thread-title,
.carousel-card.text-shadow-glow .metric-title,
.carousel-card.text-shadow-glow .terminal-title {
  text-shadow: 0 0 0.38em rgba(248, 113, 37, 0.78) !important;
}

/* Canva Background Pattern Overlays */
.carousel-card.bg-pattern-swiss-grid::before,
.carousel-card.bg-pattern-dots::before,
.carousel-card.bg-pattern-spotlight::before,
.carousel-card.bg-pattern-diagonal::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.carousel-card.bg-pattern-swiss-grid::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}
.carousel-card.bg-pattern-dots::before {
  background-image: radial-gradient(rgba(255,255,255,0.16) 2px, transparent 2px);
  background-size: 34px 34px;
}
.carousel-card.bg-pattern-spotlight::before {
  background: radial-gradient(circle at 50% 18%, rgba(248, 113, 37, 0.32), transparent 62%);
}
.carousel-card.bg-pattern-diagonal::before {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.04) 2px,
    transparent 2px,
    transparent 18px
  );
}

/* Canva Interactive Sticker Badges on Slides */
.canva-sticker-badge {
  position: absolute;
  bottom: 2.4em;
  right: 2.6em;
  z-index: 25;
  background: var(--btw-orange, #f87125);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.25em;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.52em 1.15em;
  border-radius: 999px;
  box-shadow: 0 0.6em 1.8em rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   LLM CONVERSATIONAL ONBOARDING (CHATGPT / GEMINI STYLE)
══════════════════════════════════════════════════════ */
.llm-onboarding-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 4;
  background:
    radial-gradient(circle at 50% 0%, rgba(248, 113, 37, 0.12), transparent 48%),
    var(--bg-primary);
}
.llm-chat-container {
  flex: 1;
  min-height: 0;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem 1.2rem;
  gap: 1rem;
}
.llm-hero-header {
  text-align: center;
  flex-shrink: 0;
}
.llm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--btw-orange) 15%, var(--bg-panel));
  border: 1px solid color-mix(in srgb, var(--btw-orange) 40%, transparent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: var(--btw-orange);
  margin-bottom: 0.45rem;
}
.llm-hero-badge img {
  height: 15px;
  width: auto;
}
.llm-hero-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.llm-hero-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto;
}

.llm-conversation-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-right: 6px;
}
.llm-conversation-stream::-webkit-scrollbar { width: 5px; }
.llm-conversation-stream::-webkit-scrollbar-thumb { background: var(--btw-orange); border-radius: 4px; }

.llm-message-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.llm-msg-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
}
.llm-step-num {
  background: var(--btw-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.llm-msg-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}
.llm-msg-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Grid of 16 Live Model Mini-Previews */
.llm-model-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
}
.llm-model-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-align: left;
}
.llm-model-card:hover {
  transform: translateY(-3px);
  border-color: var(--btw-orange);
  box-shadow: 0 10px 24px rgba(248, 113, 37, 0.2);
}
.llm-model-card.active {
  border-color: var(--btw-orange);
  background: color-mix(in srgb, var(--btw-orange) 12%, var(--bg-elevated));
  box-shadow: 0 0 0 1px var(--btw-orange), 0 12px 28px rgba(248, 113, 37, 0.28);
}
.llm-mini-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #0d0e11;
  pointer-events: none;
}
.llm-model-card-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 4px;
  gap: 6px;
}
.llm-model-card-footer strong {
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.llm-select-indicator {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--btw-orange);
  white-space: nowrap;
}

/* Step 3: Font Scale Picker in LLM Stream */
.llm-font-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}
.llm-font-preset-btn {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  color: var(--text-main);
}
.llm-font-preset-btn:hover {
  border-color: var(--btw-orange);
}
.llm-font-preset-btn.active {
  border-color: var(--btw-orange);
  background: color-mix(in srgb, var(--btw-orange) 14%, var(--bg-elevated));
}
.llm-fp-scale {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--btw-orange);
}
.llm-font-preset-btn strong {
  font-size: 0.8rem;
}
.llm-font-preset-btn small {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.llm-fine-scale-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
}
.llm-fine-scale-row label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.llm-fine-scale-row input[type="range"] {
  flex: 1;
}
.llm-finish-btn {
  padding: 0.8rem 1.3rem !important;
  white-space: nowrap;
}

/* Bottom GPT / Gemini Prompt Dock */
.llm-prompt-dock {
  flex-shrink: 0;
}
.llm-prompt-box {
  background: var(--bg-panel);
  border: 1.5px solid color-mix(in srgb, var(--btw-orange) 42%, var(--border-color));
  border-radius: 16px;
  padding: 0.8rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.llm-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.llm-chip {
  background: var(--control-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.llm-chip:hover {
  border-color: var(--btw-orange);
  color: var(--text-main);
}
.llm-prompt-box textarea {
  border: none !important;
  background: transparent !important;
  padding: 0.25rem 0 !important;
  font-size: 0.9rem;
  resize: none;
  line-height: 1.45;
}
.llm-prompt-box textarea:focus {
  outline: none;
}
.llm-prompt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-color);
}
.llm-prompt-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.llm-tool-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--control-bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}
.llm-action-sm {
  padding: 0.55rem 0.95rem !important;
  font-size: 0.74rem !important;
}
.llm-send-btn {
  padding: 0.55rem 1.15rem !important;
  font-size: 0.76rem !important;
  border-radius: 999px !important;
}
.llm-send-btn i,
.llm-action-sm i {
  width: 15px;
  height: 15px;
  color: currentColor !important;
}
