/* Redx HR System — brand: red #E31B23 · black #0A0A0A · white · Zain */
:root {
  --red: #E31B23; --red-600: #c4141b; --red-soft: rgba(227, 27, 35, .12); --red-line: rgba(227, 27, 35, .35);
  --bg: #0A0A0A; --bg-2: #0f0f10; --surface: #141415; --surface-2: #1b1b1d; --surface-3: #232326;
  --border: #2a2a2d; --border-2: #36363a; --text: #f4f4f5; --text-2: #c9c9ce; --muted: #8d8d94;
  --green: #22c55e; --green-soft: rgba(34, 197, 94, .14); --amber: #f59e0b; --amber-soft: rgba(245, 158, 11, .14);
  --blue: #3b82f6; --blue-soft: rgba(59, 130, 246, .14);
  --radius: 14px; --radius-sm: 10px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Zain', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f5f6; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f4f4f5; --surface-3: #ebebed;
  --border: #e4e4e7; --border-2: #d4d4d8; --text: #0A0A0A; --text-2: #3f3f46; --muted: #71717a;
  --red-soft: rgba(227, 27, 35, .08); --shadow: 0 10px 30px rgba(10, 10, 10, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { overflow-x: clip; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 800; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .xs { font-size: .78rem; } .bold { font-weight: 700; } .red { color: var(--red); }
.ltr { direction: ltr; unicode-bidi: plaintext; display: inline-block; }
.hidden { display: none !important; }
.boot { display: grid; place-items: center; height: 100vh; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { padding: 60px; display: grid; place-items: center; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .5px; direction: ltr; }
.logo-img { height: 30px; width: auto; display: block; }
.logo-img.on-light { display: none; }
:root[data-theme="light"] .logo-img.on-dark { display: none; }
:root[data-theme="light"] .logo-img.on-light { display: block; }
.logo .tag { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--red); color: #fff; letter-spacing: 1px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(227, 27, 35, .25); }
.btn.primary:hover { background: var(--red-600); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--red); border-color: var(--red-line); background: transparent; }
.btn.green { background: #128c4a; border-color: #128c4a; color: #fff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: .9rem; border-radius: 8px; }
.btn.xs { height: 28px; padding: 0 9px; font-size: .82rem; border-radius: 7px; gap: 5px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm svg, .btn.xs svg { width: 15px; height: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: .9rem; font-weight: 700; color: var(--text-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); outline: none; transition: .15s; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.input.sm { height: 36px; font-size: .92rem; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; } .row.nowrap { flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.switch { position: relative; display: inline-block; vertical-align: middle; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + span { background: var(--red); border-color: var(--red); }
.switch input:checked + span::after { background: #fff; inset-inline-start: 22px; }

/* chips & tags input */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.chip.red { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.chip.green { background: var(--green-soft); border-color: transparent; color: var(--green); }
.chip.amber { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.chip.blue { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.chip button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; opacity: .7; display: inline-flex; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); }
.tags:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.tags input { flex: 1; min-width: 120px; border: 0; background: none; outline: none; height: 30px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card.pad-0 { padding: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h3 { margin: 0; }
.section { margin-bottom: 22px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; opacity: .5; margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.stat .k { color: var(--muted); font-size: .9rem; font-weight: 700; }
.stat .v { font-size: 2rem; font-weight: 900; line-height: 1.1; margin-top: 4px; }
.stat .ic { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.stat .ic svg { width: 19px; height: 19px; }
.stat.link { cursor: pointer; transition: .15s; } .stat.link:hover { border-color: var(--red-line); }

/* score ring */
.score { --p: 0; --c: var(--red); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; font-weight: 900; font-size: .92rem; }
.score::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.score span { position: relative; }
.score.lg { width: 76px; height: 76px; font-size: 1.35rem; } .score.lg::before { inset: 6px; }
.score.sm { width: 36px; height: 36px; font-size: .8rem; } .score.sm::before { inset: 3px; }
.bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--red); border-radius: 99px; }

/* table */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
.t th { text-align: start; font-weight: 700; color: var(--muted); font-size: .84rem; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--surface-2); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs .on { color: var(--text); border-bottom-color: var(--red); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* ---------- public layout ---------- */
.pnav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.pnav .in { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.pnav nav { display: flex; gap: 4px; }
.pnav nav a { padding: 8px 12px; border-radius: 8px; font-weight: 700; color: var(--text-2); }
.pnav nav a.on, .pnav nav a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 760px) { .pnav .in { gap: 8px; flex-wrap: wrap; } .pnav nav { order: 10; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; } .pnav nav a { padding: 6px 10px; font-size: .92rem; white-space: nowrap; } .hide-sm { display: none !important; } }
.cv-fab { display: none; }
@media (max-width: 1000px) { .cv-fab { display: inline-flex; position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 50; box-shadow: var(--shadow); } }
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.wrap.narrow { max-width: 860px; }
.footer { border-top: 1px solid var(--border); padding: 26px 20px; text-align: center; color: var(--muted); font-size: .9rem; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(1200px 400px at 85% -10%, rgba(227, 27, 35, .22), transparent 60%), radial-gradient(800px 300px at 0% 110%, rgba(227, 27, 35, .12), transparent 60%), var(--bg); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, transparent 0 38px, rgba(227, 27, 35, .25) 38px 39px), repeating-linear-gradient(25deg, transparent 0 60px, rgba(227, 27, 35, .12) 60px 61px);
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 65%); }
.hero .in { position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 20px 54px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 900; max-width: 720px; }
.hero h1 b { color: var(--red); }
.hero p.lead { font-size: 1.2rem; color: var(--text-2); max-width: 620px; }
.searchbar { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; padding: 8px; max-width: 820px; box-shadow: var(--shadow); flex-wrap: wrap; }
.searchbar .si { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.searchbar .si svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.searchbar input { border: 0; outline: none; background: none; height: 44px; width: 100%; font-size: 1.05rem; }
.searchbar .sep { width: 1px; background: var(--border); margin: 6px 0; }
@media (max-width: 640px) { .searchbar .sep { display: none; } .searchbar .btn { width: 100%; } }

.jobs-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .jobs-layout { grid-template-columns: minmax(0, 1fr); } .filters { display: none; } .filters.open { display: block; } }
.filters { position: sticky; top: 80px; }
.filters h4 { font-size: .95rem; margin: 14px 0 8px; }
.filters .check { display: flex; padding: 3px 0; font-size: .95rem; }

.job-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: .15s; position: relative; }
.job-card:hover { border-color: var(--red-line); transform: translateY(-1px); }
.job-card .clogo, .clogo { width: 54px; height: 54px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border); display: grid; place-items: center; flex: none; overflow: hidden; font-weight: 900; color: var(--red); font-size: 1.2rem; }
.clogo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.clogo.lg { width: 84px; height: 84px; border-radius: 18px; font-size: 1.8rem; }
.job-card h3 { font-size: 1.15rem; margin: 0 0 2px; }
.job-card h3 a:hover { color: var(--red); }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .9rem; margin: 4px 0 8px; }
.job-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-card .meta svg { width: 15px; height: 15px; }
.job-card .save { position: absolute; top: 14px; inset-inline-end: 14px; }
.badge-new { background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.match { font-weight: 800; color: var(--green); font-size: .88rem; }

.job-detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .job-detail { grid-template-columns: minmax(0, 1fr); } }
.prose { white-space: pre-line; color: var(--text-2); line-height: 1.85; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; }
.company-cover { height: 150px; border-radius: var(--radius); background: linear-gradient(120deg, var(--red) 0%, #5a0a0d 55%, #0A0A0A 100%); position: relative; overflow: hidden; }
.company-cover::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, transparent 0 30px, rgba(255, 255, 255, .07) 30px 31px); }
.company-head { display: flex; gap: 16px; align-items: flex-end; margin: -40px 20px 18px; position: relative; flex-wrap: wrap; }

.auth-page { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card { padding: 28px; }

/* ---------- app layout (staff / console) ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--bg-2); border-inline-end: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
:root[data-theme="dark"] .side { background: #0c0c0d; }
.side .logo { padding: 4px 10px 18px; }
.side .co { display: flex; gap: 10px; align-items: center; padding: 10px; margin-bottom: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.side .co .clogo { width: 36px; height: 36px; border-radius: 9px; font-size: .9rem; }
.side .grp { font-size: .74rem; color: var(--muted); font-weight: 800; letter-spacing: .5px; padding: 14px 12px 6px; text-transform: uppercase; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 700; margin-bottom: 2px; position: relative; }
.side a.nav svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.side a.nav:hover { background: var(--surface-2); color: var(--text); }
.side a.nav.on { background: var(--surface-2); color: var(--text); }
.side a.nav.on::before { content: ''; position: absolute; inset-inline-start: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--red); }
.side a.nav.on svg { color: var(--red); opacity: 1; }
.side .cnt { margin-inline-start: auto; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.side .bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 0 22px; position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); z-index: 30; }
.topbar h2 { margin: 0; font-size: 1.25rem; }
.content { padding: 22px; max-width: 1400px; width: 100%; }
.imp-bar { background: var(--amber); color: #111; text-align: center; padding: 6px; font-weight: 800; font-size: .9rem; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset-inline-start: 0; top: 0; width: 270px; z-index: 60; transform: translateX(110%); transition: .25s; box-shadow: var(--shadow); }
  [dir="ltr"] .side { transform: translateX(-110%); }
  .side.open { transform: none !important; }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px; } .topbar { padding: 0 12px; }
}
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 55; }

/* page header */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ph h1 { font-size: 1.7rem; margin: 0; }
.ph .sub { color: var(--muted); }

/* kanban */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.col { flex: 0 0 280px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.col-h { padding: 12px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); font-weight: 800; }
.col-h .n { margin-inline-start: auto; background: var(--surface-3); padding: 0 8px; border-radius: 99px; font-size: .8rem; }
.col-b { padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.col.drop .col-b { background: var(--red-soft); }
.kcard { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px; cursor: grab; transition: .12s; }
.kcard:hover { border-color: var(--red-line); }
.kcard.dragging { opacity: .4; }
.kcard .nm { font-weight: 800; }
.kcard.unseen { border-inline-start: 3px solid var(--red); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* drawer */
.drawer-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 70; animation: fade .15s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(920px, 100vw); background: var(--bg); border-inline-start: 1px solid var(--border); z-index: 71; overflow-y: auto; animation: slide .2s ease; }
@keyframes slide { from { transform: translateX(-30px); opacity: 0; } }
[dir="ltr"] .drawer { animation-name: slideL; } @keyframes slideL { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer-h { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 20px; z-index: 2; }
.drawer-b { padding: 20px; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
@media (max-width: 860px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 90; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow); }
.modal.lg { max-width: 820px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-h h3 { margin: 0; }
.modal-b { padding: 20px; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }

/* toasts */
#toasts { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
[dir="rtl"] #toasts { transform: translateX(50%); }
.toast { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2); padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 700; animation: fade .2s; max-width: 90vw; }
.toast.err { border-color: var(--red); } .toast.ok { border-color: var(--green); }

/* timeline */
.tl { position: relative; padding-inline-start: 22px; }
.tl::before { content: ''; position: absolute; inset-inline-start: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl .it { position: relative; padding-bottom: 14px; }
.tl .it::before { content: ''; position: absolute; inset-inline-start: -21px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--muted); }
.tl .it.red::before { border-color: var(--red); background: var(--red); }

.profile-sec { padding: 18px 0; border-bottom: 1px solid var(--border); }
.profile-sec:last-child { border-bottom: 0; }
.item-row { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 8px; }
.progress-ring { display: flex; align-items: center; gap: 14px; }
.wa { color: #25D366; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; direction: ltr; display: inline-block; word-break: break-all; }
pre.code { display: block; padding: 12px; white-space: pre-wrap; }
.method { font-weight: 800; font-size: .75rem; padding: 2px 7px; border-radius: 5px; background: var(--surface-3); direction: ltr; display: inline-block; min-width: 52px; text-align: center; }
.method.GET { color: var(--green); } .method.POST { color: var(--blue); } .method.PUT { color: var(--amber); } .method.DELETE { color: var(--red); }
.chart { width: 100%; height: 180px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.upload { border: 2px dashed var(--border-2); border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; transition: .15s; }
.upload:hover { border-color: var(--red); background: var(--red-soft); }
.ai-box { border: 1px solid var(--red-line); background: linear-gradient(135deg, var(--red-soft), transparent 70%); border-radius: var(--radius); padding: 16px; }
.lang-btn { font-weight: 800; }

@media (max-width: 560px) {
  .logo .tag { display: none; } .logo-img { height: 25px; }
  .pnav .in { gap: 4px; padding: 10px 12px; } .pnav .btn.sm { padding: 0 9px; } .pnav .btn.icon { width: 34px; }
  .hero .in { padding: 40px 16px 36px; } .wrap { padding: 18px 14px 50px; }
  .job-card { padding: 14px; gap: 10px; } .job-card .clogo { width: 44px; height: 44px; }
  .ph h1 { font-size: 1.4rem; } .card { padding: 16px; } .drawer-b { padding: 14px; } .drawer-h { padding: 12px 14px; }
}
.item-row > svg { width: 20px; height: 20px; flex: none; color: var(--muted); }

/* search suggestions */
.sug { position: fixed; z-index: 120; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; max-height: 320px; overflow-y: auto; }
.sug-i { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.sug-i svg { color: var(--muted); flex: none; }
.sug-i small { margin-inline-start: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.sug-i:hover, .sug-i.on { background: var(--surface-2); }
.sug-i.on svg { color: var(--red); }

/* CV builder */
.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.cv-side { position: sticky; top: 80px; }
@media (max-width: 1000px) { .cv-layout { grid-template-columns: minmax(0, 1fr); } .cv-side { position: static; } }
.cv-preview { overflow: hidden; border-radius: 10px; background: #e4e4e7; }
.cv-scale { width: 794px; transform-origin: top left; }
[dir="rtl"] .cv-scale { transform-origin: top right; }
.cv-scale .cvp { box-shadow: 0 4px 24px rgba(0, 0, 0, .25); }
.cv-ed-item { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); margin-top: 10px; }
.cv-promo { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--red-line); background: linear-gradient(120deg, var(--red-soft), transparent 70%); }
