:root {
  color-scheme: dark;
  --bg: #101018;
  --surface: #181822;
  --raised: #1d1d2b;
  --line: #2c2c3d;
  --fg: #f4f3fa;
  --muted: #a9a8bc;
  --soft: #c7c4d7;
  --violet: #b6a3ff;
  --primary: #a891fa;
  --primary-hover: #c5b5ff;
  --radius: 16px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
:root[lang="ar"] { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); font-size: 1rem; line-height: 1.55; }
main { flex: 1; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #cbbdff; outline-offset: 4px; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
p { color: var(--muted); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.0625rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.15rem 0; }
::selection { background: var(--primary); color: #151125; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 9; inset: 10px auto auto 10px; background: var(--primary); color: #151125; padding: 10px; }
.site-header { border-bottom: 1px solid #252432; background: #12121b; }
.topbar { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 27px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 1.45rem; font-weight: 760; letter-spacing: -0.045em; }
.brand img { width: 35px; height: 35px; }
[dir="rtl"] .brand { letter-spacing: normal; }
#primary-nav { display: flex; gap: clamp(14px, 2.2vw, 32px); align-items: center; height: 73px; }
#primary-nav a { position: relative; display: grid; align-items: center; height: 100%; font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
#primary-nav a:hover, #primary-nav a[aria-current] { color: var(--fg); }
#primary-nav a[aria-current]::after { position: absolute; content: ""; height: 2px; border-radius: 10px; background: var(--primary); inset: auto 0 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.button, .plain, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; color: var(--fg); border: 1px solid transparent; border-radius: 9px; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.button { min-height: 43px; padding: 8px 15px; font-size: .875rem; font-weight: 710; text-align: center; }
.plain, .icon-button { min-height: 42px; background: transparent; font-size: .875rem; padding: 7px 9px; }
.icon-button { position: relative; width: 42px; flex: 0 0 42px; color: var(--muted); }
.plain:hover, .icon-button:hover, .header-bookmark[aria-current] { background: #26243a; color: var(--violet); }
.primary { background: var(--primary); color: #171229; border-color: var(--primary); }
.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.secondary { background: #222132; border-color: #343247; color: #eeebfa; }
.secondary:hover { background: #2b2940; border-color: #5e5284; }
.signin { background: #242039; border-color: #42365f; color: #e0d6ff; white-space: nowrap; }
.lang { color: var(--soft); font-weight: 650; white-space: nowrap; }
.lang .icon { width: 17px; height: 17px; }
#save-count { position: absolute; inset-block-start: 1px; inset-inline-end: 0; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 20px; color: #171229; background: var(--violet); font-size: .73rem; line-height: 1; font-weight: 800; }
.mobile-menu { display: none; }

.home { padding-block: 30px 74px; }
.hero { min-height: 446px; display: flex; align-items: center; isolation: isolate; position: relative; overflow: hidden; border-radius: 22px; border: 1px solid #35304b; background: #171428; }
.hero-image, .hero::after { position: absolute; inset: 0; height: 100%; width: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 50% 51%; }
.hero::after { content: ""; background: linear-gradient(90deg, #151326 2%, #151326f0 27%, #15132696 49%, #1513260a 81%), linear-gradient(0deg,#1513266b,transparent 40%); }
[dir="rtl"] .hero-image { transform: scaleX(-1); }
[dir="rtl"] .hero::after { background: linear-gradient(270deg, #151326 2%, #151326f0 27%, #15132696 49%, #1513260a 81%), linear-gradient(0deg,#1513266b,transparent 40%); }
.hero-content { width: min(720px, 100%); padding: 43px 0 43px 56px; animation: settle .35s ease-out both; }
[dir="rtl"] .hero-content { padding: 43px 56px 43px 0; }
@keyframes settle { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero-label { width: fit-content; display: flex; align-items: center; gap: 8px; border: 1px solid #554779; background: #221b39; border-radius: 30px; padding: 4px 11px; color: #d4c4ff; font-size: .875rem; font-weight: 650; }
.hero-label span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(3rem, 5.2vw, 5rem); line-height: 1.02; font-weight: 790; letter-spacing: -.063em; }
.hero strong { color: #c5b2ff; }
[dir="rtl"] .hero h1 { letter-spacing: normal; line-height: 1.27; font-size: clamp(2.45rem, 4.3vw, 4.1rem); }
.hero-description { max-width: 465px; color: #d4cced; font-size: 1rem; }
.hero-search { display: grid; grid-template-columns: minmax(160px,1.45fr) minmax(125px,1fr) auto; gap: 4px; max-width: 643px; background: #181626; border: 1px solid #49405e; border-radius: 13px; padding: 5px; margin-top: 23px; }
.search-field { display: flex; align-items: center; min-width: 0; gap: 7px; padding-inline: 8px; color: var(--violet); }
.search-field input, .search-field select { border: 0; background: transparent; padding: 7px 0; min-height: 40px; }
.location-field { border-inline-start: 1px solid #39354b; }
.location-field select { appearance: none; }
.location-field .chevron { width: 16px; height: 16px; margin-inline-start: -3px; pointer-events: none; }
select option { background: #1e1c2b; color: #f4f3fa; }
.popular { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; font-size: .875rem; color: #d0c6e7; }
.popular > span { margin-inline-end: 5px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 9px; border: 1px solid #343147; border-radius: 6px; background: #222031; color: #c6bedf; font-size: .875rem; line-height: 1.25; }
a.chip:hover { color: var(--fg); border-color: #8b77b8; }
.home-section { margin-top: 42px; }
.section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(1.4rem, 2.7vw, 1.85rem); letter-spacing: -.035em; }
.section-heading p { margin-top: 5px; }
[dir="rtl"] .section-heading h2 { letter-spacing: normal; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.job-grid, .category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job-card { min-width: 0; padding: 17px; display: flex; flex-direction: column; gap: 15px; transition: border-color .2s ease, transform .2s ease; }
.job-card:hover { border-color: #5a4f77; transform: translateY(-2px); }
.card-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.company-mark, .category-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 45px; height: 45px; background: #332653; color: #dfd3ff; border: 1px solid #50426d; border-radius: 10px; font-size: 1.17rem; font-weight: 780; }
.company-mark.coral { background: #482b40; border-color: #6e4159; color: #ffd3e2; }
.company-mark.mint { background: #233e3d; border-color: #38605a; color: #bdf1de; }
.company-mark.blue { background: #273855; border-color: #405d86; color: #d0e3ff; }
.company-mark.amber { background: #443820; border-color: #6b5535; color: #ffdc9d; }
.card-top h3 { margin-bottom: 3px; }
.job-name:hover, .company-name:hover { color: var(--violet); }
.company-name { font-size: .875rem; color: var(--muted); }
.save-job { min-height: 40px; width: 40px; align-self: start; background: #212031; border-color: #302e44; }
.save-job[aria-pressed="true"] { color: #cfbfff; background: #393052; border-color: #6f5f95; }
.save-job[aria-pressed="true"] .icon { fill: #bda9fc; stroke: #bda9fc; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; font-size: .875rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .icon { width: 16px; height: 16px; }
.skill-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .875rem; }
.pay { color: #e3ddf9; font-weight: 710; }
.age { color: var(--muted); }
.category-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
.category-card { min-height: 126px; display: flex; flex-direction: column; align-items: start; gap: 5px; padding: 15px; }
.category-card:hover { border-color: #7965a7; }
.category-card .category-mark { margin-bottom: 5px; }
.category-card > span:last-child { color: var(--muted); font-size: .875rem; }
.category-mark { width: 40px; height: 40px; }

.inner { padding-block: 48px 68px; min-height: 460px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1, .detail-main h1 { font-size: clamp(2rem, 4.5vw, 3.45rem); letter-spacing: -.05em; }
[dir="rtl"] .page-heading h1, [dir="rtl"] .detail-main h1 { letter-spacing: normal; }
.page-heading p { margin-top: 9px; max-width: 660px; }
.page-heading .button { margin-top: 16px; }
.filters { padding: 17px; display: grid; grid-template-columns: minmax(145px,1.45fr) repeat(4, minmax(108px,1fr)) auto; gap: 10px; align-items: end; }
.filters label, .field { display: grid; gap: 6px; font-size: .875rem; font-weight: 640; color: var(--soft); }
input:not([type="radio"], [type="checkbox"]), select, textarea { width: 100%; min-width: 0; border: 1px solid #3b384e; border-radius: 8px; padding: 9px 10px; min-height: 43px; background: #14141f; color: var(--fg); }
input::placeholder { color: #a6a0b7; opacity: 1; }
.hero-search input, .hero-search select { border: 0; background: transparent; padding-inline: 0; }
.filters select, .field select { appearance: none; padding-inline-end: 30px; background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b7add0' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
[dir="rtl"] .filters select, [dir="rtl"] .field select { background-position: left 10px center; }
.filters .button { white-space: nowrap; }
.filters .button .icon { width: 17px; }
.results-bar { margin: 23px 0 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.text-link { color: #d3c4ff; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: #f4edff; }
.empty { padding: 40px 20px; display: grid; justify-items: center; text-align: center; gap: 13px; }
.empty-icon { width: 50px; height: 50px; border-radius: 12px; background: #2d2545; color: var(--violet); display: grid; place-items: center; }
.breadcrumb { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .875rem; margin-bottom: 16px; }
.breadcrumb a:hover, .sitemap-links a:hover { color: var(--violet); }
.detail-layout, .form-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.detail-main, .detail-side, .form-panel, .form-aside, .media-card, .account-panel { padding: clamp(17px, 3vw, 29px); }
.detail-top { display: flex; justify-content: space-between; margin-bottom: 16px; }
.detail-main h1 { margin-bottom: 7px; }
.detail-main h2, .detail-side h2 { margin-bottom: 12px; }
.detail-main h2:not(:first-child) { margin-top: 23px; }
.detail-main p + p { margin-top: 10px; }
.detail-main .text-link:last-child { display: inline-block; margin-top: 13px; }
.detail-intro { margin-top: 19px; }
ol, ul { padding-inline-start: 1.3rem; }
li + li { margin-top: 6px; }
.detail-main ul { color: var(--soft); }
.detail-side .button { width: 100%; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; text-align: start; }
th, td { text-align: start; padding: 10px 7px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 640; }
.table-scroll { overflow-x: auto; }
.table-panel { padding: 16px; }
.table-panel table { min-width: 520px; }
.table-panel th, .table-panel td { padding: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; color: #c4f4de; background: #203c35; border: 1px solid #315e50; padding: 4px 8px; border-radius: 7px; font-size: .875rem; }
.status-pill .icon { width: 15px; height: 15px; }
.company-card { padding: 22px; display: grid; justify-items: start; gap: 10px; }
.company-heading .company-mark { margin-bottom: 11px; }
.sitemap-links { columns: 2; }
.sitemap-links li { break-inside: avoid; }

.form-panel form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-aside h2 { margin: 12px 0 8px; }
.form-aside p + p { margin-top: 10px; }
.form-aside .button { margin-top: 13px; }
fieldset { margin: 0; padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: 9px; }
legend { font-size: .875rem; padding: 0 6px; color: var(--soft); font-weight: 660; }
.choices, .choice-line, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; }
.choice-line { flex-wrap: nowrap; }
.choices label, .choice-line { font-size: .9375rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; vertical-align: middle; flex: 0 0 16px; }
input[type="file"]::file-selector-button { color: var(--fg); background: #302946; border: 1px solid #554a72; border-radius: 6px; padding: 5px 9px; margin-inline-end: 8px; font: inherit; cursor: pointer; }
textarea { resize: vertical; }
.form-status:empty { display: none; }
.form-status { color: #c4f4de; }
.form-status.error { color: #ffb9bc; }
.demo-credential { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.demo-credential code { display: inline-block; padding: 2px 6px; border-radius: 4px; margin-top: 5px; color: #e7dfff; background: #2c263d; }
.demo-credential .button { min-height: 37px; }
.account-panel { max-width: 640px; }
.account-panel h2 { margin: 10px 0 14px; }
.media-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 18px; }
.media-card p { margin: 9px 0 13px; }
.media-card video { width: 100%; aspect-ratio: 16/9; background: #0d0c18; border-radius: 9px; }
.media-card audio { width: 100%; min-height: 45px; }
.media-card details { margin-top: 10px; }
.media-card summary { cursor: pointer; color: var(--violet); }
#resume-sheet p { overflow-wrap: anywhere; white-space: pre-wrap; }
#resume-sheet h3 { margin-top: 12px; }
#resume-sheet { padding-top: 10px; border-top: 1px solid var(--line); }
.site-footer { margin-top: auto; border-top: 1px solid #292838; background: #13131c; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.footer-top { padding-block: 22px; }
.footer-top .brand { font-size: 1.2rem; }
.footer-top .brand img { width: 28px; height: 28px; }
.footer-top p { font-size: .875rem; margin-top: 5px; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 8px 17px; color: var(--soft); font-size: .875rem; }
.footer-top nav a:hover { color: var(--violet); }
.footer-bottom { border-top: 1px solid #292838; padding-block: 10px; font-size: .875rem; color: var(--muted); }
.toast { opacity: 0; pointer-events: none; position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 5; padding: 10px 15px; background: #31294e; border: 1px solid #706192; border-radius: 10px; color: var(--fg); max-width: calc(100% - 40px); transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1010px) {
  .wrap { width: min(1200px, calc(100% - 48px)); }
  .topbar { gap: 12px; }
  .header-actions { gap: 6px; }
  .filters { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .job-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  #primary-nav { display: none; height: auto; position: absolute; z-index: 2; inset: calc(100% + 1px) 0 auto; background: #1b1a29; border: 1px solid var(--line); padding: 8px; border-radius: 10px; }
  #primary-nav.open { display: grid; gap: 0; }
  #primary-nav a { min-height: 43px; padding: 7px 10px; border-radius: 6px; width: 100%; }
  #primary-nav a[aria-current] { background: #2b2542; }
  #primary-nav a[aria-current]::after { display: none; }
  .mobile-menu { display: inline-flex; }
  .hero-content, [dir="rtl"] .hero-content { padding: 39px 25px; }
  .hero::after, [dir="rtl"] .hero::after { background: linear-gradient(90deg,#151326f2,#1513269e),linear-gradient(0deg,#1513268e,transparent); }
  .detail-layout, .form-layout, .media-grid { grid-template-columns: 1fr; }
  .inner { padding-block: 32px 48px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  .topbar { min-height: 63px; gap: 6px; }
  .brand { font-size: 1.23rem; gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .header-actions { gap: 2px; }
  .header-actions .button { min-height: 38px; padding-inline: 6px; }
  .header-actions .icon-button { width: 34px; flex-basis: 34px; }
  .lang { gap: 4px; padding-inline: 4px; }
  .lang .icon { display: none; }
  .home { padding-block: 16px 44px; }
  .hero { border-radius: 16px; min-height: unset; }
  .hero-image { object-position: 62% center; }
  .hero-content, [dir="rtl"] .hero-content { padding: 25px 16px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.3rem); }
  [dir="rtl"] .hero h1 { font-size: clamp(2rem, 9vw, 2.9rem); }
  .hero-search { grid-template-columns: 1fr; gap: 2px; }
  .location-field { border: 0; border-top: 1px solid #39354b; }
  .hero-search .button { margin-top: 2px; }
  .home-section { margin-top: 28px; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .job-grid, .form-grid { grid-template-columns: 1fr; }
  .filters, .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters .filter-query, .filters button { grid-column: 1/-1; }
  .footer-top { align-items: start; flex-direction: column; }
  .footer-bottom { flex-wrap: wrap; gap: 3px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .resume-page .page-heading, .resume-page .form-panel, .resume-page .form-aside > h2,
  .resume-page #print-resume, .site-header, .site-footer, .skip, .toast { display: none !important; }
  :root { color-scheme: light; --fg: #16141e; --muted: #272336; --line: #d2cddd; }
  body { background: #fff; color: #16141e; }
  .resume-page, .resume-page .form-aside { width: 100%; padding: 0; border: 0; background: #fff; display: block; }
  .resume-page .form-layout { display: block; }
}
.sample-link { margin-top: 15px; }
