:root { --ink: #1b1f3b; --muted: #5b6072; --bg: #fff8ef; --card: #fff; --line: #e9dccb; --brand: #ff6a2b; --ok: #1f9d6b; --warn: #c2410c; --r: 18px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
[dir="rtl"] body, [lang="ar"] { font-family: "Noto Sans Arabic", "DM Sans", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif; line-height: 1.15; }
a { color: inherit; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .ok { color: var(--ok); font-weight: 700; }
main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 60px; }

/* üst çubuk */
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; max-width: 1040px; margin: 0 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 20px; }
.top-r { display: flex; gap: 8px; align-items: center; }
#uiSel { font: inherit; padding: 6px 8px; border: 2px solid var(--line); border-radius: 12px; background: #fff; max-width: 130px; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 800; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--ink); cursor: pointer; text-decoration: none; background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn.primary { background: var(--brand); color: #fff; } .btn.ghost { background: #fff; } .btn.sm { padding: 6px 12px; font-size: 14px; box-shadow: 0 2px 0 var(--ink); }
.btn.lg { padding: 14px 28px; font-size: 18px; } .btn.block { display: flex; width: 100%; max-width: 360px; margin: 10px auto; }
.btn:disabled { opacity: .6; cursor: wait; } .btn.rec { background: #fee2e2; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* tanıtım */
.hero { display: flex; gap: 24px; align-items: center; padding: 26px 0; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 4px 0 12px; } .lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.kicker { color: var(--brand); font-weight: 800; margin: 0; }
h2 { margin: 36px 0 14px; font-size: 26px; }
.countries { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.country { display: flex; flex-direction: column; gap: 4px; text-align: start; padding: 16px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; cursor: pointer; font: inherit; color: inherit; }
.country:hover, .country.on { border-color: var(--brand); box-shadow: 0 0 0 3px #ffd9c7; } .country .flag { font-size: 30px; } .country small { color: var(--muted); }
.how { padding-inline-start: 22px; font-size: 17px; } .how li { margin: 6px 0; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 14px 0; } .card p { margin: 6px 0 0; color: var(--muted); }
.card li.warn { color: var(--warn); }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.price { background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.price.hot { border-color: var(--brand); } .price h3 { margin: 0; } .price .amt { font-size: 28px; font-weight: 800; } .price .amt small { font-size: 14px; color: var(--muted); font-weight: 600; } .price p { color: var(--muted); flex: 1; margin: 0; }
details { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 8px 0; } summary { font-weight: 700; cursor: pointer; }
.foot { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* sihirbaz */
.wiz { max-width: 640px; }
.progress { height: 10px; background: #f1e6d8; border-radius: 99px; overflow: hidden; margin: 10px 0; } .progress i { display: block; height: 100%; background: var(--brand); }
.inp { display: block; width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; margin: 8px 0; resize: vertical; }
.inp:focus { outline: none; border-color: var(--brand); }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 18px; }
.spinner { width: 42px; height: 42px; border: 5px solid #f1e6d8; border-top-color: var(--brand); border-radius: 50%; margin: 20px auto; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 50; max-width: min(92vw, 520px); text-align: center; }

/* CV ekranı */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .tabs button { font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.tabs button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; } .sw { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.pages { display: grid; gap: 16px; margin: 10px 0; } .pages.both { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .pages.both { grid-template-columns: 1fr; } }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 640px) { .cols { grid-template-columns: 1fr; } .hero { flex-direction: column; text-align: center; } }
.my .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 2px solid var(--line); border-radius: 14px; margin: 8px 0; } .my .row a { text-decoration: none; }

/* A4 sayfa */
.page { background: #fff; color: #111; box-shadow: 0 6px 24px rgba(0,0,0,.08); border-radius: 6px; padding: 34px 38px; font: 13.5px/1.45 "DM Sans", Arial, sans-serif; position: relative; overflow: hidden; min-width: 0; }
.page.mine { background: #fffdf8; border: 1px dashed var(--line); }
.page header { position: relative; padding-inline-end: 0; margin-bottom: 10px; } .page h1 { font-size: 26px; margin: 0; letter-spacing: -.01em; }
.page .headline { font-size: 15px; color: #444; font-weight: 600; } .page .contact { font-size: 12.5px; color: #555; margin-top: 4px; overflow-wrap: anywhere; }
.page .photo { float: right; width: 96px; height: 128px; object-fit: cover; border-radius: 4px; margin-inline-start: 14px; }
.page section { margin-top: 14px; clear: both; } .page h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #333; border-bottom: 1.5px solid #222; padding-bottom: 3px; margin: 0 0 8px; }
.page .item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; margin: 6px 0; } .page .when { color: #555; font-size: 12.5px; }
.page ul { margin: 4px 0 0; padding-inline-start: 18px; } .page ul.tags { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; } .page ul.tags li { background: #f3f3f3; border-radius: 4px; padding: 1px 8px; }
.page .note { color: #555; font-size: 12.5px; } .page .closing { margin-top: 18px; color: #333; }
.page.t-us .item, .page.t-uk .item { grid-template-columns: 1fr; gap: 0; } .page.t-us .when, .page.t-uk .when { order: 2; }
.page.t-us header, .page.t-uk header { text-align: center; } .page.t-us h3 { border-bottom-color: #888; }
.page.letter p { margin: 0 0 10px; } .page.letter .subject { margin-bottom: 16px; }
[contenteditable]:hover { background: #fff7d6; outline: 1px dashed #e0b84a; } [contenteditable]:focus { background: #fff1b8; outline: none; }
/* önizleme filigranı (ödeme yoksa) */
.pages.wm .page:not(.mine)::after { content: "PREVIEW · cvfennec.com"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 44px/1 "Bricolage Grotesque", sans-serif; color: rgba(255,106,43,.13); transform: rotate(-28deg); pointer-events: none; }

/* yazdır / PDF: sadece hedef dildeki sayfa */
@page { size: A4; margin: 14mm; }
@media print {
  body { background: #fff; } .top, .tabs, .bar, .card, .inp, .btn, .muted, .foot, .toast, .page.mine { display: none !important; }
  main { padding: 0; max-width: none; } .pages, .pages.both { display: block; margin: 0; }
  .page { box-shadow: none; border-radius: 0; padding: 0; font-size: 11pt; } .page + .page { page-break-before: always; }
  [contenteditable] { background: none !important; outline: none !important; }
}
.acc-set { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.acc-set .link { font-size: 13px; }
.fine { font-size: 12px; color: var(--muted); text-align: end; margin: 6px 4px 0; opacity: .85; }
.fine a { color: inherit; }
.err { color: #b91c1c; font-weight: 700; margin: 4px 2px; }
.inp.bad { border-color: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.opt { font-size: 14px; color: var(--muted); font-weight: 500; }
.login-btn { gap: 12px; font-weight: 700; }
.login-btn svg { flex: none; }
.warnbox { background: #fff7ed; border-color: #fdba74; text-align: center; max-width: 520px; margin: 14px auto; }
.sw.general { margin-top: 10px; padding: 10px 12px; background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.soonnote { background: #fff7ed; border: 2px dashed #fdba74; border-radius: 12px; padding: 10px 14px; }
