/* ============================================================
   Mozambique Modular Refineries (MMR) — Design tokens
   Palette: MMR official teal (#16BE9A) + gold accent (#FFB020)
   Type: Sora (display) / Inter (body) / IBM Plex Mono (data)
   ============================================================ */
:root {
  --ink: #282828;        /* neutral dark text */
  --ink-hover: #3D3D3D;
  --brand: #16BE9A;       /* MMR official teal */
  --brand-dark: #109E80;  /* hover/active state for brand-colored elements */
  --brand-soft: #E3F7F1;  /* light tint for selected/checked states */
  --accent: #FFB020;      /* gold accent */
  --success: #2E7D32;
  --error: #C62828;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --text: #232323;
  --text-muted: #6B6B6B;
  --border: #E2E2E2;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 10px;
  --shadow-card: 0 4px 24px rgba(20, 20, 20, 0.07);
}

* { box-sizing: border-box; }

/* Any element toggled via the native `hidden` property/attribute must stay
   hidden, full stop — regardless of what display value its own class sets
   elsewhere (e.g. .btn uses display:inline-flex, .intro-screen uses
   display:flex). Without this, a same-specificity author rule can beat the
   browser's default `[hidden]{display:none}` and the element stays visible
   even though JS correctly set `.hidden = true`. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--card);
  color: var(--ink);
  border-bottom: 3px solid var(--brand);
  flex-wrap: wrap;
  gap: 12px;
}
.topbar__brand { display: flex; align-items: center; gap: 14px; }
.topbar__logo { height: 36px; width: auto; display: block; }
.topbar__divider { width: 1px; height: 20px; background: var(--border); }
.topbar__title { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.2px; color: var(--ink); }
.topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__secure {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}

/* ── Language switch ────────────────────────────────────── */
.lang-switch { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; }
.lang-switch__sep { color: var(--border); }
.lang-switch__btn {
  background: transparent; border: none; color: var(--text-muted);
  font-family: inherit; font-size: inherit; font-weight: 600; cursor: pointer;
  padding: 4px 6px; border-radius: 4px; letter-spacing: 0.5px;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn.is-active { color: var(--brand-dark); background: var(--brand-soft); }

/* ── Mobile progress (hidden on desktop) ───────────────────── */
.mprogress { display: none; padding: 14px 20px 0; background: var(--bg); }
.mprogress__top {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  margin-bottom: 8px;
}
.mprogress__track { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.mprogress__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--ink), var(--brand)); transition: width 0.4s ease; }

/* ── Layout ─────────────────────────────────────────────── */
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  max-width: 1180px;
  width: 100%;
  margin: 40px auto;
  padding: 0 32px;
  align-items: start;
}

/* ── Verification ladder ───────────────────────────────── */
.ladder {
  position: sticky;
  top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}
.ladder__intro { margin-bottom: 20px; }
.ladder__eyebrow {
  margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted);
}
.ladder__percent { margin: 0; font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--ink); }

.ladder__rungs { list-style: none; margin: 0; padding: 0; }
.rung {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  min-height: 40px;
}
.rung__beam {
  position: absolute;
  left: 7px;
  top: -50%;
  width: 2px;
  height: 100%;
  background: var(--border);
}
.rung:first-child .rung__beam { display: none; }
.rung__dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--border);
  flex-shrink: 0; z-index: 1;
  transition: all 0.3s ease;
}
.rung__label {
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  transition: color 0.3s ease;
}
.rung.is-done .rung__dot { background: var(--brand); border-color: var(--brand); }
.rung.is-done .rung__beam { background: var(--brand); }
.rung.is-active .rung__dot { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,190,154,0.18); }
.rung.is-active .rung__label, .rung.is-done .rung__label { color: var(--ink); }
.ladder__note { margin: 20px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px 28px;
  box-shadow: var(--shadow-card);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.step__title {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  margin: 0 0 4px; color: var(--ink);
}
.step__sub { margin: 0 0 28px; color: var(--text-muted); font-size: 14.5px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field label em { color: var(--text-muted); font-style: normal; font-weight: 400; }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=url], input[type=number], input[type=password], select {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* iOS Safari auto-zooms the whole page on focus for any input under 16px —
   harmless on desktop, but on a real phone it makes every tap feel like
   the page just broke. 16px is the documented threshold; this affects
   every form across the site (KYC, Nomination, admin login). */
@media (max-width: 768px) {
  input[type=text], input[type=email], input[type=tel], input[type=date], input[type=url], input[type=number], input[type=password], select, textarea {
    font-size: 16px;
  }
  /* iOS Safari's native date control renders its own internal height for
     the Day/Month/Year segments, ignoring the padding/box-sizing that
     keeps every other field the same height — this forces it back in
     line with text inputs instead of standing out as visibly taller. */
  input[type=date] {
    -webkit-appearance: none;
    appearance: none;
    height: 44px;
    line-height: 1.2;
  }
}
input.mono, .signature { font-family: var(--font-mono); }
input:focus, select:focus {
  outline: none;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(22,190,154,0.18);
}
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field.has-error .field__error { display: block; }
.field__error {
  display: none;
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
}
.field__hint {
  font-size: 11.5px;
  color: var(--text-muted);
}
.field__hint--accent { color: var(--brand-dark); font-weight: 600; }

/* ── File uploader ─────────────────────────────────────── */
.uploader { position: relative; }
.uploader input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.uploader__box {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
  color: var(--text-muted);
  font-size: 13.5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.uploader:hover .uploader__box { border-color: var(--brand-dark); background: #FAFBFD; }
.uploader__icon { font-size: 15px; color: var(--brand-dark); }
.uploader__filename { font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-weight: 600; }
.field.has-error .uploader__box { border-color: var(--error); }

/* ── Declaration checkboxes ────────────────────────────── */
.declare { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.check {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text); line-height: 1.5; cursor: pointer;
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 8px;
  transition: border-color 0.15s ease;
}
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex-shrink: 0; }
.check a { color: var(--brand-dark); }

/* ── Navigation buttons ─────────────────────────────────── */
.nav { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; }
.nav__spacer { flex: 1; }
.btn {
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  padding: 13px 26px; border-radius: 8px; border: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--gold { background: var(--brand); color: #fff; }
.btn--gold:hover { box-shadow: 0 4px 14px rgba(22,190,154,0.35); }
.btn--ghost { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--brand-dark); color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn__spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(40,40,40,0.25); border-top-color: var(--ink);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.formmsg {
  margin-top: 16px; padding: 13px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
}
.formmsg--error { background: #FDECEC; color: var(--error); }
.formmsg--success { background: #EAF4EA; color: var(--success); }
.formmsg--info { background: var(--brand-soft); color: var(--brand-dark); }

.draft-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 8px; padding: 13px 16px; margin-bottom: 24px; font-size: 13px; line-height: 1.5;
}
.draft-banner__link {
  background: none; border: none; color: var(--ink); font-weight: 700; font-size: 12.5px;
  text-decoration: underline; white-space: nowrap; cursor: pointer; flex-shrink: 0;
}

/* ── Honeypot (visually hidden) ─────────────────────────── */
.hp { display: none; }

/* ── Success panel ──────────────────────────────────────── */
.success { text-align: center; padding: 40px 20px; }
.success__badge {
  width: 64px; height: 64px; border-radius: 50%; background: var(--success);
  color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success h2 { font-family: var(--font-display); color: var(--ink); margin-bottom: 10px; }
.success p { color: var(--text-muted); max-width: 440px; margin: 0 auto 24px; line-height: 1.6; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: 12px; }

/* ── Focus visibility ───────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-dark); outline-offset: 2px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; margin: 0 auto; padding: 0; gap: 0; }
  .ladder { display: none; }
  .mprogress { display: block; }
  .card { border-radius: 0; border-left: none; border-right: none; box-shadow: none; padding: 24px 20px; }
  .topbar { padding: 16px 20px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .field--full { grid-column: 1; }
  .step__title { font-size: 20px; }
  .btn { flex: 1; justify-content: center; }
  .topbar__right { width: 100%; justify-content: space-between; }
}

/* ============================================================
   Extra components for the MMR due-diligence form
   ============================================================ */

/* ── Intro / policy notice (Step 1 only) ───────────────────── */
.intro {
  background: #F7F9FC;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ink);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.intro h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.intro p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.intro p:last-child { margin-bottom: 0; }

/* ── Section headings within a step ────────────────────────── */
.section__title {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--ink); margin: 28px 0 14px; padding-top: 18px; border-top: 1px solid var(--border);
}
.grid > .section__title { grid-column: 1 / -1; }
.step > .section__title:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
.section__subtitle {
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.3px; text-transform: uppercase; color: var(--text-muted); margin: 4px 0 12px;
}
.step__hint { font-size: 12.5px; color: var(--text-muted); margin: -18px 0 20px; }

textarea {
  font-family: var(--font-body); font-size: 14.5px; padding: 11px 13px;
  border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
  width: 100%; resize: vertical; min-height: 72px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea:focus { outline: none; border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(22,190,154,0.18); }
.field.has-error textarea { border-color: var(--error); }

/* ── Checkbox groups (nature of business / trade products) ─── */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }

/* Trade Under Consideration only — same checkbox styling as .checkbox-group,
   just arranged in a responsive grid instead of wrapped pills. */
.checkbox-group--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
}
@media (max-width: 900px) {
  .checkbox-group--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .checkbox-group--grid { grid-template-columns: 1fr; }
}
.checkbox-group--grid .check--inline {
  width: 100%;
  margin: 0;
}
.checkbox-group--grid .field__error {
  grid-column: 1 / -1;
}

.check--inline {
  padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 20px;
  font-size: 13px; margin: 0;
}
.check--inline:has(input:checked) { border-color: var(--ink); background: var(--brand-soft); }
.check--inline input { width: 14px; height: 14px; margin: 0; }
.check--compact { padding: 6px 0; border: none; font-size: 12.5px; color: var(--text-muted); }
.check--compact input { width: 14px; height: 14px; }

/* ── Yes/No compliance questions ───────────────────────────── */
.yesno label:not(.yesno__pill) { font-size: 14px; line-height: 1.55; margin-bottom: 10px; display: block; }
.yesno__options { display: flex; gap: 10px; }
.yesno__pill {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px;
  border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  color: var(--text-muted);
}
.yesno__pill:has(input:checked) { border-color: var(--ink); color: var(--ink); background: var(--brand-soft); }
.yesno__pill input { width: 15px; height: 15px; accent-color: var(--ink); }

/* ── Repeatable groups (shareholders / UBOs / directors) ────── */
.repeatable-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.repeatable-card {
  border: 1.5px solid var(--border); border-radius: 10px; padding: 18px; position: relative;
  background: #FCFDFE;
}
.repeatable-card__header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.repeatable-card__title { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.repeatable-card__remove {
  background: none; border: none; color: var(--error); font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 4px 8px;
}
.repeatable-card__remove:hover { text-decoration: underline; }
.btn--small { padding: 9px 16px; font-size: 13px; margin-bottom: 8px; }

/* ── Declaration statement paragraph ───────────────────────── */
.declare__statement {
  background: #F7F9FC; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 18px; font-size: 13.5px; line-height: 1.7; color: var(--text); margin: 12px 0 20px;
}
.declare__statement strong { color: var(--ink); }

.step {
  animation: stepFadeIn 0.28s ease;
}
.intro-screen {
  animation: stepFadeIn 0.28s ease;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Welcome / intro screen (shown before Step 1) ──────────── */
.intro-screen {
  display: flex;
  flex-direction: column;
  min-height: 440px;
}
.intro-screen .step__title { margin-bottom: 18px; }
.intro-screen .intro { flex: 1; margin-bottom: 0; }
.intro-screen .nav { padding-top: 24px; }

/* ── Landing / choice page (index.php) ─────────────────────── */
.landing-body {
  background: linear-gradient(180deg, #F7FBFA 0%, #F1F5F4 100%);
  min-height: 100vh;
}
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 24px;
  position: relative;
}
.landing__langswitch {
  position: absolute;
  top: 20px;
  right: 24px;
}
.landing__card {
  width: 100%;
  max-width: 780px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(22, 40, 34, 0.10), 0 2px 8px rgba(22, 40, 34, 0.06);
  padding: 48px 40px 40px;
  text-align: center;
  animation: stepFadeIn 0.4s ease;
}
.landing__logo {
  height: 52px;
  margin-bottom: 28px;
}
.landing__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.landing__subtitle {
  color: #6B6B6B;
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.landing__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.landing__choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border: 1.5px solid #E7ECEA;
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  background: #FCFDFD;
}
.landing__choice:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(22, 190, 154, 0.16);
}
.landing__choice-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.18s ease, color 0.18s ease;
}
.landing__choice:hover .landing__choice-icon {
  background: var(--brand);
  color: #FFFFFF;
}
.landing__choice-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
}
.landing__choice-desc {
  color: #6B6B6B;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1;
}
.landing__choice-btn {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 8px;
  background: #EFF2F1;
  transition: background 0.18s ease, color 0.18s ease;
}
.landing__choice:hover .landing__choice-btn {
  background: var(--ink);
  color: #FFFFFF;
}
.landing__footnote {
  font-size: 12.5px;
  color: #8A8A8A;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.landing__footer {
  margin-top: 28px;
}

@media (max-width: 640px) {
  .landing__card { padding: 36px 22px 30px; border-radius: 16px; }
  .landing__choices { grid-template-columns: 1fr; }
  .landing__langswitch { position: static; margin-bottom: 20px; align-self: flex-end; }
  .landing { padding-top: 24px; }
}

/* ── 404 page ─────────────────────────────────────────────── */
.notfound__card { text-align: center; }
.notfound__code {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 800;
  color: var(--brand-soft);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -2px;
}
.notfound__btn {
  display: inline-flex;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .notfound__code { font-size: 64px; }
}

/* ── Nomination form: single-column layout (no step ladder) ──────────── */
.layout--single { grid-template-columns: 1fr; max-width: 760px; }
.layout--single .card { min-height: 0; }
.nom-intro { color: var(--text-muted); font-size: 14.5px; margin: -6px 0 4px; }
.nom-field-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Nomination clients: required marker, account nav, request list ───────── */
.client-nav { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.client-nav a {
  padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-muted, #5b6672); text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.client-nav a:hover { background: var(--brand-soft, #e7f8f4); color: var(--ink, #282828); }
.client-nav a.is-active { background: var(--brand-soft, #e7f8f4); color: var(--ink, #282828); }
.nav .nom-field-note { align-self: center; }
.client-table-wrap { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--border, #e3e8ee); border-radius: 10px; }
.client-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.client-table th, .client-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border, #e3e8ee); white-space: nowrap; }
.client-table th { background: var(--brand-soft, #e7f8f4); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted, #5b6672); }
.client-table tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pill--pending { background: #FFF3CD; color: #8A6D00; }
.status-pill--approved { background: var(--brand-soft, #e7f8f4); color: var(--brand-dark, #0e8f73); }
.status-pill--rejected { background: #FDECEC; color: #C62828; }
a.btn { text-decoration: none; display: inline-block; }
@media (max-width: 768px) {
  .topbar__right { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .client-nav { margin-right: 0; flex-wrap: wrap; justify-content: flex-end; }
  .client-nav a { padding: 6px 9px; font-size: 12.5px; }
  .client-table th, .client-table td { padding: 10px; }
}

/* ============================================================
   Nomination clients — split-screen sign in / register
   ============================================================ */
.auth-body { margin: 0; background: var(--bg); }
.auth-split { display: flex; min-height: 100vh; min-height: 100dvh; }
.auth-side--form {
  flex: 1 1 58%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; background: var(--bg); position: relative;
}
.auth-lang { position: absolute; top: 18px; right: 22px; }
.auth-card {
  width: 100%; max-width: 410px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 38px 34px 34px; box-shadow: 0 10px 34px rgba(0,0,0,0.07); animation: authIn .45s ease both;
}
.auth-card--wide { max-width: 620px; }
@keyframes authIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth-card__logo { height: 42px; margin-bottom: 20px; display: block; }
.auth-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.auth-sub { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 22px; }
.auth-card .grid { gap: 16px; }
.auth-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.auth-submit { width: 100%; justify-content: center; padding: 13px 18px; font-size: 15px; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--text-muted); margin: 0; }
.auth-switch a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-copy { margin: 22px 0 0; font-size: 12px; color: var(--text-muted); text-align: center; }
.auth-copy a { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-card .success { padding-top: 4px; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 34px; height: 34px;
  border: 0; background: transparent; color: var(--text-muted); border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pw-toggle:hover { color: var(--ink); background: var(--brand-soft); }
.pw-toggle.is-on { color: var(--brand-dark); }

.auth-side--brand {
  flex: 1 1 42%; display: none; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  padding: 56px 64px; background: linear-gradient(160deg, #16BE9A 0%, #109E80 55%, #0C7C65 100%);
}
.auth-side--brand::before, .auth-side--brand::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.06); }
.auth-side--brand::before { width: 340px; height: 340px; top: -100px; right: -100px; }
.auth-side--brand::after { width: 240px; height: 240px; bottom: -70px; left: -70px; }
.auth-side--brand > * { position: relative; z-index: 1; }
.auth-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; background: rgba(255,255,255,0.14); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
}
.auth-headline { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.25; color: #fff; margin: 0 0 16px; max-width: 480px; }
.auth-subtext { color: rgba(255,255,255,0.8); font-size: 15px; line-height: 1.6; max-width: 440px; margin: 0 0 26px; }
.auth-points { list-style: none; padding: 0; margin: 0; max-width: 440px; }
.auth-points li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.94); font-size: 14.5px; font-weight: 500; margin-bottom: 14px; }
.auth-points svg { flex-shrink: 0; margin-top: 2px; color: #FFB020; }
.auth-caption { color: rgba(255,255,255,0.92); border-top: 1px solid rgba(255,255,255,0.16); padding-top: 20px; }
.auth-caption strong { font-family: var(--font-display); font-size: 16px; font-weight: 700; display: block; margin-bottom: 4px; }
.auth-caption span { font-size: 12.5px; opacity: .78; }
@media (min-width: 900px) { .auth-side--brand { display: flex; } }
@media (min-width: 900px) and (max-width: 1150px) { .auth-headline { font-size: 27px; } .auth-side--brand { padding: 48px 40px; } }
@media (max-width: 899px) {
  .auth-side--form { justify-content: flex-start; padding: 64px 16px 24px; min-height: 100vh; min-height: 100dvh; }
}
@media (max-width: 480px) { .auth-card { padding: 28px 20px 24px; } }
@media (prefers-reduced-motion: reduce) { .auth-card { animation: none; } }

/* ---- My nominations: search ---- */
.req-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.req-search { position: relative; flex: 1 1 280px; }
.req-search > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.req-search input[type=search] {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; padding: 11px 38px 11px 40px; border: 1.5px solid var(--border);
  border-radius: 8px; background: #fff; color: var(--text); -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.req-search input[type=search]:focus { outline: none; border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(22,190,154,0.18); }
.req-search input[type=search]::-webkit-search-cancel-button { display: none; }
.req-search__clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.req-search__clear:hover { background: var(--brand-soft); color: var(--ink); }
.req-search__clear[hidden], .req-empty[hidden], .client-table tr[hidden] { display: none !important; }
#reqStatus { flex: 0 1 200px; width: auto; min-width: 150px; }
.req-count { font-size: 12.5px; color: var(--text-muted); margin: 0 0 6px; }
.req-empty td { text-align: center; color: var(--text-muted); padding: 26px 14px !important; white-space: normal !important; }
@media (max-width: 600px) { #reqStatus { flex: 1 1 100%; } }

/* ── Required / optional indicators ───────────────────────── */
.is-req::after,
#bank2Wrapper.is-on .is-req-cond::after {
  content: " *";
  color: var(--error);
  font-weight: 700;
}
.req-legend {
  margin: 0 0 18px; padding: 8px 12px; font-size: 12.5px; line-height: 1.45;
  color: var(--text-muted); background: var(--brand-soft); border-radius: 8px;
}
.req-legend__star { color: var(--error); font-weight: 700; }
.field label em { font-size: 12px; }

/* ── Free step navigation: clickable ladder + mobile chips ── */
.rung { cursor: pointer; }
.rung:hover .rung__label { color: var(--ink); }
.rung:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.rung.has-missing .rung__dot { background: var(--error); border-color: var(--error); }
.rung.has-missing .rung__label { color: var(--error); }

.mprogress__steps { display: flex; gap: 6px; margin-top: 10px; }
.mstep {
  flex: 1; min-width: 0; height: 34px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--card); color: var(--text-muted);
  font: 600 13px var(--font-body, inherit);
}
.mstep.is-done { background: var(--brand); border-color: var(--brand); color: #fff; }
.mstep.is-active { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 3px rgba(22,190,154,0.18); }
.mstep.is-done.is-active { color: #fff; }
.mstep.has-missing { border-color: var(--error); color: var(--error); background: #FDECEC; }

/* ── Friendlier navigation: ladder looks and feels clickable ── */
.ladder__hint { margin: -8px 0 12px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.rung {
  margin: 0 -12px; padding: 10px 12px; border-radius: 10px;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.rung__beam { left: 19px; z-index: 0; }
.rung::after {
  content: "\203A"; margin-left: auto; font-size: 20px; line-height: 1;
  color: var(--text-muted); opacity: .45;
  transition: transform .2s ease, opacity .2s ease, color .2s ease;
}
.rung:hover { background: var(--brand-soft); }
.rung:hover::after { transform: translateX(3px); opacity: 1; color: var(--ink); }
.rung:active { background: rgba(22,190,154,0.14); }
.rung.is-active { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--ink); }
.rung.is-active::after { opacity: 1; color: var(--ink); }
.rung.is-active .rung__label { font-weight: 700; }
.rung.has-missing::after { color: var(--error); opacity: 1; }
.mstep { transition: transform .15s ease, background-color .2s ease, border-color .2s ease; }
.mstep:active { transform: scale(.94); }

/* ── Smooth motion ─────────────────────────────────────────── */
.step.step--enter { animation: stepIn .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.expandable { overflow: hidden; transition: height .3s cubic-bezier(.2,.7,.2,1), opacity .25s ease; }
.rung__dot, .rung__label, .rung__beam { transition: all .3s ease; }
.mprogress__fill { transition: width .5s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .step.step--enter { animation: none; }
  .expandable, .rung, .rung::after { transition: none; }
}
.auth-recaptcha { margin-top: 18px; display: flex; justify-content: center; overflow: hidden; }
@media (max-width: 360px) { .auth-recaptcha .g-recaptcha { transform: scale(.88); transform-origin: center; } }
