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

/* REMPLACER le :root actuel par ceci */
:root {
  /* Dark mode (default) — fond neutre gris-ardoise, accent vert conservé */
  --ink: #e4ece6;
  --ink-2: #b8c8be;
  --ink-3: #7a9080;
  --ink-4: #4d6055;
  --ink-a: #1a2e1e;
  --paper: #1a1d1b;
  --surface: #222622;
  --border: rgba(255, 255, 255, 0.08);
  --border-solid: #2a2e2b;
  --accent: #00e676;
  --accent-hover: #00c853;
  --accent-light: rgba(0, 230, 118, 0.1);
  --accent-2: #69f0ae;
  --panel-bg: #1e211f;
  --sidebar-bg: #161918;
  --input-bg: #252925;
  --topbar-bg: #111312;
  --topbar-border: rgba(0, 230, 118, 0.12);
  --modal-bg: #1e211f;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65), 0 4px 8px rgba(0, 0, 0, 0.3);
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "DM Mono", monospace;
}

[data-theme="light"] {
  --ink: #1a2e1e;
  --ink-2: #2d4a33;
  --ink-3: #4a6856;
  --ink-4: #7aad8a;
  --ink-a: #1a2e1e;
  --paper: #f5f9f7;
  --surface: #ffffff;
  --border: rgba(0, 200, 83, 0.14);
  --border-solid: #d4e8da;
  --accent: #00c853;
  --accent-hover: #00a846;
  --accent-light: rgba(0, 200, 83, 0.08);
  --accent-2: #00e676;
  --panel-bg: #ffffff;
  --sidebar-bg: #f0f7f3;
  --input-bg: #f8fcfa;
  --topbar-bg: #0c1810;
  --topbar-border: rgba(0, 230, 118, 0.15);
  --modal-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04);
}

body {
  font-family: var(--font-body);
  background: var(--sidebar-bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  transition:
    background 0.3s,
    color 0.3s;
}

* {
  scrollbar-color: rgba(0, 230, 118, 0.2) var(--sidebar-bg);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sidebar-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 230, 118, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 230, 118, 0.35);
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 0.2vw;
}

/* TOPBAR */
.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  gap: 12px;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #f0fff4;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}

.topbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.select-pill {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: #f0fff4;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}

.select-pill:hover {
  background: rgba(0, 230, 118, 0.15);
}

.select-pill option {
  background: #0c1810;
}

.btn {
  padding: 7px 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-ghost {
  background: rgba(0, 230, 118, 0.08);
  color: #b0d4bc;
  border: 1px solid rgba(0, 230, 118, 0.18);
}

.btn-ghost:hover {
  background: rgba(0, 230, 118, 0.15);
  color: #f0fff4;
  border-color: rgba(0, 230, 118, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: #070e09;
  font-weight: 600;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.35);
}

/* Séparateur topbar */
.topbar-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* Bouton Thème CV */
.btn-theme-cv {
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: #b0d4bc;
  padding: 5px 12px 5px 7px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  height: 36px;
}

.btn-theme-cv:hover {
  background: rgba(0, 230, 118, 0.13);
  color: #f0fff4;
  border-color: rgba(0, 230, 118, 0.38);
}

.theme-cv-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s;
  background: #fff;
}

.theme-cv-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  gap: 1px;
}

.theme-cv-sublabel {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(0, 230, 118, 0.7);
}

.theme-cv-name {
  font-size: 12px;
  font-weight: 500;
  color: #d4eada;
}

.theme-cv-chevron {
  opacity: 0.5;
  flex-shrink: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.btn-theme-cv:hover .theme-cv-chevron {
  opacity: 1;
  transform: translateY(1px);
}

/* === MOBILE : bouton thème CV === */
@media (max-width: 700px) {
  .btn-theme-cv {
    padding: 5px 10px;
    gap: 5px;
  }

  .theme-cv-swatch {
    display: none;
  }
  .theme-cv-chevron {
    display: block !important;
  }

  .theme-cv-texts {
    display: flex !important;
    flex-direction: row;
    gap: 4px;
    align-items: center;
  }

  .theme-cv-sublabel {
    display: block !important;
    font-size: 10px;
  }

  .theme-cv-name {
    display: none;
  }
}

/* Dark mode toggle button */
.btn-theme-toggle {
  background: rgba(0, 230, 118, 0.06);
  color: #b0d4bc;
  border: 1px solid rgba(0, 230, 118, 0.18);
  padding: 5px 10px 5px 9px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  height: 36px;
  white-space: nowrap;
}

.toggle-label {
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  color: #b0d4bc;
}

.btn-theme-toggle:hover {
  background: rgba(0, 230, 118, 0.15);
  color: #f0fff4;
  border-color: rgba(0, 230, 118, 0.35);
}

/* WORKSPACE */
.workspace {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 0;
  height: calc(100vh - 56px);
}

.editor {
  background: var(--panel-bg);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}

.editor-inner {
  padding: 28px 24px;
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-block {
  margin-bottom: 28px;
}

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

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.3s;
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* PHOTO */
.photo-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.photo-fields {
  flex: 1;
}

.photo-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.photo-zone {
  width: 88px;
  height: 88px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  background: var(--input-bg);
  flex-shrink: 0;
}

.photo-zone:hover,
.photo-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
}

.photo-icon {
  font-size: 22px;
}

.photo-hint {
  font-size: 9.5px;
  color: var(--ink-3);
  text-align: center;
  padding: 0 6px;
  line-height: 1.3;
}

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* EDITOR CARDS */
.item-list {
  margin-bottom: 12px;
}

.editor-card {
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.editor-card-body {
  flex: 1;
  min-width: 0;
}

.editor-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-card-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 1px;
}

.editor-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.15s;
}

.icon-btn-move {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
}

.icon-btn-move:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn-move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-btn-edit {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent);
}

.icon-btn-edit:hover {
  background: rgba(0, 230, 118, 0.2);
}

.icon-btn-del {
  background: rgba(255, 82, 82, 0.1);
  color: #ff5252;
}

.icon-btn-del:hover {
  background: rgba(255, 82, 82, 0.2);
}

.add-card-btn {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.add-card-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

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

/* PREVIEW PANEL */
.preview-panel {
  overflow-y: auto;
  padding: 32px;
  background: var(--sidebar-bg);
  transition: background 0.3s;
}

.preview {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
  min-height: 960px;
  position: relative;
}

/* PHOTO IN PREVIEW (standard layout) */
.preview-photo-std {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--border);
  float: right;
  margin: 0 0 12px 20px;
}

/* Le rendu CV est toujours blanc/noir, jamais affecté par le thème UI */
.preview,
.preview * {
  --ink: #0d0d0d;
  --ink-2: #3a3a3a;
  --ink-3: #777;
  --ink-4: #aaa;
  --border: #e8e6e0;
  --accent: #c8502a;
  --accent-light: #fdf0eb;
  --accent-2: #2a5fc8;
  --sidebar-bg: #f5f3ef;
  --input-bg: #fafaf8;
  color-scheme: light;
}

/* ===== SIDEBAR LAYOUT ===== */
.sb-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 960px;
}

.sb-left {
  background: #1e293b;
  color: #fff;
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
}

.sb-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  margin: 0 auto 14px;
  display: block;
}

.sb-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 14px;
}

.sb-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 3px;
  line-height: 1.2;
}

.sb-title {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #334155;
}

.sb-sh {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-top: 16px;
  margin-bottom: 8px;
}

.sb-ci {
  font-size: 11.5px;
  color: #cbd5e1;
  margin-bottom: 5px;
  line-height: 1.4;
  word-break: break-word;
}

.sb-skill {
  font-size: 11.5px;
  color: #e2e8f0;
  padding: 4px 0;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb-skill::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #38bdf8;
  border-radius: 50%;
  flex-shrink: 0;
}

.sb-summary {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.6;
}

.sb-right {
  padding: 36px 32px;
}

.theme-sidebar .sb-right .section-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #1e293b;
}

.theme-sidebar .sb-right .preview-section {
  margin-bottom: 24px;
}

.theme-sidebar .sb-right .item-card {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.theme-sidebar .sb-right .item-card:last-child {
  border-bottom: none;
}

.theme-sidebar .sb-right .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.theme-sidebar .sb-right .item-title {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.theme-sidebar .sb-right .item-date {
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.theme-sidebar .sb-right .item-subtitle {
  font-size: 12.5px;
  color: #38bdf8;
  font-weight: 500;
  margin-bottom: 4px;
}

.theme-sidebar .sb-right .item-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
}

.theme-sidebar.preview {
  padding: 0;
  overflow: hidden;
}

/* ===== THEME: DEFAULT ===== */
.theme-default .preview-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.theme-default .preview-jobtitle {
  font-size: 15px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.theme-default .preview-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.theme-default .social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-default .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--ink-2);
}

.theme-default .section-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.theme-default .preview-section {
  margin-bottom: 28px;
}

.theme-default .item-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.theme-default .item-card:last-child {
  border-bottom: none;
}

.theme-default .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.theme-default .item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.theme-default .item-date {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.theme-default .item-subtitle {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.theme-default .item-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.theme-default .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  font-size: 12px;
  color: var(--ink);
  font-family: var(--font-mono);
  margin: 3px;
}

.theme-default .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.theme-default .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-default .preview-location {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: MODERN ===== */
.theme-modern.preview {
  background: linear-gradient(145deg, #1a1035, #2d1b69) !important;
  color: #fff;
}

.theme-modern .preview-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.theme-modern .preview-jobtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.theme-modern .preview-header {
  border-bottom: 1px solid rgba(167, 139, 250, 0.3);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.theme-modern .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-modern .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 20px;
  color: #c4b5fd;
}

.theme-modern .section-h {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.6);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.theme-modern .preview-section {
  margin-bottom: 28px;
}

.theme-modern .item-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.theme-modern .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.theme-modern .item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
}

.theme-modern .item-date {
  font-size: 12px;
  color: #a78bfa;
  font-family: var(--font-mono);
}

.theme-modern .item-subtitle {
  font-size: 13px;
  color: #c4b5fd;
  margin-bottom: 4px;
}

.theme-modern .item-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.theme-modern .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 20px;
  font-size: 12px;
  color: #c4b5fd;
  margin: 3px;
}

.theme-modern .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.theme-modern .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-modern .preview-location {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: ELEGANT ===== */
.theme-elegant.preview {
  background: #fffef9 !important;
  color: #1c1510;
  font-family: Georgia, serif;
}

.theme-elegant .preview-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: #1c1510;
  letter-spacing: 1px;
  text-align: center;
}

.theme-elegant .preview-jobtitle {
  text-align: center;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8b7355;
  margin-top: 6px;
  margin-bottom: 20px;
  font-style: italic;
}

.theme-elegant .preview-header {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #c9a96e;
  text-align: center;
}

.theme-elegant .social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.theme-elegant .social-icon {
  font-size: 12px;
  padding: 3px 12px;
  border: 1px solid #c9a96e;
  color: #8b7355;
}

.theme-elegant .section-h {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8b7355;
  margin-bottom: 14px;
  text-align: center;
  position: relative;
}

.theme-elegant .section-h::before,
.theme-elegant .section-h::after {
  content: "—";
  margin: 0 10px;
  color: #c9a96e;
}

.theme-elegant .preview-section {
  margin-bottom: 28px;
}

.theme-elegant .item-card {
  border-left: 3px solid #c9a96e;
  padding: 10px 0 10px 16px;
  margin-bottom: 14px;
}

.theme-elegant .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-elegant .item-title {
  font-weight: 700;
  font-size: 14px;
  color: #1c1510;
}

.theme-elegant .item-date {
  font-size: 12px;
  color: #8b7355;
}

.theme-elegant .item-subtitle {
  font-size: 13px;
  color: #8b7355;
  font-style: italic;
  margin-bottom: 4px;
}

.theme-elegant .item-desc {
  font-size: 13px;
  color: #3d3025;
  line-height: 1.6;
}

.theme-elegant .skill-badge {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid #c9a96e;
  font-size: 12px;
  color: #1c1510;
  margin: 3px;
}

.theme-elegant .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #5c4a35;
  justify-content: center;
}

.theme-elegant .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-elegant .preview-location {
  font-size: 12px;
  color: #8b7355;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: DARK ===== */
.theme-dark.preview {
  background: #111827 !important;
  color: #f3f4f6;
}

.theme-dark .preview-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: #f9fafb;
}

.theme-dark .preview-jobtitle {
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  margin-bottom: 16px;
}

.theme-dark .preview-header {
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 1px solid #374151;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 28px;
}

.theme-dark .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.theme-dark .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 20px;
  color: #d1d5db;
}

.theme-dark .section-h {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #374151;
}

.theme-dark .preview-section {
  margin-bottom: 28px;
}

.theme-dark .item-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.theme-dark .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-dark .item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #f9fafb;
}

.theme-dark .item-date {
  font-size: 12px;
  color: #6b7280;
  font-family: var(--font-mono);
}

.theme-dark .item-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.theme-dark .item-desc {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.55;
}

.theme-dark .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 6px;
  font-size: 12px;
  color: #d1d5db;
  margin: 3px;
  font-family: var(--font-mono);
}

.theme-dark .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
}

.theme-dark .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-dark .preview-location {
  font-size: 12px;
  color: #4b5563;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: MINIMAL ===== */
.theme-minimal.preview {
  background: #fff !important;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.theme-minimal .preview-name {
  font-size: 52px;
  font-weight: 200;
  color: #000;
  letter-spacing: -2.5px;
  line-height: 1;
}

.theme-minimal .preview-jobtitle {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #888;
  margin-top: 10px;
  margin-bottom: 20px;
}

.theme-minimal .preview-header {
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.theme-minimal .social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-minimal .social-icon {
  font-size: 11px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.theme-minimal .section-h {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid #000;
}

.theme-minimal .preview-section {
  margin-bottom: 28px;
}

.theme-minimal .item-card {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.theme-minimal .item-card:last-child {
  border-bottom: none;
}

.theme-minimal .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.theme-minimal .item-title {
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

.theme-minimal .item-date {
  font-size: 11px;
  color: #aaa;
  font-family: var(--font-mono);
}

.theme-minimal .item-subtitle {
  font-size: 12px;
  color: #555;
  margin-bottom: 3px;
}

.theme-minimal .item-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.theme-minimal .skill-badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid #000;
  font-size: 11px;
  color: #000;
  margin: 2px;
  border-radius: 0;
}

.theme-minimal .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #555;
}

.theme-minimal .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-minimal .preview-location {
  font-size: 11px;
  color: #bbb;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: NEON ===== */
.theme-neon.preview {
  background: #0a0a0f !important;
  color: #e2e8f0;
}

.theme-neon .preview-name {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg, #00f5ff, #bf5af2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  line-height: 1.2;
}

.theme-neon .preview-jobtitle {
  font-size: 12px;
  color: #00f5ff;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.theme-neon .preview-header {
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
  padding-bottom: 24px;
  margin-bottom: 28px;
  position: relative;
}

.theme-neon .preview-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, #00f5ff, transparent);
}

.theme-neon .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.theme-neon .social-icon {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 4px;
  color: #00f5ff;
}

.theme-neon .section-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00f5ff;
  margin-bottom: 12px;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-neon .section-h::before {
  content: "▶";
  font-size: 7px;
}

.theme-neon .section-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 245, 255, 0.15);
}

.theme-neon .preview-section {
  margin-bottom: 28px;
}

.theme-neon .item-card {
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-left: 2px solid #00f5ff;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: rgba(0, 245, 255, 0.03);
}

.theme-neon .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-neon .item-title {
  font-weight: 700;
  font-size: 14px;
  color: #e2e8f0;
}

.theme-neon .item-date {
  font-size: 11px;
  color: #bf5af2;
}

.theme-neon .item-subtitle {
  font-size: 12px;
  color: #00f5ff;
  margin-bottom: 4px;
}

.theme-neon .item-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
}

.theme-neon .skill-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(191, 90, 242, 0.4);
  border-radius: 4px;
  font-size: 11px;
  color: #bf5af2;
  margin: 3px;
}

.theme-neon .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
}

.theme-neon .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-neon .preview-location {
  font-size: 11px;
  color: rgba(0, 245, 255, 0.3);
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: PASTEL ===== */
.theme-pastel.preview {
  background: linear-gradient(160deg, #fdf4ff, #eff6ff) !important;
}

.theme-pastel .preview-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #581c87;
  margin-bottom: 4px;
}

.theme-pastel .preview-jobtitle {
  font-size: 14px;
  color: #a78bfa;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.theme-pastel .preview-header {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 2px solid #c4b5fd;
}

.theme-pastel .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-pastel .social-icon {
  font-size: 12px;
  padding: 3px 12px;
  background: rgba(196, 181, 253, 0.2);
  border: 1px solid #c4b5fd;
  border-radius: 20px;
  color: #581c87;
}

.theme-pastel .section-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #a78bfa;
}

.theme-pastel .preview-section {
  margin-bottom: 26px;
}

.theme-pastel .item-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(196, 181, 253, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.theme-pastel .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-pastel .item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #3b0764;
}

.theme-pastel .item-date {
  font-size: 12px;
  color: #a78bfa;
}

.theme-pastel .item-subtitle {
  font-size: 13px;
  color: #7c3aed;
  margin-bottom: 4px;
}

.theme-pastel .item-desc {
  font-size: 13px;
  color: #4c1d95;
  opacity: 0.8;
  line-height: 1.55;
}

.theme-pastel .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(196, 181, 253, 0.3);
  border: 1px solid #c4b5fd;
  border-radius: 20px;
  font-size: 12px;
  color: #581c87;
  margin: 3px;
}

.theme-pastel .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #4c1d95;
}

.theme-pastel .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-pastel .preview-location {
  font-size: 12px;
  color: #a78bfa;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: RETRO ===== */
.theme-retro.preview {
  background: #f5e6c8 !important;
  color: #2c1810;
  font-family: Georgia, serif;
}

.theme-retro .preview-name {
  font-size: 28px;
  font-weight: 700;
  color: #8b4513;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.theme-retro .preview-jobtitle {
  text-align: center;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a0522d;
  margin-top: 4px;
  margin-bottom: 14px;
}

.theme-retro .preview-header {
  border: 3px solid #8b4513;
  padding: 18px 22px;
  margin-bottom: 26px;
  text-align: center;
  position: relative;
}

.theme-retro .preview-header::before {
  content: "★ ★ ★";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #f5e6c8;
  padding: 0 10px;
  font-size: 12px;
  color: #8b4513;
}

.theme-retro .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.theme-retro .social-icon {
  font-size: 11px;
  padding: 2px 10px;
  background: #8b4513;
  color: #f5e6c8;
  letter-spacing: 1px;
}

.theme-retro .section-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8b4513;
  border-top: 1px dashed #8b4513;
  border-bottom: 1px dashed #8b4513;
  padding: 5px 0;
  margin-bottom: 14px;
  text-align: center;
}

.theme-retro .preview-section {
  margin-bottom: 24px;
}

.theme-retro .item-card {
  padding: 10px 0 10px 16px;
  border-left: 4px solid #d4956a;
  margin-bottom: 12px;
}

.theme-retro .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-retro .item-title {
  font-weight: 700;
  font-size: 14px;
  color: #2c1810;
}

.theme-retro .item-date {
  font-size: 11px;
  color: #8b4513;
}

.theme-retro .item-subtitle {
  font-size: 12px;
  color: #a0522d;
  font-style: italic;
  margin-bottom: 4px;
}

.theme-retro .item-desc {
  font-size: 13px;
  color: #4a2c1a;
  line-height: 1.6;
}

.theme-retro .skill-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #8b4513;
  font-size: 11px;
  color: #f5e6c8;
  margin: 3px;
}

.theme-retro .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #4a2c1a;
  justify-content: center;
}

.theme-retro .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-retro .preview-location {
  font-size: 11px;
  color: #8b4513;
  margin-top: 20px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== THEME: CREATIVE ===== */
.theme-creative.preview {
  background: linear-gradient(160deg, #fdf6ff, #f0ebff) !important;
  color: #2d1a5e;
}

.theme-creative .preview-name {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  text-align: center;
}

.theme-creative .preview-jobtitle {
  font-size: 14px;
  color: #7c3aed;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.theme-creative .preview-header {
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 2px solid #e9d5ff;
}

.theme-creative .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.theme-creative .social-icon {
  font-size: 12px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-radius: 20px;
  color: #fff;
}

.theme-creative .section-h {
  font-size: 14px;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid #7c3aed;
}

.theme-creative .preview-section {
  margin-bottom: 28px;
}

.theme-creative .item-card {
  background: #fff;
  border: 1.5px solid #e9d5ff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

.theme-creative .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-creative .item-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #2d1a5e;
}

.theme-creative .item-date {
  font-size: 12px;
  color: #a78bfa;
}

.theme-creative .item-subtitle {
  font-size: 13px;
  color: #db2777;
  font-weight: 500;
  margin-bottom: 4px;
}

.theme-creative .item-desc {
  font-size: 13px;
  color: #4a3870;
  line-height: 1.55;
}

.theme-creative .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
  margin: 3px;
}

.theme-creative .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #4a3870;
}

.theme-creative .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-creative .preview-location {
  font-size: 12px;
  color: #a78bfa;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: PROFESSIONAL ===== */
.theme-professional.preview {
  background: #f8fafc !important;
}

.theme-professional .preview-name {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
}

.theme-professional .preview-jobtitle {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 4px;
  margin-bottom: 16px;
}

.theme-professional .preview-header {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #0f172a;
  padding: 22px 26px;
  margin-bottom: 28px;
  border-radius: 0 8px 8px 0;
}

.theme-professional .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-professional .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  background: #0f172a;
  border-radius: 4px;
  color: #fff;
}

.theme-professional .section-h {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0f172a;
}

.theme-professional .preview-section {
  margin-bottom: 24px;
}

.theme-professional .item-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0f172a;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 0 6px 6px 0;
}

.theme-professional .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-professional .item-title {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.theme-professional .item-date {
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.theme-professional .item-subtitle {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  margin-bottom: 4px;
}

.theme-professional .item-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}

.theme-professional .skill-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #0f172a;
  border-radius: 4px;
  font-size: 11px;
  color: #fff;
  margin: 2px;
}

.theme-professional .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #475569;
}

.theme-professional .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-professional .preview-location {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: WARM ===== */
.theme-warm.preview {
  background: #fefcf5 !important;
  color: #5c3d11;
}

.theme-warm .preview-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: #5c3d11;
  margin-bottom: 4px;
}

.theme-warm .preview-jobtitle {
  font-size: 14px;
  color: #a0714f;
  margin-bottom: 16px;
}

.theme-warm .preview-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid #d4956a;
}

.theme-warm .social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-warm .social-icon {
  font-size: 12px;
  padding: 3px 12px;
  background: #fef3e2;
  border: 1px solid #d4956a;
  border-radius: 20px;
  color: #5c3d11;
}

.theme-warm .section-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a0714f;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0c896;
}

.theme-warm .preview-section {
  margin-bottom: 26px;
}

.theme-warm .item-card {
  padding: 12px 0;
  border-bottom: 1px solid #f0c896;
}

.theme-warm .item-card:last-child {
  border-bottom: none;
}

.theme-warm .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-warm .item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #3d2000;
}

.theme-warm .item-date {
  font-size: 12px;
  color: #a0714f;
}

.theme-warm .item-subtitle {
  font-size: 13px;
  color: #d4956a;
  font-weight: 500;
  margin-bottom: 4px;
}

.theme-warm .item-desc {
  font-size: 13px;
  color: #5c3d11;
  line-height: 1.6;
  opacity: 0.85;
}

.theme-warm .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #fef3e2;
  border: 1px solid #d4956a;
  border-radius: 20px;
  font-size: 12px;
  color: #5c3d11;
  margin: 3px;
}

.theme-warm .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #5c3d11;
}

.theme-warm .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-warm .preview-location {
  font-size: 12px;
  color: #a0714f;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: SWISS ===== */
.theme-swiss.preview {
  background: #fff !important;
  border-left: 6px solid #e63012;
}

.theme-swiss .preview-name {
  font-size: 48px;
  font-weight: 900;
  color: #111;
  letter-spacing: -2px;
  line-height: 0.95;
  text-transform: uppercase;
}

.theme-swiss .preview-jobtitle {
  font-size: 11px;
  color: #e63012;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 16px;
}

.theme-swiss .preview-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 3px solid #111;
}

.theme-swiss .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-swiss .social-icon {
  font-size: 11px;
  padding: 3px 10px;
  background: #e63012;
  color: #fff;
  font-weight: 700;
}

.theme-swiss .section-h {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
  border-top: 3px solid #e63012;
  padding-top: 6px;
}

.theme-swiss .preview-section {
  margin-bottom: 28px;
}

.theme-swiss .item-card {
  border-left: 3px solid #e63012;
  padding: 8px 0 8px 16px;
  margin-bottom: 10px;
}

.theme-swiss .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.theme-swiss .item-title {
  font-weight: 900;
  font-size: 13.5px;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-swiss .item-date {
  font-size: 11px;
  color: #e63012;
  font-weight: 700;
}

.theme-swiss .item-subtitle {
  font-size: 12px;
  color: #555;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.theme-swiss .item-desc {
  font-size: 12.5px;
  color: #333;
  line-height: 1.5;
}

.theme-swiss .skill-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #e63012;
  font-size: 11px;
  color: #fff;
  margin: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-swiss .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #333;
}

.theme-swiss .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-swiss .preview-location {
  font-size: 11px;
  color: #aaa;
  margin-top: 24px;
  text-align: right;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== THEME: FOREST ===== */
.theme-forest.preview {
  background: #f0f7f0 !important;
  color: #1a4731;
}

.theme-forest .preview-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #1a4731;
  margin-bottom: 4px;
}

.theme-forest .preview-jobtitle {
  font-size: 13px;
  color: #4a7c59;
  margin-bottom: 14px;
  font-style: italic;
}

.theme-forest .preview-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid #4a7c59;
  position: relative;
}

.theme-forest .preview-header::after {
  content: "🌿";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 28px;
  opacity: 0.3;
}

.theme-forest .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-forest .social-icon {
  font-size: 12px;
  padding: 3px 12px;
  background: #e0ede0;
  border: 1px solid #4a7c59;
  border-radius: 20px;
  color: #1a4731;
}

.theme-forest .section-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a7c59;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #c8ddc8;
}

.theme-forest .preview-section {
  margin-bottom: 26px;
}

.theme-forest .item-card {
  background: #fff;
  border: 1px solid #c8ddc8;
  border-left: 3px solid #4a7c59;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.theme-forest .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-forest .item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #1a4731;
}

.theme-forest .item-date {
  font-size: 12px;
  color: #4a7c59;
}

.theme-forest .item-subtitle {
  font-size: 13px;
  color: #4a7c59;
  font-style: italic;
  margin-bottom: 4px;
}

.theme-forest .item-desc {
  font-size: 13px;
  color: #2d4a3a;
  line-height: 1.55;
}

.theme-forest .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e0ede0;
  border: 1px solid #4a7c59;
  border-radius: 20px;
  font-size: 12px;
  color: #1a4731;
  margin: 3px;
}

.theme-forest .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #2d4a3a;
}

.theme-forest .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-forest .preview-location {
  font-size: 12px;
  color: #4a7c59;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: MIDNIGHT ===== */
.theme-midnight.preview {
  background: linear-gradient(160deg, #0b1120, #0f2040) !important;
  color: #e2e8f0;
}

.theme-midnight .preview-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.theme-midnight .preview-jobtitle {
  font-size: 12px;
  color: #60a5fa;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.theme-midnight .preview-header {
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.theme-midnight .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-midnight .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 6px;
  color: #60a5fa;
}

.theme-midnight .section-h {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
}

.theme-midnight .preview-section {
  margin-bottom: 28px;
}

.theme-midnight .item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-left: 2px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.theme-midnight .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-midnight .item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #e2e8f0;
}

.theme-midnight .item-date {
  font-size: 12px;
  color: #60a5fa;
  font-family: var(--font-mono);
}

.theme-midnight .item-subtitle {
  font-size: 13px;
  color: #93c5fd;
  margin-bottom: 4px;
}

.theme-midnight .item-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
}

.theme-midnight .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 6px;
  font-size: 12px;
  color: #60a5fa;
  margin: 3px;
}

.theme-midnight .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
}

.theme-midnight .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-midnight .preview-location {
  font-size: 12px;
  color: rgba(96, 165, 250, 0.4);
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: PAPER ===== */
.theme-paper.preview {
  background: #f9f4ec !important;
  color: #2d2416;
  font-family: Georgia, serif;
}

.theme-paper .preview-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #2d2416;
  border-bottom: 2px double #8b7355;
  padding-bottom: 6px;
  margin-bottom: 6px;
  display: inline-block;
}

.theme-paper .preview-jobtitle {
  font-size: 13px;
  color: #7a6040;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.theme-paper .preview-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px dashed #8b7355;
}

.theme-paper .social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-paper .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px dashed #8b7355;
  color: #5c4530;
}

.theme-paper .section-h {
  font-size: 11px;
  font-weight: 700;
  color: #2d2416;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.theme-paper .section-h::before {
  content: "§ ";
}

.theme-paper .preview-section {
  margin-bottom: 26px;
  border-bottom: 1px dashed #e8dcc8;
  padding-bottom: 4px;
}

.theme-paper .preview-section:last-of-type {
  border-bottom: none;
}

.theme-paper .item-card {
  padding: 10px 0;
  border-bottom: 1px solid #e8dcc8;
}

.theme-paper .item-card:last-child {
  border-bottom: none;
}

.theme-paper .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-paper .item-title {
  font-weight: 700;
  font-size: 14px;
  color: #2d2416;
}

.theme-paper .item-date {
  font-size: 12px;
  color: #8b7355;
  font-style: italic;
}

.theme-paper .item-subtitle {
  font-size: 13px;
  color: #7a6040;
  margin-bottom: 4px;
  font-style: italic;
}

.theme-paper .item-desc {
  font-size: 13px;
  color: #4a3520;
  line-height: 1.65;
}

.theme-paper .skill-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px dashed #8b7355;
  font-size: 12px;
  color: #2d2416;
  margin: 3px;
}

.theme-paper .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #4a3520;
}

.theme-paper .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-paper .preview-location {
  font-size: 12px;
  color: #8b7355;
  margin-top: 24px;
  text-align: center;
  font-style: italic;
}

/* ===== THEME: AURORA ===== */
.theme-aurora.preview {
  background: linear-gradient(135deg, #0d1b2a, #1b3a4b, #0d2a1a) !important;
  color: #e2e8f0;
}

.theme-aurora .preview-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  background: linear-gradient(90deg, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.theme-aurora .preview-jobtitle {
  font-size: 12px;
  color: #4ade80;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.theme-aurora .preview-header {
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
  padding-bottom: 22px;
  margin-bottom: 28px;
  position: relative;
}

.theme-aurora .preview-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, #4ade80, transparent);
}

.theme-aurora .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-aurora .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 6px;
  color: #4ade80;
}

.theme-aurora .section-h {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
}

.theme-aurora .preview-section {
  margin-bottom: 28px;
}

.theme-aurora .item-card {
  background: rgba(74, 222, 128, 0.04);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-left: 2px solid #4ade80;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.theme-aurora .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-aurora .item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #e2e8f0;
}

.theme-aurora .item-date {
  font-size: 12px;
  color: #22d3ee;
}

.theme-aurora .item-subtitle {
  font-size: 13px;
  color: #4ade80;
  margin-bottom: 4px;
}

.theme-aurora .item-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
}

.theme-aurora .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 6px;
  font-size: 12px;
  color: #4ade80;
  margin: 3px;
}

.theme-aurora .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
}

.theme-aurora .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-aurora .preview-location {
  font-size: 12px;
  color: rgba(74, 222, 128, 0.4);
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: EXECUTIVE ===== */
.theme-executive.preview {
  background: #1a1a2e !important;
  color: #e2e8f0;
}

.theme-executive .preview-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.theme-executive .preview-jobtitle {
  font-size: 12px;
  color: #c9a84c;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.theme-executive .preview-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  margin-bottom: 28px;
}

.theme-executive .preview-header-text {
  flex: 1;
}

.theme-executive .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-executive .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: #c9a84c;
  border-radius: 4px;
}

.theme-executive .section-h {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.theme-executive .preview-section {
  margin-bottom: 28px;
}

.theme-executive .item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-left: 2px solid #c9a84c;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.theme-executive .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-executive .item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
}

.theme-executive .item-date {
  font-size: 12px;
  color: #c9a84c;
  font-family: var(--font-mono);
}

.theme-executive .item-subtitle {
  font-size: 13px;
  color: #a8916e;
  margin-bottom: 4px;
}

.theme-executive .item-desc {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.55;
}

.theme-executive .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  font-size: 12px;
  color: #c9a84c;
  margin: 3px;
}

.theme-executive .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
}

.theme-executive .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-executive .preview-location {
  font-size: 12px;
  color: rgba(201, 168, 76, 0.4);
  margin-top: 24px;
  text-align: center;
}

.theme-executive .preview-photo-std {
  border-radius: 8px;
  border: 2px solid rgba(201, 168, 76, 0.4);
}

/* ===== THEME: BLUEPRINT ===== */
.theme-blueprint.preview {
  background: #0a1628 !important;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.04) 28px,
      rgba(255, 255, 255, 0.04) 29px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.04) 28px,
      rgba(255, 255, 255, 0.04) 29px
    ) !important;
  color: #cbd5e1;
}

.theme-blueprint .preview-name {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.theme-blueprint .preview-jobtitle {
  font-size: 12px;
  color: #38bdf8;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.theme-blueprint .preview-header {
  border-bottom: 1px dashed rgba(56, 189, 248, 0.3);
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.theme-blueprint .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-blueprint .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 2px;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.theme-blueprint .section-h {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.7);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.2);
  font-family: var(--font-mono);
}

.theme-blueprint .section-h::before {
  content: "▷ ";
  color: #38bdf8;
}

.theme-blueprint .preview-section {
  margin-bottom: 28px;
}

.theme-blueprint a {
  color: #7dd3fc;
}

.theme-blueprint .item-card {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-left: 2px solid #38bdf8;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 0 4px 4px 0;
}

.theme-blueprint .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-blueprint .item-title {
  font-weight: 700;
  font-size: 14px;
  color: #e2e8f0;
  font-family: var(--font-mono);
}

.theme-blueprint .item-date {
  font-size: 11px;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.theme-blueprint .item-subtitle {
  font-size: 12px;
  color: #7dd3fc;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.theme-blueprint .item-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
}

.theme-blueprint .skill-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 2px;
  font-size: 11px;
  color: #38bdf8;
  margin: 2px;
  font-family: var(--font-mono);
}

.theme-blueprint .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.theme-blueprint .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-blueprint .preview-location {
  font-size: 11px;
  color: rgba(56, 189, 248, 0.4);
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-mono);
}

/* ===== THEME: EDITORIAL ===== */
.theme-editorial.preview {
  background: #fff !important;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
}

.theme-editorial .preview-name {
  font-family: Georgia, serif;
  font-size: 52px;
  font-weight: 900;
  color: #111;
  letter-spacing: -2px;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 0;
}

.theme-editorial .preview-header {
  border-top: 3px solid #111;
  border-bottom: 1px solid #111;
  padding: 12px 0;
  margin-bottom: 32px;
}

.theme-editorial .preview-jobtitle {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #555;
  font-family: var(--font-body);
  font-weight: 400;
  margin: 10px 0 0;
}

.theme-editorial .social-icons {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 10px;
  border-top: 1px solid #ddd;
  padding-top: 8px;
}

.theme-editorial .social-icon {
  font-size: 11px;
  color: #555;
  margin-right: 12px;
  font-family: var(--font-body);
}

.theme-editorial .section-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #111;
  font-family: var(--font-body);
}

.theme-editorial .preview-section {
  margin-bottom: 30px;
}

.theme-editorial .item-card {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.theme-editorial .item-card:last-child {
  border-bottom: none;
}

.theme-editorial .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.theme-editorial .item-date {
  font-size: 11px;
  color: #999;
  font-family: var(--font-mono);
  white-space: nowrap;
  margin-left: 16px;
  flex-shrink: 0;
}

.theme-editorial .item-title {
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.theme-editorial .item-subtitle {
  font-size: 13px;
  color: #555;
  font-style: italic;
  margin-bottom: 4px;
}

.theme-editorial .item-desc {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

.theme-editorial .skill-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #111;
  font-size: 11px;
  color: #fff;
  margin: 2px;
  font-family: var(--font-body);
}

.theme-editorial .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #555;
}

.theme-editorial .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-editorial .preview-location {
  font-size: 11px;
  color: #aaa;
  margin-top: 24px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== THEME: GRADIENT ===== */
.theme-gradient.preview {
  background: #fff !important;
  color: #1a1a2e;
}

.theme-gradient .preview-header {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.theme-gradient .preview-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.theme-gradient .preview-jobtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.theme-gradient .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-gradient .social-icon {
  font-size: 12px;
  padding: 3px 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  color: #fff;
}

.theme-gradient .section-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 2px solid;
  border-image: linear-gradient(135deg, #ff6b6b, #4ecdc4) 1;
}

.theme-gradient .preview-section {
  margin-bottom: 28px;
}

.theme-gradient .item-card {
  background: #f8f9ff;
  border-radius: 10px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #ff6b6b, #4ecdc4) 1;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.theme-gradient .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-gradient .item-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #1a1a2e;
}

.theme-gradient .item-date {
  font-size: 12px;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-gradient .item-subtitle {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #4ecdc4, #45b7d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-gradient .item-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}

.theme-gradient .skill-badge {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
  margin: 3px;
}

.theme-gradient .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #475569;
}

.theme-gradient .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-gradient .preview-location {
  font-size: 12px;
  color: #aaa;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: TERMINAL ===== */
.theme-terminal.preview {
  background: #0d0d0d !important;
  color: #d4d4d4;
  font-family: var(--font-mono);
}

.theme-terminal .preview-header {
  background: #1a1a1a;
  border-radius: 8px 8px 0 0;
  border: 1px solid #333;
  padding: 0;
  margin-bottom: 28px;
  overflow: hidden;
}

.theme-terminal .preview-header::before {
  content: "";
  display: block;
  background: #2d2d2d;
  padding: 10px 14px;
  border-bottom: 1px solid #444;
  background-image:
    radial-gradient(circle at 14px 50%, #ff5f57 0 5px, transparent 5px),
    radial-gradient(circle at 34px 50%, #febc2e 0 5px, transparent 5px),
    radial-gradient(circle at 54px 50%, #28c840 0 5px, transparent 5px);
  background-repeat: no-repeat;
  height: 32px;
}

.theme-terminal .preview-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  padding: 16px 20px 0;
}

.theme-terminal .preview-name::before {
  content: "$ whoami → ";
  color: #28c840;
  font-size: 14px;
}

.theme-terminal .preview-jobtitle {
  font-size: 12px;
  color: #6b7280;
  padding: 4px 20px 16px;
}

.theme-terminal .preview-jobtitle::before {
  content: "// ";
  color: #555;
}

.theme-terminal .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 16px;
}

.theme-terminal .social-icon {
  font-size: 11px;
  padding: 2px 8px;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 3px;
  color: #28c840;
}

.theme-terminal .section-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #28c840;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #222;
}

.theme-terminal .section-h::before {
  content: "$ ls ./";
  color: #6b7280;
}

.theme-terminal .preview-section {
  margin-bottom: 28px;
}

.theme-terminal .item-card {
  background: #111;
  border: 1px solid #222;
  border-left: 3px solid #28c840;
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 0 4px 4px 0;
}

.theme-terminal .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-terminal .item-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.theme-terminal .item-date {
  font-size: 11px;
  color: #28c840;
}

.theme-terminal .item-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.theme-terminal .item-subtitle::before {
  content: "# ";
}

.theme-terminal .item-desc {
  font-size: 12.5px;
  color: #9ca3af;
  line-height: 1.6;
}

.theme-terminal .skill-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #111;
  border: 1px solid #374151;
  border-radius: 3px;
  font-size: 11px;
  color: #28c840;
  margin: 2px;
}

.theme-terminal .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
}

.theme-terminal .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-terminal .preview-location {
  font-size: 11px;
  color: #374151;
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: MARBLE ===== */
.theme-marble.preview {
  background: linear-gradient(160deg, #f8f8f6, #eceae4, #f0ede8) !important;
  color: #1a1a1a;
}

.theme-marble .preview-name {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1;
}

.theme-marble .preview-header {
  border-top: 2px solid #2c2c2c;
  border-bottom: 2px solid #2c2c2c;
  padding: 16px 0;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-marble .preview-jobtitle {
  font-size: 11px;
  color: #8a7560;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 400;
}

.theme-marble .social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.theme-marble .social-icon {
  font-size: 11px;
  color: #8a7560;
  letter-spacing: 1px;
}

.theme-marble .section-h {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #8a7560;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d0c8bc;
}

.theme-marble .preview-section {
  margin-bottom: 32px;
}

.theme-marble .item-card {
  padding: 14px 0 14px 20px;
  border-left: 1px solid #2c2c2c;
  margin-bottom: 14px;
}

.theme-marble .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-marble .item-title {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.theme-marble .item-date {
  font-size: 11px;
  color: #8a7560;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.theme-marble .item-subtitle {
  font-size: 13px;
  color: #8a7560;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.theme-marble .item-desc {
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.7;
}

.theme-marble .skill-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid #2c2c2c;
  font-size: 11px;
  color: #1a1a1a;
  margin: 3px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.theme-marble .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #4a4a4a;
}

.theme-marble .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-marble .preview-location {
  font-size: 11px;
  color: #8a7560;
  margin-top: 28px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ===== THEME: BRUTALIST ===== */
.theme-brutalist.preview {
  background: #f5f500 !important;
  color: #000;
  border: 3px solid #000;
  border-radius: 0;
}

.theme-brutalist .preview-name {
  font-size: 56px;
  font-weight: 900;
  color: #000;
  letter-spacing: -3px;
  line-height: 0.85;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.theme-brutalist .preview-header {
  background: #000;
  padding: 20px 24px;
  margin: -48px -48px 32px;
}

.theme-brutalist .preview-header .preview-name {
  color: #f5f500;
}

.theme-brutalist .preview-header .preview-jobtitle {
  color: #f5f500;
  opacity: 0.7;
}

.theme-brutalist .preview-jobtitle {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 8px;
}

.theme-brutalist .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.theme-brutalist .social-icon {
  font-size: 12px;
  padding: 4px 12px;
  background: #f5f500;
  color: #000;
  font-weight: 700;
  border: 2px solid #f5f500;
}

.theme-brutalist .section-h {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 14px;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  padding: 6px 0;
}

.theme-brutalist .preview-section {
  margin-bottom: 28px;
}

.theme-brutalist .item-card {
  background: #fff;
  border: 2px solid #000;
  padding: 12px 16px;
  margin-bottom: 6px;
  box-shadow: 4px 4px 0 #000;
}

.theme-brutalist .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-brutalist .item-title {
  font-weight: 900;
  font-size: 15px;
  color: #000;
  text-transform: uppercase;
}

.theme-brutalist .item-date {
  font-size: 12px;
  color: #000;
  font-weight: 700;
}

.theme-brutalist .item-subtitle {
  font-size: 13px;
  color: #444;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.theme-brutalist .item-desc {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.theme-brutalist .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #000;
  font-size: 12px;
  color: #f5f500;
  margin: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.theme-brutalist .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #000;
  font-weight: 600;
}

.theme-brutalist .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-brutalist .preview-location {
  font-size: 12px;
  color: #000;
  margin-top: 24px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ===== THEME: GLASSMORPHISM ===== */
.theme-glassmorphism.preview {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 50%,
    #f64f59 100%
  ) !important;
  color: #fff;
}

.theme-glassmorphism .preview-name {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.theme-glassmorphism .preview-jobtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.theme-glassmorphism .preview-header {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
}

.theme-glassmorphism .social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-glassmorphism .social-icon {
  font-size: 12px;
  padding: 3px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #fff;
}

.theme-glassmorphism .section-h {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-glassmorphism .preview-section {
  margin-bottom: 24px;
}

.theme-glassmorphism .item-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.theme-glassmorphism .item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.theme-glassmorphism .item-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
}

.theme-glassmorphism .item-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.theme-glassmorphism .item-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.theme-glassmorphism .item-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.theme-glassmorphism .skill-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
  margin: 3px;
}

.theme-glassmorphism .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.theme-glassmorphism .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-glassmorphism .preview-location {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
  text-align: center;
}

/* ===== THEME: TIMELINE ===== */
.theme-timeline.preview {
  background: #fafafa !important;
  color: #18181b;
}

.theme-timeline .preview-name {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: #18181b;
  letter-spacing: -1.5px;
  margin-bottom: 4px;
}

.theme-timeline .preview-jobtitle {
  font-size: 13px;
  color: #71717a;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.theme-timeline .preview-header {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 2px solid #18181b;
}

.theme-timeline .social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-timeline .social-icon {
  font-size: 12px;
  padding: 3px 10px;
  background: #18181b;
  border-radius: 4px;
  color: #fff;
}

.theme-timeline .section-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #18181b;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid #18181b;
}

.theme-timeline .preview-section {
  margin-bottom: 32px;
}

.theme-timeline .item-card {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0 16px;
  padding-bottom: 24px;
  position: relative;
}

.theme-timeline .item-card::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: #e4e4e7;
}

.theme-timeline .item-card:last-child::before {
  display: none;
}

.theme-timeline .item-header {
  display: contents;
}

.theme-timeline .item-card > *:not(:first-child) {
  grid-column: 2;
}

.theme-timeline .item-title {
  font-weight: 700;
  font-size: 15px;
  color: #18181b;
  grid-column: 2;
}

.theme-timeline .item-date {
  font-size: 11px;
  color: #71717a;
  font-family: var(--font-mono);
  grid-column: 2;
  margin-bottom: 2px;
}

.theme-timeline .item-card::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #18181b;
  border: 2px solid #fafafa;
  box-shadow: 0 0 0 2px #18181b;
  border-radius: 50%;
  grid-column: 1;
  grid-row: 1;
  margin-top: 4px;
  justify-self: center;
  z-index: 1;
  position: relative;
}

.theme-timeline .item-subtitle {
  font-size: 13px;
  color: #71717a;
  margin-bottom: 6px;
}

.theme-timeline .item-desc {
  font-size: 13px;
  color: #52525b;
  line-height: 1.6;
}

.theme-timeline .skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f4f4f5;
  border-radius: 6px;
  font-size: 12px;
  color: #18181b;
  margin: 3px;
  font-weight: 600;
}

.theme-timeline .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #52525b;
}

.theme-timeline .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-timeline .preview-location {
  font-size: 12px;
  color: #a1a1aa;
  margin-top: 24px;
  text-align: center;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--modal-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  width: 480px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--font-display);
}

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

.btn-solid {
  background: var(--accent);
  color: #070e09;
  padding: 9px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.2s;
}

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

.btn-outline {
  background: transparent;
  color: var(--ink-2);
  padding: 9px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

/* ===== THEME MODAL ===== */
.theme-modal-box {
  background: var(--modal-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 980px;
  max-width: 95vw;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

.theme-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.theme-modal-close {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-modal-close:hover {
  background: var(--input-bg);
  color: var(--ink);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.theme-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
}

.theme-card:hover {
  border-color: var(--ink-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2);
}

.theme-card.active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #070e09;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.theme-preview-mini {
  height: 110px;
  overflow: hidden;
}

.theme-card-label {
  padding: 9px 11px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--modal-bg);
}

.theme-card-desc {
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 400;
  margin-top: 1px;
}

/* @media print {
  .topbar,
  .editor {
    display: none !important;
  }

  .workspace {
    display: block;
    height: auto;
  }

  .preview-panel {
    padding: 0;
    background: none;
  }

  .preview {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    max-width: 100%;
  }
} */

@media print {
  /* Cache tout sauf le preview */
  .topbar,
  .editor,
  footer,
  .footer,
  .site-footer {
    display: none !important;
  }

  /* Reset minimal — NE PAS toucher * globalement */
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  .workspace {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .preview-panel {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  /* Le preview occupe toute la page — ses propres styles internes restent intacts */
  .preview {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    /* Ces deux lignes sont la clé : */
    transform-origin: top left !important;
    zoom: 1 !important; /* sera écrasé par le JS */
  }

  @page {
    size: A4 portrait;
    margin: 0;
  }
}

/* ===== LANG SWITCHER (double-page HTML mode) ===== */
.lang-switcher {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  color: rgba(176, 212, 188, 0.75);
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.lang-btn:hover {
  color: #f0fff4;
  /* background: rgba(0, 230, 118, 0.12); */
}

.lang-btn.active {
  background: rgba(0, 230, 118, 0.18);
  color: #f0fff4;
  border: 1px solid rgba(0, 230, 118, 0.18);
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.4rem 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-sep {
  color: var(--border2);
}

footer a,
footer button {
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem;
  transition: opacity var(--t);
  padding: 0;
}

footer a:hover,
footer button:hover {
  opacity: 0.7;
}

/* ===== RESPONSIVE — MOBILE & TABLET ===== */

/* Mobile tab navigation */
.mobile-tabs {
  display: none;
  position: sticky;
  top: 56px;
  z-index: 90;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-tab-bar {
  display: flex;
}

.mobile-tab-btn {
  flex: 1;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--ink-3);
  transition: all 0.2s;
  white-space: nowrap;
}

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

.mobile-tab-btn:hover {
  color: var(--ink);
}

/* Topbar responsive tweaks */
@media (max-width: 900px) {
  .topbar {
    padding: 0 16px;
    height: 52px;
  }

  .topbar-right {
    gap: 6px;
  }

  /* Hide export HTML button on medium screens */
  .btn-export-html {
    display: none;
  }

  .workspace {
    grid-template-columns: 1fr 1fr;
    height: calc(100vh - 52px);
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: 0 12px;
    height: 50px;
  }

  .logo {
    font-size: 17px;
  }

  .topbar-right {
    gap: 5px;
  }

  /* On mobile, hide text labels in buttons, show only icons */
  .btn-label-text {
    display: none;
  }

  .btn {
    padding: 7px 10px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* On mobile: theme CV button shows only the swatch */
  .btn-theme-cv {
    padding: 5px 8px;
    gap: 0;
  }

  .theme-cv-texts,
  .theme-cv-chevron {
    display: none;
  }

  .theme-cv-sublabel {
    display: none;
  }

  /* Hide the separator on mobile */
  .topbar-sep {
    display: none;
  }

  /* Switch to tab-based mobile layout */
  .mobile-tabs {
    display: flex;
    flex-direction: column;
    top: 50px;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 50px - 40px);
  }

  .editor {
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: auto;
    overflow-y: visible;
  }

  .editor-inner {
    padding: 20px 16px;
  }

  .preview-panel {
    padding: 16px;
  }

  .preview {
    padding: 28px 20px;
  }

  /* Tab panel visibility toggling */
  .editor.panel-hidden,
  .preview-panel.panel-hidden {
    display: none;
  }

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

  .photo-row {
    flex-direction: row;
    gap: 12px;
  }

  .photo-zone {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
  }

  /* Theme grid on mobile */
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .theme-modal-box {
    padding: 20px;
    border-radius: 16px;
  }

  .modal-box {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .topbar-right .lang-switcher {
    display: none;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    padding: 24px 16px;
  }
}
