/* Hero */
.rb-hero {
  background: linear-gradient(135deg, #0B1F3A 0%, #1a3a5c 55%, #0d2438 100%);
  color: #fff; padding: 4rem 0 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.rb-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,201,167,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.rb-hero::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.rb-hero .container { position: relative; z-index: 1; }
.rb-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,201,167,.14); border: 1px solid rgba(0,201,167,.3);
  color: var(--color-accent); font-size: .78rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: var(--radius-full); margin-bottom: 1.25rem;
}
.rb-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.12; color: #fff; margin-bottom: .9rem;
}
.rb-hero h1 em { font-style: normal; color: var(--color-accent); }
.rb-hero-sub {
  font-size: clamp(.95rem, 2.3vw, 1.15rem);
  color: rgba(255,255,255,.72); max-width: 620px;
  margin: 0 auto 2rem; line-height: 1.65;
}
.hero-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.hero-pill {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 600;
  padding: .3rem .85rem; border-radius: var(--radius-full);
}
.hero-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 1.5rem; }
.hero-stat-num { display: block; font-size: 1.55rem; font-weight: 800; color: var(--color-accent); font-family: var(--font-display); }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.55); }

/* UsageBanner ─── */
.usage-banner {
  background: linear-gradient(90deg, #e6faf7, #f0fffe);
  border: 1px solid rgba(0,201,167,.25); border-radius: var(--radius-md);
  padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.usage-banner.limit-reached { background: #fff0f0; border-color: rgba(239,68,68,.25); }
.usage-left { display: flex; align-items: center; gap: .6rem; }
.usage-text { font-size: .88rem; font-weight: 700; color: var(--color-text); }
.usage-sub  { font-size: .76rem; color: var(--color-muted); }
.usage-bar-wrap { flex: 1; min-width: 120px; max-width: 180px; }
.usage-bar-track { height: 6px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; }
.usage-bar-fill { height: 100%; background: linear-gradient(90deg, var(--color-accent), #00a98c); border-radius: 99px; transition: width .6s ease; }
.limit-reached .usage-bar-fill { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* Mainlayout ─── */
.rb-section { padding: 3rem 0 4rem; }
.rb-grid {
  display: grid; grid-template-columns: 460px 1fr;
  gap: 2rem; align-items: start;
}
@media (max-width: 1024px) { .rb-grid { grid-template-columns: 1fr; } }

/* FormCard ─── */
.form-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  overflow: hidden; position: sticky; top: 88px;
}
.form-card-header {
  background: linear-gradient(135deg, var(--color-primary), #0f3460);
  color: #fff; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.form-card-header-icon {
  width: 40px; height: 40px; background: rgba(0,201,167,.2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.form-card-title { font-size: 1rem; font-weight: 700; }
.form-card-sub   { font-size: .78rem; opacity: .7; }
.form-card-body  { padding: 1.5rem; max-height: calc(100vh - 200px); overflow-y: auto; }

/* Collapsiblesections ─── */
.form-section { margin-bottom: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.form-section-header {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; background: var(--color-bg);
  cursor: pointer; border: none; width: 100%; text-align: left;
  font-family: var(--font-body); font-size: .88rem; font-weight: 700; color: var(--color-text);
  transition: background var(--transition);
}
.form-section-header:hover { background: var(--color-accent-light); }
.form-section-header .section-icon { font-size: 1rem; }
.form-section-header .section-arrow {
  margin-left: auto; font-size: .75rem; color: var(--color-muted);
  transition: transform .25s;
}
.form-section.open .section-arrow { transform: rotate(180deg); }
.form-section-body { display: none; padding: 1rem; border-top: 1px solid var(--color-border); }
.form-section.open .form-section-body { display: block; }

/* Formelements ─── */
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-label { display: block; font-size: .82rem; font-weight: 700; color: var(--color-text); margin-bottom: .35rem; }
.form-label .opt { font-weight: 400; color: var(--color-muted); }
.form-control {
  width: 100%; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: .6rem .85rem; font-family: var(--font-body); font-size: .875rem;
  color: var(--color-text); background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; box-sizing: border-box;
}
.form-control:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,201,167,.15);
}
textarea.form-control { resize: vertical; min-height: 80px; line-height: 1.55; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }

/* Photoupload ─── */
.photo-upload-area {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
}
.photo-avatar {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  border: 2px dashed var(--color-border); background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer; transition: border-color var(--transition);
  position: relative;
}
.photo-avatar:hover { border-color: var(--color-accent); }
.photo-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-avatar-placeholder { font-size: 1.8rem; color: var(--color-muted); pointer-events: none; }
.photo-upload-info { flex: 1; }
.photo-upload-info h4 { font-size: .88rem; font-weight: 700; margin: 0 0 .25rem; }
.photo-upload-info p  { font-size: .76rem; color: var(--color-muted); margin: 0 0 .5rem; }
.btn-upload {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1.5px solid var(--color-border); background: var(--color-white);
  border-radius: var(--radius-md); padding: .4rem .85rem;
  font-size: .8rem; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all var(--transition); color: var(--color-text);
}
.btn-upload:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-remove-photo {
  background: none; border: none; font-size: .75rem; color: var(--color-danger);
  cursor: pointer; padding: 0; margin-top: .25rem; display: none;
}
.btn-remove-photo.visible { display: inline-block; }

/* Dynamiclistitems */
.dynamic-item {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: .9rem; margin-bottom: .65rem; position: relative; background: var(--color-bg);
}
.dynamic-item-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .6rem;
}
.dynamic-item-label { font-size: .8rem; font-weight: 700; color: var(--color-muted); }
.btn-remove-item {
  background: none; border: none; cursor: pointer;
  color: var(--color-muted); padding: .2rem .4rem; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  font-size: .8rem;
}
.btn-remove-item:hover { color: var(--color-danger); background: rgba(239,68,68,.08); }
.btn-add-item {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1.5px dashed var(--color-border); background: transparent;
  border-radius: var(--radius-md); padding: .5rem 1rem;
  font-size: .8rem; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; color: var(--color-muted); transition: all var(--transition);
  width: 100%; margin-top: .25rem;
}
.btn-add-item:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-light); }

/* Skilltags ─── */
.skill-tags-wrap { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; min-height: 28px; }
.skill-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--color-accent-light); border: 1px solid rgba(0,201,167,.25);
  color: var(--color-accent-dark); border-radius: var(--radius-full);
  padding: .25rem .75rem; font-size: .8rem; font-weight: 600;
}
.skill-tag-remove {
  background: none; border: none; cursor: pointer; color: var(--color-accent);
  padding: 0; font-size: .75rem; line-height: 1; opacity: .7;
  transition: opacity var(--transition);
}
.skill-tag-remove:hover { opacity: 1; }
.skill-input-row { display: flex; gap: .5rem; }
.skill-input-row .form-control { flex: 1; }
.btn-skill-add {
  background: var(--color-accent); color: #fff; border: none;
  border-radius: var(--radius-md); padding: .6rem 1rem;
  font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: opacity var(--transition); flex-shrink: 0;
}
.btn-skill-add:hover { opacity: .85; }

/* Languagelevelbar */
.lang-level-bar { height: 4px; background: var(--color-border); border-radius: 2px; margin-top: .3rem; }
.lang-level-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--color-accent), #00a98c); transition: width .4s; }

/* AISummarybtn */
.summary-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.btn-ai-summary {
  display: inline-flex; align-items: center; gap: .35rem;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff; border: none; border-radius: var(--radius-md);
  padding: .3rem .8rem; font-size: .75rem; font-weight: 700;
  font-family: var(--font-body); cursor: pointer;
  transition: opacity var(--transition);
}
.btn-ai-summary:hover:not(:disabled) { opacity: .85; }
.btn-ai-summary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ai-summary .spinner-sm {
  display: none; width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-ai-summary.loading .btn-ai-text { display: none; }
.btn-ai-summary.loading .spinner-sm  { display: inline-block; }

/* Modelselector ─── */
.models-label { font-size: .82rem; font-weight: 700; color: var(--color-text); margin-bottom: .5rem; display: flex; align-items: center; justify-content: space-between; }
.models-label span { font-weight: 400; color: var(--color-muted); font-size: .76rem; }
.models-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; max-height: 220px; overflow-y: auto; padding: .1rem; }
.model-option { position: relative; }
.model-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.model-option label {
  display: flex; align-items: center; gap: .45rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: .5rem .6rem; cursor: pointer;
  transition: all var(--transition); background: var(--color-bg);
  font-size: .75rem; font-weight: 500; color: var(--color-text); user-select: none;
}
.model-option input:checked + label { border-color: var(--color-accent); background: var(--color-accent-light); color: var(--color-accent-dark); }
.model-option label:hover { border-color: var(--color-accent); }
.model-icon { font-size: 1rem; flex-shrink: 0; }
.model-name { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-provider { font-size: .68rem; color: var(--color-muted); }
.model-option input:checked + label .model-provider { color: var(--color-accent); }

/* Generate/Actionbutton ─── */
.btn-generate {
  width: 100%; background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff; border: none; border-radius: var(--radius-md); padding: 1rem 1.5rem;
  font-size: 1rem; font-weight: 700; font-family: var(--font-body); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  transition: all var(--transition); box-shadow: 0 6px 20px rgba(0,201,167,.3); margin-top: .5rem;
}
.btn-generate:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,201,167,.4); }
.btn-generate:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-generate .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-generate.loading .btn-text { display: none; }
.btn-generate.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Formerror/info ─── */
.form-error { background: #fff0f0; border: 1px solid rgba(239,68,68,.25); border-radius: var(--radius-md); padding: .7rem 1rem; color: var(--color-danger); font-size: .85rem; display: none; align-items: flex-start; gap: .5rem; margin-top: .75rem; }
.form-error.show { display: flex; }
.char-hint { font-size: .72rem; color: var(--color-muted); margin-top: .2rem; text-align: right; }

/* Previewpanel ─── */
.preview-panel { position: sticky; top: 88px; }
.preview-tabs {
  display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem;
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: .4rem;
}
.preview-tab {
  flex: 1; min-width: 90px; border: none; border-radius: var(--radius-md);
  padding: .55rem .6rem; font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); background: transparent; color: var(--color-muted);
  text-align: center; white-space: nowrap;
}
.preview-tab.active { background: var(--color-primary); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.preview-tab:hover:not(.active) { background: var(--color-bg); color: var(--color-text); }

/* Downloadbar ─── */
.download-bar { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.btn-download {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .65rem 1.2rem; border-radius: var(--radius-md);
  font-size: .85rem; font-weight: 700; font-family: var(--font-body);
  cursor: pointer; transition: all var(--transition); border: 1.5px solid;
}
.btn-download.pdf  { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-download.pdf:hover  { background: #b91c1c; border-color: #b91c1c; }
.btn-download.docx { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-download.docx:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-download.print { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-download.print:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Resumepreviewwrapper */
.resume-preview-wrap {
  background: #f0f0f0; border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  overflow: hidden; position: relative;
}
.resume-preview-scale-wrap { transform-origin: top left; }

/* Resumeroot(A4) */
.resume-root {
  font-family: 'DM Sans', system-ui, sans-serif;
  width: 794px;
  background: #fff;
  font-size: 13px; line-height: 1.6; color: #1c1c1c;
  box-sizing: border-box;
}

/* TEMPLATE: Classic Elegance */
.tpl-classic .resume-header { background: #1a3a5c; color: #fff; padding: 28px 36px; display: flex; align-items: center; gap: 20px; }
.tpl-classic .resume-header-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #c8a951; flex-shrink: 0; }
.tpl-classic .resume-header-photo-placeholder { width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.tpl-classic .resume-name { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 700; margin: 0 0 4px; }
.tpl-classic .resume-title { font-size: 13px; opacity: .85; font-weight: 500; margin: 0 0 8px; }
.tpl-classic .resume-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; opacity: .75; }
.tpl-classic .resume-body { display: grid; grid-template-columns: 220px 1fr; }
.tpl-classic .resume-sidebar { background: rgba(26,58,92,.07); padding: 22px 18px; border-right: 1px solid #d4cfc4; }
.tpl-classic .resume-main { padding: 22px 26px; }
.tpl-classic .section-title { font-family: 'Playfair Display', Georgia, serif; font-size: 11.5px; font-weight: 700; color: #1a3a5c; border-bottom: 2px solid #c8a951; padding-bottom: 3px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.tpl-classic .skill-pill { display: inline-block; background: #e8f0f7; color: #1a3a5c; border-radius: 4px; padding: 2px 9px; font-size: 11px; font-weight: 600; margin: 2px 2px 2px 0; }
.tpl-classic .exp-title { font-weight: 700; font-size: 13px; }
.tpl-classic .exp-company { font-size: 12px; color: #1a3a5c; font-weight: 600; }
.tpl-classic .exp-meta { font-size: 11px; color: #6b6b6b; }
.tpl-classic .exp-desc { font-size: 12px; color: #444; margin: 5px 0 0; line-height: 1.6; }
.tpl-classic .lang-bar-track { height: 3px; background: #d4cfc4; border-radius: 2px; margin-top: 2px; }
.tpl-classic .lang-bar-fill { height: 100%; background: #1a3a5c; border-radius: 2px; }

/* TEMPLATE: Modern Minimal */
.tpl-modern .resume-header { background: #0f172a; color: #fff; padding: 32px 40px; display: flex; align-items: center; gap: 22px; }
.tpl-modern .resume-header-photo { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; border: 3px solid #6366f1; flex-shrink: 0; }
.tpl-modern .resume-header-photo-placeholder { width: 90px; height: 90px; border-radius: 12px; background: rgba(99,102,241,.2); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.tpl-modern .resume-name { font-size: 26px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.5px; }
.tpl-modern .resume-title { font-size: 13px; color: #818cf8; font-weight: 500; margin: 0 0 8px; }
.tpl-modern .resume-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: rgba(255,255,255,.6); }
.tpl-modern .resume-body { display: grid; grid-template-columns: 210px 1fr; }
.tpl-modern .resume-sidebar { background: #f8fafc; padding: 22px 18px; border-right: 1px solid #e2e8f0; }
.tpl-modern .resume-main { padding: 22px 28px; }
.tpl-modern .section-title { font-size: 11px; font-weight: 700; color: #6366f1; border-bottom: 2px solid #ede9fe; padding-bottom: 3px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; }
.tpl-modern .skill-pill { display: inline-block; background: #ede9fe; color: #4338ca; border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 600; margin: 2px 2px 2px 0; }
.tpl-modern .exp-title { font-weight: 700; font-size: 13px; }
.tpl-modern .exp-company { font-size: 12px; color: #6366f1; font-weight: 600; }
.tpl-modern .exp-meta { font-size: 11px; color: #64748b; }
.tpl-modern .exp-desc { font-size: 12px; color: #475569; margin: 5px 0 0; line-height: 1.6; }
.tpl-modern .lang-bar-track { height: 3px; background: #e2e8f0; border-radius: 2px; margin-top: 2px; }
.tpl-modern .lang-bar-fill { height: 100%; background: #6366f1; border-radius: 2px; }

/* TEMPLATE: Creative Bold */
.tpl-creative .resume-header { background: #7c3aed; color: #fff; padding: 28px 36px; display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden; }
.tpl-creative .resume-header::after { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.tpl-creative .resume-header-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #f59e0b; flex-shrink: 0; z-index: 1; }
.tpl-creative .resume-header-photo-placeholder { width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; flex-shrink: 0; z-index: 1; }
.tpl-creative .resume-name { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 800; margin: 0 0 4px; z-index: 1; position: relative; }
.tpl-creative .resume-title { font-size: 13px; color: #ddd6fe; font-weight: 500; margin: 0 0 8px; z-index: 1; position: relative; }
.tpl-creative .resume-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: rgba(255,255,255,.7); z-index: 1; position: relative; }
.tpl-creative .resume-body { display: grid; grid-template-columns: 215px 1fr; }
.tpl-creative .resume-sidebar { background: #fdf4ff; padding: 22px 16px; border-right: 2px solid #e9d5ff; }
.tpl-creative .resume-main { padding: 22px 26px; }
.tpl-creative .section-title { font-family: 'Playfair Display', Georgia, serif; font-size: 12px; font-weight: 700; color: #7c3aed; border-bottom: 2px solid #f59e0b; padding-bottom: 3px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.tpl-creative .skill-pill { display: inline-block; background: #fef3c7; color: #92400e; border-radius: 4px; padding: 2px 9px; font-size: 11px; font-weight: 600; margin: 2px 2px 2px 0; }
.tpl-creative .exp-title { font-weight: 700; font-size: 13.5px; }
.tpl-creative .exp-company { font-size: 12px; color: #7c3aed; font-weight: 600; }
.tpl-creative .exp-meta { font-size: 11px; color: #6b7280; }
.tpl-creative .exp-desc { font-size: 12px; color: #4b5563; margin: 5px 0 0; line-height: 1.6; }
.tpl-creative .lang-bar-track { height: 3px; background: #e9d5ff; border-radius: 2px; margin-top: 2px; }
.tpl-creative .lang-bar-fill { height: 100%; background: #7c3aed; border-radius: 2px; }

/* TEMPLATE: Executive Pro */
.tpl-executive .resume-header { background: #064e3b; color: #fff; padding: 30px 40px; display: flex; align-items: center; gap: 22px; border-bottom: 4px solid #b45309; }
.tpl-executive .resume-header-photo { width: 86px; height: 86px; border-radius: 6px; object-fit: cover; border: 3px solid #b45309; flex-shrink: 0; }
.tpl-executive .resume-header-photo-placeholder { width: 86px; height: 86px; border-radius: 6px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.tpl-executive .resume-name { font-family: 'Playfair Display', Georgia, serif; font-size: 27px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 4px; }
.tpl-executive .resume-title { font-size: 12.5px; color: #6ee7b7; font-weight: 500; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; }
.tpl-executive .resume-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; color: rgba(255,255,255,.65); }
.tpl-executive .resume-body { display: grid; grid-template-columns: 225px 1fr; }
.tpl-executive .resume-sidebar { background: #f0fdf4; padding: 22px 18px; border-right: 1px solid #d1fae5; }
.tpl-executive .resume-main { padding: 22px 28px; }
.tpl-executive .section-title { font-size: 10.5px; font-weight: 800; color: #064e3b; border-bottom: 2px solid #b45309; padding-bottom: 3px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .1em; }
.tpl-executive .skill-pill { display: inline-block; background: #d1fae5; color: #064e3b; border-radius: 3px; padding: 2px 8px; font-size: 11px; font-weight: 600; margin: 2px 2px 2px 0; }
.tpl-executive .exp-title { font-weight: 700; font-size: 13px; }
.tpl-executive .exp-company { font-size: 12px; color: #064e3b; font-weight: 600; }
.tpl-executive .exp-meta { font-size: 11px; color: #6b7280; }
.tpl-executive .exp-desc { font-size: 12px; color: #374151; margin: 5px 0 0; line-height: 1.6; }
.tpl-executive .lang-bar-track { height: 3px; background: #d1fae5; border-radius: 2px; margin-top: 2px; }
.tpl-executive .lang-bar-fill { height: 100%; background: #064e3b; border-radius: 2px; }

/* Sharedresumesectionspacing ─── */
.resume-section { margin-bottom: 18px; }
.resume-section:last-child { margin-bottom: 0; }
.exp-item { margin-bottom: 14px; }
.exp-item:last-child { margin-bottom: 0; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.lang-item { margin-bottom: 8px; }
.lang-item:last-child { margin-bottom: 0; }
.lang-header { display: flex; justify-content: space-between; align-items: center; }
.lang-name { font-weight: 600; font-size: 12px; }
.lang-level { font-size: 10.5px; color: #6b6b6b; }
.cert-item { margin-bottom: 7px; }
.cert-item:last-child { margin-bottom: 0; }

/* Howitworks */
.how-section { padding: 4rem 0; background: var(--color-card); }
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { font-family: var(--font-display); font-size: clamp(1.6rem,3.5vw,2.2rem); font-weight: 700; color: var(--color-text); margin-bottom: .4rem; }
.section-heading p { color: var(--color-muted); font-size: .95rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; }
.step-card { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius-lg); background: var(--color-bg); border: 1px solid var(--color-border); }
.step-num { width: 48px; height: 48px; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--color-accent-light), #b2f0e8); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; color: var(--color-accent-dark); font-family: var(--font-display); }
.step-title { font-weight: 700; margin-bottom: .4rem; color: var(--color-text); font-size: .95rem; }
.step-desc { font-size: .82rem; color: var(--color-muted); line-height: 1.55; }

/* Features */
.features-section { padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.feature-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); display: flex; gap: .9rem; transition: box-shadow var(--transition), transform var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.feature-body h3 { font-size: .92rem; font-weight: 700; color: var(--color-text); margin-bottom: .25rem; }
.feature-body p  { font-size: .8rem; color: var(--color-muted); line-height: 1.5; }

/* FAQ */
.faq-section { padding: 4rem 0; background: var(--color-card); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: .65rem; overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: var(--color-text); cursor: pointer; text-align: left; transition: background var(--transition); }
.faq-question:hover { background: var(--color-bg); }
.faq-arrow { flex-shrink: 0; width: 20px; height: 20px; background: var(--color-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform var(--transition); font-size: .68rem; color: var(--color-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--color-accent-light); color: var(--color-accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
/* FIX #12: increased max-height so long answers are never clipped */
.faq-item.open .faq-answer { max-height: 800px; }
.faq-answer-inner { padding: 0 1.25rem 1rem; font-size: .875rem; color: var(--color-text-light); line-height: 1.7; }

/* Loadingoverlay ─── */
.loading-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(11,31,58,.78); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; flex-direction: column; }
.loading-overlay.show { display: flex; }
.loading-spinner { width: 64px; height: 64px; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--color-accent); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 1.25rem; }
.loading-text { color: #fff; font-size: 1.05rem; font-weight: 600; }
.loading-sub  { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: .25rem; }

/* Printstylesheet ─── */
@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; position: static !important; }
  /* FIX #14: print uses natural width, no scale transform */
  #printArea .resume-root { width: 100% !important; transform: none !important; min-height: auto !important; }
}
#printArea { display: none; }
