/* «أدوات التوظيف» and the AI resume checker. Same tokens, cards and buttons as the rest of the app. */
.ct-page { display: grid; gap: 18px; }
.ct-head h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.ct-head h1 i { color: var(--g-700); }
.ct-head p { margin: 0; color: var(--muted); line-height: 1.8; max-width: 70ch; }
.ct-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ct-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ct-crumbs a { color: var(--g-700); font-weight: 700; text-decoration: none; }
.ct-crumbs a:hover { text-decoration: underline; }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ct-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 24px; }
.ct-card-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--g-50); color: var(--g-700); font-size: 32px; border: 1px solid var(--g-100); text-decoration: none; }
.ct-card-body h3 { margin: 0; font-size: 24px; }
.ct-card-body h3 a { color: inherit; text-decoration: none; }
.ct-card-body h3 a:hover { color: var(--g-700); }
.ct-badge-new { background: var(--gold-bg); color: var(--gold); }
.ct-desc { color: var(--ink-2); line-height: 1.8; margin: 8px 0 12px; }
.ct-features { margin-bottom: 16px; }
.ct-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.ct-price { display: flex; flex-direction: column; gap: 4px; }
.ct-pack { font-size: 13px; color: var(--muted); }
.ct-actions, .ct-wallet { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-credits { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--g-800); background: var(--g-50); border: 1px solid var(--g-100); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.ct-credits.is-empty { color: var(--danger); background: #fff4ed; border-color: #fed7aa; }
.ct-loading-line { display: inline-block; width: 160px; height: 36px; border-radius: 10px; background: linear-gradient(90deg, var(--g-50), #fff, var(--g-50)); background-size: 200% 100%; animation: ct-shimmer 1.4s linear infinite; }
@keyframes ct-shimmer { to { background-position: -200% 0; } }

.ct-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ct-form { padding: 22px; display: grid; gap: 16px; }
.ct-form h3, .ct-panel h3 { margin: 0; font-size: 17px; font-weight: 800; }
.ct-field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.ct-field > span, .ct-field legend { font-weight: 700; font-size: 14px; color: var(--ink-2); padding: 0; }
.ct-field small { color: var(--muted); font-size: 12.5px; }
.ct-field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.ct-seg { display: inline-flex; gap: 6px; background: var(--g-50); border: 1px solid var(--g-100); border-radius: 12px; padding: 4px; width: max-content; }
.ct-seg label { position: relative; cursor: pointer; }
.ct-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ct-seg span { display: block; padding: 7px 18px; border-radius: 9px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.ct-seg input:checked + span { background: #fff; color: var(--g-800); box-shadow: var(--shadow-sm); }
.ct-seg input:focus-visible + span { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
.ct-submit { justify-self: start; }
.ct-note { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.ct-form-msg { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; line-height: 1.7; }
.ct-form-msg a { color: var(--g-700); font-weight: 700; }

.ct-side { display: grid; gap: 18px; }
.ct-panel { padding: 20px; display: grid; gap: 14px; align-content: start; }
.ct-how ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.7; }
.ct-history ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ct-history button { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; text-align: start; transition: border-color .15s, background .15s; }
.ct-history button:hover, .ct-history button[aria-current="true"] { border-color: var(--g-700); background: var(--g-50); }
.ct-history b { color: var(--g-800); }
.ct-history span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-history small { color: var(--muted); }

.ct-waiting { padding: 34px 20px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.ct-spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--g-100); border-top-color: var(--g-700); animation: ct-spin 1s linear infinite; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct-step { margin: 6px 0 0; font-weight: 800; color: var(--g-800); font-size: 17px; }
.ct-hint { margin: 0; color: var(--muted); font-size: 13px; }

.ct-result { display: grid; gap: 18px; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.ct-result.is-in { opacity: 1; transform: none; }
.ct-score-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; }
.ct-ring { --c: var(--g-700); width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--g-50) 0); }
.ct-ring span { width: 112px; height: 112px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 38px; font-weight: 900; color: var(--ink); }
.ct-ring small { font-size: 18px; font-weight: 800; color: var(--muted); }
.is-great .ct-ring { --c: var(--g-700); }
.is-good .ct-ring { --c: var(--g-600); }
.is-fair .ct-ring { --c: var(--gold-soft); }
.is-low .ct-ring { --c: var(--danger); }
.ct-score-text h2 { margin: 0 0 6px; font-size: 22px; }
.ct-score-text p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.8; }
.ct-score-text .ct-meta { color: var(--muted); font-size: 13px; }
.ct-result-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: start; }
.ct-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ct-cat-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.ct-cat-top i { color: var(--g-700); }
.ct-cat p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.ct-bar { height: 8px; border-radius: 99px; background: var(--g-50); overflow: hidden; margin-top: 6px; }
.ct-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .9s cubic-bezier(.2, .75, .2, 1) .15s; }
.ct-result.is-in .ct-bar span { width: var(--w); }
.ct-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ct-tip { border: 1px solid var(--line); border-inline-start: 4px solid var(--g-600); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.ct-tip.is-high { border-inline-start-color: var(--danger); }
.ct-tip.is-medium { border-inline-start-color: var(--gold-soft); }
.ct-tip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ct-tip-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--g-900); color: #fff; font-weight: 800; font-size: 12px; }
.ct-chip { padding: 2px 10px; border-radius: 99px; font-weight: 700; background: var(--g-50); color: var(--g-800); }
.ct-chip.is-high { background: #fff1ea; color: var(--danger); }
.ct-chip.is-medium { background: var(--gold-bg); color: var(--gold); }
.ct-tip-sec { color: var(--muted); font-weight: 700; }
.ct-tip-problem { margin: 0; font-weight: 700; line-height: 1.8; }
.ct-tip blockquote { margin: 0; padding: 8px 12px; border-radius: 8px; background: #f7f9f8; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.ct-tip-fix { margin: 0; color: var(--g-800); line-height: 1.8; }
.ct-tip-fix i { color: var(--gold); }
.ct-strengths { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; line-height: 1.7; }
.ct-strengths i { color: var(--g-700); }
.ct-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-keywords span { padding: 5px 12px; border-radius: 99px; background: var(--gold-bg); color: #7a5b16; font-weight: 700; font-size: 13.5px; }
.ct-empty { margin: 0; color: var(--muted); }

.ct-owned { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ct-owned-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.ct-owned-card:hover { border-color: var(--g-700); transform: translateY(-1px); }
.ct-owned-card .ct-card-icon { width: 48px; height: 48px; font-size: 24px; border-radius: 12px; }
.ct-owned-text { display: grid; gap: 6px; justify-items: start; }
.checkout-tool-icon { display: grid; place-items: center; background: var(--g-50); color: var(--g-700); font-size: 30px; border-radius: 10px; border: 1px solid var(--g-100); }

@media (max-width: 860px) {
  .ct-layout, .ct-result-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-score-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .ct-card { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .ct-head h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-result, .ct-bar span, .ct-owned-card, .ct-seg span { transition: none; }
  .ct-result { opacity: 1; transform: none; }
  .ct-spinner, .ct-loading-line { animation: none; }
}

/* Poster on the checker card: the ATS sample page, a score, and two findings. */
.ct-card { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); align-items: start; }
.ct-poster { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--g-900), var(--g-700)); text-decoration: none; isolation: isolate; }
.ct-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 110%, rgba(214, 178, 94, .35), transparent 60%); z-index: -1; }
.ct-poster-paper { position: absolute; inset: 14% 16% -8% 16%; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .55); transform: rotate(-3deg); transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
.ct-poster-paper img { width: 100%; height: auto; display: block; }
.ct-poster:hover .ct-poster-paper { transform: rotate(-1deg) translateY(-4px); }
.ct-poster-score { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; justify-items: center; gap: 4px; padding: 8px 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 24px -12px rgba(4, 35, 27, .55); }
.ct-poster-score .ct-ring { width: 64px; height: 64px; }
.ct-poster-score .ct-ring span { width: 50px; height: 50px; font-size: 18px; }
.ct-poster-score .ct-ring small { font-size: 10px; }
.ct-poster-score b { font-size: 11px; color: var(--g-800); white-space: nowrap; }
.ct-poster-chip { position: absolute; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 700; box-shadow: 0 8px 18px -10px rgba(4, 35, 27, .5); white-space: nowrap; }
.ct-poster-chip i { color: var(--g-700); }
.ct-poster-chip.is-two i { color: var(--gold); }
.ct-poster-chip.is-one { bottom: 54px; }
.ct-poster-chip.is-two { bottom: 18px; }

/* Which resume: built here or uploaded. */
.ct-source { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-source label { position: relative; cursor: pointer; }
.ct-source input { position: absolute; opacity: 0; pointer-events: none; }
.ct-source span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, background .2s; height: 100%; }
.ct-source i { grid-row: span 2; font-size: 24px; color: var(--g-700); }
.ct-source b { font-size: 14.5px; }
.ct-source small { color: var(--muted); font-size: 12px; }
.ct-source input:checked + span { border-color: var(--g-700); background: var(--g-50); }
.ct-source input:focus-visible + span { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
.ct-drop { display: grid; justify-items: center; gap: 4px; padding: 20px 14px; border: 2px dashed var(--g-100); border-radius: 12px; background: var(--g-50); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.ct-drop i { font-size: 30px; color: var(--g-700); }
.ct-drop b { font-size: 14px; color: var(--ink); word-break: break-all; }
.ct-drop small { color: var(--muted); font-size: 12px; }
.ct-drop.is-over, .ct-drop:hover { border-color: var(--g-700); }
.ct-drop.has-file { border-style: solid; border-color: var(--g-700); background: #fff; }
.ct-drop:focus-within { outline: 3px solid var(--gold-soft); outline-offset: 2px; }

/* The resume being checked, beside the options. */
.ct-preview [data-ct-preview] { min-height: 120px; }
.ct-sheet { position: relative; width: 100%; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(4, 35, 27, .45); }
.ct-sheet.is-loading { display: grid; place-items: center; aspect-ratio: 210 / 297; }
.ct-sheet-page { position: absolute; top: 0; left: 0; width: 794px; transform-origin: top left; pointer-events: none; }
.ct-sheet-page .cv-page { margin: 0; box-shadow: none; }
.ct-file-frame { width: 100%; aspect-ratio: 210 / 297; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ct-file-image { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); display: block; }

@media (max-width: 860px) {
  .ct-card { grid-template-columns: minmax(0, 1fr); }
  .ct-poster { max-width: 320px; width: 100%; justify-self: center; }
}
@media (max-width: 480px) { .ct-source { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ct-poster-paper, .ct-source span, .ct-drop { transition: none; } }
.ct-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ct-drop { position: relative; }
.ct-field[hidden] { display: none; }
/* The uploaded file can be removed with a red X in its corner. */
.ct-file { position: relative; }
.ct-file-remove { position: absolute; top: -10px; inset-inline-end: -10px; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #dc2626; color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(127, 29, 29, .6); transition: transform .15s, background .15s; z-index: 2; }
.ct-file-remove:hover { background: #b91c1c; transform: scale(1.06); }
.ct-file-remove:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ct-file-remove { transition: none; } }
.ct-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ct-form-actions .ct-submit { justify-self: auto; }
.ct-advice { display: inline-flex; align-items: center; gap: 5px; color: var(--g-800) !important; font-weight: 700; }
.ct-advice i { color: var(--gold); }
.ct-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.ct-open { padding: 12px 24px; font-size: 16px; }
.ct-offer { margin: 6px 0 0; padding: 8px 12px; font-size: 13px; }
.ct-price { align-items: flex-start; }

/* «تعديلها في بياناتي» under a tip: the suggested text, editable, and the apply button. */
.ct-apply { display: grid; gap: 6px; margin-top: 2px; padding: 10px 12px; border-radius: 10px; background: var(--g-50); border: 1px solid var(--g-100); }
.ct-apply-label { font-size: 12.5px; font-weight: 700; color: var(--g-800); }
.ct-apply-text { min-height: 56px; resize: vertical; line-height: 1.7; font-size: 14px; background: #fff; }
.ct-apply-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-apply-note { font-size: 12.5px; color: var(--muted); }
.ct-apply-note a { color: var(--g-700); font-weight: 700; }
.ct-apply.is-done { background: #f3faf6; }
.ct-apply.is-done .ct-apply-text { color: var(--ink-2); background: transparent; border-style: dashed; }
.ct-apply.is-done [data-apply] { background: var(--g-700); opacity: 1; }
.ct-end { height: 1px; }
