/* ==========================================================================
   MARRC — Global Careers
   Visual identity: modern job-board palette in the spirit of leading tech
   job marketplaces — near-black header, crisp white canvas, and a single
   confident kelly-green accent used sparingly for CTAs, links and card
   highlights. Clean sans-serif type throughout, card-based job listings.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --ink: #10131a;
  --muted: #414852;
  --muted-2: #4d5561;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --white: #ffffff;
  --line: #dde2e8;
  --line-soft: #e8ebef;

  --navy: #12151c;
  --navy-2: #1c212b;
  --navy-deep: #090b10;

  --gold: #00a19a;
  --gold-light: #3dc3bb;
  --gold-ink: #00625d;
  --soft-gold: #e0f5f3;

  --teal: #2563eb;
  --teal-dark: #1d4ed8;
  --soft-teal: #e9f0fe;

  --red: #c0392b;
  --soft-red: #fbe6df;
  --amber: #b8801f;
  --soft-amber: #f8ecd2;
  --green: #1fb361;
  --soft-green: #e4f9ee;

  --shadow-sm: 0 6px 18px rgba(10, 14, 20, 0.08);
  --shadow: 0 26px 60px rgba(6, 9, 14, 0.20);
  --shadow-gold: 0 10px 26px rgba(31, 179, 97, 0.28);

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1200px;

  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 106%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(620px 360px at 6% 0%, rgba(18, 21, 28, 0.05), transparent 60%),
    radial-gradient(760px 420px at 100% 0%, rgba(31, 179, 97, 0.08), transparent 60%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 0.9em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

/* --------------------------------- Buttons ------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85em 1.6em;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
  white-space: nowrap;
}

.button.primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(200, 153, 47, 0.38);
}

.button.ghost {
  background: transparent;
  border-color: rgba(16, 28, 44, 0.22);
  color: var(--navy);
}

.button.ghost:hover {
  border-color: var(--navy);
  background: rgba(16, 28, 44, 0.05);
}

.button.small {
  padding: 0.55em 1.1em;
  font-size: 0.82rem;
}

.button:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--navy);
}

.icon-button:hover {
  border-color: var(--navy);
}

/* ------------------------------- Pills / tags ---------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: var(--soft-teal);
  color: var(--teal-dark);
  border: 1px solid rgba(13, 139, 127, 0.22);
}

/* --------------------------------- Header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 1rem 1.5rem;
  background: rgba(9, 11, 16, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
}

.nav a {
  position: relative;
  padding: 0.3em 0;
  color: rgba(255, 255, 255, 0.75);
  opacity: 1;
  transition: color 140ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right 180ms ease;
}

.nav a:hover {
  color: var(--white);
}

.nav a:hover::after {
  right: 0;
}

.nav a[href="/candidate.html"],
.nav a[href="/client.html"] {
  padding: 0.5em 1em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
}

.nav a[href="/candidate.html"]::after,
.nav a[href="/client.html"]::after {
  display: none;
}

.nav a[href="/candidate.html"]:hover,
.nav a[href="/client.html"]:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
}

.menu-button {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.25rem, 1.8rem + 1.6vw, 4rem) 1.5rem clamp(2rem, 1.6rem + 1.2vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
}

.home-body {
  background: var(--paper);
  overflow-x: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  top: -3rem;
  width: 100vw;
  margin-left: -50vw;
  height: clamp(20rem, 16rem + 14vw, 30rem);
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.6px),
    radial-gradient(760px 460px at 12% 6%, rgba(0, 161, 154, 0.34), transparent 62%),
    radial-gradient(680px 420px at 92% 0%, rgba(0, 161, 154, 0.18), transparent 60%),
    linear-gradient(178deg, var(--navy-deep) 0%, var(--navy) 58%, var(--navy) 100%);
  background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
  border-radius: 0;
}

.hero-copy {
  color: var(--paper);
  padding-top: 0.5rem;
}

.hero-copy .eyebrow {
  color: var(--gold-light);
}

.hero-copy h1 {
  color: var(--white);
}

.hero-copy h1 .accent-text {
  color: var(--gold-light);
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: rgba(250, 245, 233, 0.06);
  border: 1px solid rgba(250, 245, 233, 0.18);
  border-radius: var(--radius);
  padding: 0.6rem;
  margin: 1.6rem 0 1.4rem;
}

.hero-search input {
  flex: 1 1 160px;
  min-width: 0;
  background: rgba(250, 245, 233, 0.08);
  border: 1px solid rgba(250, 245, 233, 0.16);
  border-radius: calc(var(--radius) - 6px);
  padding: 0.75em 1em;
  color: var(--white);
}

.hero-search input::placeholder {
  color: rgba(250, 245, 233, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.hero-copy .button.ghost {
  border-color: rgba(250, 245, 233, 0.3);
  color: var(--paper);
}

.hero-copy .button.ghost:hover {
  border-color: var(--gold-light);
  background: rgba(250, 245, 233, 0.08);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(250, 245, 233, 0.6);
}

.hero-badges span::before {
  content: "✦ ";
  color: var(--gold-light);
}

/* Boarding-pass card — the signature element */

.hero-media {
  position: relative;
}

.hero-media img {
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  max-height: min(60vh, 26rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bridge-panel {
  position: relative;
  margin-top: -3.2rem;
  margin-left: clamp(0.5rem, 4vw, 2.4rem);
  margin-right: -0.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  isolation: isolate;
}

.bridge-panel::before,
.bridge-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
  z-index: 2;
}

.bridge-panel::before {
  left: -11px;
}

.bridge-panel::after {
  right: -11px;
}

.bridge-card {
  padding: 1.1rem 1.2rem;
  border-right: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bridge-card:last-of-type {
  border-right: none;
}

.bridge-card span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.bridge-card strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy);
}

.bridge-card.active {
  background: var(--soft-gold);
}

.bridge-output {
  grid-column: 1 / -1;
  padding: 1rem 1.2rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  position: relative;
}

.bridge-output::before {
  content: "VERIFIED RA";
  position: absolute;
  top: -14px;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--teal-dark);
  background: var(--soft-teal);
  border: 1px solid rgba(13, 139, 127, 0.35);
  padding: 0.3em 0.6em;
  border-radius: 999px;
  transform: rotate(4deg);
}

/* ------------------------------ Stats grid -------------------------------- */

.stats-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: background 180ms ease;
}

.stat-card:first-child {
  border-left: none;
}

.stat-card:hover {
  transform: none;
  box-shadow: none;
  border-left-color: rgba(255, 255, 255, 0.10);
  background: rgba(0, 161, 154, 0.10);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 0;
  width: 0;
  transition: width 220ms ease;
}

.stat-card:hover::after {
  width: 100%;
}

.stat-card span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.stat-card strong {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* ----------------------------- Portal strip -------------------------------- */

.portal-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.portal-strip a {
  background: linear-gradient(160deg, var(--navy-2), var(--navy-deep));
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.portal-strip a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-bottom-color: var(--gold);
}

.portal-strip strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-light);
}

.portal-strip span {
  font-size: 0.88rem;
  color: rgba(250, 245, 233, 0.72);
}

/* --------------------------------- Sections -------------------------------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 2.5rem + 1.5vw, 5rem) 1.5rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.section.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: start;
}

/* job-tools */

.job-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.job-tools-grid article {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.job-tools-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.job-tools-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.job-tools-grid span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* process — a genuine ordered sequence, numbers earn their place */

.process ol,
#processList {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.process li,
#processList li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem 1.1rem 1rem;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
}

.process li::before,
#processList li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  margin-bottom: 0.4em;
}

/* services */

.services-band {
  padding-bottom: 1.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.service-grid article {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.3rem;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
}

/* compliance / info-grid (RA info page) */

.compliance {
  display: block;
}

.info-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.info-card h3 {
  color: var(--gold-ink);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8em;
}

.info-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4em 0.9em;
  font-size: 0.86rem;
}

.info-card dt {
  color: var(--muted-2);
  font-weight: 600;
}

.info-card dd {
  margin: 0;
  color: var(--ink);
}

.info-card ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.86rem;
  color: var(--ink);
  display: grid;
  gap: 0.4em;
}

/* ---------------------------------- Forms ---------------------------------- */

.forms {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.form-panel {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.form-panel input,
.form-panel select,
.form-panel textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
#adminLoginForm input,
#candidateLoginForm input,
#candidateSignupForm input,
#candidateResetForm input,
#clientLoginForm input,
#clientSignupForm input,
#clientResetForm input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 139, 127, 0.15);
}

.form-panel textarea,
.admin-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-card {
  background: linear-gradient(160deg, var(--navy-2), var(--navy-deep));
  color: var(--paper);
}

.contact-card h2 {
  color: var(--white);
}

.contact-card #contactDetails {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(250, 245, 233, 0.78);
  margin-bottom: 1rem;
}

.contact-card #contactDetails strong {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.file-field {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  background: var(--paper-2);
}

.file-field input {
  cursor: pointer;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  left: -9999px !important;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--teal-dark);
  margin: 0;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.25rem 0 0.75rem;
}

.break-all {
  word-break: break-all;
}

.upload-security-notice {
  padding: 10px 12px;
  border: 1px solid rgba(14, 116, 144, 0.24);
  background: rgba(236, 253, 245, 0.72);
  color: #155e75;
  font-size: 0.92rem;
}

.upload-security-notice.warning {
  border-color: rgba(185, 28, 28, 0.28);
  background: rgba(254, 242, 242, 0.86);
  color: #991b1b;
}

/* Payment panel */

.payment-panel {
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  background: var(--soft-gold);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.payment-panel.hidden {
  display: none;
}

.payment-methods {
  display: grid;
  gap: 0.6rem;
}

.payment-methods article {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.7em 0.9em;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line-soft);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.88rem;
  color: var(--ink);
}

.toggle-row input {
  width: auto;
}

/* ------------------------------- Auth portals ------------------------------ */

.portal-body {
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(700px 420px at 12% 8%, rgba(185, 134, 15, 0.12), transparent 60%),
    radial-gradient(760px 460px at 92% 2%, rgba(12, 128, 115, 0.20), transparent 60%),
    var(--navy-deep);
}

.portal {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem) 1.5rem;
}

.login-panel {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.login-panel .brand {
  margin-bottom: 1.4rem;
}

.login-panel form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.signup-panel {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.5rem;
}

.password-field input {
  min-width: 0;
}

.password-toggle {
  min-width: 72px;
  min-height: 46px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-weight: 800;
  cursor: pointer;
}

.password-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.password-rule {
  margin: -0.25rem 0 0;
  color: #9a3412;
  font-size: 0.86rem;
  line-height: 1.45;
}

.signup-panel.hidden,
.hidden {
  display: none !important;
}

/* -------------------------------- Dashboard --------------------------------- */

.dashboard {
  width: 100%;
  max-width: 1240px;
  margin: 1.5rem auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  min-height: 78vh;
}

.dashboard-side {
  background: linear-gradient(180deg, var(--navy-2), var(--navy-deep));
  color: var(--paper);
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-side .brand {
  margin-bottom: 1rem;
}

.dashboard-side .brand strong,
.dashboard-side .brand small {
  color: var(--paper);
}

.dashboard-side .brand small {
  color: rgba(250, 245, 233, 0.55);
}

.tab-button {
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(250, 245, 233, 0.72);
  padding: 0.7em 0.9em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 140ms ease, color 140ms ease;
}

.tab-button:hover {
  background: rgba(250, 245, 233, 0.08);
  color: var(--paper);
}

.tab-button.active {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
}

.dashboard-side .button.ghost {
  margin-top: auto;
  border-color: rgba(250, 245, 233, 0.28);
  color: var(--paper);
}

.dashboard-main {
  padding: 1.8rem 2rem 6rem;
  overflow-y: auto;
}

.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.metric,
.metric-row > * {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.metric-row > * span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.35em;
}

.metric-row > * strong {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--navy);
}

.table-wrap {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.4rem;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 560px;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.table-wrap th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--paper-2);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.table-link {
  color: var(--teal-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cards-list {
  display: grid;
  gap: 0.8rem;
}

.cards-list > * {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.88rem;
}

.record-card {
  flex-direction: column;
  align-items: flex-start !important;
}

.record-card h3 {
  margin-bottom: 0.1em;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.button.danger {
  border-color: rgba(179, 64, 43, 0.4);
  color: var(--red);
}

.button.danger:hover {
  border-color: var(--red);
  background: var(--soft-red);
}

.panel-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.6rem 0 1.2rem;
  max-width: 60ch;
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 0.4em;
  margin-left: 0.4em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.pill-count:empty {
  display: none;
}

.pill.status-new,
.pill.status-pending {
  background: var(--soft-amber);
  color: var(--gold-ink);
  border-color: rgba(184, 128, 31, 0.3);
}

.pill.status-approved,
.pill.status-active {
  background: var(--soft-green);
  color: var(--green);
  border-color: rgba(31, 122, 82, 0.28);
}

.pill.status-rejected {
  background: var(--soft-red);
  color: var(--red);
  border-color: rgba(179, 64, 43, 0.28);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
}

.admin-form textarea {
  grid-column: 1 / -1;
}

.admin-form button {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-form .form-status {
  grid-column: 1 / -1;
}

.payment-admin-form .toggle-row {
  grid-column: 1 / -1;
}

.requirement-rows {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.9rem;
}

.requirement-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.8rem;
  background: var(--paper-2);
}

.requirement-row legend {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding: 0 0.2rem;
}

#addRequirementRow {
  grid-column: 1 / -1;
  justify-self: start;
}

/* ---------------------------------- Jobs ----------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.filters input,
.filters select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.7em 0.9em;
}

.filters input {
  flex: 1 1 220px;
}

.job-list {
  display: grid;
  gap: 1rem;
}

.job-list.job-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.responsibilities-box {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
}

.responsibilities-box h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.responsibilities-list {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 0.35em;
  font-size: 0.9rem;
  color: var(--ink);
}

.responsibilities-list li::marker {
  color: var(--teal);
}

.responsibilities-preview {
  font-size: 0.82rem;
  color: var(--muted-2);
}

.job-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
  display: grid;
  gap: 0.9rem;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.job-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
}

.job-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.job-card h3 {
  margin-bottom: 0.3em;
}

.job-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.empty-state {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
}

.empty-state strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ---------------------------------- Modal ----------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 15, 28, 0.62);
  backdrop-filter: blur(3px);
}

.modal.open {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 84vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.modal-card .icon-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* --------------------------------- Footer ----------------------------------- */

.footer {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 2rem 1.5rem 2.6rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer strong {
  font-family: var(--font-display);
  color: var(--navy);
}

.footer p {
  margin: 0.2em 0 0;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  font-size: 0.85rem;
}

.footer-links a {
  opacity: 0.75;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --------------------------------- Notice ------------------------------------ */

.notice {
  max-width: var(--max);
  margin: 1rem auto;
  padding: 1em 1.3em;
  border-radius: var(--radius-sm);
  background: var(--soft-red);
  color: var(--red);
  border: 1px solid rgba(179, 64, 43, 0.3);
  font-size: 0.9rem;
}

/* ------------------------------ Reveal animation ------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------- Responsive ---------------------------------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .section.split,
  .forms {
    grid-template-columns: 1fr;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .dashboard-side .brand {
    margin-right: auto;
    margin-bottom: 0;
  }

  .dashboard-side .button.ghost {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.6em 0;
  }

  .menu-button {
    display: inline-flex;
  }

  .bridge-panel {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .login-panel,
  .form-panel {
    padding: 1.4rem;
  }
}

/* ============================================================================
   Responsibilities dialog (admin) — replaces the old plain textarea / prompt()
   ============================================================================ */

.responsibilities-field {
  display: grid;
  gap: 0.5rem;
}

.responsibilities-field > label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.responsibilities-summary {
  font-size: 0.85rem;
  color: var(--muted-2);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
}

.responsibilities-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(560px, 92vw);
  box-shadow: var(--shadow);
}

.responsibilities-dialog::backdrop {
  background: rgba(9, 11, 16, 0.6);
  backdrop-filter: blur(2px);
}

.responsibilities-dialog form {
  padding: 1.6rem;
  display: grid;
  gap: 0.9rem;
}

.responsibilities-dialog h3 {
  margin: 0;
}

.dialog-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.responsibilities-rows {
  display: grid;
  gap: 0.6rem;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.responsibility-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.responsibility-row .responsibility-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65em 0.85em;
  font: inherit;
  color: var(--ink);
}

.responsibility-row .responsibility-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--soft-gold);
}

.remove-responsibility {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--muted-2);
}

.remove-responsibility:hover {
  border-color: var(--red);
  color: var(--red);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

/* ============================================================================
   Cookie consent banner + preferences dialog
   ============================================================================ */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 780px;
  margin: 0 auto;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
  display: grid;
  gap: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.cookie-banner strong {
  color: var(--white);
}

.cookie-banner a {
  color: var(--gold-light);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.cookie-banner .button.ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.cookie-banner .button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.cookie-settings-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(560px, 92vw);
  max-height: 88vh;
  box-shadow: var(--shadow);
}

.cookie-settings-dialog::backdrop {
  background: rgba(9, 11, 16, 0.6);
  backdrop-filter: blur(2px);
}

.cookie-settings-dialog form {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
  max-height: 88vh;
  overflow-y: auto;
}

.cookie-settings-dialog h3 {
  margin: 0;
}

.cookie-settings-dialog > form > p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-category {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-category-head strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.cookie-category p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cookie-toggle .track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 140ms ease;
}

.cookie-toggle .track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 140ms ease;
}

.cookie-toggle input:checked + .track {
  background: var(--gold);
}

.cookie-toggle input:checked + .track::before {
  transform: translateX(18px);
}

.cookie-toggle input:disabled + .track {
  background: var(--gold);
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================================
   Legal pages (Privacy Policy / Cookie Policy / Terms)
   ============================================================================ */

.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 1.5rem 5rem;
}

.legal-page .eyebrow {
  margin-bottom: 0.6em;
}

.legal-page h1 {
  margin-bottom: 0.3em;
}

.legal-updated {
  color: var(--muted-2);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2.2em;
  font-size: 1.25rem;
  padding-top: 0.4em;
  border-top: 1px solid var(--line-soft);
}

.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.4em;
}

.legal-page h3 {
  font-size: 1.02rem;
  margin-top: 1.4em;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.3em;
  display: grid;
  gap: 0.4em;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9rem;
}

.legal-page th,
.legal-page td {
  text-align: left;
  padding: 0.6em 0.8em;
  border: 1px solid var(--line-soft);
  vertical-align: top;
}

.legal-page th {
  background: var(--paper-2);
  color: var(--ink);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 1.6rem 0 2.4rem;
  padding: 1rem 1.2rem;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.legal-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.legal-nav a:hover {
  text-decoration: underline;
}

.legal-contact-box {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.4em 0;
}

.legal-contact-box p {
  margin: 0.2em 0;
}

.footer-links a[href*="policy"],
.footer-links a[href*="terms"],
.footer-links button.cookie-settings-link {
  font-size: inherit;
}

button.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

/* ============================================================================
   Client dashboard — applicant counts & pushed candidate profiles
   ============================================================================ */

.pill.accent {
  background: var(--soft-gold);
  color: var(--gold-ink);
  font-weight: 600;
}

.pushed-candidates {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 0.6rem;
}

.pushed-candidates h4 {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pushed-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}

.pushed-candidate strong {
  display: block;
  color: var(--ink);
}

.muted-line {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* ============================================================================
   Admin — application edit dialog & push-to-client controls
   ============================================================================ */

.edit-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(520px, 92vw);
  box-shadow: var(--shadow);
}

.edit-dialog::backdrop {
  background: rgba(9, 11, 16, 0.6);
  backdrop-filter: blur(2px);
}

.edit-dialog form {
  padding: 1.6rem;
  display: grid;
  gap: 0.7rem;
  max-height: 82vh;
  overflow-y: auto;
}

.edit-dialog h3 {
  margin: 0 0 0.2rem;
}

.edit-dialog label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.edit-dialog input,
.edit-dialog textarea,
.edit-dialog select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.8em;
  font: inherit;
  color: var(--ink);
}

.pushed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-ink);
  background: var(--soft-gold);
  border-radius: 999px;
  padding: 0.25em 0.7em;
}

/* ============================================================================
   Upload progress indicator (apply form)
   ============================================================================ */

.upload-progress {
  display: none;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.upload-progress.active {
  display: flex;
}

.upload-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  transition: width 120ms ease;
}

.upload-progress-label {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  min-width: 3.4em;
  text-align: right;
}

.upload-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--soft-gold);
  color: var(--gold-ink);
  font-weight: 600;
  font-size: 0.88rem;
}

.upload-success.active {
  display: flex;
}

.upload-success svg {
  flex-shrink: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.job-client-assign {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4em 0.6em;
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--white);
}

.application-status-banner {
  margin-top: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--soft-teal);
  color: var(--teal-dark);
  font-size: 0.86rem;
  line-height: 1.5;
}

.application-status-banner strong {
  color: var(--teal-dark);
}

.application-status-banner.empty {
  background: var(--paper-2);
  color: var(--muted);
}

.file-chip {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: -0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--soft-gold);
  border: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--gold-ink);
}

.file-chip.active {
  display: flex;
}

.file-chip .icon-button {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  font-size: 1rem;
  color: var(--gold-ink);
}

.file-chip .icon-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.requirement-responsibilities-label {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.requirement-responsibilities-label textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.8em;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  resize: vertical;
}

.role-details-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.role-details-summary {
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* ============================================================================
   Accessibility: visible focus indicator for keyboard navigation
   ============================================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline-color: var(--gold-light);
}

/* ============================================================================
   2026 premium UI refresh
   Global readability, stronger hierarchy, richer surfaces and accessible states.
   ============================================================================ */

:root {
  --ink: #13201d;
  --muted: #4d5b57;
  --muted-2: #697772;
  --paper: #f7faf8;
  --paper-2: #edf4f1;
  --white: #ffffff;
  --line: #cfdcd7;
  --line-soft: #e1ebe7;

  --navy: #10231f;
  --navy-2: #16352f;
  --navy-deep: #071411;

  --gold: #18a999;
  --gold-light: #68d7c9;
  --gold-ink: #06776d;
  --soft-gold: #e3faf6;

  --teal: #315fbe;
  --teal-dark: #224899;
  --soft-teal: #e7eefc;

  --shadow-sm: 0 12px 30px rgba(10, 31, 26, 0.10);
  --shadow: 0 28px 70px rgba(4, 18, 15, 0.22);
  --shadow-gold: 0 14px 32px rgba(24, 169, 153, 0.25);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

html {
  font-size: 100%;
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 248, 0.96) 20rem),
    radial-gradient(900px 520px at 0% 0%, rgba(24, 169, 153, 0.16), transparent 64%),
    radial-gradient(780px 520px at 100% 4%, rgba(49, 95, 190, 0.12), transparent 62%),
    var(--paper);
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

p {
  max-width: 68ch;
}

a {
  text-underline-offset: 3px;
}

.site-header {
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  background: rgba(7, 20, 17, 0.88);
  box-shadow: 0 16px 36px rgba(3, 11, 9, 0.18);
}

.brand-mark {
  border-radius: 12px;
  background:
    linear-gradient(135deg, #ffffff 0%, #dffbf7 42%, var(--gold-light) 100%);
  box-shadow: inset 0 0 0 1px rgba(7, 20, 17, 0.12), 0 10px 24px rgba(24, 169, 153, 0.24);
}

.nav {
  gap: clamp(0.65rem, 1.4vw, 1.4rem);
}

.nav a {
  border-radius: 999px;
  padding: 0.48em 0.1em;
}

.nav a[href="/candidate.html"],
.nav a[href="/client.html"] {
  box-shadow: 0 10px 24px rgba(24, 169, 153, 0.18);
}

.button {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 750;
}

.button.primary {
  color: #05231f;
  background: linear-gradient(135deg, #84ecdd, #18a999 58%, #0b8679);
}

.button.primary:hover {
  box-shadow: 0 16px 34px rgba(24, 169, 153, 0.36);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 35, 31, 0.18);
}

.button.ghost:hover {
  background: var(--white);
}

.hero {
  max-width: 1260px;
  min-height: calc(100vh - 5.5rem);
  padding-top: clamp(3rem, 5vw, 6rem);
  padding-bottom: clamp(3rem, 4vw, 5rem);
}

.hero::before {
  height: 100%;
  min-height: 38rem;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(760px 460px at 18% 10%, rgba(104, 215, 201, 0.28), transparent 62%),
    radial-gradient(660px 440px at 88% 18%, rgba(49, 95, 190, 0.22), transparent 62%),
    linear-gradient(145deg, #071411 0%, #12312c 52%, #09201c 100%);
  background-size: 42px 42px, 100% 100%, 100% 100%, 100% 100%;
}

.hero-copy {
  padding: clamp(0.5rem, 2vw, 1.2rem) 0;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 1.6rem + 3.2vw, 5rem);
  max-width: 11ch;
}

.hero-text {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.22rem);
  color: rgba(255, 255, 255, 0.86);
}

.hero-search {
  padding: 0.7rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero-search input {
  min-height: 48px;
  color: var(--white);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 650;
}

.hero-media {
  align-self: stretch;
  display: grid;
  align-content: center;
}

.hero-media img {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: clamp(0.6rem, 1.2vw, 1rem);
  aspect-ratio: 1.2 / 1;
}

.bridge-panel {
  border: 1px solid rgba(16, 35, 31, 0.08);
}

.section {
  max-width: 1260px;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.latest-jobs {
  padding-top: clamp(2.4rem, 4vw, 4.5rem);
}

.stats-grid {
  max-width: 1260px;
  padding: 0;
  margin-block: 0 1.5rem;
  background:
    linear-gradient(135deg, rgba(104, 215, 201, 0.13), transparent 40%),
    linear-gradient(135deg, var(--navy-2), var(--navy-deep));
  box-shadow: var(--shadow-sm);
}

.stat-card {
  min-height: 150px;
}

.experience-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.experience-grid article,
.job-tools-grid article,
.service-grid article,
.info-card,
.job-card,
.form-panel,
.metric,
.metric-row > *,
.admin-form,
.cards-list > *,
.empty-state {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    var(--white);
  border: 1px solid rgba(207, 220, 215, 0.9);
  box-shadow: 0 14px 34px rgba(10, 31, 26, 0.07);
}

.experience-grid article {
  border-radius: var(--radius);
  padding: 1.35rem;
}

.experience-grid span {
  display: inline-flex;
  color: var(--gold-ink);
  font-family: var(--font-mono);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.experience-grid strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.experience-grid p {
  margin: 0;
  font-size: 0.9rem;
}

.portal-strip {
  max-width: 1260px;
}

.portal-strip a {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(104, 215, 201, 0.18), transparent 48%),
    linear-gradient(160deg, var(--navy-2), var(--navy-deep));
}

.job-tools-grid article,
.process li,
#processList li,
.service-grid article {
  border-left-width: 4px;
}

.process li,
#processList li {
  box-shadow: 0 12px 28px rgba(10, 31, 26, 0.07);
}

.filters {
  padding: 0.8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.filters input,
.filters select,
.form-panel input,
.form-panel select,
.form-panel textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
#adminLoginForm input,
#candidateLoginForm input,
#candidateSignupForm input,
#candidateResetForm input,
#clientLoginForm input,
#clientSignupForm input,
#clientResetForm input,
.edit-dialog input,
.edit-dialog textarea,
.edit-dialog select {
  min-height: 46px;
  background: #fbfefd;
}

.job-card {
  border-radius: 18px;
  padding: 1.55rem;
}

.job-card::before {
  top: 18px;
  bottom: 18px;
  width: 4px;
}

.pill {
  color: #0a5d55;
  background: #e7faf6;
  border-color: rgba(24, 169, 153, 0.24);
}

.responsibilities-box {
  background: #f3f8f6;
}

.form-panel {
  border-radius: 20px;
}

.contact-card,
.portal-body {
  background:
    radial-gradient(720px 420px at 10% 4%, rgba(104, 215, 201, 0.18), transparent 65%),
    radial-gradient(760px 480px at 92% 0%, rgba(49, 95, 190, 0.18), transparent 65%),
    linear-gradient(145deg, var(--navy-2), var(--navy-deep));
}

.login-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dashboard-side {
  background:
    linear-gradient(160deg, rgba(104, 215, 201, 0.14), transparent 42%),
    linear-gradient(180deg, var(--navy-2), var(--navy-deep));
}

.tab-button {
  min-height: 42px;
}

.table-wrap {
  box-shadow: 0 12px 28px rgba(10, 31, 26, 0.06);
}

.table-wrap th {
  color: #40524d;
}

.footer {
  max-width: 1260px;
  margin-top: 1rem;
}

.modal-card,
.responsibilities-dialog,
.cookie-settings-dialog,
.edit-dialog {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-banner {
  background:
    linear-gradient(135deg, rgba(104, 215, 201, 0.13), transparent 45%),
    var(--navy-deep);
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .experience-band,
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(10, 31, 26, 0.12);
  }

  .nav a {
    color: var(--ink);
  }

  .nav a[href="/candidate.html"],
  .nav a[href="/client.html"] {
    width: auto;
  }

  .hero-search,
  .filters,
  .job-actions,
  .dialog-actions,
  .auth-switch {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search .button,
  .filters .button,
  .job-actions .button,
  .dialog-actions .button,
  .auth-switch .button {
    width: 100%;
  }

  .stats-grid {
    border-radius: 0;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .section {
    padding-inline: 1rem;
  }

  .portal {
    padding-inline: 1rem;
  }

  .dashboard-main {
    padding: 1.2rem 1rem 4rem;
  }
}

/* ---------------------- Premium reference theme layer --------------------- */

:root {
  --ink: #101722;
  --muted: #5d6572;
  --paper: #f7f3eb;
  --paper-2: #f4efe4;
  --white: #ffffff;
  --line: rgba(210, 195, 159, 0.34);
  --line-soft: rgba(214, 202, 176, 0.42);
  --navy: #091225;
  --navy-2: #0d1830;
  --navy-deep: #020713;
  --gold: #d9b866;
  --gold-light: #ead08a;
  --gold-ink: #9a7428;
  --soft-gold: #fbf4df;
  --teal: #6d829f;
  --teal-dark: #40546f;
  --soft-teal: #e8edf4;
  --shadow-sm: 0 14px 34px rgba(4, 10, 22, 0.10);
  --shadow: 0 30px 80px rgba(3, 8, 18, 0.28);
  --shadow-gold: 0 18px 36px rgba(217, 184, 102, 0.28);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(247, 243, 235, 0.96), rgba(247, 243, 235, 0.98)),
    var(--paper);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

h3,
.brand strong,
.bridge-card strong {
  font-family: var(--font-body);
  font-weight: 650;
}

.site-header {
  background: rgba(3, 8, 18, 0.88);
  border-bottom: 1px solid rgba(217, 184, 102, 0.18);
  box-shadow: 0 20px 45px rgba(3, 8, 18, 0.22);
  backdrop-filter: blur(18px);
}

.brand-mark {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 184, 102, 0.18) 0 34%, transparent 35%),
    linear-gradient(135deg, rgba(234, 208, 138, 0.92), rgba(154, 116, 40, 0.64));
  box-shadow: inset 0 0 0 1px rgba(234, 208, 138, 0.55), 0 10px 26px rgba(0, 0, 0, 0.22);
}

.button {
  border-radius: 999px;
  min-height: 46px;
  letter-spacing: 0;
}

.button.primary {
  color: #120c03;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 18px 42px rgba(217, 184, 102, 0.30);
}

.button.primary:hover {
  box-shadow: 0 22px 48px rgba(217, 184, 102, 0.42);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(9, 18, 37, 0.16);
}

.home-body {
  background:
    linear-gradient(180deg, rgba(247, 243, 235, 0.86), rgba(247, 243, 235, 0.98) 44rem),
    var(--paper);
}

.hero {
  min-height: calc(100vh - 4.6rem);
  align-items: end;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  justify-content: center;
}

.hero::before {
  min-height: 42rem;
  height: calc(100% + 2rem);
  background-image:
    linear-gradient(90deg, rgba(9, 18, 37, 0.72) 0%, rgba(9, 18, 37, 0.58) 38%, rgba(9, 18, 37, 0.88) 100%),
    linear-gradient(180deg, rgba(9, 18, 37, 0.08) 0%, rgba(9, 18, 37, 0.74) 78%, rgba(9, 18, 37, 0.96) 100%),
    url("/dubai-skyline.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center 42%;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 1.7rem + 4vw, 5.9rem);
  font-weight: 600;
  line-height: 0.98;
}

.hero-copy h1 .accent-text {
  color: var(--gold-light);
  font-style: italic;
}

.hero-text {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 400;
}

.hero-search {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.hero-search input {
  border: 0;
  border-bottom: 1px solid rgba(234, 208, 138, 0.22);
  border-radius: 0;
  background: transparent;
}

.hero-media img {
  opacity: 0.92;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(234, 208, 138, 0.26);
}

.bridge-panel,
.experience-grid article,
.job-tools-grid article,
.service-grid article,
.info-card,
.job-card,
.form-panel,
.metric,
.metric-row > *,
.admin-form,
.cards-list > *,
.empty-state {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(210, 195, 159, 0.42);
  box-shadow: 0 18px 42px rgba(9, 18, 37, 0.08);
}

.stats-grid,
.portal-strip a {
  background:
    linear-gradient(135deg, rgba(217, 184, 102, 0.16), transparent 48%),
    linear-gradient(160deg, #0d1830, #030817);
}


.portal-body {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(9, 18, 37, 0.30) 0%, rgba(9, 18, 37, 0.74) 51%, rgba(2, 7, 19, 0.98) 100%),
    linear-gradient(180deg, rgba(9, 18, 37, 0.04), rgba(9, 18, 37, 0.82)),
    url("/dubai-skyline.jpg") center / cover no-repeat,
    var(--navy-deep);
}

.portal-body::before {
  content: "MARRC.";
  position: fixed;
  left: clamp(1.25rem, 4vw, 3rem);
  top: clamp(1.5rem, 5vw, 3.5rem);
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.35rem + 1vw, 2.45rem);
  color: rgba(255, 255, 255, 0.88);
  pointer-events: none;
}

.portal-body::after {
  content: "Your global career, tracked end to end.";
  position: fixed;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(2rem, 7vw, 5rem);
  z-index: 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.55rem + 2.6vw, 4rem);
  line-height: 1.04;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.portal {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  align-items: center;
  min-height: 100vh;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1.25rem, 7vw, 6rem);
}

.login-panel {
  max-width: 500px;
  margin: 0;
  padding: clamp(2rem, 3.6vw, 3.6rem);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(2, 7, 19, 0.28);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(1px);
}

.login-panel .brand {
  color: rgba(255, 255, 255, 0.88);
}

.login-panel h1 {
  color: #fff7e8;
  font-size: clamp(2.2rem, 1.65rem + 1.8vw, 3.55rem);
}

.login-panel p {
  color: rgba(255, 255, 255, 0.68);
}

.login-panel form {
  gap: 1.2rem;
}

.login-panel input,
#adminLoginForm input,
#candidateLoginForm input,
#candidateSignupForm input,
#candidateResetForm input,
#clientLoginForm input,
#clientSignupForm input,
#clientResetForm input {
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.login-panel input[type="file"],
#candidateSignupForm input[type="file"],
#clientSignupForm input[type="file"] {
  color: #000000;
  background: transparent;
  border: 0;
  padding-left: 0;
  padding-right: 0;
}

.login-panel input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.login-panel input:focus {
  border-color: rgba(234, 208, 138, 0.72);
  box-shadow: 0 8px 20px rgba(217, 184, 102, 0.10);
}

.login-panel .password-field {
  position: relative;
  display: block;
}

.login-panel .password-field input {
  width: 100%;
  padding-right: 4.8rem;
}

.login-panel .password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  min-width: 0;
  min-height: 0;
  height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(234, 208, 138, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(234, 208, 138, 0.96);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(-50%);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.login-panel .password-toggle:hover,
.login-panel .password-toggle:focus-visible {
  border-color: rgba(234, 208, 138, 0.78);
  background: rgba(234, 208, 138, 0.16);
  color: #fff7e8;
  outline: none;
}

.login-panel .button.primary {
  width: 100%;
  min-height: 56px;
}

.login-panel .button.ghost {
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

.signup-panel {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.dashboard {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(234, 208, 138, 0.24);
}

.dashboard-side {
  background:
    linear-gradient(160deg, rgba(217, 184, 102, 0.18), transparent 42%),
    linear-gradient(180deg, #0d1830, #030817);
}

.tab-button.active {
  background: var(--gold);
  color: #120c03;
}

@media (max-width: 960px) {
  .portal-body::after {
    display: none;
  }

  .portal {
    justify-content: center;
  }

  .login-panel {
    max-width: 560px;
    background: rgba(2, 7, 19, 0.68);
    border: 1px solid rgba(234, 208, 138, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 760px) {
  .hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .hero::before {
    min-height: 44rem;
    background-position: center, center, 45% center;
  }

  .hero-search {
    border-radius: 18px;
  }

  .portal-body::before {
    position: absolute;
  }

  .portal {
    min-height: 100vh;
    padding-top: 6rem;
  }
}

/* -------------------- Global vibrant refinement layer -------------------- */

:root {
  --vibrant-teal: #18d6c5;
  --vibrant-coral: #ff7a59;
  --vibrant-emerald: #40d38a;
  --vibrant-violet: #7a6ff0;
  --vibrant-sky: #59b8ff;
  --premium-cream: #fff7e8;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.94) 0%, rgba(241, 250, 247, 0.96) 44%, rgba(255, 255, 255, 0.98) 100%),
    linear-gradient(125deg, rgba(24, 214, 197, 0.14), rgba(255, 122, 89, 0.10) 46%, rgba(122, 111, 240, 0.12));
}

.site-header {
  background:
    linear-gradient(90deg, rgba(2, 7, 19, 0.94), rgba(8, 30, 49, 0.90) 54%, rgba(20, 50, 43, 0.92));
  border-top: 4px solid var(--vibrant-teal);
}

.brand strong {
  letter-spacing: 0.08em;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.1rem;
  right: 0.1rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--vibrant-teal), var(--vibrant-coral));
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-body {
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.02), rgba(255, 247, 232, 0.94) 34rem, rgba(242, 250, 247, 0.98) 100%),
    linear-gradient(120deg, rgba(24, 214, 197, 0.18), rgba(255, 122, 89, 0.12) 42%, rgba(89, 184, 255, 0.12));
}

.hero::before {
  background-image:
    linear-gradient(100deg, rgba(3, 8, 18, 0.88) 0%, rgba(8, 29, 48, 0.68) 46%, rgba(3, 8, 18, 0.90) 100%),
    linear-gradient(180deg, rgba(24, 214, 197, 0.10), rgba(255, 122, 89, 0.12) 54%, rgba(3, 8, 18, 0.92) 100%),
    url("/dubai-skyline.jpg");
}

.hero-copy h1 {
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-copy h1 .accent-text {
  background: linear-gradient(90deg, var(--gold-light), var(--vibrant-teal), var(--vibrant-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-search {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 22px 55px rgba(0, 0, 0, 0.22);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 44%, var(--vibrant-coral) 100%);
  box-shadow: 0 18px 42px rgba(255, 122, 89, 0.22), 0 8px 22px rgba(217, 184, 102, 0.28);
}

.button.primary:hover {
  box-shadow: 0 24px 56px rgba(255, 122, 89, 0.28), 0 12px 28px rgba(24, 214, 197, 0.18);
}

.hero-copy .button.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-media img {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 255, 251, 0.88));
  border: 1px solid rgba(24, 214, 197, 0.20);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.bridge-panel {
  border-color: rgba(24, 214, 197, 0.18);
}

.bridge-card.active {
  background: linear-gradient(135deg, rgba(255, 247, 232, 0.98), rgba(225, 255, 249, 0.96));
}

.latest-jobs,
.experience-band,
.job-tools,
.process,
.section.compliance,
.services-band,
.contact-grid,
.form-panel,
.legal-page {
  position: relative;
}

.section {
  padding-top: clamp(2.5rem, 4vw, 4.8rem);
  padding-bottom: clamp(2.5rem, 4vw, 4.8rem);
}

.section-head {
  align-items: end;
}

.section-head h1,
.section-head h2,
.experience-band h2,
.process h2 {
  color: #081225;
}

.stats-grid {
  background:
    linear-gradient(120deg, rgba(24, 214, 197, 0.16), rgba(255, 122, 89, 0.12) 48%, rgba(217, 184, 102, 0.16)),
    linear-gradient(160deg, #071226, #061a18);
  border: 1px solid rgba(24, 214, 197, 0.18);
}

.stat-card strong {
  color: var(--premium-cream);
}

.stat-card span {
  color: rgba(234, 208, 138, 0.86);
}

.experience-grid article,
.job-tools-grid article,
.job-card,
.service-grid article,
.info-card,
.form-panel,
.admin-form,
.metric,
.cards-list > *,
.table-wrap {
  border-color: rgba(18, 91, 91, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 254, 251, 0.88)),
    var(--white);
  box-shadow: 0 16px 44px rgba(8, 18, 37, 0.08);
}

.experience-grid article:hover,
.job-tools-grid article:hover,
.job-card:hover,
.service-grid article:hover,
.portal-strip a:hover {
  border-color: rgba(24, 214, 197, 0.34);
  box-shadow: 0 24px 58px rgba(8, 18, 37, 0.12);
}

.job-tools-grid article {
  border-left-color: var(--vibrant-teal);
}

.job-tools-grid article:nth-child(2) {
  border-left-color: var(--gold);
}

.job-tools-grid article:nth-child(3) {
  border-left-color: var(--vibrant-coral);
}

.job-tools-grid article:nth-child(4) {
  border-left-color: var(--vibrant-violet);
}

.portal-strip a {
  background:
    linear-gradient(135deg, rgba(24, 214, 197, 0.16), transparent 44%),
    linear-gradient(160deg, #071226 0%, #06271f 100%);
}

.process li::before,
#processList li::before {
  background: linear-gradient(135deg, var(--gold), var(--vibrant-coral));
}

.portal-body {
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.30) 0%, rgba(7, 20, 38, 0.70) 46%, rgba(2, 7, 19, 0.98) 100%),
    linear-gradient(135deg, rgba(24, 214, 197, 0.16), rgba(255, 122, 89, 0.10) 54%, rgba(122, 111, 240, 0.16)),
    url("/dubai-skyline.jpg") center / cover no-repeat,
    var(--navy-deep);
}

.login-panel {
  background: rgba(2, 7, 19, 0.34);
}

.dashboard-side {
  background:
    linear-gradient(150deg, rgba(24, 214, 197, 0.14), transparent 34%),
    linear-gradient(210deg, rgba(255, 122, 89, 0.10), transparent 42%),
    linear-gradient(180deg, #08172f, #020713);
}

.tab-button.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--vibrant-coral));
}

.footer {
  border-top: 1px solid rgba(18, 91, 91, 0.14);
}

/* -------------------- Readability and security-form polish ------------ */

.contact-card,
.form-panel.contact-card {
  color: #132033;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 250, 0.94)),
    var(--white);
  border: 1px solid rgba(217, 184, 102, 0.34);
  box-shadow: 0 22px 54px rgba(8, 18, 37, 0.10);
}

.contact-card .eyebrow {
  color: #9a7428;
}

.contact-card h1,
.contact-card h2,
.contact-card h3 {
  color: #081225;
  text-shadow: none;
}

.contact-card p,
.contact-card span,
.contact-card dd,
.contact-card li,
.contact-card #contactDetails {
  color: #000000;
}

.contact-card #contactDetails strong {
  color: #000000;
}

.login-panel label,
.signup-panel label,
.admin-form label {
  display: grid;
  gap: 0.45rem;
  color: rgba(255, 247, 232, 0.92);
  font-weight: 650;
}

.admin-form label {
  color: #132033;
}

.login-panel label input,
.signup-panel label input,
.admin-form label input {
  width: 100%;
}

.login-panel .form-status,
.password-rule {
  color: rgba(234, 208, 138, 0.95);
}

.login-panel .file-field,
.signup-panel .file-field {
  color: #000000;
}

.two-factor-qr-wrap{display:flex;justify-content:center;align-items:center;width:100%;margin:16px 0;padding:16px;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:12px;box-sizing:border-box}.two-factor-qr-wrap img{display:block;width:280px;height:280px;max-width:100%;image-rendering:auto}

.admin-list-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:14px 0 8px}.admin-list-tools .list-search{flex:1 1 320px;min-width:240px;max-width:520px}.admin-list-tools .list-count{font-size:.9rem;opacity:.75}.admin-pager{display:flex;justify-content:center;align-items:center;gap:14px;padding:14px 0 4px;flex-wrap:wrap}.admin-pager button[disabled]{opacity:.45;cursor:not-allowed}.admin-pager span{font-size:.9rem;opacity:.8}
