:root {
  --navy: #142238;
  --navy-hover: #22344f;
  --navy-8: rgba(20, 34, 56, 0.08);
  --bronze: #ae917c;
  --bronze-text: #7a5f49;
  --ivory: #f8f5ef;
  --hair: #e6e0d6;
  --hair-strong: #d4ccbe;
  --slate: #58616e;
  --white: #ffffff;
  --danger: #9b2c2c;
  --ok: #2f6b4f;
  --r: 2px;
  --font-en: "Figtree", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Figtree", system-ui, sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[lang="ar"] body, body[lang="ar"], html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--bronze-text); outline-offset: 2px; }

.hdr { background: var(--white); border-bottom: 1px solid var(--hair); }
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding-inline: var(--gutter);
  max-width: 1120px;
  margin: 0 auto;
}
.hdr .logo img { height: 30px; width: auto; }

.lang {
  display: inline-flex;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-height: 28px;
}
.lang button.on { background: var(--navy); color: var(--white); }
.lang button[data-lang="ar"] { font-family: var(--font-ar); font-size: 13px; letter-spacing: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: var(--r);
  background: transparent;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.btn:hover:not(:disabled) { background: var(--navy-8); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--navy-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: var(--white); }
.btn-danger:hover:not(:disabled) { background: #7e2222; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.link {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--bronze-text);
  font-weight: 600;
  font-size: 14px;
}
.link:hover { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input[type="text"], .field input[type="password"], .field input[type="date"], .field select, .field input[type="file"] {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r);
  font-size: 16px;
}
.field input[type="file"] { padding: 10px 14px; min-height: 0; }
.field input:focus, .field select:focus { border-color: var(--navy); outline: 2px solid var(--bronze); outline-offset: 0; }
.hint { font-size: 13px; color: var(--slate); }

.footer {
  margin-top: auto;
  padding: 28px var(--gutter);
  text-align: center;
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.footer strong { color: var(--bronze-text); font-weight: 600; }
