:root {
  --ink: #1b2620;
  --ink-soft: #4b5b52;
  --bg: #f6f3ec;
  --panel: #ffffff;
  --line: #e3ddcf;
  --green: #1d5a3e;
  --green-deep: #0b2117;
  --gold: #c9973f;
  --gold-soft: #f5e9d0;
  --error: #a4392f;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(27, 38, 32, 0.07);
}

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

[hidden] { display: none !important; }

/* الواجهة الإنجليزية: تُخفى الصفحة لحظةً حتى تُطبَّق الترجمة (انظر <head> في index.html) */
.i18n-pending body { visibility: hidden; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: min(1060px, 92%); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--green-deep);
  color: #fff;
  padding: 14px 0;
  border-bottom: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: block;
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  /* الشعار داكن على رأس داكن: إطار ذهبي رفيع يُبرزه */
  box-shadow: 0 0 0 1.5px rgba(201, 151, 63, 0.75);
}
.brand-name { font-family: 'Amiri', serif; font-size: 1.9rem; font-weight: 700; }
.brand-tag { color: #d3dfd7; font-size: 0.95rem; }
.lang-toggle {
  margin-inline-start: auto;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 4px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lang-toggle:hover { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 36px; max-width: 780px; }
.hero h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--green); font-style: normal; border-bottom: 4px solid var(--gold); }
.hero p { color: var(--ink-soft); font-size: 1.08rem; max-width: 640px; }

/* ---------- Workspace ---------- */
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 26px;
}
@media (max-width: 760px) { .workspace { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-head { display: flex; align-items: center; gap: 12px; }
.step-num {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--gold-soft);
  color: var(--green);
  font-weight: 800;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}
.panel h2 { font-size: 1.2rem; font-weight: 800; }
.panel-hint { color: var(--ink-soft); font-size: 0.9rem; }

textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fdfcf9;
  transition: border-color 0.15s;
}
textarea:focus { outline: none; border-color: var(--green); }
/* خانات dir="auto" يتبع اتجاهها ما يُكتب فيها (إعلان إنجليزي يُقرأ من اليسار)؛ أما وهي
   فارغة فتتبع لغة الصفحة، كي لا يظهر التلميح العربي من اليسار وعلاماته مقلوبة */
html:not([lang="en"]) textarea[dir="auto"]:placeholder-shown { direction: rtl; }

.upload-btn {
  align-self: flex-start;
  cursor: pointer;
  background: var(--gold-soft);
  border: 1.5px dashed var(--gold);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 10px;
  transition: background 0.15s;
}
.upload-btn:hover { background: #efdcb6; }
.upload-status { font-size: 0.85rem; color: var(--ink-soft); min-height: 1.2em; }

/* ---------- CTA ---------- */
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 40px; }
.cta {
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 999px;
  padding: 16px 52px;
  box-shadow: 0 6px 18px rgba(29, 90, 62, 0.35);
  transition: transform 0.12s, background 0.15s;
}
.cta:hover:not(:disabled) { background: var(--green-deep); transform: translateY(-2px); }
.cta:disabled { opacity: 0.55; cursor: wait; }

/* الباب المجاني: أقل حضوراً من الزر الأساسي، وواضح أنه طريق آخر لا بديل عنه */
.cta-alt {
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--green);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 28px;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.cta-alt:hover:not(:disabled) { border-color: var(--green); background: var(--panel); transform: translateY(-1px); }
.cta-alt:disabled { opacity: 0.55; cursor: wait; }

/* رابط نصي خفيف داخل المقدمة */
.hero-demo { margin-top: 18px; }
.link-btn {
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  background: none;
  border: none;
  padding: 0;
  border-bottom: 2px solid var(--gold);
  transition: color 0.15s;
}
.link-btn:hover { color: var(--green-deep); }

.error {
  color: var(--error);
  background: #fbeae8;
  border: 1px solid #eec7c2;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 500;
}

/* ---------- Batch: several postings at once ---------- */
.batch-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.batch-toggle input { margin-top: 5px; flex: none; accent-color: var(--green); }
.batch-count { margin-top: 6px; font-size: 0.86rem; font-weight: 700; color: var(--green); }

.batch-progress {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.batch-progress h2 { font-family: 'Amiri', serif; font-size: 1.5rem; color: var(--green-deep); }
.batch-status { color: var(--ink-soft); margin: 4px 0 14px; }
.batch-list { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.batch-list li { line-height: 1.7; }
.batch-list .done { color: var(--green); font-weight: 700; }
.batch-list .failed { color: var(--error); font-weight: 700; }
.batch-list .running { color: var(--gold); font-weight: 700; }

/* ---------- History (this browser only) ---------- */
.history-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 18px;
  margin-bottom: 40px;
}
.history-label {
  font-weight: 700;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
  text-align: center;
  font-size: 0.95rem;
}
.history-label::-webkit-details-marker { display: none; }
.history-box[open] .history-label { margin-bottom: 12px; }
.history-hint { color: var(--ink-soft); font-size: 0.84rem; text-align: center; margin-bottom: 12px; }
.history-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.history-item .title { font-weight: 700; flex: 1; min-width: 180px; }
.history-item .when { color: var(--ink-soft); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.history-box > .extra-btn { display: block; margin-inline: auto; }

/* ---------- Job posting by link ---------- */
.url-row { display: flex; gap: 8px; margin-bottom: 8px; }
.url-row input {
  flex: 1;
  min-width: 0;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fdfcf9;
  color: var(--ink);
}
.url-row input:focus { outline: none; border-color: var(--green); }
.url-row .ghost-btn { flex: none; }
/* وضع «بلا إعلان»: خانة المسمى المستهدف بدل خانة الإعلان */
.mode-link { display: inline-block; margin-top: 8px; font-size: 0.9rem; justify-self: start; }
.target-box { display: grid; gap: 8px; }
.target-box label { font-weight: 800; color: var(--green-deep); }
.target-box input {
  font: inherit;
  font-size: 1.02rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fdfcf9;
  color: var(--ink);
}
.target-box input:focus { outline: none; border-color: var(--green); }
.target-note { font-size: 0.88rem; color: var(--ink-soft); background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; line-height: 1.7; }

/* رابط إضافة Chrome (يظهر حين يُضبط CHROME_EXTENSION_URL) — لا معنى له على الجوال */
.ext-hint { font-size: 0.84rem; margin: -4px 0 10px; }
.ext-hint a { color: var(--green); font-weight: 700; text-decoration: none; }
.ext-hint a:hover { text-decoration: underline; }
@media (hover: none) and (pointer: coarse) { .ext-hint { display: none; } }
.url-status { display: block; font-size: 0.84rem; margin-bottom: 8px; min-height: 1.2em; color: var(--ink-soft); }
.url-status.bad { color: var(--error); }
.url-status.ok { color: var(--green); }

/* ---------- LinkedIn parts ---------- */
.linkedin-parts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.li-part {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.li-part-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.li-part h4 { color: var(--green-deep); font-size: 1rem; }
.li-count { font-size: 0.78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.li-count.over { color: var(--error); font-weight: 700; }
.li-text { white-space: pre-wrap; line-height: 1.85; font-size: 0.95rem; }

/* قسم التحذير في تحقّق الأمانة — يجب أن يُرى قبل أن يُقرأ */
#verify-body h2.verify-warn {
  color: #8a5a12;
  border-bottom-color: var(--gold);
}
#verify-body h2.verify-warn::before { content: '⚠️ '; }
#verify-body ul.verify-warn,
#verify-body p.verify-warn {
  background: var(--gold-soft);
  border-inline-start: 4px solid var(--gold);
  border-radius: 10px;
  padding: 12px 16px;
}
#verify-body ul.verify-warn { padding-inline-start: 34px; }

/* ---------- Application tracker ---------- */
.history-summary {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 6px 16px;
  margin: 0 auto 14px;
  width: fit-content;
}
.history-status {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.history-status:focus { outline: none; border-color: var(--green); }
.history-status[data-state='replied'] { border-color: var(--gold); color: #6b5426; }
.history-status[data-state='interview'] { border-color: var(--green); color: var(--green); }
.history-status[data-state='offer'] { border-color: var(--green); background: var(--green); color: #fff; }
.history-status[data-state='rejected'] { border-color: #e0c9c4; color: var(--error); }

/* ---------- Interview practice ---------- */
.practice-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--gold-soft);
}
.practice-box h3 { color: var(--green-deep); font-size: 1.1rem; margin-bottom: 4px; }
.practice-hint { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 12px; }
.practice-select,
.practice-answer {
  width: 100%;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fdfcf9;
  color: var(--ink);
  margin-bottom: 10px;
}
.practice-select:focus,
.practice-answer:focus { outline: none; border-color: var(--green); }
.practice-answer { min-height: 120px; resize: vertical; line-height: 1.8; }
.practice-feedback {
  margin-top: 16px;
  background: var(--gold-soft);
  border-radius: 10px;
  padding: 16px 18px;
}

/* ---------- CV review (free, no job posting) ---------- */
.audit-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 40px;
}
.audit-hint { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.audit-next {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 2px solid var(--gold-soft);
  text-align: center;
}
.audit-next p { color: var(--ink); font-weight: 500; margin-bottom: 14px; max-width: 60ch; margin-inline: auto; }

/* بطاقة الدرجة للمشاركة */
.score-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 18px;
  background: var(--gold-soft);
  border-radius: 12px;
}
.score-card-img {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.score-card-side h3 { font-family: 'Amiri', serif; font-size: 1.35rem; color: var(--green-deep); margin-bottom: 4px; }
.score-card-side p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 12px; }
.score-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .score-card { flex-direction: column; text-align: center; }
  .score-card-img { width: 100%; max-width: 280px; height: auto; }
  .score-card-actions { justify-content: center; }
}

/* ---------- Result ---------- */
.result-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 56px;
}
.result-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 14px; margin-bottom: 20px;
}
.result-head h2 { font-family: 'Amiri', serif; font-size: 1.6rem; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ghost-btn {
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green);
  background: transparent;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  padding: 7px 16px;
  transition: background 0.15s, color 0.15s;
}
.ghost-btn:hover { background: var(--green); color: #fff; }

.result-body h2 {
  font-family: 'Amiri', serif;
  color: var(--green-deep);
  font-size: 1.45rem;
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold-soft);
}
.result-body h2:first-child { margin-top: 0; }
.result-body h3 { color: var(--green); font-size: 1.1rem; margin: 18px 0 8px; }
.result-body p { margin-bottom: 10px; }
.result-body ul { margin: 0 0 14px; padding-inline-start: 24px; }
.result-body li { margin-bottom: 6px; }
.result-body strong { color: var(--green-deep); }
.result-body hr { border: none; border-top: 1.5px dashed var(--line); margin: 20px 0; }

/* كل سطر في النتيجة بمحاذاة لغته، أياً كانت لغة الصفحة */
.result-body [dir="ltr"] { text-align: left; }
.result-body [dir="rtl"] { text-align: right; }

/* ---------- Typing indicator ---------- */
.typing { display: flex; gap: 6px; padding: 14px 4px; }
.typing span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  animation: blink 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ---------- License key ---------- */
.license-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 18px;
  margin-bottom: 40px;
}
.license-label {
  font-weight: 700;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
  text-align: center;
  font-size: 0.95rem;
}
.license-label::-webkit-details-marker { display: none; }
.license-box[open] .license-label { margin-bottom: 12px; }
.license-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.license-box input {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.92rem;
  background: #fdfcf9;
}
.license-box input:focus { outline: none; border-color: var(--green); }
.license-status { font-size: 0.88rem; font-weight: 500; width: 100%; text-align: center; }
.referral-box {
  max-width: 640px;
  margin: -18px auto 34px;
  background: var(--gold-soft);
  border: 1px solid #e8d19f;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
}
.referral-title { font-weight: 800; color: var(--green-deep); }
.referral-text { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 10px; }
.referral-box input {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  padding: 7px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.referral-box a.ghost-btn { text-decoration: none; }
.invited-note {
  display: inline-block;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: #6b5426;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}
.license-status.ok { color: var(--green); }
.license-status.bad { color: var(--error); }

/* ---------- Extras (cover letter / regenerate) ---------- */
/* ---------- Keyword check ---------- */
.keywords {
  background: var(--panel);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 16px 18px 18px;
  margin-bottom: 22px;
}
.keywords-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.keywords-head h3 { color: var(--green-deep); font-size: 1.08rem; }
.keywords-hint { color: var(--ink-soft); font-size: 0.86rem; }
.kw-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-bottom: 14px; }
@media (max-width: 520px) { .kw-scores { grid-template-columns: 1fr; } }
.kw-score { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 10px; }
.kw-label { font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); }
.kw-num { font-size: 1.6rem; font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.kw-score.after .kw-label { color: var(--green-deep); }
.kw-score.after .kw-num { color: var(--green); }
.kw-bar { grid-column: 1 / -1; height: 9px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.kw-bar span { display: block; height: 100%; width: 0; background: #b9b2a3; border-radius: 999px; transition: width 0.6s ease; }
.kw-score.after .kw-bar span { background: var(--green); }
.kw-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; opacity: 0.85; }
.kw-legend .kw-chip { font-size: 0.74rem; padding: 2px 9px; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-chip {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  line-height: 1.5;
}
.kw-chip.gained { background: var(--gold-soft); border-color: var(--gold); color: #6b5426; }
.kw-chip.found { background: #e6f0ea; border-color: #bcd5c5; color: var(--green-deep); }
.kw-chip.missing { background: #f6f3ec; border-color: var(--line); color: #8a8f8d; }
.kw-note { color: var(--ink-soft); font-size: 0.84rem; margin-top: 12px; }

/* ---------- Design picker ---------- */
.designs {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 18px;
  margin-bottom: 22px;
}
.designs-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.designs-head h3 { color: var(--green-deep); font-size: 1.08rem; }
.designs-hint { color: var(--ink-soft); font-size: 0.86rem; }
.design-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) { .design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.design-pick {
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Tajawal', sans-serif;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 8px 8px 10px;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.design-pick:hover { border-color: var(--gold); transform: translateY(-2px); }
.design-pick img {
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 6px;
}
.design-name { font-weight: 800; font-size: 0.95rem; }
.design-desc { color: var(--ink-soft); font-size: 0.76rem; line-height: 1.4; text-align: center; }
.design-pick[aria-pressed='true'] {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.design-pick[aria-pressed='true'] .design-name::before { content: '✓ '; color: var(--green); }
.design-zoom {
  cursor: pointer;
  display: block;
  margin: 6px auto 0;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: none;
  border: none;
  padding: 2px 8px;
  border-radius: 6px;
}
.design-zoom:hover { background: var(--gold-soft); }
.design-preview {
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  max-width: min(640px, 94vw);
  margin: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.design-preview::backdrop { background: rgba(11, 33, 23, 0.55); }
.design-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.design-preview-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

/* ---------- CV editor ---------- */
.edit-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 18px;
  margin-bottom: 22px;
}
.edit-box h3 { color: var(--green-deep); font-size: 1.08rem; margin-bottom: 2px; }
.edit-hint { color: var(--ink-soft); font-size: 0.86rem; margin-bottom: 12px; }
.edit-text {
  width: 100%;
  min-height: 460px;
  resize: vertical;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.edit-text:focus { outline: none; border-color: var(--green); }
.edit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Missing information ---------- */
.missing-box {
  margin-top: 24px;
  background: var(--gold-soft);
  border: 1px solid #e8d19f;
  border-radius: 12px;
  padding: 18px 20px 20px;
}
.missing-box h3 { color: var(--green-deep); font-size: 1.08rem; margin-bottom: 2px; }
.missing-hint { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 14px; }
.missing-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .missing-fields { grid-template-columns: 1fr; } }
.missing-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.missing-field input {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.missing-field input:focus { outline: none; border-color: var(--green); }

.extras {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.extra-btn {
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  transition: background 0.15s, transform 0.12s;
}
.extra-btn:hover:not(:disabled) { background: var(--green-deep); transform: translateY(-2px); }
.extra-btn:disabled { opacity: 0.6; cursor: default; }
.extra-btn.subtle {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}
.extra-btn.subtle:hover:not(:disabled) { background: var(--bg); color: var(--green-deep); transform: none; }

.cover-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 2px solid var(--gold-soft);
}
.cover-body {
  white-space: pre-wrap;
  direction: ltr;
  text-align: left;
  font-size: 0.97rem;
  line-height: 1.9;
}
.cover-body[dir='rtl'] {
  direction: rtl;
  text-align: right;
}

.interview-hint { color: var(--ink-soft); font-size: 0.9rem; margin: -6px 0 16px; }
.interview-body h3 {
  color: var(--green-deep);
  font-size: 1.05rem;
  margin: 22px 0 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.interview-body h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.interview-body .iv-answer {
  background: var(--bg);
  border-inline-start: 3px solid var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  line-height: 1.8;
}

/* ---------- Share ---------- */
.share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
  background: var(--green-deep);
  border-radius: var(--radius);
  border-bottom: 4px solid var(--gold);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.share-box h2 {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 2px;
}
.share-box p { color: #d3dfd7; font-size: 0.95rem; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-deep);
  background: var(--gold-soft);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 9px 22px;
  transition: background 0.15s, transform 0.12s;
}
.share-btn:hover { background: var(--gold); transform: translateY(-2px); }
.share-btn.wa { background: var(--gold); }
.share-btn.wa:hover { background: var(--gold-soft); }

/* ---------- Pricing ---------- */
.pricing { text-align: center; margin-bottom: 56px; }
.pricing h2 { font-family: 'Amiri', serif; font-size: 1.9rem; color: var(--green-deep); margin-bottom: 8px; }
.pricing-sub { color: var(--ink-soft); margin-bottom: 26px; }
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}
.price-card {
  position: relative;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.price-card.featured { border-color: var(--gold); border-width: 2px; }
.price-period { font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); margin-inline-start: 4px; }
.price-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: var(--gold);
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.15rem; font-weight: 800; }
.price {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--green-deep);
  direction: ltr;
}
.price-card ul { list-style: none; color: var(--ink-soft); font-size: 0.92rem; }
.price-card li { margin-bottom: 4px; }
.price-card li::before { content: '✓ '; color: var(--green); font-weight: 800; }
.buy-btn {
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 10px 34px;
  transition: background 0.15s, transform 0.12s;
}
.buy-btn:hover { background: var(--green-deep); transform: translateY(-2px); }
.pricing-note { color: var(--ink-soft); font-size: 0.88rem; max-width: 560px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--green-deep);
  color: #d3dfd7;
  padding: 18px 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 8px; }
.footer-link { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer-link:hover { color: var(--gold); }

/* ---------- صفحات الأدلة (/cv) ---------- */
.guide-page .brand { color: #fff; text-decoration: none; }
.guide { max-width: 820px; padding: 26px 0 48px; }
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { color: var(--gold); }
[dir="rtl"] .crumb-sep { transform: scaleX(-1); display: inline-block; }
.guide h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.45;
  margin-bottom: 6px;
}
[lang="en"] .guide h1 { font-family: 'Tajawal', sans-serif; font-weight: 800; line-height: 1.3; }
.guide-updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 14px; }
.guide-intro { font-size: 1.1rem; color: var(--ink); margin-bottom: 26px; }
.guide-section { margin-bottom: 30px; }
.guide-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 12px;
  padding-inline-start: 12px;
  border-inline-start: 4px solid var(--gold);
  line-height: 1.5;
}
.guide-list { padding-inline-start: 22px; display: grid; gap: 8px; }
.guide-list li::marker { color: var(--gold); }
.guide-note { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; }
.guide-note a, .guide-section p a, .guide-list a { color: var(--green); font-weight: 700; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.guide-chip {
  background: #eaf3ed;
  border: 1px solid #bfd6c7;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 3px 13px;
  font-size: 0.9rem;
  font-weight: 700;
}
.guide-chip.cert { background: var(--gold-soft); border-color: var(--gold); }
.guide-examples { display: grid; gap: 14px; }
.guide-example {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.guide-example p { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; }
.ex-before { background: #fbf1ef; color: #6b3a33; }
.ex-before span[dir="ltr"] { text-decoration: line-through; text-decoration-color: rgba(164, 57, 47, 0.45); }
.ex-after { background: #eff6f1; }
.ex-label {
  flex: none;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 1px 9px;
  background: #fff;
  border: 1px solid currentColor;
}
.ex-after .ex-label { color: var(--green); }
.guide-faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.guide-faq summary { cursor: pointer; font-weight: 700; }
.guide-faq p { margin-top: 8px; color: var(--ink-soft); }
.guide-cta {
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius);
  border-bottom: 4px solid var(--gold);
  padding: 26px 24px;
  margin: 10px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.guide-cta h2 { font-size: 1.35rem; font-weight: 800; line-height: 1.45; }
.guide-cta p { color: #d3dfd7; }
.guide-cta-btn { text-decoration: none; display: inline-block; }
.guide-cta-note { font-size: 0.85rem; color: #d3dfd7; }
.guide-related { margin-top: 26px; }
.guide-related h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-links a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--green-deep);
  text-decoration: none;
  font-size: 0.92rem;
}
.guide-links a:hover { border-color: var(--green); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.guide-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, transform 0.15s;
}
.guide-card:hover { border-color: var(--green); transform: translateY(-2px); }
.guide-card-title { font-weight: 800; color: var(--green-deep); }
.guide-card-desc { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 560px) {
  .guide-example p { flex-direction: column; gap: 4px; }
  .guide-cta { padding: 22px 18px; }
}
.guide-cta .cta { background: var(--gold); color: var(--green-deep); box-shadow: none; padding: 13px 40px; font-size: 1.15rem; }
.guide-cta .cta:hover { background: #dcae58; }

/* ---------- ترجمة السيرة الذاتية (/translate-cv): أمثلة حرفية مقابل احترافية ---------- */
.tr-examples { display: grid; gap: 12px; }
.tr-example { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tr-example p { display: flex; gap: 12px; align-items: baseline; padding: 10px 16px; }
.tr-ar { font-weight: 800; color: var(--green-deep); background: var(--gold-soft); }
.tr-bad { background: #fbf1ef; color: #6b3a33; }
.tr-bad span[dir="ltr"] { text-decoration: line-through; text-decoration-color: rgba(164, 57, 47, 0.45); }
.tr-good { background: #eff6f1; }
.tr-bad .ex-label { color: var(--error); }
.tr-good .ex-label { color: var(--green); }
@media (max-width: 560px) { .tr-example p { flex-direction: column; gap: 4px; } }

/* ---------- نماذج السيرة الذاتية Word (/templates) ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tpl-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 10px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
a.tpl-card:hover { border-color: var(--green); transform: translateY(-2px); }
.tpl-card img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 6px; background: #fff; }
.tpl-card b { color: var(--green-deep); }
.tpl-card span { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; }
.tpl-card .tpl-dl { margin-top: 6px; font-size: 0.86rem; font-weight: 800; color: var(--green); }
/* معاينة النموذج: ورقة بيضاء بخط السيرة، بنفس كتل ملف Word */
.cvp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px 34px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #222826;
  overflow-wrap: anywhere;
}
.cvp[dir="rtl"] { font-family: 'Tajawal', sans-serif; font-size: 0.92rem; }
.cvp p { margin: 0; }
.cvp-name { font-size: 1.45rem; font-weight: 800; color: #1d5a3e; text-align: center; }
.cvp-contact { text-align: center; color: #5f6964; font-size: 0.8rem; margin-bottom: 4px !important; }
.cvp-heading { font-weight: 800; color: #1d5a3e; letter-spacing: 0.04em; border-bottom: 1.5px solid #c9973f; padding-bottom: 2px; margin: 14px 0 6px !important; }
.cvp-title { font-weight: 700; margin-top: 8px !important; }
.cvp-bullet { position: relative; padding-inline-start: 16px; }
.cvp-bullet::before { content: '•'; position: absolute; inset-inline-start: 2px; color: #c9973f; }
.cvp-para { margin-bottom: 2px !important; }
@media (max-width: 560px) { .cvp { padding: 20px 16px; font-size: 0.8rem; } }

/* ---------- نماذج خطاب التقديم (/cover-letter) ---------- */
.cvl { line-height: 1.65; }
.cvl .cvp-para { margin: 0 !important; }
.cvl .cvl-gap { margin-top: 12px !important; }
.cvl-dl { display: grid; justify-items: start; gap: 6px; margin-top: 14px; }
.cvl-dl-btn { text-decoration: none; display: inline-block; padding: 12px 30px; font-size: 1.05rem; }
.cvl-dl .guide-note a { color: var(--green); font-weight: 700; }
.cvl-posting { background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.cvl-posting p { margin: 0; }
.cvl-asks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; }
.cvl-asks span { background: var(--gold-soft, #f5e9d0); color: var(--green-deep); border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 0.85rem; }
.cvl-why { list-style: none; counter-reset: why; display: grid; gap: 12px; padding: 0; }
.cvl-why li { counter-increment: why; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 12px 16px; position: relative; padding-inline-start: 54px; }
.cvl-why li::before { content: counter(why); position: absolute; inset-inline-start: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 0.9rem; }
.cvl-why b { color: var(--green-deep); }
.cvl-why q { display: block; color: var(--ink-soft); font-size: 0.88rem; margin: 2px 0 4px; quotes: none; font-style: italic; }
.cvl-why q[dir="ltr"] { text-align: left; font-family: 'Segoe UI', Arial, sans-serif; }
.cvl-why p { margin: 0; }
.cvl-email { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 18px 22px; font-size: 0.88rem; line-height: 1.6; margin-top: 10px; }
.cvl-email[dir="ltr"] { font-family: 'Segoe UI', Arial, sans-serif; }
.cvl-email p { margin: 0; }
.cvl-subject { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px !important; font-weight: 700; color: var(--green-deep); }
.cvl-subject span { color: var(--ink-soft); font-weight: 500; }
.cvl-body { white-space: pre-line; color: #222826; }

/* ---------- سياسة الخصوصية (/privacy): القسم الإنجليزي بعد العربي ---------- */
.privacy-en { margin-top: 44px; padding-top: 30px; border-top: 2px solid var(--line); }
.privacy-en h1 { font-family: 'Tajawal', sans-serif; font-weight: 800; }

/* ---------- المسميات الوظيفية بالإنجليزي (/titles) ---------- */
.tt {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 30px;
}
.tt-h { font-size: 1.2rem; font-weight: 800; color: var(--green-deep); margin-bottom: 10px; }
.tt-row { display: flex; gap: 8px; }
.tt-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.05rem;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.tt-row input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 90, 62, 0.12); }
.tt-btn {
  font: inherit;
  font-weight: 800;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0 26px;
  cursor: pointer;
}
.tt-btn:hover:not(:disabled) { background: var(--green-deep); }
.tt-btn:disabled { opacity: 0.6; cursor: wait; }
.tt-suggest { list-style: none; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.tt-suggest a {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.tt-suggest li:last-child a { border-bottom: 0; }
.tt-suggest a:hover, .tt-suggest a:focus { background: #eff6f1; outline: none; }
.tt-suggest span[dir="ltr"] { color: var(--green); font-weight: 700; }
.tt-hint { color: var(--ink-soft); font-size: 0.85rem; margin-top: 8px; }
.tt-result { margin-top: 14px; }
.tt-wait { color: var(--ink-soft); }
.tt-error { color: var(--error); font-weight: 700; }
.tt-answer, .tt-card {
  background: #eff6f1;
  border: 1px solid #bfd6c7;
  border-inline-start: 5px solid var(--green);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}
.tt-answer { margin: 6px 0 12px; }
.tt-label { font-size: 0.82rem; font-weight: 800; color: var(--ink-soft); }
.tt-main { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.tt-main b { font-size: clamp(1.4rem, 4.5vw, 1.95rem); font-weight: 800; color: var(--green-deep); line-height: 1.3; overflow-wrap: anywhere; }
.tt-copy {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
  color: var(--green);
  border: 1px solid #bfd6c7;
  border-radius: 999px;
  padding: 3px 14px;
  cursor: pointer;
}
.tt-copy:hover { border-color: var(--green); }
.tt-sub { font-size: 0.92rem; color: var(--ink-soft); }
.tt-fine { font-size: 0.8rem; color: var(--ink-soft); }
.tt-cta { justify-self: start; text-decoration: none; font-size: 1.02rem; padding: 11px 26px; margin-top: 4px; }
/* زر صفحة المسمى: يفتح الأداة والمسمى مكتوب فيها */
.tt-go { justify-self: start; text-decoration: none; font-size: 1rem; padding: 12px 24px; margin-top: 6px; line-height: 1.5; text-align: center; white-space: normal; }
.tt-go-note { font-size: 0.8rem; color: var(--ink-soft); }
.tt-also { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 26px; }
.tt-answer + .guide-section { margin-top: 26px; }
.guide-chip.avoid {
  background: #fbf1ef;
  border-color: #eac8c4;
  color: #7c2d24;
  text-decoration: line-through;
  text-decoration-color: rgba(164, 57, 47, 0.55);
}
.tt-cvline {
  background: #fff;
  border: 1px dashed #bfd6c7;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tt-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s;
}
.tt-item:hover { border-color: var(--green); }
.tt-item b { color: var(--green-deep); }
.tt-item span { color: var(--green); font-size: 0.9rem; font-weight: 700; }
@media (max-width: 560px) {
  .tt { padding: 16px; }
  .tt-row { flex-direction: column; }
  .tt-btn { padding: 11px; }
}

/* ---------- «اكتب مهامك بالإنجليزي» في صفحة المسمى ---------- */
.tb {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
  margin: 4px 0 30px;
}
.tb-h { font-size: 1.2rem; font-weight: 800; color: var(--green-deep); line-height: 1.5; margin-bottom: 6px; }
.tb-h span { color: var(--green); }
.tb-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.tb-form { display: grid; gap: 10px; }
.tb-form textarea { min-height: 110px; font-size: 1rem; }
.tb-btn { justify-self: start; font-size: 1.02rem; padding: 11px 28px; }
.tb-hint { color: var(--ink-soft); font-size: 0.82rem; margin-top: 8px; }
.tb-result { margin-top: 14px; display: grid; gap: 12px; }
.tb-wait { color: var(--ink-soft); }
.tb-error { color: var(--error); font-weight: 700; }
.tb-card {
  background: #eff6f1;
  border: 1px solid #bfd6c7;
  border-inline-start: 5px solid var(--green);
  border-radius: 12px;
  padding: 14px 16px;
}
.tb-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tb-card-head b { color: var(--green-deep); font-size: 1.05rem; }
.tb-bullets { padding-inline-start: 20px; display: grid; gap: 6px; text-align: left; line-height: 1.6; }
.tb-bullets li::marker { color: var(--gold); }
.tb-bullets mark { background: var(--gold-soft); color: #6b5426; border-radius: 4px; padding: 0 3px; }
.tb-tip { margin-top: 10px; font-size: 0.9rem; color: #6b5426; }
.tb-next {
  background: var(--green-deep);
  color: #fff;
  border-radius: 12px;
  border-bottom: 4px solid var(--gold);
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}
.tb-next p { color: #d3dfd7; font-size: 0.95rem; }
.tb-go { justify-self: start; text-decoration: none; background: var(--gold); color: var(--green-deep); box-shadow: none; font-size: 1.05rem; padding: 11px 26px; margin-top: 4px; }
.tb-go:hover:not(:disabled) { background: #dcae58; }
@media (max-width: 560px) {
  .tb { padding: 16px 14px 12px; }
  .tb-btn, .tb-go { justify-self: stretch; text-align: center; }
}

/* ---------- صفحة الدعم (/support) ---------- */
.support-mail {
  background: #eff6f1;
  border: 1px solid #bfd6c7;
  border-inline-start: 5px solid var(--green);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 6px 0 30px;
  display: grid;
  gap: 8px;
}
.support-label { font-size: 0.82rem; font-weight: 800; color: var(--ink-soft); }
.support-address { font-size: clamp(1.3rem, 4.5vw, 1.7rem); font-weight: 800; color: var(--green-deep); text-decoration: none; overflow-wrap: anywhere; justify-self: start; }
.support-address:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.support-note { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- إعداد سيرة من الصفر (#builder) ---------- */
.workspace.building { grid-template-columns: 1fr; }
.builder { display: grid; gap: 16px; }
.builder-intro { color: var(--ink-soft); font-size: 0.95rem; }
.b-sec {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px 16px;
  display: grid;
  gap: 12px;
  background: #fdfcf9;
}
.b-sec legend { font-weight: 800; color: var(--green-deep); padding: 0 6px; font-size: 1.02rem; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.builder label { display: grid; gap: 4px; }
.builder label > span { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.builder input[type="text"], .builder input[type="email"], .builder input[type="tel"], .builder textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
}
.builder textarea { min-height: 96px; resize: vertical; }
.builder input:focus, .builder textarea:focus { outline: none; border-color: var(--green); }
.b-list { display: grid; gap: 12px; }
.b-entry {
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.b-remove { justify-self: end; font-size: 0.85rem; color: var(--error); }
.b-add { justify-self: start; }
.builder .b-check { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-deep); cursor: pointer; }
.b-check input { width: 18px; height: 18px; accent-color: var(--green); }
.b-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 0.85rem; color: var(--ink-soft); }
