/* =========================================================================
   İş İlanı Kıbrıs — CV oluşturucu
   1. CV belgesi (A4) ve üç şablon: Modern, Klasik, Sade
   2. CV görüntüleme / yazdırma sayfası
   3. Düzenleyici
   4. Tanıtım sayfası
   ========================================================================= */

/* ---------- 1. CV belgesi (ortak) ---------- */

.cvdoc {
  --cv-accent: #0f2341;
  --cv-ink: #172133;
  --cv-text: #394458;
  --cv-muted: #687387;
  --cv-line: #dde3eb;
  --cv-tint: color-mix(in srgb, var(--cv-accent) 7%, #fff);
  --cv-pad: 15mm;
  position: relative;
  width: 210mm;
  min-height: 297mm;
  padding: var(--cv-pad);
  background: #fff;
  color: var(--cv-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 9.5pt;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
/* Sıfırlama tek sınıf ağırlığında: sitenin genel h1/p kurallarını ezer, aşağıdaki bileşen sınıfları da bunu ezer */
.cvdoc :where(h1, h2, h3) { margin: 0; color: var(--cv-ink); line-height: 1.25; letter-spacing: 0; }
.cvdoc :where(p, ul) { margin: 0; padding: 0; }
.cvdoc :where(ul) { list-style: none; }
.cvdoc :where(a) { color: inherit; text-decoration: none; }

.cv-name { font-size: 24pt; font-weight: 800; line-height: 1.1; }
.cv-headline { margin-top: 1.5mm; font-size: 11pt; font-weight: 600; color: var(--cv-accent); }
.cv-photo { display: block; flex: none; width: 30mm; height: 30mm; border-radius: 50%; object-fit: cover; background: var(--cv-tint); }

.cv-contact { display: grid; gap: 1.8mm; }
.cv-contact li { display: flex; align-items: center; gap: 2mm; min-width: 0; }
.cv-contact span, .cv-contact a { min-width: 0; overflow-wrap: anywhere; }
.cv-ico { width: 3.5mm; height: 3.5mm; flex: none; color: var(--cv-accent); stroke-width: 2.1; }
.cv-contact--inline { display: flex; flex-wrap: wrap; gap: 1.5mm 5mm; }

.cv-sec { margin-top: 7mm; }
.cv-sec__title {
  margin-bottom: 2.6mm;
  font-size: 9.5pt; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cv-accent);
  break-after: avoid; page-break-after: avoid;
}
.cv-entry { break-inside: avoid; page-break-inside: avoid; }
.cv-entry + .cv-entry { margin-top: 4mm; }
.cv-entry__head { display: flex; align-items: baseline; justify-content: space-between; gap: 4mm; }
.cv-entry__title { font-size: 10.5pt; font-weight: 700; }
.cv-entry__date { flex: none; font-size: 8.5pt; font-weight: 600; color: var(--cv-muted); white-space: nowrap; }
.cv-entry__org { margin-top: .4mm; font-weight: 600; }
.cv-entry__body { margin-top: 1.5mm; }
.cv-entry--compact + .cv-entry--compact { margin-top: 2.6mm; }
.cv-entry--compact .cv-entry__title { font-size: 9.8pt; }
.cv-entry--compact .cv-entry__org { font-weight: 500; color: var(--cv-muted); }

.cv-rich > * + * { margin-top: 1.5mm; }
.cv-rich ul { display: grid; gap: .8mm; }
.cv-rich li, .cv-bullets li { position: relative; padding-left: 4mm; }
.cv-rich li::before, .cv-bullets li::before {
  content: ""; position: absolute; left: .4mm; top: .6em;
  width: 1.3mm; height: 1.3mm; border-radius: 50%; background: var(--cv-accent);
}
.cv-bullets { display: grid; gap: 1mm; }

.cv-tags { display: flex; flex-wrap: wrap; gap: 1.6mm; }
.cv-tags li { padding: .7mm 2.6mm; border-radius: 99px; background: var(--cv-tint); color: var(--cv-ink); font-size: 8.8pt; font-weight: 600; }

.cv-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(42mm, 1fr)); gap: 1.8mm 6mm; }
.cv-langs li { display: flex; align-items: baseline; gap: 2.4mm; }
.cv-langs__name { font-weight: 700; color: var(--cv-ink); }
.cv-langs__level { font-size: 8.8pt; color: var(--cv-muted); }
.cv-dots { display: none; gap: 1mm; }
.cv-dots i { width: 2mm; height: 2mm; border-radius: 50%; background: color-mix(in srgb, var(--cv-accent) 18%, #fff); }
.cv-dots i.on { background: var(--cv-accent); }

.cv-refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm 6mm; }
.cv-refs li { break-inside: avoid; }
.cv-refs b { display: block; color: var(--cv-ink); }
.cv-refs span { display: block; font-size: 8.8pt; color: var(--cv-muted); }

/* Modern: renkli başlık bandı, solda açık renkli kenar sütunu */
.cvdoc--modern { display: flex; flex-direction: column; padding: 0; font-family: "Manrope", "Segoe UI", Arial, sans-serif; }
.cvdoc--modern .cv-band { display: flex; align-items: center; gap: 7mm; padding: 11mm var(--cv-pad) 10mm; background: var(--cv-accent); color: #fff; }
.cvdoc--modern .cv-band__text { min-width: 0; }
.cvdoc--modern .cv-name { color: #fff; font-size: 25pt; }
.cvdoc--modern .cv-headline { color: rgb(255 255 255 / .82); font-weight: 600; }
.cvdoc--modern .cv-photo { width: 28mm; height: 28mm; box-shadow: 0 0 0 1.2mm rgb(255 255 255 / .22); }
.cv-monogram {
  display: grid; place-items: center; flex: none; width: 22mm; height: 22mm;
  border-radius: 50%; background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 .4mm rgb(255 255 255 / .3);
  color: #fff; font-size: 15pt; font-weight: 800; letter-spacing: .04em;
}
.cvdoc--modern .cv-cols { flex: 1; display: grid; grid-template-columns: 66mm minmax(0, 1fr); }
.cvdoc--modern .cv-side { padding: 8mm 7mm 12mm 13mm; background: var(--cv-tint); }
.cvdoc--modern .cv-side .cv-contact { font-size: 8.8pt; }
.cvdoc--modern .cv-main { padding: 8mm var(--cv-pad) 12mm 8mm; }
.cvdoc--modern .cv-side > .cv-sec:first-child, .cvdoc--modern .cv-main > .cv-sec:first-child { margin-top: 0; }
.cvdoc--modern .cv-sec__title { padding-bottom: 1.6mm; border-bottom: .35mm solid color-mix(in srgb, var(--cv-accent) 22%, transparent); }
.cvdoc--modern .cv-side .cv-sec { margin-top: 6.5mm; }
.cvdoc--modern .cv-side .cv-tags li { background: #fff; }
.cvdoc--modern .cv-side .cv-langs { grid-template-columns: 1fr; }
.cvdoc--modern .cv-side .cv-langs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3mm; }
.cvdoc--modern .cv-side .cv-langs__level { grid-column: 1; line-height: 1.3; }
.cvdoc--modern .cv-side .cv-dots { display: inline-flex; grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.cvdoc--modern .cv-side .cv-entry__head { display: block; }
.cvdoc--modern .cv-side .cv-entry__date { display: block; }
.cvdoc--modern .cv-main .cv-entry:not(.cv-entry--compact) { position: relative; padding-left: 5mm; }
.cvdoc--modern .cv-main .cv-entry:not(.cv-entry--compact)::before {
  content: ""; position: absolute; left: 0; top: 1.6mm; width: 2mm; height: 2mm;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5mm var(--cv-accent);
}
.cvdoc--modern .cv-main .cv-entry:not(.cv-entry--compact)::after {
  content: ""; position: absolute; left: .85mm; top: 4.6mm; bottom: -3.2mm; width: .3mm; background: var(--cv-line);
}
.cvdoc--modern .cv-main .cv-entry:last-child::after { display: none; }
.cvdoc--modern .cv-refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Klasik: ortalanmış başlık, tırnaklı yazı tipi, ince çizgiler */
.cvdoc--klasik { padding: 16mm 18mm; font-family: "PT Serif", Georgia, "Times New Roman", serif; font-size: 10pt; }
.cvdoc--klasik .cv-head { padding-bottom: 5mm; border-bottom: .5mm solid var(--cv-accent); text-align: center; }
.cvdoc--klasik .cv-photo { width: 27mm; height: 27mm; margin: 0 auto 4mm; }
.cvdoc--klasik .cv-name { font-size: 26pt; font-weight: 700; letter-spacing: .01em; }
.cvdoc--klasik .cv-headline { font-size: 11pt; font-weight: 400; font-style: italic; letter-spacing: .03em; }
.cvdoc--klasik .cv-contact--inline { justify-content: center; margin-top: 3.5mm; font-size: 9pt; }
.cvdoc--klasik .cv-sec { margin-top: 6.5mm; }
.cvdoc--klasik .cv-sec__title { display: flex; align-items: center; gap: 3mm; font-size: 10pt; font-weight: 700; letter-spacing: .14em; }
.cvdoc--klasik .cv-sec__title::after { content: ""; flex: 1; height: .3mm; background: var(--cv-line); }
.cvdoc--klasik .cv-entry__title { font-size: 11pt; }
.cvdoc--klasik .cv-entry__org { font-style: italic; font-weight: 400; }
.cvdoc--klasik .cv-entry__date { font-weight: 400; font-style: italic; }
.cvdoc--klasik .cv-tags { gap: 1mm 0; }
.cvdoc--klasik .cv-tags li { padding: 0; background: none; font-size: inherit; font-weight: 400; color: var(--cv-text); }
.cvdoc--klasik .cv-tags li:not(:last-child)::after { content: "•"; margin: 0 2.4mm; color: var(--cv-accent); }

/* Sade: solda renkli çizgi, bölüm başlıkları sol sütunda */
.cvdoc--sade { padding: 16mm; }
.cvdoc--sade .cv-head { display: flex; align-items: center; justify-content: space-between; gap: 8mm; padding-left: 5mm; border-left: 1.6mm solid var(--cv-accent); }
.cvdoc--sade .cv-head__text { min-width: 0; }
.cvdoc--sade .cv-name { font-size: 25pt; letter-spacing: -.015em; }
.cvdoc--sade .cv-photo { width: 26mm; height: 26mm; border-radius: 3mm; }
.cvdoc--sade .cv-contact--inline { margin-top: 3mm; font-size: 8.8pt; color: var(--cv-muted); }
.cvdoc--sade .cv-sec { display: grid; grid-template-columns: 34mm minmax(0, 1fr); gap: 0 6mm; margin-top: 5.5mm; padding-top: 5.5mm; border-top: .3mm solid var(--cv-line); }
.cvdoc--sade .cv-head + .cv-sec { margin-top: 9mm; }
.cvdoc--sade .cv-sec__title { margin: .6mm 0 0; font-size: 8.5pt; letter-spacing: .12em; }
.cvdoc--sade .cv-langs { grid-template-columns: repeat(auto-fill, minmax(38mm, 1fr)); }

/* ---------- 2. CV görüntüleme ve yazdırma ---------- */

.cv-fit { width: 100%; }
.cv-fit > .cvdoc { zoom: var(--fit, 1); }

.page-cvview { min-height: 100vh; background: var(--surface-sunken); }
.cvview-bar { position: sticky; top: 0; z-index: 10; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.cvview-bar__inner { display: flex; align-items: center; gap: 14px; max-width: 900px; margin: 0 auto; padding: 12px 16px; }
.cvview-bar__title { flex: 1; min-width: 0; }
.cvview-bar__title b, .cvview-bar__title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvview-bar__title b { color: var(--ink); }
.cvview-bar__title small { color: var(--muted); font-size: 12.5px; }
.cvview-bar__hint { display: flex; align-items: flex-start; gap: 8px; max-width: 900px; margin: 0 auto; padding: 0 16px 10px; font-size: 12.5px; color: var(--muted); }
.cvview-bar__hint .icon { margin-top: 1px; color: var(--teal-600); }
.cvview-stage { display: flex; justify-content: center; padding: 28px 16px 64px; }
.cvview-stage .cv-fit { max-width: 794px; }
.cvview-stage .cvdoc { box-shadow: 0 24px 60px -28px rgb(15 35 65 / .45); }

@media (max-width: 640px) {
  .cvview-bar__inner { flex-wrap: wrap; }
  .cvview-bar__title { order: -1; flex-basis: 100%; }
  .cvview-bar__inner .btn { flex: 1; }
  .cvview-stage { padding: 16px 12px 40px; }
}

@media print {
  /* İlk sayfa üstten tam kenara yaslanır (Modern'in renkli bandı için), sonraki sayfalarda boşluk kalır */
  @page { size: A4; margin: 12mm 0; }
  @page :first { margin-top: 0; }
  .page-cvview { background: #fff; }
  .cvview-bar { display: none; }
  .cvview-stage { display: block; padding: 0; }
  .cv-fit > .cvdoc { zoom: 1; width: 210mm; min-height: 284mm; box-shadow: none; }
}

/* ---------- 3. Düzenleyici ---------- */

.cvb { max-width: 1440px; padding-top: 24px; padding-bottom: 48px; }
.cvb__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.cvb__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--teal-700); }
.cvb__head h1 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.035em; }
.cvb__head p { margin-top: 4px; color: var(--muted); }
.cvb__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cvb > .alert { margin-bottom: 20px; }

.cvb__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 28px; align-items: start; }
.cvb__form { display: grid; gap: 18px; min-width: 0; }

.cvb-card { padding: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.cvb-card__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.cvb-card__title .icon { color: var(--teal-600); }
.cvb-card__hint { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.cvb-card > .form-grid { margin-top: 18px; }
.cvb-fieldset { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.cvb-fieldset legend { padding: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field__label { font-size: 13.5px; font-weight: 700; color: var(--ink); }

.tpl-picker { --c: var(--navy-900); display: grid; grid-template-columns: repeat(3, minmax(0, 128px)); gap: 12px; margin-top: 10px; }
.tpl-option {
  position: relative; display: grid; gap: 8px; padding: 10px 10px 8px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
  font-size: 13.5px; font-weight: 700; text-align: center; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.tpl-option:hover { border-color: var(--line-strong); }
.tpl-option input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-option:has(input:checked) { border-color: var(--teal-500); background: var(--teal-50); }
.tpl-option:has(input:focus-visible) { outline: 3px solid rgb(20 163 158 / .55); outline-offset: 2px; }
.tpl-thumb {
  position: relative; display: block; aspect-ratio: 210 / 297; overflow: hidden;
  border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgb(15 35 65 / .45);
}
.tpl-thumb i { position: absolute; display: block; border-radius: 2px; }
.tpl-thumb i:nth-child(4) { background: repeating-linear-gradient(to bottom, #d3dbe6 0 3px, transparent 3px 9px); }
.tpl-thumb--modern i:nth-child(1) { inset: 0 0 auto; height: 21%; border-radius: 0; background: var(--c); }
.tpl-thumb--modern i:nth-child(2) { left: 0; top: 21%; bottom: 0; width: 33%; border-radius: 0; background: color-mix(in srgb, var(--c) 9%, #fff); }
.tpl-thumb--modern i:nth-child(3) { left: 41%; top: 28%; width: 34%; height: 3.5%; background: var(--c); opacity: .7; }
.tpl-thumb--modern i:nth-child(4) { left: 41%; right: 9%; top: 36%; height: 50%; }
.tpl-thumb--klasik i:nth-child(1) { left: 26%; right: 26%; top: 9%; height: 5%; background: var(--c); }
.tpl-thumb--klasik i:nth-child(2) { left: 12%; right: 12%; top: 21%; height: 2px; background: var(--c); }
.tpl-thumb--klasik i:nth-child(3) { left: 36%; right: 36%; top: 16%; height: 2.5%; background: #c4cdd9; }
.tpl-thumb--klasik i:nth-child(4) { left: 12%; right: 12%; top: 28%; height: 60%; }
.tpl-thumb--sade i:nth-child(1) { left: 10%; top: 8%; width: 3.5%; height: 12%; border-radius: 1px; background: var(--c); }
.tpl-thumb--sade i:nth-child(2) { left: 18%; top: 9%; width: 46%; height: 5%; background: #3b4658; }
.tpl-thumb--sade i:nth-child(3) { left: 10%; top: 30%; width: 20%; height: 50%; background: repeating-linear-gradient(to bottom, var(--c) 0 3px, transparent 3px 24px); opacity: .6; }
.tpl-thumb--sade i:nth-child(4) { left: 36%; right: 10%; top: 30%; height: 56%; }

.cvb-design { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; align-items: end; }
.cvb-design .field { margin-top: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.swatch { position: relative; display: block; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__dot {
  display: block; width: 34px; height: 34px; border: 2px solid transparent; border-radius: 50%;
  background: var(--c); background-clip: content-box; padding: 3px; transition: border-color .2s;
}
.swatch:hover .swatch__dot { border-color: var(--line-strong); }
.swatch input:checked + .swatch__dot { border-color: var(--c); }
.swatch input:focus-visible + .swatch__dot { outline: 3px solid rgb(20 163 158 / .55); outline-offset: 2px; }

.cvb-photo { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.cvb-photo__img {
  display: grid; place-items: center; flex: none; width: 88px; height: 88px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--placeholder);
}
.cvb-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.cvb-photo__body { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.cvb-photo__btn { position: relative; overflow: hidden; }
.cvb-photo__btn input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.cvb-photo__btn:focus-within { outline: 3px solid rgb(20 163 158 / .55); outline-offset: 2px; }
.cvb-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.cvb-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal-500); }

.cv-items { display: grid; gap: 10px; margin-top: 16px; }
.cv-items:empty { display: none; }
.cv-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cv-item.has-errors { border-color: var(--red-200); }
.cv-item__head { display: flex; align-items: center; gap: 6px; padding: 6px; }
.cv-item__toggle {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 8px 10px;
  border: 0; border-radius: 10px; background: none; text-align: left; font-weight: 700; color: var(--ink); cursor: pointer;
}
.cv-item__toggle:hover { background: var(--bg); }
.cv-item__toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-item__toggle .icon { color: var(--muted); transition: transform .2s; }
.cv-item__toggle[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.cv-item__tools { display: flex; gap: 2px; }
.cv-item__tool {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer;
}
.cv-item__tool:hover { background: var(--bg); color: var(--ink); }
.cv-item__tool--danger:hover { background: var(--red-50); color: var(--red-700); }
.cv-item:first-child [data-item-move="-1"], .cv-item:last-child [data-item-move="1"] { visibility: hidden; }
.cv-item__body { padding: 16px; border-top: 1px solid var(--line); }
.icon--flip { transform: rotate(180deg); }
.cv-period { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.cv-current { font-size: 13.5px; }
[data-period-end].is-disabled { opacity: .5; }

.cvb-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 14px;
  border: 1.5px dashed var(--line-strong); border-radius: 12px; background: none;
  font-weight: 700; color: var(--teal-700); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.cvb-add:hover { border-color: var(--teal-500); background: var(--teal-50); }

/* JavaScript yoksa: sıralama/silme düğmeleri ve önizleme düğmesi gizli, yeni kayıt için boş form görünür */
.cvb:not(.is-enhanced) .cv-item__tools,
.cvb:not(.is-enhanced) .cv-item__toggle .icon,
.cvb:not(.is-enhanced) .cvb-add,
.cvb:not(.is-enhanced) .cvb-preview-toggle { display: none; }

.cvb-savebar {
  position: sticky; bottom: 12px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 16px; background: rgb(15 35 65 / .96); box-shadow: var(--shadow-lg);
}
.cvb-savebar small { min-width: 0; font-size: 13px; font-weight: 600; color: rgb(255 255 255 / .78); }
.cvb-savebar.is-dirty small { color: #ffd38a; }
.cvb-savebar__actions { display: flex; gap: 8px; }

.cvb__preview {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  max-height: calc(100vh - var(--header-h) - 32px); padding: 16px;
  border-radius: var(--radius-lg); background: var(--surface-sunken);
}
.cvb-preview__bar { display: flex; align-items: center; gap: 12px; }
.cvb-meter { display: grid; flex: 1; gap: 6px; }
.cvb-meter__label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink); }
.cvb-meter .progress { min-width: 0; height: 8px; background: var(--surface); }
.cvb-tip { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 13px; line-height: 1.45; }
.cvb-tip .icon { margin-top: 1px; color: var(--teal-600); }
.cvb-stage { min-height: 0; overflow: auto; border-radius: 4px; overscroll-behavior: contain; }
.cvb-stage .cvdoc { box-shadow: 0 10px 30px -18px rgb(15 35 65 / .5); }
.cvb-stage.is-loading { opacity: .85; transition: opacity .2s; }

@media (min-width: 1100px) {
  .cvb-preview-toggle, .cvb-preview__close { display: none; }
}
@media (max-width: 1099px) {
  .cvb__grid { grid-template-columns: minmax(0, 1fr); }
  .cvb__preview { display: none; }
  .cvb__preview.is-open {
    display: flex; position: fixed; inset: 0; z-index: 300;
    max-height: none; padding: 12px; border-radius: 0;
  }
  .cvb-lock { overflow: hidden; }
}
@media (max-width: 640px) {
  .cvb-card { padding: 18px; }
  .tpl-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tpl-option { padding: 8px 6px 6px; font-size: 12.5px; }
  .cvb-design { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cvb__actions { width: 100%; }
  .cvb__actions .btn { flex: 1; }
  .cv-item__body { padding: 14px; }
  .cvb-savebar { padding-left: 14px; }
  .cvb-savebar small { display: none; }
  .cvb-savebar__actions { flex: 1; }
  .cvb-savebar__actions .btn { flex: 1; }
}

/* ---------- 4. Tanıtım sayfası ---------- */

.cvl-hero { overflow: hidden; padding: 56px 0 32px; background: linear-gradient(180deg, var(--hero-bg), var(--bg)); }
.cvl-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.cvl-hero h1 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.cvl-hero__text > p { max-width: 560px; margin-top: 16px; font-size: 17px; }
.cvl-note { max-width: 560px; margin: 24px 0 0; }
.cvl-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--navy-800); }
.cvl-points li { display: flex; align-items: center; gap: 6px; }
.cvl-points .icon { color: var(--teal-600); stroke-width: 2.6; }
.cvl-hero__visual { position: relative; height: 460px; }
.cvl-hero__doc { position: absolute; width: 300px; overflow: hidden; border-radius: 6px; box-shadow: var(--shadow-lg); }
.cvl-hero__doc--back { right: 4%; top: 6px; transform: rotate(4deg); }
.cvl-hero__doc--front { left: 6%; top: 34px; transform: rotate(-3deg); }

.cvl-section { padding-block: 40px; }
.cvl-section__head { max-width: 640px; margin-bottom: 24px; }
.cvl-section__head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.cvl-section__head p { margin-top: 8px; color: var(--muted); }

.cvl-templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cvl-tpl {
  position: relative; display: grid; gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transition: box-shadow .2s, transform .2s;
}
.cvl-tpl:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cvl-tpl__preview { aspect-ratio: 210 / 297; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cvl-tpl__body h3 { font-size: 18px; font-weight: 800; }
.cvl-tpl__body h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cvl-tpl__body p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.cvl-tpl__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--teal-700); }

.cvl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cvl-step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cvl-step__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); }
.cvl-step h3 { font-size: 17px; font-weight: 800; }
.cvl-step p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

.cvl-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: 32px 36px; border-radius: var(--radius-lg); background: var(--navy-900); color: rgb(255 255 255 / .8);
}
.cvl-cta h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; color: #fff; }
.cvl-cta p { margin-top: 6px; }

@media (max-width: 1023px) {
  .cvl-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .cvl-hero__visual { display: none; }
  .cvl-templates, .cvl-steps { grid-template-columns: minmax(0, 1fr); }
  .cvl-templates { max-width: 460px; }
}
@media (max-width: 640px) {
  .cvl-hero { padding-top: 32px; }
  .cvl-cta { padding: 24px; }
  .cvl-cta .btn { width: 100%; }
}

/* Koyu temada: CV kâğıdı beyaz kalır; çevresindeki düzenleyici ve sayfa koyulaşır */
[data-theme="dark"] .cvb-savebar { background: rgb(6 12 24 / .96); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
[data-theme="dark"] .cvl-cta { background: var(--surface); border: 1px solid var(--line); }
[data-theme="dark"] .swatch__dot { border-color: var(--line-strong); }
[data-theme="dark"] .swatch input:checked + .swatch__dot { border-color: var(--teal-400); }

/* ---------------------------------------------------------------- Yapay zekâ asistanı */
.ai-card { border-color: color-mix(in srgb, var(--teal-500) 35%, var(--line)); background:
  linear-gradient(135deg, color-mix(in srgb, var(--teal-500) 7%, var(--surface)), var(--surface) 55%); }
.ai-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ai-quota { font-size: 12.5px; font-weight: 700; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ai-quota.is-empty { color: var(--red-700); background: var(--red-50); border-color: var(--red-200); }
[data-theme="dark"] .ai-quota { color: var(--teal-400); background: color-mix(in srgb, var(--teal-500) 14%, transparent); border-color: transparent; }

.ai-tools { display: grid; gap: 10px; margin-top: 14px; }
.ai-tool { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ai-tool__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--teal-600);
  background: var(--teal-50); }
[data-theme="dark"] .ai-tool__icon { background: color-mix(in srgb, var(--teal-500) 14%, transparent); color: var(--teal-400); }
.ai-tool__body { display: grid; gap: 2px; min-width: 0; }
.ai-tool__body b { font-size: 14.5px; color: var(--ink); }
.ai-tool__body small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ai-tool__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ai-tool--wide { grid-template-columns: auto 1fr; }
.ai-tool--wide .ai-tool__row { grid-column: 1 / -1; justify-content: stretch; }
.ai-tool__row--job .ai-select, .ai-tool__row--job .ai-input { flex: 1 1 220px; min-width: 0; }
.ai-select, .ai-input { min-height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px;
  background: var(--field, var(--surface)); color: var(--ink); font: inherit; font-size: 14px; }
@media (max-width: 560px) {
  .ai-tool { grid-template-columns: auto 1fr; }
  .ai-tool > .btn, .ai-tool > .ai-tool__row { grid-column: 1 / -1; justify-content: stretch; }
  .ai-tool > .btn { width: 100%; justify-content: center; }
}

.ai-inline { margin-top: 10px; }
.ai-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--teal-700); background: var(--teal-50);
  border: 1px solid var(--teal-100); transition: background .15s, transform .15s; }
.ai-btn:hover { background: var(--teal-100); }
.ai-btn:active { transform: translateY(1px); }
.ai-btn:disabled, [data-ai]:disabled { opacity: .6; cursor: wait; }
[data-theme="dark"] .ai-btn { color: var(--teal-400); background: color-mix(in srgb, var(--teal-500) 14%, transparent); border-color: color-mix(in srgb, var(--teal-500) 30%, transparent); }
.is-busy .icon { animation: ai-spin 1s linear infinite; }

.ai-out { margin-top: 12px; }
.ai-out[hidden] { display: none; }
.ai-box { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--teal-100);
  background: color-mix(in srgb, var(--teal-500) 5%, var(--surface)); }
[data-theme="dark"] .ai-box { border-color: color-mix(in srgb, var(--teal-500) 28%, transparent); }
.ai-box__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ai-box__head b { font-size: 14.5px; color: var(--ink); }
.ai-box .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-option { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ai-option p { margin: 0; line-height: 1.55; color: var(--ink-soft); white-space: pre-line; }
.ai-option .btn { justify-self: start; }
.ai-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; color: var(--ink-soft); }
.ai-verdict { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.5; }
.ai-quote { margin: 0; line-height: 1.55; color: var(--ink-soft); border-left: 3px solid var(--teal-500); padding-left: 10px; }
.ai-group { display: grid; gap: 6px; }
.ai-group b { font-size: 13.5px; }
.ai-group--good b { color: var(--green-700); }
.ai-group--todo b { color: var(--teal-700); }
[data-theme="dark"] .ai-group--good b { color: #6fd3a0; }
[data-theme="dark"] .ai-group--todo b { color: var(--teal-400); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13.5px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.ai-chip input { accent-color: var(--teal-600); margin: 0; }
.ai-chip:has(input:checked) { border-color: var(--teal-500); color: var(--ink); }
.ai-chip--static { cursor: default; }

.ai-note { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.ai-note--wait { color: var(--ink-soft); background: var(--surface-muted, var(--surface)); border: 1px dashed var(--line-strong); }
.ai-note--error { color: var(--red-700); background: var(--red-50); border: 1px solid var(--red-200); }
.ai-note--ok { color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-200); }
[data-theme="dark"] .ai-note--error { color: #ff9a8f; background: color-mix(in srgb, #e5484d 12%, transparent); border-color: transparent; }
[data-theme="dark"] .ai-note--ok { color: #6fd3a0; background: color-mix(in srgb, #30a46c 12%, transparent); border-color: transparent; }
.ai-out > .btn { margin-top: 8px; }
.ai-spinner { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--teal-100); border-top-color: var(--teal-600);
  animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }

.ai-consent { max-width: 480px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: var(--radius-lg, 18px);
  padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.ai-consent::backdrop { background: rgb(10 20 40 / .55); }
.ai-consent__body { display: grid; gap: 12px; padding: 22px; }
.ai-consent h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--ink); }
.ai-consent h3 .icon { color: var(--teal-600); }
.ai-consent p { margin: 0; font-size: 14px; line-height: 1.55; }
.ai-consent .btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ai-quota-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Word CV metin önizlemesi ---------- */
.cvfile-text {
  width: 100%; max-width: 794px; padding: 48px 56px;
  background: var(--surface); color: var(--ink); border-radius: 6px;
  box-shadow: 0 24px 60px -28px rgb(15 35 65 / .45);
  font-size: 15px; line-height: 1.6; overflow-wrap: anywhere;
}
.cvfile-text p { margin: 0 0 8px; }
@media (max-width: 640px) { .cvfile-text { padding: 24px 18px; } }
