/* Kaderjo – company search */
.kco { --pr: #149a8c; --ink: #1c1c1c; --mut: #667085; --line: #e5eae9; font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; color: var(--ink); }
.kco[dir="ltr"] { font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
.kco *, .kco *::before, .kco *::after { box-sizing: border-box; }
.kco button { font: inherit; cursor: pointer; }
.kco input, .kco select, .kco textarea { font: inherit; color: inherit; }

.kco-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(120deg, #111, #1c1c1c 60%, #163a36); color: #fff; border-radius: 20px; padding: 20px 24px; margin-bottom: 14px; }
.kco-company { font-weight: 700; font-size: 19px; }
.kco-access { color: #a7e8e0; font-size: 13.5px; margin-top: 2px; }
.kco-access a { color: #5eead4; font-weight: 700; }
.kco-total { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 16px; font-size: 14px; color: #d2dcda; }
.kco-total b { font-size: 24px; color: #fff; font-family: 'Poppins', sans-serif; margin-inline-end: 4px; }

.kco-searchbar { position: sticky; top: 80px; z-index: 5; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.admin-bar .kco-searchbar { top: 112px; }
.kco-sicon { font-size: 22px; color: var(--pr); padding-inline-start: 8px; }
.kco-searchbar input { flex: 1; border: 0; outline: none; font-size: 16px; padding: 10px 4px; min-width: 0; background: transparent; }
.kco-searchbar select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #f7faf9; }
.kco-filter-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; font-weight: 600; }

.kco-body { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.kco-filters { position: sticky; top: 150px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.admin-bar .kco-filters { top: 182px; }
.kco-filters h3 { font-size: 16px; margin: 0 0 12px; }
.kco-field { display: block; margin-bottom: 12px; }
.kco-field > span { display: block; font-size: 12.5px; font-weight: 600; color: #475467; margin-bottom: 5px; }
.kco-field input, .kco-field select { width: 100%; border: 1px solid #d9dbe5; border-radius: 10px; padding: 9px 11px; background: #fff; outline: none; }
.kco-field input:focus, .kco-field select:focus { border-color: var(--pr); box-shadow: 0 0 0 3px rgba(20,154,140,.15); }
.kco-range { display: flex; align-items: center; gap: 6px; }
.kco-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; cursor: pointer; }
.kco-check input { width: 16px; height: 16px; accent-color: var(--pr); }
.kco-reset { margin-top: 8px; width: 100%; border: 0; background: #f2f6f5; color: var(--mut); border-radius: 10px; padding: 9px; font-weight: 600; }

.kco-count { color: var(--mut); font-size: 14px; font-weight: 600; margin: 2px 4px 10px; }
.kco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.kco-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kco-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.08); border-color: #b5e3dc; }
.kco-star { position: absolute; top: 12px; inset-inline-end: 12px; border: 0; background: #f2f6f5; color: #b8c2c0; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; }
.kco-star.is-on, .kco-star:hover { color: #f5b301; background: #fff7e0; }
.kco-card-head { display: flex; gap: 12px; align-items: center; padding-inline-end: 34px; }
.kco-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.kco-av-i { display: grid; place-items: center; background: #e6f7f5; color: #0f766e; font-weight: 800; font-size: 19px; font-family: 'Poppins', 'Cairo', sans-serif; }
.kco-card-id { min-width: 0; }
.kco-card h4 { margin: 0; font-size: 16.5px; line-height: 1.3; }
.kco-ver { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--pr); color: #fff; font-size: 11px; vertical-align: middle; }
.kco-card-title { color: #0f766e; font-weight: 600; font-size: 14px; }
.kco-card-meta { color: var(--mut); font-size: 13px; }
.kco-card-sum { margin: 0; color: #475467; font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kco-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.kco-tags li { background: #eff7f6; color: #0b5d55; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.kco-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--mut); }
.kco-view { padding: 8px 14px !important; font-size: 13.5px !important; }
.kco-more { text-align: center; margin: 18px 0; }
.kco-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; font-size: 40px; color: #9aa6a4; background: #fff; border: 1px dashed var(--line); border-radius: 18px; }
.kco-empty p { font-size: 16px; margin: 8px 0 0; }
.kco-skel { height: 220px; border-radius: 18px; background: linear-gradient(90deg, #f1f4f3, #e6ecea, #f1f4f3); background-size: 200% 100%; animation: kcosk 1.2s infinite; }
@keyframes kcosk { to { background-position: -200% 0; } }

/* Modal */
.kco-lock { overflow: hidden; }
.kco-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; }
.kco-modal[hidden] { display: none; }
.kco-modal-bg { position: absolute; inset: 0; background: rgba(10,14,14,.6); backdrop-filter: blur(4px); }
.kco-modal-panel { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #f4f7f6; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.kco-x { position: sticky; top: 12px; float: inline-end; margin: 12px; z-index: 3; border: 0; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 15px; }
.kco-modal-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; padding: 18px; clear: both; }
.kco-cv-wrap { position: relative; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.kco-cv { position: absolute; top: 0; left: 0; width: 794px; transform-origin: top left; }
.kco-side { align-self: start; position: sticky; top: 12px; background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.kco-side h3 { margin: 0; font-size: 20px; }
.kco-side-title { margin: 2px 0 12px; color: #0f766e; font-weight: 600; }
.kco-side-box { background: #f4fbfa; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.kco-side-box strong { display: block; font-size: 12.5px; color: var(--mut); margin-bottom: 4px; }
.kco-ci { font-weight: 600; word-break: break-all; text-align: start; }
.kco-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.kco-a { background: #f2f6f5 !important; color: var(--ink) !important; border: 1px solid var(--line) !important; box-shadow: none !important; padding: 10px !important; font-size: 13.5px !important; }
.kco-a:hover { border-color: var(--pr) !important; }
.kco-a.is-on { color: #b38000 !important; background: #fff7e0 !important; }
.kco-wa { background: #25d366 !important; color: #fff !important; border-color: #25d366 !important; }
.kco-msg strong { display: block; margin-bottom: 6px; font-size: 14px; }
.kco-msg textarea { width: 100%; border: 1px solid #d9dbe5; border-radius: 12px; padding: 10px 12px; resize: vertical; margin-bottom: 8px; outline: none; }
.kco-msg textarea:focus { border-color: var(--pr); }
.kco-msg-st { font-size: 13px; margin: 8px 0 0; }
.kco-msg-st.is-ok { color: #15803d; }
.kco-msg-st.is-err { color: #b91c1c; }

/* Landing (no access) */
.kj-co-hero { display: grid; grid-template-columns: 1.1fr 420px; gap: 46px; align-items: center; }
.kj-co-kicker { display: inline-block; background: #e6f7f5; color: #0b5d55; border-radius: 99px; padding: 5px 14px; font-weight: 700; font-size: 13.5px; margin-bottom: 12px; }
.kj-co-stat { display: inline-flex; align-items: baseline; gap: 8px; background: #1c1c1c; color: #d2dcda; border-radius: 16px; padding: 12px 18px; margin-bottom: 18px; }
.kj-co-stat b { font-size: 34px; color: #5eead4; font-family: 'Poppins', sans-serif; line-height: 1; }
.kj-co-feats { list-style: none; margin: 0; padding: 0; }
.kj-co-feats li { position: relative; padding-inline-start: 32px; margin-bottom: 12px; font-weight: 500; font-size: 16px; }
.kj-co-feats li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #149a8c; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.kj-co-price { margin: 0; }

@media (max-width: 980px) {
	.kco-body { grid-template-columns: 1fr; }
	.kco-filters { display: none; position: static; }
	.kco.show-filters .kco-filters { display: block; }
	.kco-filter-btn { display: inline-block; }
	.kco-modal-grid { grid-template-columns: 1fr; }
	.kco-side { position: static; }
	.kj-co-hero { grid-template-columns: 1fr; }
	.kco-searchbar { top: 72px; }
}
@media (max-width: 560px) {
	.kco-top { flex-direction: column; align-items: flex-start; }
	.kco-searchbar select { max-width: 120px; }
	.kco-modal { padding: 0; }
	.kco-modal-panel { max-height: 100vh; border-radius: 0; }
}

/* ATS match */
.kco-ats { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.kco-ats summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kco-ats summary::-webkit-details-marker { display: none; }
.kco-ats summary::after { content: "+"; margin-inline-start: auto; color: var(--pr); font-size: 20px; }
.kco-ats[open] summary::after { content: "−"; }
.kco-ats[open] summary { border-bottom: 1px solid var(--line); background: #f4fbfa; }
.kco-ats-body { padding: 14px 18px 18px; }
.kco-ats-hint { margin: 0 0 10px; color: var(--mut); font-size: 13.5px; }
.kco-ats textarea { width: 100%; border: 1px solid #d9dbe5; border-radius: 12px; padding: 12px 14px; resize: vertical; outline: none; line-height: 1.6; }
.kco-ats textarea:focus { border-color: var(--pr); box-shadow: 0 0 0 3px rgba(20,154,140,.15); }
.kco-ats-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.kco-ats-row label { font-size: 13.5px; font-weight: 600; color: #475467; margin-inline-end: auto; }
.kco-ats-row select { border: 1px solid #d9dbe5; border-radius: 10px; padding: 7px 10px; margin-inline-start: 6px; }
.kco-ats-kw { margin-top: 12px; font-size: 13px; color: var(--mut); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kco-ats-kw em { font-style: normal; background: #eff7f6; color: #0b5d55; border-radius: 8px; padding: 2px 8px; font-weight: 600; }
.kco-card-edu { color: #475467; font-size: 12.5px; margin-top: 2px; }
.kco-match { --p: 0; --c: #dc2626; flex: none; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e9efee 0); display: grid; place-items: center; position: relative; margin-inline-start: auto; }
.kco-match::before { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
.kco-match b, .kco-match small { position: relative; line-height: 1; }
.kco-match b { font-size: 14px; display: block; text-align: center; margin-top: 8px; }
.kco-match small { font-size: 9.5px; color: var(--mut); display: block; text-align: center; margin-top: -10px; }
.kco-match.is-mid { --c: #f59e0b; }
.kco-match.is-high { --c: #16a34a; }
.kco-card-head .kco-match { margin-inline-start: auto; }
.kco-card-head { padding-inline-end: 40px; }
.kco-kw { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; align-items: center; }
.kco-kw span { border-radius: 8px; padding: 2px 8px; font-weight: 600; }
.kco-kw .is-hit { background: #dcfce7; color: #166534; }
.kco-kw .is-miss { background: #f3f4f6; color: #9ca3af; text-decoration: line-through; }
.kco-kw strong { font-size: 12px; color: var(--mut); margin-inline-end: 2px; }
.kco-side-match { display: flex; gap: 12px; align-items: flex-start; background: #f4fbfa; border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.kco-side-match .kco-match { margin: 0; }
.kco-side-match .kco-kw + .kco-kw { margin-top: 6px; }

.kco-card-id { flex: 1; }
.kco-card-head { padding-inline-end: 34px; }
.kco-matchbar { --c: #dc2626; display: flex; align-items: center; gap: 8px; background: #f7faf9; border-radius: 10px; padding: 7px 10px; }
.kco-matchbar b { font-size: 15px; color: var(--c); font-family: 'Poppins', sans-serif; }
.kco-matchbar span { font-size: 12.5px; color: var(--mut); font-weight: 600; }
.kco-matchbar i { flex: 1; height: 7px; border-radius: 7px; background: #e6ecea; overflow: hidden; display: block; }
.kco-matchbar s { display: block; height: 100%; background: var(--c); border-radius: 7px; text-decoration: none; }
.kco-matchbar.is-mid { --c: #d97706; }
.kco-matchbar.is-high { --c: #16a34a; }

.kco-top-end { display: flex; align-items: center; gap: 10px; }
.kco-top-link { color: #fff; text-decoration: none; font-weight: 600; background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 14px; }
.kco-top-link b { background: #1aaf9f; border-radius: 99px; padding: 1px 8px; margin-inline-start: 4px; font-size: 12px; }
.kco-nudge { background: #fff8e6; border: 1px solid #f5d48a; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.kco-nudge a { color: #0f766e; }
