/* ============================================
   GENFY SOCIAL GENERATOR — STYLES
   Aesthetic inspired by Genfy main app
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Dark mode (default — matching Genfy) */
  --bg-primary: #0a0a10;
  --bg-secondary: #0f0f18;
  --bg-surface: #141420;
  --bg-surface-hover: #1a1a2a;
  --bg-card: #161622;
  --border-color: #1e1e30;
  --border-color-hover: #2a2a40;

  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;

  --accent: #4A90D9;
  --accent-hover: #5BA0E9;
  --accent-subtle: rgba(74, 144, 217, 0.12);
  --accent-glow: rgba(74, 144, 217, 0.25);

  --gold: #D4A843;
  --danger: #e74c3c;
  --success: #2ecc71;

  /* Slide theme colors (for generated content) */
  --slide-bg: #0a0a10;
  --slide-surface: #141420;
  --slide-text: #f0f0f5;
  --slide-text-secondary: #8888a0;
  --slide-accent: #4A90D9;
  --slide-font: 'Inter', sans-serif;

  /* Terminal / Code Snippet customization */
  --slide-terminal-bg: rgba(0, 0, 0, 0.3);
  --slide-terminal-text: #4A90D9;
  --slide-terminal-font: 'JetBrains Mono', monospace;

  /* Text size scale */
  --slide-text-scale: 1;

  /* Layout */
  --header-height: 60px;
  --sidebar-width: 280px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 0.2s ease;
}

/* Light mode */
[data-mode="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #ebebf0;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f0f0f5;
  --bg-card: #ffffff;
  --border-color: #d8d8e0;
  --border-color-hover: #c0c0d0;

  --text-primary: #1a1a2e;
  --text-secondary: #5a5a70;
  --text-muted: #8888a0;

  --accent: #3A7BC8;
  --accent-hover: #2A6BB8;
  --accent-subtle: rgba(58, 123, 200, 0.1);
  --accent-glow: rgba(58, 123, 200, 0.15);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.logo-tag {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 400;
}

.header-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-btn.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

/* ---------- Dark/Light mode toggle in header ---------- */
.mode-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.mode-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

/* ---------- Theme Panel (slide-out) ---------- */
.theme-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.theme-panel.open {
  right: 0;
}

.theme-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.theme-panel-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.theme-panel-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.theme-panel-close:hover { color: var(--text-primary); }

.theme-panel-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.theme-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  margin-top: 20px;
}

.theme-label:first-child {
  margin-top: 0;
}

.theme-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.preset-btn {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

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

.preset-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.theme-fonts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.font-btn {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.font-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.font-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.theme-styles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.style-btn {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.style-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.style-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.color-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.color-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-field span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  min-width: 60px;
}

.color-field input[type="color"] {
  width: 36px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: pointer;
  padding: 2px;
}

/* ---------- Main ---------- */
.main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding: 24px;
}

/* ---------- Views ---------- */
.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

/* ---------- Input View ---------- */
.input-container {
  max-width: 680px;
  margin: 0 auto;
}

.input-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.input-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.input-tab:hover {
  color: var(--text-primary);
}

.input-tab.active {
  background: var(--accent);
  color: #fff;
}

.input-pane {
  display: none;
}

.input-pane.active {
  display: block;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: var(--transition);
  font-family: inherit;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group-bottom {
  display: flex;
  align-items: flex-end;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Checkbox Label ---------- */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-label:hover {
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-icon {
  color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-hint {
  color: var(--accent);
}

.checkbox-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color 0.2s;
}

.checkbox-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: auto;
  transition: color 0.2s;
}

/* ---------- GitHub Input ---------- */
.github-input-row {
  display: flex;
  gap: 10px;
}

.github-input-row .form-input {
  flex: 1;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--accent);
}

.github-status {
  font-size: 0.82rem;
  padding: 8px 0;
  color: var(--text-secondary);
}

.github-status.error {
  color: var(--danger);
}

.github-status.success {
  color: var(--success);
}

.github-results {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 12px;
}

.github-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.github-item:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.github-item.selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.github-item-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.github-item.selected .github-item-check {
  border-color: var(--accent);
  background: var(--accent);
}

.github-item.selected .github-item-check::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.github-item-text {
  flex: 1;
  min-width: 0;
}

.github-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.github-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

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

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-surface-hover);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
  margin-bottom: 10px;
}

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

.input-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ---------- Generator Layout ---------- */
.generator-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.preview-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.slide-counter {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Preview wrappers — maintain aspect ratios */
.preview-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.preview-square {
  max-width: 500px;
  aspect-ratio: 1 / 1;
}

.preview-wide {
  max-width: 640px;
  aspect-ratio: 16 / 9;
}

.preview-story {
  max-width: 300px;
  aspect-ratio: 9 / 16;
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  overflow: hidden;
}

.slide.active {
  display: flex;
}

/* ---------- Preview Navigation ---------- */
.preview-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.nav-arrow:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.preview-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ---------- Export Sidebar ---------- */
.export-sidebar {
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.export-sidebar h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.export-options {
  margin-bottom: 16px;
}

/* ==========================================================
   CAROUSEL SLIDES (cs- prefix) — Professional LinkedIn style
   ========================================================== */

/* Base slide */
.cs-slide {
  flex-direction: column;
  background: var(--slide-bg);
  font-family: var(--slide-font);
  padding: 8%;
  position: relative;
  overflow: hidden;
}

/* --- Background decorative elements --- */

.cs-bg-glow {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 90%;
  height: 90%;
  background: radial-gradient(ellipse at center, var(--slide-accent), transparent 65%);
  opacity: 0.08;
  pointer-events: none;
}

.cs-bg-glow-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  right: auto;
  width: 100%;
  height: 100%;
  opacity: 0.06;
}

.cs-bg-glow-subtle {
  opacity: 0.04;
  top: -20%;
  right: -20%;
  width: 70%;
  height: 70%;
}

.cs-bg-grid {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 8% 8%;
  pointer-events: none;
}

.cs-bg-dots {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 6% 6%;
  pointer-events: none;
}

.cs-bg-pattern {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: repeating-linear-gradient(
    135deg, transparent, transparent 48%,
    rgba(255,255,255,0.01) 48%, rgba(255,255,255,0.01) 50%
  );
  background-size: 12% 12%;
  pointer-events: none;
}

/* Decorative circles */
.cs-deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--slide-accent);
  opacity: 0.06;
  pointer-events: none;
}
.cs-deco-circle-1 { width: 40%; height: 40%; top: -12%; right: -12%; }
.cs-deco-circle-2 { width: 25%; height: 25%; bottom: -8%; left: -8%; }

/* Decorative lines */
.cs-deco-line {
  position: absolute;
  background: var(--slide-accent);
  opacity: 0.06;
  pointer-events: none;
}
.cs-deco-line-1 { width: 1px; height: 30%; top: 10%; right: 15%; }
.cs-deco-line-2 { width: 30%; height: 1px; bottom: 20%; left: 8%; }

/* Corner bracket decorations */
.cs-corner-decoration {
  position: absolute;
  width: 12%;
  height: 12%;
  pointer-events: none;
}
.cs-corner-tl {
  top: 5%; left: 5%;
  border-top: 2px solid var(--slide-accent);
  border-left: 2px solid var(--slide-accent);
  opacity: 0.15;
}
.cs-corner-br {
  bottom: 5%; right: 5%;
  border-bottom: 2px solid var(--slide-accent);
  border-right: 2px solid var(--slide-accent);
  opacity: 0.15;
}

/* Decorative corner dots on content slides */
.cs-deco-corner-dots {
  position: absolute;
  top: 6%;
  right: 6%;
  width: 8%;
  height: 8%;
  background-image: radial-gradient(circle, var(--slide-accent) 1.5px, transparent 1.5px);
  background-size: 33% 33%;
  opacity: 0.1;
  pointer-events: none;
}

/* --- Logo --- */

.cs-logo-lg {
  width: 4em;
  height: 4em;
  flex-shrink: 0;
}

.cs-logo-sm {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

/* --- Header (used on content/cta/summary slides) --- */

.cs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-header-brand {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.cs-brand-label {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

/* --- Layout sections --- */

.cs-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-body-center {
  align-items: center;
  text-align: center;
}

.cs-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.cs-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-accent-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--slide-accent), transparent);
  border-radius: 2px;
  opacity: 0.25;
}

.cs-counter {
  font-size: 0.42em;
  font-weight: 600;
  color: var(--slide-text-secondary);
  opacity: 0.35;
  letter-spacing: 0.05em;
}

.cs-handle {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--slide-accent);
  opacity: 0.7;
}

.cs-swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.42em;
  font-weight: 600;
  color: var(--slide-accent);
  opacity: 0.5;
}
.cs-swipe-hint svg {
  animation: cs-swipe-nudge 1.5s ease-in-out infinite;
}
@keyframes cs-swipe-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ===================== COVER SLIDE ===================== */

.cs-cover {
  padding: 7%;
}

.cs-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.5em;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slide-accent);
  background: rgba(74, 144, 217, 0.1);
  padding: 0.35em 0.85em;
  border-radius: 50px;
  border: 1px solid rgba(74, 144, 217, 0.18);
}

.cs-badge-dot {
  width: 0.5em;
  height: 0.5em;
  background: var(--slide-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--slide-accent);
}

.cs-cover-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.3em;
}

.cs-cover-logo-area {
  margin-bottom: 0.6em;
}

.cs-cover-title {
  font-size: 1.6em;
  font-weight: 800;
  color: var(--slide-text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 90%;
}

.cs-cover-subtitle {
  font-size: 0.6em;
  color: var(--slide-text-secondary);
  line-height: 1.5;
  max-width: 80%;
  opacity: 0.7;
}

.cs-cover-meta {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 0.5em;
}

.cs-cover-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.42em;
  font-weight: 600;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

.cs-cover-meta-item svg {
  opacity: 0.7;
}

.cs-cover-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* ===================== CONTENT SLIDE ===================== */

.cs-content .cs-body {
  gap: 0.3em;
}

.cs-content-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.4em;
}

.cs-icon-badge {
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-radius: 0.5em;
  color: var(--slide-accent);
  flex-shrink: 0;
}

.cs-icon-badge svg {
  width: 55%;
  height: 55%;
}

.cs-num-label {
  font-size: 2em;
  font-weight: 800;
  color: var(--slide-accent);
  opacity: 0.1;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cs-point-title {
  font-size: 1.15em;
  font-weight: 800;
  color: var(--slide-text);
  line-height: 1.2;
  margin-bottom: 0.25em;
  letter-spacing: -0.01em;
}

.cs-point-desc {
  font-size: 0.58em;
  color: var(--slide-text-secondary);
  line-height: 1.7;
  max-width: 92%;
  opacity: 0.8;
}

.cs-content-divider {
  width: 15%;
  height: 2px;
  background: var(--slide-accent);
  opacity: 0.15;
  border-radius: 2px;
  margin-top: 0.5em;
}

.cs-progress-label {
  font-size: 0.38em;
  font-weight: 600;
  color: var(--slide-text-secondary);
  opacity: 0.35;
  letter-spacing: 0.05em;
}

.cs-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--slide-surface);
  border-radius: 3px;
  overflow: hidden;
}

.cs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--slide-accent), rgba(74, 144, 217, 0.4));
  border-radius: 3px;
}

/* ===================== SUMMARY SLIDE ===================== */

.cs-summary .cs-body {
  gap: 0.4em;
}

.cs-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.45em;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slide-accent);
  margin-bottom: 0.3em;
}

.cs-summary-text {
  font-size: 0.62em;
  color: var(--slide-text-secondary);
  line-height: 1.65;
  max-width: 92%;
  opacity: 0.8;
  margin-bottom: 0.3em;
}

.cs-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.cs-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4em;
  font-size: 0.5em;
  color: var(--slide-text);
  line-height: 1.4;
  opacity: 0.85;
}

.cs-summary-check {
  width: 1.2em;
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 217, 0.12);
  border-radius: 50%;
  color: var(--slide-accent);
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* ===================== CATEGORY SLIDE (GROUPED) ===================== */

.cs-category-title {
  font-size: 1em;
  margin-bottom: 0.4em;
}

.cs-cat-items {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  width: 100%;
}

.cs-cat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.3em;
  padding: 0.25em 0.35em;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.2em;
  border-left: 2px solid var(--slide-accent);
}

.cs-cat-item-bullet {
  width: 0.8em;
  height: 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 217, 0.15);
  border-radius: 50%;
  color: var(--slide-accent);
  flex-shrink: 0;
  margin-top: 0.08em;
}

.cs-cat-item-title {
  font-size: 0.52em;
  font-weight: 700;
  color: var(--slide-text);
  line-height: 1.3;
}

.cs-cat-item-desc {
  font-size: 0.42em;
  color: var(--slide-text-secondary);
  line-height: 1.5;
  opacity: 0.75;
  margin-top: 0.05em;
}

/* ===================== CTA SLIDE ===================== */

.cs-cta .cs-body {
  gap: 0.4em;
}

.cs-cta-icon {
  width: 2.8em;
  height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-radius: 50%;
  color: var(--slide-accent);
  margin-bottom: 0.3em;
}

.cs-cta-icon svg {
  width: 50%;
  height: 50%;
}

.cs-cta-title {
  font-size: 1.3em;
  font-weight: 800;
  color: var(--slide-text);
  line-height: 1.2;
  margin-bottom: 0.2em;
  letter-spacing: -0.02em;
}

.cs-cta-sub {
  font-size: 0.58em;
  color: var(--slide-text-secondary);
  line-height: 1.5;
  opacity: 0.7;
}

.cs-cta-sub strong {
  color: var(--slide-accent);
  opacity: 1;
}

.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 0.8em;
  padding: 0.55em 1.6em;
  background: var(--slide-accent);
  color: #fff;
  border-radius: 50px;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.3);
}

.cs-author {
  font-size: 0.48em;
  font-weight: 500;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

/* ==========================================================
   DECK SLIDES (ds- prefix) — 16:9 presentation style
   ========================================================== */

.ds-slide {
  flex-direction: column;
  background: var(--slide-bg);
  font-family: var(--slide-font);
  position: relative;
  overflow: hidden;
}

/* Background accent */
.ds-bg-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--slide-accent) 200%);
  opacity: 0.06;
  pointer-events: none;
}

/* Title slide */
.ds-title {
  padding: 6% 8%;
}

.ds-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3em;
  max-width: 65%;
}

.ds-right {
  position: absolute;
  top: 8%;
  right: 8%;
}

.ds-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slide-accent);
  background: rgba(74, 144, 217, 0.08);
  padding: 0.3em 0.7em;
  border-radius: 4px;
  width: fit-content;
}

.ds-tag-dot {
  width: 0.4em;
  height: 0.4em;
  background: var(--slide-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.ds-main-title {
  font-size: 1.6em;
  font-weight: 800;
  color: var(--slide-text);
  line-height: 1.15;
}

.ds-subtitle {
  font-size: 0.6em;
  color: var(--slide-text-secondary);
  line-height: 1.5;
  max-width: 80%;
}

.ds-brand-large {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--slide-text-secondary);
  opacity: 0.4;
}

.ds-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5% 8%;
  border-top: 1px solid var(--slide-surface);
}

.ds-handle {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

.ds-counter {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--slide-text-secondary);
  opacity: 0.4;
}

.ds-author {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

/* Deck content slide */
.ds-content {
  padding: 6% 8%;
}

.ds-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.ds-brand-sm {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

.ds-content-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 0 2%;
}

.ds-content-number {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--slide-accent);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
}

.ds-content-text {
  flex: 1;
}

.ds-content-title {
  font-size: 1.1em;
  font-weight: 800;
  color: var(--slide-text);
  line-height: 1.2;
  margin-bottom: 0.3em;
}

.ds-content-desc {
  font-size: 0.55em;
  color: var(--slide-text-secondary);
  line-height: 1.6;
  max-width: 85%;
}

.ds-progress-bar {
  flex: 1;
  height: 2px;
  background: var(--slide-surface);
  border-radius: 2px;
  margin: 0 1em;
  overflow: hidden;
}

.ds-progress-fill {
  height: 100%;
  background: var(--slide-accent);
  border-radius: 2px;
}

/* Deck CTA */
.ds-cta {
  padding: 6% 8%;
  align-items: center;
  justify-content: center;
}

.ds-cta-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3em;
}

.ds-cta-title {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--slide-text);
  line-height: 1.2;
}

.ds-cta-sub {
  font-size: 0.55em;
  color: var(--slide-text-secondary);
}

.ds-cta-btn {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.4em 1.3em;
  background: var(--slide-accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.5em;
  font-weight: 700;
}

/* ---------- Deck: Category / Summary / Code Slides ---------- */

.ds-summary-badge {
  display: inline-block;
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slide-accent);
  background: rgba(74, 144, 217, 0.1);
  padding: 0.15em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.4em;
}

.ds-summary-text {
  font-size: 0.45em;
  color: var(--slide-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5em;
}

.ds-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.ds-summary-item {
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.38em;
  color: var(--slide-text);
}

.ds-summary-item svg {
  color: var(--slide-accent);
  flex-shrink: 0;
}

.ds-cat-items {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin-top: 0.3em;
}

.ds-cat-item {
  padding: 0.2em 0.3em;
  border-left: 2px solid var(--slide-accent);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 4px 4px 0;
}

.ds-cat-item-header {
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.4em;
  color: var(--slide-text);
}

.ds-cat-item-header svg {
  color: var(--slide-accent);
  flex-shrink: 0;
}

.ds-cat-item-desc {
  font-size: 0.34em;
  color: var(--slide-text-secondary);
  line-height: 1.5;
  margin-top: 0.08em;
  padding-left: 1.2em;
}

.ds-code-snippet {
  margin-top: 0.1em;
  padding: 0.15em 0.3em;
  padding-left: 1.2em;
  font-size: 0.3em;
}

.ds-code-snippet code {
  display: block;
  background: var(--slide-terminal-bg);
  color: var(--slide-terminal-text);
  padding: 0.3em 0.5em;
  border-radius: 4px;
  font-family: var(--slide-terminal-font);
  font-size: 0.95em;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================
   STORY SLIDES (ss- prefix) — 9:16 vertical format
   ========================================================== */

.ss-slide {
  flex-direction: column;
  background: var(--slide-bg);
  font-family: var(--slide-font);
  padding: 8% 8%;
  position: relative;
  overflow: hidden;
}

.ss-bg-glow {
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--slide-accent), transparent 70%);
  opacity: 0.06;
  pointer-events: none;
}

/* Story progress bar (like Instagram stories) */
.ss-progress-track {
  display: flex;
  gap: 3px;
  width: 100%;
  margin-bottom: 0.8em;
}

.ss-prog-seg {
  flex: 1;
  height: 2px;
  background: var(--slide-surface);
  border-radius: 2px;
}

.ss-prog-seg.active {
  background: var(--slide-accent);
}

/* Top area */
.ss-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ss-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slide-accent);
}

.ss-tag-dot {
  width: 0.4em;
  height: 0.4em;
  background: var(--slide-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.ss-brand-sm {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

.ss-counter {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

/* Center content */
.ss-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.ss-title {
  font-size: 1.6em;
  font-weight: 800;
  color: var(--slide-text);
  line-height: 1.2;
  margin-bottom: 0.4em;
}

.ss-subtitle {
  font-size: 0.6em;
  color: var(--slide-text-secondary);
  line-height: 1.5;
  max-width: 85%;
}

.ss-point-number {
  font-size: 2em;
  font-weight: 800;
  color: var(--slide-accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.2em;
}

.ss-point-title {
  font-size: 1.3em;
  font-weight: 800;
  color: var(--slide-text);
  line-height: 1.2;
  margin-bottom: 0.3em;
}

.ss-point-desc {
  font-size: 0.55em;
  color: var(--slide-text-secondary);
  line-height: 1.6;
  max-width: 85%;
}

/* CTA story */
.ss-cta-title {
  font-size: 1.4em;
  font-weight: 800;
  color: var(--slide-text);
  line-height: 1.2;
  margin-bottom: 0.3em;
}

.ss-cta-sub {
  font-size: 0.55em;
  color: var(--slide-text-secondary);
}

.ss-cta-btn {
  display: inline-block;
  margin-top: 0.6em;
  padding: 0.5em 1.5em;
  background: var(--slide-accent);
  color: #fff;
  border-radius: 50px;
  font-size: 0.55em;
  font-weight: 700;
}

/* Bottom area */
.ss-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
}

.ss-accent-line {
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--slide-accent), transparent);
  border-radius: 2px;
  opacity: 0.3;
}

.ss-handle {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

.ss-author {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--slide-text-secondary);
  opacity: 0.5;
}

/* ---------- Stories: Category / Summary / Code ---------- */

.ss-summary-badge {
  font-size: 0.35em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slide-accent);
  background: rgba(74, 144, 217, 0.1);
  padding: 0.15em 0.5em;
  border-radius: 4px;
}

.ss-summary-text {
  font-size: 0.5em;
  color: var(--slide-text-secondary);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0.5em;
}

.ss-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  width: 100%;
  align-items: flex-start;
}

.ss-summary-item {
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.42em;
  color: var(--slide-text);
}

.ss-summary-item svg {
  color: var(--slide-accent);
  flex-shrink: 0;
}

.ss-cat-items {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  width: 100%;
  margin-top: 0.3em;
}

.ss-cat-item {
  padding: 0.2em 0.3em;
  border-left: 2px solid var(--slide-accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 4px 4px 0;
}

.ss-cat-item-title {
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.42em;
  font-weight: 600;
  color: var(--slide-text);
}

.ss-cat-item-title svg {
  color: var(--slide-accent);
  flex-shrink: 0;
}

.ss-cat-item-desc {
  font-size: 0.35em;
  color: var(--slide-text-secondary);
  line-height: 1.5;
  margin-top: 0.08em;
  padding-left: 0.8em;
}

.ss-code-snippet {
  margin-top: 0.1em;
  padding-left: 0.8em;
}

.ss-code-snippet code,
.cs-code-snippet code {
  display: block;
  background: var(--slide-terminal-bg);
  color: var(--slide-terminal-text);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: var(--slide-terminal-font);
  font-size: 0.32em;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.cs-code-snippet {
  margin-top: 0.08em;
}

/* ---------- Empty state ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: 20%;
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---------- Loading spinner ---------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Toast / Notifications ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

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

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }

/* ---------- Header Right ---------- */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-logo {
  flex-shrink: 0;
  display: block;
  width: 36px;
  height: 36px;
}

/* ---------- GitHub Auth ---------- */
.github-auth {
  display: flex;
  align-items: center;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.github-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.github-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--danger);
  background: var(--bg-surface);
}

/* ---------- GitHub Login Prompt ---------- */
.github-login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 16px;
}

.github-login-prompt p {
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 320px;
}

.github-prompt-icon {
  opacity: 0.3;
}

/* ---------- Utility ---------- */
.hidden {
  display: none !important;
}

/* ---------- Font Preview Buttons ---------- */
.font-inter { font-family: 'Inter', sans-serif; }
.font-space-grotesk { font-family: 'Space Grotesk', sans-serif; }
.font-jetbrains { font-family: 'JetBrains Mono', monospace; }
.font-poppins { font-family: 'Poppins', sans-serif; }

/* ---------- Render Area (off-screen) ---------- */
.render-area {
  position: fixed;
  left: -9999px;
  top: -9999px;
}

/* ============================================
   SLIDE STYLE VARIATIONS
   Applied via [data-slide-style] on <html>
   Classic = default (no overrides needed)
   ============================================ */

/* ---------- BOLD Style ---------- */
/* Oversized titles, heavy weights, dramatic accent bars, uppercase headings */

[data-slide-style="bold"] .cs-cover-title,
[data-slide-style="bold"] .ds-main-title,
[data-slide-style="bold"] .ss-title {
  font-size: 2.2em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

[data-slide-style="bold"] .cs-point-title,
[data-slide-style="bold"] .cs-cat-item-title,
[data-slide-style="bold"] .ds-content-title,
[data-slide-style="bold"] .ss-point-title {
  font-size: 1.6em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

[data-slide-style="bold"] .cs-cover-badge,
[data-slide-style="bold"] .ds-tag,
[data-slide-style="bold"] .ss-tag {
  font-size: 0.6em;
  font-weight: 900;
  letter-spacing: 0.25em;
  border-width: 2px;
}

[data-slide-style="bold"] .cs-cta-title,
[data-slide-style="bold"] .ds-cta-title,
[data-slide-style="bold"] .ss-cta-title {
  font-size: 1.8em;
  font-weight: 900;
  text-transform: uppercase;
}

[data-slide-style="bold"] .cs-num-label,
[data-slide-style="bold"] .ds-content-number,
[data-slide-style="bold"] .ss-point-number {
  font-size: 3.5em;
  font-weight: 900;
  opacity: 0.15;
}

[data-slide-style="bold"] .cs-accent-line,
[data-slide-style="bold"] .ds-progress-fill,
[data-slide-style="bold"] .ss-accent-line {
  height: 4px;
}

[data-slide-style="bold"] .cs-summary-badge,
[data-slide-style="bold"] .ds-summary-badge,
[data-slide-style="bold"] .ss-summary-badge {
  font-size: 0.65em;
  font-weight: 900;
  letter-spacing: 0.3em;
}

[data-slide-style="bold"] .cs-summary-text,
[data-slide-style="bold"] .ds-summary-text,
[data-slide-style="bold"] .ss-summary-text {
  font-size: 0.75em;
  font-weight: 700;
}

[data-slide-style="bold"] .cs-body,
[data-slide-style="bold"] .ds-content-body {
  gap: 1.5em;
}

[data-slide-style="bold"] .cs-swipe-hint {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ---------- MINIMAL Style ---------- */
/* Clean whitespace, no decorative elements, thin borders, restrained accents */

[data-slide-style="minimal"] .cs-cover-badge,
[data-slide-style="minimal"] .ds-tag,
[data-slide-style="minimal"] .ss-tag {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--slide-text-secondary);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.45em;
}

[data-slide-style="minimal"] .cs-badge-dot,
[data-slide-style="minimal"] .ds-tag-dot,
[data-slide-style="minimal"] .ss-tag-dot {
  display: none;
}

[data-slide-style="minimal"] .cs-cover-title,
[data-slide-style="minimal"] .ds-main-title,
[data-slide-style="minimal"] .ss-title {
  font-weight: 600;
  font-size: 1.4em;
  letter-spacing: -0.01em;
}

[data-slide-style="minimal"] .cs-point-title,
[data-slide-style="minimal"] .cs-cat-item-title,
[data-slide-style="minimal"] .ds-content-title,
[data-slide-style="minimal"] .ss-point-title {
  font-weight: 600;
  font-size: 1.1em;
}

[data-slide-style="minimal"] .cs-num-label,
[data-slide-style="minimal"] .ds-content-number,
[data-slide-style="minimal"] .ss-point-number {
  font-size: 1.2em;
  font-weight: 400;
  opacity: 0.3;
  color: var(--slide-text-secondary);
}

[data-slide-style="minimal"] .cs-bg-glow,
[data-slide-style="minimal"] .ds-bg-accent,
[data-slide-style="minimal"] .ss-bg-glow {
  display: none;
}

[data-slide-style="minimal"] .cs-accent-line,
[data-slide-style="minimal"] .ss-accent-line {
  opacity: 0.15;
  height: 1px;
}

[data-slide-style="minimal"] .cs-icon-badge {
  background: transparent;
  border: 1px solid var(--slide-surface);
}

[data-slide-style="minimal"] .cs-icon-badge svg,
[data-slide-style="minimal"] .ds-cat-item-header svg,
[data-slide-style="minimal"] .ss-cat-item-title svg {
  opacity: 0.4;
}

[data-slide-style="minimal"] .cs-cta-title,
[data-slide-style="minimal"] .ds-cta-title,
[data-slide-style="minimal"] .ss-cta-title {
  font-weight: 600;
  font-size: 1.2em;
}

[data-slide-style="minimal"] .cs-cta-btn,
[data-slide-style="minimal"] .ds-cta-btn,
[data-slide-style="minimal"] .ss-cta-btn {
  background: transparent;
  border: 1px solid var(--slide-accent);
  color: var(--slide-accent);
}

[data-slide-style="minimal"] .cs-summary-badge,
[data-slide-style="minimal"] .ds-summary-badge,
[data-slide-style="minimal"] .ss-summary-badge {
  background: transparent;
  border: 1px solid var(--slide-surface);
  font-weight: 500;
}

[data-slide-style="minimal"] .ds-bottom-bar {
  border-top-color: transparent;
}

[data-slide-style="minimal"] .cs-swipe-hint {
  opacity: 0.3;
}

[data-slide-style="minimal"] .ds-progress-bar {
  opacity: 0.3;
}

[data-slide-style="minimal"] .cs-slide,
[data-slide-style="minimal"] .ds-slide,
[data-slide-style="minimal"] .ss-slide {
  border: 1px solid var(--slide-surface);
}

/* ---------- EDITORIAL Style ---------- */
/* Asymmetric layouts, left-aligned text, serif-like feel, decorative borders */

[data-slide-style="editorial"] .cs-cover-center,
[data-slide-style="editorial"] .ss-center {
  text-align: left;
  align-items: flex-start;
}

[data-slide-style="editorial"] .cs-cover-title,
[data-slide-style="editorial"] .ds-main-title,
[data-slide-style="editorial"] .ss-title {
  font-size: 1.8em;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

[data-slide-style="editorial"] .cs-point-title,
[data-slide-style="editorial"] .cs-cat-item-title,
[data-slide-style="editorial"] .ds-content-title,
[data-slide-style="editorial"] .ss-point-title {
  font-size: 1.35em;
  font-weight: 700;
  font-style: italic;
}

[data-slide-style="editorial"] .cs-cover-badge,
[data-slide-style="editorial"] .ds-tag,
[data-slide-style="editorial"] .ss-tag {
  border-radius: 0;
  border: none;
  border-left: 3px solid var(--slide-accent);
  padding: 0.2em 0.6em;
  background: transparent;
}

[data-slide-style="editorial"] .cs-cover-subtitle,
[data-slide-style="editorial"] .ds-subtitle,
[data-slide-style="editorial"] .ss-subtitle {
  font-style: italic;
  opacity: 0.6;
}

[data-slide-style="editorial"] .cs-num-label,
[data-slide-style="editorial"] .ds-content-number,
[data-slide-style="editorial"] .ss-point-number {
  font-style: italic;
  font-weight: 300;
  font-size: 3em;
  opacity: 0.1;
}

[data-slide-style="editorial"] .cs-accent-line,
[data-slide-style="editorial"] .ss-accent-line {
  width: 40%;
  background: var(--slide-accent);
  opacity: 0.5;
  align-self: flex-start;
}

[data-slide-style="editorial"] .cs-cta-title,
[data-slide-style="editorial"] .ds-cta-title,
[data-slide-style="editorial"] .ss-cta-title {
  font-style: italic;
  font-weight: 700;
}

[data-slide-style="editorial"] .cs-summary-text,
[data-slide-style="editorial"] .ds-summary-text,
[data-slide-style="editorial"] .ss-summary-text {
  font-style: italic;
  line-height: 1.8;
}

[data-slide-style="editorial"] .cs-icon-badge {
  border-radius: 0;
}

[data-slide-style="editorial"] .cs-cta-btn,
[data-slide-style="editorial"] .ds-cta-btn,
[data-slide-style="editorial"] .ss-cta-btn {
  border-radius: 0;
}

[data-slide-style="editorial"] .cs-summary-badge,
[data-slide-style="editorial"] .ds-summary-badge,
[data-slide-style="editorial"] .ss-summary-badge {
  border-radius: 0;
  border-left: 3px solid var(--slide-accent);
}

[data-slide-style="editorial"] .ds-progress-bar {
  border-radius: 0;
}

[data-slide-style="editorial"] .ds-progress-fill {
  border-radius: 0;
}

[data-slide-style="editorial"] .cs-slide,
[data-slide-style="editorial"] .ds-slide,
[data-slide-style="editorial"] .ss-slide {
  border-radius: 0;
}

[data-slide-style="editorial"] .cs-point-desc,
[data-slide-style="editorial"] .cs-cat-item-desc,
[data-slide-style="editorial"] .ds-content-desc,
[data-slide-style="editorial"] .ds-cat-item-desc,
[data-slide-style="editorial"] .ss-point-desc,
[data-slide-style="editorial"] .ss-cat-item-desc {
  font-style: italic;
  line-height: 1.7;
}

[data-slide-style="editorial"] .ds-bottom-bar {
  border-top: 2px solid var(--slide-accent);
  opacity: 0.8;
}

/* ---------- TERMINAL Style ---------- */
/* Monospace font, code-like aesthetic, scan-line feel, bright green/accent on dark */

[data-slide-style="terminal"] .cs-slide,
[data-slide-style="terminal"] .ds-slide,
[data-slide-style="terminal"] .ss-slide {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
  border: 1px solid var(--slide-accent);
  border-radius: 0;
}

[data-slide-style="terminal"] .cs-cover-title,
[data-slide-style="terminal"] .ds-main-title,
[data-slide-style="terminal"] .ss-title {
  font-family: inherit;
  font-size: 1.3em;
  font-weight: 700;
  letter-spacing: 0;
}

[data-slide-style="terminal"] .cs-cover-title::before,
[data-slide-style="terminal"] .ds-main-title::before,
[data-slide-style="terminal"] .ss-title::before {
  content: '> ';
  color: var(--slide-accent);
  opacity: 0.7;
}

[data-slide-style="terminal"] .cs-point-title,
[data-slide-style="terminal"] .cs-cat-item-title,
[data-slide-style="terminal"] .ds-content-title,
[data-slide-style="terminal"] .ss-point-title {
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
}

[data-slide-style="terminal"] .cs-point-title::before,
[data-slide-style="terminal"] .cs-cat-item-title::before,
[data-slide-style="terminal"] .ds-content-title::before,
[data-slide-style="terminal"] .ss-point-title::before {
  content: '$ ';
  color: var(--slide-accent);
  opacity: 0.6;
}

[data-slide-style="terminal"] .cs-cover-badge,
[data-slide-style="terminal"] .ds-tag,
[data-slide-style="terminal"] .ss-tag {
  border-radius: 0;
  border: 1px solid var(--slide-accent);
  background: transparent;
  font-family: inherit;
  font-size: 0.45em;
  letter-spacing: 0.05em;
}

[data-slide-style="terminal"] .cs-num-label,
[data-slide-style="terminal"] .ds-content-number,
[data-slide-style="terminal"] .ss-point-number {
  font-family: inherit;
  font-size: 1.5em;
  opacity: 0.25;
  font-weight: 400;
}

[data-slide-style="terminal"] .cs-num-label::before,
[data-slide-style="terminal"] .ds-content-number::before,
[data-slide-style="terminal"] .ss-point-number::before {
  content: '//';
  font-size: 0.5em;
  opacity: 0.5;
  margin-right: 0.2em;
}

[data-slide-style="terminal"] .cs-bg-glow,
[data-slide-style="terminal"] .ds-bg-accent,
[data-slide-style="terminal"] .ss-bg-glow {
  display: none;
}

[data-slide-style="terminal"] .cs-accent-line,
[data-slide-style="terminal"] .ss-accent-line {
  background: var(--slide-accent);
  opacity: 0.4;
  height: 1px;
}

[data-slide-style="terminal"] .cs-point-desc,
[data-slide-style="terminal"] .cs-cat-item-desc,
[data-slide-style="terminal"] .ds-content-desc,
[data-slide-style="terminal"] .ds-cat-item-desc,
[data-slide-style="terminal"] .ss-point-desc,
[data-slide-style="terminal"] .ss-cat-item-desc,
[data-slide-style="terminal"] .cs-summary-text,
[data-slide-style="terminal"] .ds-summary-text,
[data-slide-style="terminal"] .ss-summary-text {
  font-family: inherit;
  font-size: 0.55em;
  line-height: 1.7;
  opacity: 0.7;
}

[data-slide-style="terminal"] .cs-cta-title,
[data-slide-style="terminal"] .ds-cta-title,
[data-slide-style="terminal"] .ss-cta-title {
  font-family: inherit;
  font-size: 1.1em;
}

[data-slide-style="terminal"] .cs-cta-title::before,
[data-slide-style="terminal"] .ds-cta-title::before,
[data-slide-style="terminal"] .ss-cta-title::before {
  content: '>> ';
  color: var(--slide-accent);
}

[data-slide-style="terminal"] .cs-cta-btn,
[data-slide-style="terminal"] .ds-cta-btn,
[data-slide-style="terminal"] .ss-cta-btn {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--slide-accent);
  color: var(--slide-accent);
  font-family: inherit;
}

[data-slide-style="terminal"] .cs-summary-badge,
[data-slide-style="terminal"] .ds-summary-badge,
[data-slide-style="terminal"] .ss-summary-badge {
  border-radius: 0;
  font-family: inherit;
  border: 1px solid var(--slide-accent);
  background: transparent;
}

[data-slide-style="terminal"] .cs-summary-item svg,
[data-slide-style="terminal"] .ds-summary-item svg,
[data-slide-style="terminal"] .ss-summary-item svg,
[data-slide-style="terminal"] .cs-cat-item-bullet svg,
[data-slide-style="terminal"] .ds-cat-item-header svg,
[data-slide-style="terminal"] .ss-cat-item-title svg {
  display: none;
}

[data-slide-style="terminal"] .cs-summary-item::before,
[data-slide-style="terminal"] .ds-summary-item::before,
[data-slide-style="terminal"] .ss-summary-item::before {
  content: '- ';
  color: var(--slide-accent);
  font-family: inherit;
}

[data-slide-style="terminal"] .cs-cat-item-bullet::before,
[data-slide-style="terminal"] .ds-cat-item-header::before,
[data-slide-style="terminal"] .ss-cat-item-title::before {
  content: '> ';
  color: var(--slide-accent);
  font-family: inherit;
}

[data-slide-style="terminal"] .cs-icon-badge {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--slide-accent);
}

[data-slide-style="terminal"] .ds-progress-bar {
  border-radius: 0;
  border: 1px solid var(--slide-surface);
}

[data-slide-style="terminal"] .ds-progress-fill {
  border-radius: 0;
}

[data-slide-style="terminal"] .ds-bottom-bar {
  border-top: 1px solid var(--slide-accent);
  opacity: 0.6;
}

[data-slide-style="terminal"] .cs-swipe-hint {
  font-family: inherit;
  letter-spacing: 0.05em;
}

[data-slide-style="terminal"] .cs-handle,
[data-slide-style="terminal"] .ds-handle,
[data-slide-style="terminal"] .ss-handle,
[data-slide-style="terminal"] .cs-brand-sm,
[data-slide-style="terminal"] .ds-brand-sm,
[data-slide-style="terminal"] .ss-brand-sm,
[data-slide-style="terminal"] .ds-brand-large,
[data-slide-style="terminal"] .ds-counter {
  font-family: inherit;
}

/* ============================================
   CODE SNIPPET VISIBILITY TOGGLE
   ============================================ */

.code-snippets-hidden .cs-code-snippet,
.code-snippets-hidden .ds-code-snippet,
.code-snippets-hidden .ss-code-snippet {
  display: none;
}

/* ============================================
   TEXT SIZE SCALING
   Scales the base font-size of slide containers
   ============================================ */

[data-text-size="small"] .cs-slide,
[data-text-size="small"] .ds-slide,
[data-text-size="small"] .ss-slide {
  font-size: 85%;
}

[data-text-size="large"] .cs-slide,
[data-text-size="large"] .ds-slide,
[data-text-size="large"] .ss-slide {
  font-size: 118%;
}

/* ============================================
   TOGGLE SWITCH (theme panel)
   ============================================ */

.terminal-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.terminal-toggle-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  cursor: pointer;
  display: inline-block;
}

.toggle-switch input { display: none; }

.toggle-switch-track {
  display: block;
  width: 38px;
  height: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 11px;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-switch-track {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition);
  pointer-events: none;
}

.toggle-switch input:checked ~ .toggle-switch-thumb {
  left: 20px;
  background: #fff;
}

/* ============================================
   COMPLEXITY SLIDER (input form)
   ============================================ */

.complexity-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.complexity-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.complexity-slider-header label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.complexity-level-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 2px 10px;
  border-radius: 50px;
}

.complexity-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.complexity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-glow);
  transition: var(--transition);
}

.complexity-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px var(--accent-glow);
}

.complexity-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px var(--accent-glow);
}

.complexity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   THEME PANEL DIVIDER
   ============================================ */

.theme-divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .generator-layout {
    grid-template-columns: 1fr;
  }

  .export-sidebar {
    position: static;
  }

  .header-nav {
    gap: 2px;
  }

  .nav-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .nav-btn svg {
    display: none;
  }
}

@media (max-width: 600px) {
  .main {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 0 12px;
    gap: 8px;
  }

  .logo-tag {
    display: none;
  }
}
