/* CV Builder Pro - Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cvb-accent: #2563eb;
  --cvb-dark: #0f172a;
  --cvb-gray: #64748b;
  --cvb-light: #f8fafc;
  --cvb-border: #e2e8f0;
  --cvb-radius: 12px;
  --cvb-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

#cvb-app {
  font-family: 'DM Sans', sans-serif;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--cvb-dark);
}

/* PROGRESS */
.cvb-progress-wrap { margin-bottom: 2.5rem; }

.cvb-steps-track {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  position: relative;
}

.cvb-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
  flex: 1;
}

.cvb-step-dot span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cvb-border);
  color: var(--cvb-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--cvb-border);
}

.cvb-step-dot label {
  font-size: 10px;
  color: var(--cvb-gray);
  font-weight: 500;
  display: none;
}

@media (min-width: 600px) {
  .cvb-step-dot label { display: block; }
}

.cvb-step-dot.active span {
  background: var(--cvb-accent);
  border-color: var(--cvb-accent);
  color: white;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.cvb-step-dot.done span {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

.cvb-progress-bar {
  height: 4px;
  background: var(--cvb-border);
  border-radius: 99px;
  overflow: hidden;
}

.cvb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cvb-accent), #7c3aed);
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 12.5%;
}

/* STEPS */
.cvb-step { animation: cvbFadeIn 0.35s ease; }
.cvb-step.hidden { display: none; }

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

.cvb-step-header { margin-bottom: 2rem; text-align: center; }
.cvb-step-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--cvb-dark);
}
.cvb-step-header p { color: var(--cvb-gray); margin: 0; font-size: 1rem; }

/* TEMPLATE CARDS */
.cvb-templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .cvb-templates-grid { grid-template-columns: repeat(4, 1fr); }
}

.cvb-template-card {
  border: 2px solid var(--cvb-border);
  border-radius: var(--cvb-radius);
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.cvb-template-card:hover { border-color: var(--cvb-accent); transform: translateY(-2px); box-shadow: var(--cvb-shadow); }
.cvb-template-card.selected { border-color: var(--cvb-accent); background: rgba(37,99,235,0.04); }

.cvb-template-card h4 { margin: 0.5rem 0 0.2rem; font-size: 0.9rem; font-weight: 600; }
.cvb-template-card p { margin: 0; font-size: 0.75rem; color: var(--cvb-gray); }

.cvb-template-preview {
  height: 90px;
  border-radius: 6px;
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
  display: flex;
}

/* Template Previews */
.classic-preview .tp-sidebar { width: 28%; background: #334155; }
.classic-preview .tp-main { flex: 1; padding: 6px; }
.modern-preview { flex-direction: column; }
.modern-preview .tp-header-bar { height: 22px; background: var(--cvb-accent); }
.modern-preview .tp-two-col { display: flex; flex: 1; padding: 5px; gap: 5px; }
.modern-preview .tp-col-left { width: 35%; }
.modern-preview .tp-col-right { flex: 1; }
.minimal-preview { flex-direction: column; padding: 8px; background: white; }
.executive-preview { flex-direction: column; }
.executive-preview .tp-dark-header { background: #1e293b; padding: 8px; }
.executive-preview .tp-exec-body { flex: 1; padding: 6px; background: white; }

.tp-name-bar { height: 8px; background: rgba(255,255,255,0.7); border-radius: 4px; margin-bottom: 4px; width: 70%; }
.tp-line { height: 5px; background: #cbd5e1; border-radius: 4px; margin-bottom: 3px; }
.tp-line.short { width: 60%; }
.tp-block { height: 14px; background: #e2e8f0; border-radius: 4px; margin: 4px 0; }
.tp-circle { width: 20px; height: 20px; border-radius: 50%; background: #cbd5e1; margin: 0 auto 4px; }
.tp-divider { height: 2px; background: var(--cvb-accent); margin: 4px 0; }
.tp-top-name { height: 10px; background: #334155; border-radius: 4px; width: 60%; margin: 0 auto 5px; }
.tp-white-name { height: 6px; background: rgba(255,255,255,0.8); border-radius: 4px; margin-bottom: 3px; width: 60%; }
.tp-white-line { height: 4px; background: rgba(255,255,255,0.4); border-radius: 4px; width: 80%; }

/* COLOR PICKER */
.cvb-color-picker-wrap { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; justify-content: center; }
.cvb-color-picker-wrap label { font-weight: 500; font-size: 0.9rem; }
.cvb-colors { display: flex; gap: 8px; }
.cvb-color {
  width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; border: 3px solid transparent; transition: all 0.2s;
}
.cvb-color.active { border-color: var(--cvb-dark); transform: scale(1.2); }
.cvb-color:hover { transform: scale(1.15); }

/* PHOTO UPLOAD */
.cvb-photo-upload-area { text-align: center; }
.cvb-photo-preview {
  width: 160px; height: 160px; border-radius: 50%;
  border: 3px dashed var(--cvb-border);
  margin: 0 auto 1.5rem;
  cursor: pointer;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  background: var(--cvb-light);
}
.cvb-photo-preview:hover { border-color: var(--cvb-accent); }
.cvb-photo-placeholder { color: var(--cvb-gray); font-size: 0.85rem; padding: 1rem; }
.cvb-photo-placeholder svg { width: 48px; height: 48px; display: block; margin: 0 auto 0.5rem; opacity: 0.4; }
.cvb-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.cvb-photo-actions { display: flex; gap: 0.75rem; justify-content: center; }

/* FORMS */
.cvb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .cvb-form-grid { grid-template-columns: 1fr; } }

.cvb-field { display: flex; flex-direction: column; gap: 0.4rem; }
.cvb-field.full-width { grid-column: 1 / -1; }
.cvb-field label { font-size: 0.85rem; font-weight: 600; color: var(--cvb-dark); }

.cvb-field input,
.cvb-field textarea,
.cvb-entry input,
.cvb-entry textarea,
.cvb-entry select {
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--cvb-border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--cvb-dark);
  transition: border-color 0.2s;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

.cvb-field input:focus,
.cvb-field textarea:focus,
.cvb-entry input:focus,
.cvb-entry textarea:focus,
.cvb-entry select:focus {
  outline: none;
  border-color: var(--cvb-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.cvb-field textarea, .cvb-entry textarea { resize: vertical; }

/* ENTRIES (Experience / Education / References) */
.cvb-entry {
  background: white;
  border: 2px solid var(--cvb-border);
  border-radius: var(--cvb-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: var(--cvb-shadow);
}

.cvb-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cvb-entry-header h4 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--cvb-accent); }

.cvb-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 560px) { .cvb-entry-grid { grid-template-columns: 1fr; } }

.cvb-entry-grid .full { grid-column: 1 / -1; }

.cvb-entry label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cvb-gray);
  margin-bottom: 0.3rem;
}

/* SKILLS */
.cvb-skills-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.cvb-skills-input-row input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--cvb-border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
}
.cvb-skills-input-row input:focus {
  outline: none;
  border-color: var(--cvb-accent);
}

#cvb-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.cvb-skill-tag {
  background: rgba(37,99,235,0.1);
  color: var(--cvb-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: cvbFadeIn 0.2s ease;
}

.cvb-skill-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
  line-height: 1;
  font-size: 0.9rem;
  opacity: 0.6;
}
.cvb-skill-tag button:hover { opacity: 1; }

.cvb-skill-suggestions p { font-size: 0.85rem; font-weight: 600; color: var(--cvb-gray); margin-bottom: 0.5rem; }
.cvb-suggestions-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cvb-suggestions-wrap span {
  background: var(--cvb-light);
  border: 1px solid var(--cvb-border);
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--cvb-gray);
}
.cvb-suggestions-wrap span:hover {
  background: var(--cvb-accent);
  color: white;
  border-color: var(--cvb-accent);
}

/* BUTTONS */
.cvb-btn-primary {
  background: var(--cvb-accent);
  color: white;
  border: none;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.cvb-btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.cvb-btn-primary.small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.cvb-btn-primary.large { padding: 0.9rem 2.5rem; font-size: 1.05rem; }

.cvb-btn-outline {
  background: white;
  color: var(--cvb-accent);
  border: 2px solid var(--cvb-accent);
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cvb-btn-outline:hover { background: rgba(37,99,235,0.05); }

.cvb-btn-ghost {
  background: none;
  color: var(--cvb-gray);
  border: 2px solid var(--cvb-border);
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cvb-btn-ghost:hover { border-color: var(--cvb-gray); color: var(--cvb-dark); }

.cvb-btn-danger {
  background: none;
  color: #dc2626;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.cvb-btn-danger:hover { background: #fef2f2; }

.cvb-btn-add {
  width: 100%;
  padding: 0.85rem;
  border: 2px dashed var(--cvb-border);
  border-radius: var(--cvb-radius);
  background: none;
  color: var(--cvb-accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cvb-btn-add:hover { border-color: var(--cvb-accent); background: rgba(37,99,235,0.04); }

.cvb-skip-btn {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.cvb-hint { font-size: 0.8rem; color: var(--cvb-gray); margin-top: 0.5rem; }

/* NAVIGATION */
.cvb-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--cvb-border);
}

/* PREVIEW ACTIONS */
.cvb-preview-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* CV OUTPUT PREVIEW */
.cvb-cv-preview-wrap {
  border: 1px solid var(--cvb-border);
  border-radius: var(--cvb-radius);
  overflow: hidden;
  box-shadow: var(--cvb-shadow);
}

#cvb-cv-output {
  background: white;
  min-height: 600px;
  font-family: 'DM Sans', sans-serif;
}

/* ========================
   CV TEMPLATES OUTPUT
   ======================== */

/* CLASSIC TEMPLATE */
.cv-classic {
  display: flex;
  min-height: 800px;
}
.cv-classic .cv-sidebar {
  width: 220px;
  min-width: 220px;
  padding: 2rem 1.25rem;
  color: white;
}
.cv-classic .cv-sidebar .cv-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.3); margin: 0 auto 1rem; display: block; }
.cv-classic .cv-sidebar .cv-photo-placeholder { width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.15); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.cv-classic .cv-sidebar h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.7; margin: 1.25rem 0 0.5rem; }
.cv-classic .cv-sidebar p, .cv-classic .cv-sidebar a { font-size: 0.8rem; margin: 0 0 0.3rem; color: rgba(255,255,255,0.85); text-decoration: none; display: block; word-break: break-all; }
.cv-classic .cv-sidebar .skill-bar-wrap { margin-bottom: 0.4rem; }
.cv-classic .cv-sidebar .skill-bar-label { font-size: 0.78rem; color: rgba(255,255,255,0.85); margin-bottom: 3px; }
.cv-classic .cv-sidebar .skill-bar { height: 5px; background: rgba(255,255,255,0.2); border-radius: 99px; }
.cv-classic .cv-sidebar .skill-bar-fill { height: 100%; background: rgba(255,255,255,0.7); border-radius: 99px; width: 80%; }
.cv-classic .cv-main { flex: 1; padding: 2rem; }
.cv-classic .cv-main .cv-name { font-family: 'Playfair Display', serif; font-size: 2rem; margin: 0 0 0.2rem; line-height: 1.1; }
.cv-classic .cv-main .cv-title { font-size: 0.95rem; font-weight: 500; margin: 0 0 1.5rem; }
.cv-classic .cv-main .cv-summary { font-size: 0.87rem; line-height: 1.7; color: #475569; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid #f1f5f9; }
.cv-classic .cv-main .cv-section-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin: 0 0 1rem; }
.cv-classic .cv-main .cv-entry { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid #f1f5f9; }
.cv-classic .cv-main .cv-entry:last-child { border-bottom: none; }
.cv-classic .cv-main .cv-entry-title { font-weight: 700; font-size: 0.9rem; margin: 0 0 0.15rem; }
.cv-classic .cv-main .cv-entry-sub { font-size: 0.82rem; color: #64748b; margin: 0 0 0.4rem; }
.cv-classic .cv-main .cv-entry-desc { font-size: 0.82rem; color: #475569; line-height: 1.6; margin: 0; }

/* MODERN TEMPLATE */
.cv-modern { display: flex; flex-direction: column; min-height: 800px; }
.cv-modern .cv-header { padding: 2rem; color: white; display: flex; align-items: center; gap: 1.5rem; }
.cv-modern .cv-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.4); flex-shrink: 0; }
.cv-modern .cv-photo-placeholder { width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; flex-shrink: 0; }
.cv-modern .cv-header-info .cv-name { font-family: 'Playfair Display', serif; font-size: 2rem; margin: 0 0 0.2rem; line-height: 1.1; }
.cv-modern .cv-header-info .cv-title { font-size: 1rem; opacity: 0.85; margin: 0 0 0.5rem; }
.cv-modern .cv-header-info .cv-contacts { font-size: 0.8rem; opacity: 0.85; word-break: break-all; }
.cv-modern .cv-body { display: flex; flex: 1; }
.cv-modern .cv-left { width: 240px; min-width: 240px; background: #f8fafc; padding: 1.5rem; border-right: 1px solid #e2e8f0; }
.cv-modern .cv-right { flex: 1; padding: 1.5rem; }
.cv-modern .cv-section-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin: 0 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid; }
.cv-modern .cv-section { margin-bottom: 1.5rem; }
.cv-modern .cv-entry-title { font-weight: 700; font-size: 0.88rem; margin: 0 0 0.15rem; }
.cv-modern .cv-entry-sub { font-size: 0.8rem; color: #64748b; margin: 0 0 0.35rem; }
.cv-modern .cv-entry-desc { font-size: 0.8rem; color: #475569; line-height: 1.6; margin: 0 0 0.75rem; }
.cv-modern .cv-skill-tag { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 99px; font-size: 0.78rem; font-weight: 500; margin: 0 0.3rem 0.3rem 0; }
.cv-modern .cv-summary-text { font-size: 0.84rem; line-height: 1.7; color: #475569; margin: 0 0 1.5rem; }

/* MINIMAL TEMPLATE */
.cv-minimal { padding: 3rem; min-height: 800px; background: white; }
.cv-minimal .cv-top { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #e2e8f0; }
.cv-minimal .cv-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; }
.cv-minimal .cv-photo-placeholder { width: 100px; height: 100px; border-radius: 50%; background: #f1f5f9; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.cv-minimal .cv-name { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin: 0 0 0.3rem; }
.cv-minimal .cv-title { font-size: 1rem; font-weight: 500; color: #64748b; margin: 0 0 0.75rem; }
.cv-minimal .cv-contacts-row { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.cv-minimal .cv-contacts-row span { font-size: 0.82rem; color: #64748b; }
.cv-minimal .cv-section-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: #94a3b8; margin: 2rem 0 1rem; }
.cv-minimal .cv-entry { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; }
.cv-minimal .cv-entry-date { width: 100px; min-width: 100px; font-size: 0.78rem; color: #94a3b8; padding-top: 2px; }
.cv-minimal .cv-entry-body { flex: 1; }
.cv-minimal .cv-entry-title { font-weight: 700; font-size: 0.9rem; margin: 0 0 0.15rem; }
.cv-minimal .cv-entry-sub { font-size: 0.82rem; color: #64748b; margin: 0 0 0.35rem; }
.cv-minimal .cv-entry-desc { font-size: 0.82rem; color: #475569; line-height: 1.6; margin: 0; }
.cv-minimal .cv-skills-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cv-minimal .cv-skill-item { font-size: 0.82rem; color: #475569; padding: 0.3rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 99px; }
.cv-minimal .cv-summary-text { font-size: 0.87rem; line-height: 1.7; color: #475569; }
.cv-minimal .cv-ref-entry { margin-bottom: 1rem; }
.cv-minimal .cv-ref-name { font-weight: 700; font-size: 0.9rem; }
.cv-minimal .cv-ref-sub { font-size: 0.82rem; color: #64748b; }

/* EXECUTIVE TEMPLATE */
.cv-executive { min-height: 800px; background: white; }
.cv-executive .cv-header { padding: 2.5rem 3rem; color: white; }
.cv-executive .cv-header-top { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.cv-executive .cv-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); }
.cv-executive .cv-photo-placeholder { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cv-executive .cv-name { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin: 0 0 0.2rem; letter-spacing: -0.5px; }
.cv-executive .cv-title { font-size: 0.9rem; opacity: 0.7; margin: 0; letter-spacing: 2px; text-transform: uppercase; }
.cv-executive .cv-contacts-bar { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cv-executive .cv-contacts-bar span { font-size: 0.8rem; opacity: 0.8; }
.cv-executive .cv-body { padding: 2.5rem 3rem; }
.cv-executive .cv-body-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.cv-executive .cv-section { margin-bottom: 2rem; }
.cv-executive .cv-section-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; padding-bottom: 0.5rem; border-bottom: 2px solid; margin-bottom: 1rem; }
.cv-executive .cv-entry { margin-bottom: 1.25rem; }
.cv-executive .cv-entry-title { font-weight: 700; font-size: 0.92rem; margin: 0 0 0.15rem; }
.cv-executive .cv-entry-sub { font-size: 0.82rem; color: #64748b; margin: 0 0 0.4rem; }
.cv-executive .cv-entry-desc { font-size: 0.82rem; color: #475569; line-height: 1.6; margin: 0; }
.cv-executive .cv-skill-item { font-size: 0.82rem; color: #475569; padding: 0.25rem 0; border-bottom: 1px solid #f1f5f9; display: block; margin-bottom: 0.3rem; }
.cv-executive .cv-summary-text { font-size: 0.87rem; line-height: 1.7; color: #475569; margin: 0 0 2rem; padding-bottom: 2rem; border-bottom: 1px solid #f1f5f9; }

/* ========================
   JOB RECOMMENDATIONS
   ======================== */

.cvb-jobs-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(124,58,237,0.06));
  border-radius: var(--cvb-radius);
  border: 1px solid rgba(37,99,235,0.12);
}
.cvb-jobs-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  color: var(--cvb-dark);
}
.cvb-jobs-header p { margin: 0; color: var(--cvb-gray); font-size: 0.95rem; }

.cvb-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.cvb-job-card {
  background: white;
  border: 2px solid var(--cvb-border);
  border-radius: var(--cvb-radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  animation: cvbFadeIn 0.3s ease;
}
.cvb-job-card:hover {
  border-color: var(--cvb-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.12);
}

.cvb-job-card-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: var(--cvb-light);
}
.cvb-job-card-thumb-placeholder {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.cvb-job-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cvb-job-card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--cvb-accent);
  margin-bottom: 0.4rem;
}
.cvb-job-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cvb-dark);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.cvb-job-card-excerpt {
  font-size: 0.82rem;
  color: var(--cvb-gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.75rem;
}
.cvb-job-card-date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}
.cvb-job-card-btn {
  width: 100%;
  padding: 0.55rem;
  background: var(--cvb-accent);
  color: white;
  border: none;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cvb-job-card-btn:hover { background: #1d4ed8; }

/* LOADING SPINNER */
.cvb-jobs-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--cvb-gray);
  font-size: 0.9rem;
}
.cvb-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--cvb-border);
  border-top-color: var(--cvb-accent);
  border-radius: 50%;
  animation: cvbSpin 0.7s linear infinite;
}
@keyframes cvbSpin { to { transform: rotate(360deg); } }

/* JOB POPUP */
.cvb-job-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cvb-job-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
}
.cvb-job-popup-box {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  animation: cvbPopupIn 0.25s ease;
}
@keyframes cvbPopupIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cvb-popup-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cvb-light);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--cvb-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}
.cvb-popup-close:hover { background: #fee2e2; color: #dc2626; }

.cvb-popup-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

#cvb-popup-content {
  padding: 1.5rem 2rem;
}
#cvb-popup-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--cvb-dark);
}
#cvb-popup-content .cvb-popup-meta {
  font-size: 0.8rem;
  color: var(--cvb-gray);
  margin-bottom: 1.25rem;
}
#cvb-popup-content .cvb-popup-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #475569;
}
#cvb-popup-content .cvb-popup-body p { margin-bottom: 0.85rem; }

.cvb-popup-actions {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--cvb-border);
  display: flex;
  justify-content: flex-end;
}
.cvb-popup-actions a {
  text-decoration: none;
  display: inline-block;
}

/* HEALTH TEMPLATE PREVIEW */
.health-preview { flex-direction: column; background: #f0fdf4; }
.tp-health-top { background: #16a34a; padding: 8px; display: flex; align-items: center; gap: 5px; }
.tp-health-cross { color: white; font-size: 10px; font-weight: bold; }
.tp-health-name { height: 6px; background: rgba(255,255,255,0.7); border-radius: 4px; flex: 1; }
.tp-health-body { flex: 1; padding: 6px; }
.tp-health-badge { height: 10px; background: #bbf7d0; border-radius: 4px; margin: 4px 0; width: 50%; }

/* Fix templates grid to show 5 cards */
@media (min-width: 600px) {
  .cvb-templates-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Fix photo in preview — no stretch */
.cvb-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Fix photo wrapper — prevents stretching across all templates */
.cv-photo-wrap {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
  background: #fff;
}
.cv-photo-wrap .cv-photo,
.cv-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border-radius: 0 !important;
}



/* ════════════════════════════════════════
   DOCUMENT-STYLE TEMPLATE PREVIEWS
   ════════════════════════════════════════ */

.cvb-templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .cvb-templates-grid { grid-template-columns: repeat(5, 1fr); }
}

.cvb-template-card {
  border: 2px solid var(--cvb-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.cvb-template-card:hover {
  border-color: var(--cvb-accent);
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.13);
}
.cvb-template-card.selected {
  border-color: var(--cvb-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18), 0 8px 20px rgba(37,99,235,0.1);
}
.cvb-template-card.selected .cvb-tpl-foot h4::after { content: ' ✓'; color: var(--cvb-accent); }

/* Mini document container */
.cvb-doc {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: white;
  border-bottom: 1px solid #f1f5f9;
}

/* Footer */
.cvb-tpl-foot { padding: 8px 10px 10px; text-align: center; }
.cvb-tpl-icon { font-size: 1.1rem; display: block; margin-bottom: 2px; }
.cvb-tpl-foot h4 { margin: 0 0 1px; font-size: 0.8rem; font-weight: 700; color: var(--cvb-dark); }
.cvb-tpl-foot p  { margin: 0; font-size: 0.66rem; color: var(--cvb-gray); }

/* ── Shared lorem elements ── */
.cvb-L  { display:block; height:2.5px; background:#dde3ea; border-radius:99px; margin-bottom:2.5px; }
.cvb-L.Lw  { background:rgba(255,255,255,0.5); }
.cvb-L.Lws { background:rgba(255,255,255,0.3); }
.cvb-L.w100{width:100%} .cvb-L.w90{width:90%} .cvb-L.w85{width:85%}
.cvb-L.w80{width:80%}   .cvb-L.w75{width:75%} .cvb-L.w65{width:65%}
.cvb-L.w60{width:60%}   .cvb-L.w50{width:50%}

.cvb-nm  { display:block; height:7px; border-radius:3px; margin-bottom:3px; width:82%; }
.cvb-nm-accent { background: var(--cvb-accent); }
.cvb-nt  { display:block; height:4px; background:#94a3b8; border-radius:3px; margin-bottom:3px; width:58%; }

.cvb-SH {
  display:block;
  font-size:5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.8px;
  padding-bottom:2px;
  border-bottom:1px solid;
  margin:5px 0 3px;
  line-height:1;
}
.cvb-SH-accent { color: var(--cvb-accent); border-color: var(--cvb-accent); }
.cvb-SH-corp   { color:#1d3557; border-color:#1d3557; }
.cvb-SH-health { color:#0d9488; border-color:#0d9488; }
.cvb-SH-arts-l { color:#f97316; border-color:#f97316; }
.cvb-SH-arts-r { color:#8b5cf6; border-color:#8b5cf6; }

.cvb-doc-avatar {
  width:34px; height:34px;
  border-radius:50%;
  overflow:hidden;
  flex-shrink:0;
  border:1.5px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.18);
}
.cvb-doc-avatar svg { width:100%; height:100%; display:block; }

.cvb-avatar-sm {
  width:26px; height:26px; border-radius:50%; overflow:hidden; flex-shrink:0;
}
.cvb-avatar-sm svg { width:100%; height:100%; }
.cvb-avatar-light { background:#f1f5f9; border:1px solid #e2e8f0; }

/* ── CLASSIC ── */
.cvb-doc-classic { display:flex; }
.cvb-classic-sidebar {
  width:56px; min-width:56px;
  background:var(--cvb-accent);
  padding:10px 6px;
  display:flex; flex-direction:column; align-items:center;
}
.cvb-sl { font-size:4.5px; text-transform:uppercase; letter-spacing:0.7px; color:rgba(255,255,255,0.55); font-weight:700; margin:4px 0 2px; display:block; }
.cvb-bar { height:2.5px; background:rgba(255,255,255,0.18); border-radius:99px; margin-bottom:2.5px; width:100%; }
.cvb-bar-fill { height:100%; background:rgba(255,255,255,0.62); border-radius:99px; }
.cvb-classic-main { flex:1; padding:10px 8px; }
.cvb-classic-main .cvb-name-block { margin-bottom:5px; padding-bottom:4px; border-bottom:1px solid #f1f5f9; }

/* ── MINIMAL ── */
.cvb-doc-minimal { padding:11px 10px 7px; background:white; }
.cvb-min-top { display:flex; align-items:flex-start; gap:7px; margin-bottom:6px; }
.cvb-mc { height:3.5px; width:24px; background:#dde3ea; border-radius:99px; display:inline-block; margin-right:2px; }
.cvb-min-rule { height:1.5px; background:var(--cvb-accent); border-radius:99px; margin-bottom:6px; }
.cvb-exp-row { display:flex; gap:4px; margin-top:2px; }
.cvb-date-col { width:18px; min-width:18px; }
.cvb-skill-pill { height:6px; width:22px; background:#e2e8f0; border-radius:99px; display:inline-block; }

/* ── CORPORATE ── */
.cvb-doc-corporate { display:flex; flex-direction:column; }
.cvb-corp-header {
  background:#1d3557;
  padding:9px 10px;
  display:flex; align-items:center; gap:8px;
}
.cvb-corp-nm  { display:block; height:7px; background:rgba(255,255,255,0.82); border-radius:3px; width:75%; margin-bottom:3px; }
.cvb-corp-nt  { display:block; height:3.5px; background:rgba(255,255,255,0.42); border-radius:3px; width:90%; margin-bottom:4px; }
.cvb-corp-chip { height:3.5px; background:rgba(255,255,255,0.25); border-radius:99px; display:inline-block; margin-right:3px; }
.cvb-corp-body { display:flex; flex:1; }
.cvb-corp-left  { width:58px; min-width:58px; background:#f0f4f8; padding:6px; border-right:1px solid #dde3ea; }
.cvb-corp-right { flex:1; padding:6px 8px; }
.cvb-corp-pill  { height:5.5px; background:rgba(29,53,87,0.12); border-radius:99px; margin-bottom:2.5px; border:1px solid rgba(29,53,87,0.18); }

/* ── HEALTH ── */
.cvb-doc-health { display:flex; flex-direction:column; }
.cvb-health-header {
  background:#0d9488;
  padding:9px 10px;
  display:flex; align-items:center; gap:8px;
}
.cvb-health-badge { font-size:5px; color:rgba(255,255,255,0.65); text-transform:uppercase; letter-spacing:1px; font-weight:700; display:block; margin-bottom:2px; }
.cvb-health-nm { display:block; height:7px; background:rgba(255,255,255,0.82); border-radius:3px; width:78%; margin-bottom:3px; }
.cvb-health-nt { display:block; height:3.5px; background:rgba(255,255,255,0.4); border-radius:3px; width:90%; margin-bottom:4px; }
.cvb-health-chip { height:3.5px; width:28px; background:rgba(255,255,255,0.25); border-radius:99px; display:inline-block; margin-right:3px; }
.cvb-health-body { display:flex; flex:1; }
.cvb-health-left { width:58px; min-width:58px; background:#f0fdf9; padding:6px; border-right:1.5px solid #99f6e4; }
.cvb-health-right { flex:1; padding:6px 8px; }
.cvb-health-pill { height:5.5px; background:#ccfbf1; border-radius:99px; margin-bottom:2.5px; border:1px solid #5eead4; }
.cvb-cert-row { display:flex; align-items:center; gap:2px; margin-bottom:2.5px; }
.cvb-cert-dot { width:7px; height:7px; border-radius:50%; background:#0d9488; display:flex; align-items:center; justify-content:center; font-size:4px; color:white; flex-shrink:0; }

/* ── ARTS ── */
.cvb-doc-arts { display:flex; flex-direction:column; }
.cvb-arts-header {
  position:relative; height:72px;
  overflow:hidden;
  display:flex; align-items:center; gap:8px;
  padding:0 10px;
}
.cvb-arts-gradient { position:absolute; inset:0; background:linear-gradient(135deg,#f97316 0%,#ec4899 50%,#8b5cf6 100%); }
.cvb-arts-shape1 { position:absolute; right:-10px; top:-15px; width:60px; height:60px; background:rgba(255,255,255,0.1); transform:rotate(35deg); border-radius:8px; }
.cvb-arts-shape2 { position:absolute; right:20px; bottom:-20px; width:50px; height:50px; background:rgba(255,255,255,0.07); transform:rotate(55deg); border-radius:6px; }
.cvb-arts-htext { position:relative; z-index:2; flex:1; }
.cvb-arts-nm { display:block; height:7px; background:rgba(255,255,255,0.88); border-radius:3px; width:80%; margin-bottom:3px; }
.cvb-arts-nt { display:block; height:3.5px; background:rgba(255,255,255,0.48); border-radius:3px; width:90%; margin-bottom:4px; }
.cvb-arts-chip { height:3px; width:24px; background:rgba(255,255,255,0.28); border-radius:99px; display:inline-block; margin-right:3px; }
.cvb-arts-body { display:flex; flex:1; background:white; }
.cvb-arts-left { width:60px; min-width:60px; background:#fef9f0; padding:6px; border-right:1.5px solid #fed7aa; }
.cvb-arts-right { flex:1; padding:6px 8px; }
.cvb-arts-bar { height:3px; border-radius:99px; margin-bottom:3px; }

/* ════════════════════════════════════════
   CLASSIC BLACK & WHITE TEMPLATE
   ════════════════════════════════════════ */

.cv-classic-bw {
  background: white;
  padding: 2.5rem 2.75rem;
  font-family: 'DM Sans', Arial, sans-serif;
  color: #1a1a1a;
  min-height: 600px;
}

/* Header */
.cv-bw-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}
.cv-classic-photo-wrap {
  flex-shrink: 0;
}
.cv-classic-photo-wrap .cv-photo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
}
.cv-bw-header-text { flex: 1; }
.cv-bw-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
  line-height: 1.1;
}
.cv-bw-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
}
.cv-bw-contacts {
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 0.2px;
  word-break: break-all;
}

/* Divider */
.cv-bw-divider {
  height: 2px;
  background: #1a1a1a;
  margin: 0.75rem 0 1.25rem;
}

/* Sections */
.cv-bw-section {
  margin-bottom: 1.4rem;
}
.cv-bw-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #1a1a1a;
  margin-bottom: 3px;
}
.cv-bw-section-rule {
  height: 1px;
  background: #aaa;
  margin-bottom: 0.75rem;
}
.cv-bw-summary {
  font-size: 0.87rem;
  line-height: 1.75;
  color: #333;
  margin: 0;
}

/* Entries inside classic */
.cv-classic-bw .cv-entry {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}
.cv-classic-bw .cv-entry:last-child { border-bottom: none; margin-bottom: 0; }
.cv-classic-bw .cv-entry-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a1a;
  margin-bottom: 0.15rem;
}
.cv-classic-bw .cv-entry-sub {
  font-size: 0.8rem;
  color: #555;
  font-style: italic;
  margin-bottom: 0.35rem;
}
.cv-classic-bw .cv-entry-desc {
  font-size: 0.83rem;
  color: #333;
  line-height: 1.65;
}

/* Skills — simple comma-style tags */
.cv-bw-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cv-classic-skill {
  background: #f5f5f5;
  color: #1a1a1a;
  border: 1px solid #ccc;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Classic preview card — grey sidebar, no accent color */
.cvb-doc-classic .cvb-classic-sidebar {
  background: #2d2d2d !important;
}

/* ── CLASSIC B&W PREVIEW ── */
.cvb-doc-classic-bw {
  background: white;
  padding: 0;
}
.cvb-bw-doc-inner {
  padding: 12px 12px 8px;
}
.cvb-bw-doc-header {
  margin-bottom: 5px;
}
.cvb-bw-name-line  { height: 9px; background: #1a1a1a; border-radius: 3px; width: 75%; margin-bottom: 4px; }
.cvb-bw-title-line { height: 4px; background: #555; border-radius: 3px; width: 50%; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 2px; }
.cvb-bw-contact-line { height: 3px; background: #999; border-radius: 3px; width: 90%; }
.cvb-bw-rule { height: 2px; background: #1a1a1a; margin: 6px 0 5px; }
.cvb-bw-section { margin-bottom: 5px; }
.cvb-bw-sh {
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.cvb-bw-sh-rule { height: 1px; background: #aaa; margin-bottom: 3px; }
.cvb-bw-tag {
  height: 6px; width: 24px;
  background: white;
  border: 1px solid #aaa;
  border-radius: 2px;
  display: inline-block;
}

/* AI photo in template previews */
.cvb-tpl-photo-wrap img,
.cvb-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}
