/* =====================================================================
   Lothan MedRep Connect — base stylesheet
   Brand tokens from BRANDING.pdf
   ===================================================================== */
:root {
  --lothan-navy-900: #202080;
  --lothan-navy-800: #25258F;
  --lothan-navy-50:  #EEEEFB;
  --lothan-gold-500: #C4AD84;
  --lothan-gold-300: #D8C7A6;
  --lothan-sky-500:  #4780CD;
  --lothan-fog-100:  #DEDEE3;
  --lothan-fog-50:   #F4F5F7;
  --lothan-ink-900:  #0F1226;
  --lothan-ink-600:  #4A4F66;
  --lothan-ink-400:  #8A8FA3;
  --white: #FFFFFF;
  --success-500: #1F9D6B;
  --success-100: #DEF5EB;
  --warning-500: #C98917;
  --warning-100: #FAEBCD;
  --danger-500:  #C53030;

  --font-sans: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 0.84, 0.32, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--lothan-ink-900);
  background: var(--lothan-fog-50);
  -webkit-font-smoothing: antialiased;
}

.lothan-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top bar --- */
.lothan-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--lothan-fog-100);
  position: sticky; top: 0; z-index: 10;
}
.lothan-topbar-inner {
  display: flex; align-items: center;
  padding: 14px 24px;
}
.lothan-lockup { display: flex; align-items: center; gap: 14px; }
.lothan-logo { width: 30px; height: 38px; display: block; }
.lothan-logo svg { width: 100%; height: 100%; display: block; }
.lothan-lockup-text {
  display: flex; flex-direction: column; gap: 1px;
  border-left: 1px solid var(--lothan-fog-100);
  padding-left: 12px;
}
.lothan-lockup-text .ar {
  font-family: var(--font-arabic);
  font-size: 13px; font-weight: 500; direction: rtl;
  color: var(--lothan-ink-900);
}
.lothan-lockup-text .en {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lothan-gold-500);
}

/* --- Footer --- */
.lothan-footer {
  margin-top: 48px; padding: 24px 0;
  border-top: 1px solid var(--lothan-fog-100);
  color: var(--lothan-ink-400);
  font-size: 12px; font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* --- Health page --- */
.health-wrap {
  padding: 48px 0 16px;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.health-head { margin-bottom: 28px; }
.health-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lothan-gold-500);
  margin: 0 0 12px;
}
.health-head h1 {
  font-size: 34px; font-weight: 300; letter-spacing: -0.02em;
  margin: 0 0 8px; color: var(--lothan-ink-900);
}
.health-head .sub { color: var(--lothan-ink-600); margin: 0; font-size: 15px; }

.health-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--lothan-fog-100);
}
.health-banner.is-ok   { background: var(--success-100); border-color: #BCEBD5; }
.health-banner.is-warn { background: var(--warning-100); border-color: #F0D9A8; }
.health-banner-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.health-banner.is-ok   .health-banner-icon { background: var(--success-500); color: #fff; }
.health-banner.is-warn .health-banner-icon { background: var(--warning-500); color: #fff; }
.health-banner-icon svg { width: 22px; height: 22px; }
.health-banner strong { display: block; font-size: 15px; color: var(--lothan-ink-900); }
.health-banner span { font-size: 13px; color: var(--lothan-ink-600); }

.health-card {
  background: var(--white);
  border: 1px solid var(--lothan-fog-100);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px -6px rgba(15,18,38,0.08);
}
.health-table { width: 100%; border-collapse: collapse; }
.health-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--lothan-fog-100);
  font-size: 14px;
}
.health-table tr:last-child td { border-bottom: 0; }
.cell-status { width: 40px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-ok  { background: var(--success-500); }
.dot-bad { background: var(--danger-500); }
.cell-label { font-weight: 600; color: var(--lothan-ink-900); }
.cell-value { font-family: var(--font-mono); font-size: 13px; color: var(--lothan-ink-600); }
.cell-hint  { font-size: 12px; color: var(--danger-500); text-align: right; }
.health-foot {
  padding: 12px 18px; background: var(--lothan-fog-50);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--lothan-ink-400); letter-spacing: 0.04em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; }
}

/* =====================================================================
   Phase 2 — Authentication & dashboard
   ===================================================================== */

/* --- Auth split layout --- */
.auth-body { margin: 0; background: var(--lothan-fog-50); }
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

.auth-brand {
  position: relative;
  background: linear-gradient(150deg, var(--lothan-navy-900) 0%, #1A1A6B 60%, #15154F 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.auth-brand-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.auth-logo { width: 34px; height: 44px; display: block; }
.auth-logo svg { width: 100%; height: 100%; }
.auth-brand-lockup { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 14px; }
.auth-brand-lockup .ar { font-family: var(--font-arabic); font-size: 14px; font-weight: 500; direction: rtl; }
.auth-brand-lockup .en { font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lothan-gold-300); }
.auth-brand-mid { position: relative; z-index: 2; max-width: 420px; }
.auth-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lothan-gold-300); margin: 0 0 18px; }
.auth-headline { font-size: 34px; font-weight: 300; line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 16px; }
.auth-sub { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.75); margin: 0; }
.auth-brand-foot { position: relative; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
.auth-crescent { position: absolute; right: -80px; bottom: -60px; width: 460px; height: 460px; z-index: 1; }

/* --- Auth form panel --- */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; animation: fadeUp 0.6s var(--ease-out) both; }
.auth-card-head { margin-bottom: 26px; }
.auth-card-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--lothan-ink-900); }
.auth-card-head p { font-size: 14px; color: var(--lothan-ink-600); margin: 0; }

.auth-alert {
  display: flex; align-items: center; gap: 10px;
  background: #FBE3E3; color: #8B1F1F;
  border: 1px solid #F3C4C4; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; margin-bottom: 20px;
}
.auth-alert svg { width: 16px; height: 16px; flex-shrink: 0; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field label { font-size: 13px; font-weight: 600; color: var(--lothan-ink-700, #2B2F47); }
.auth-field input {
  height: 46px; padding: 0 14px; font-size: 14.5px;
  border: 1px solid var(--lothan-fog-100); border-radius: 10px;
  background: #fff; color: var(--lothan-ink-900); outline: none;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.auth-field input:focus { border-color: var(--lothan-navy-900); box-shadow: 0 0 0 3px rgba(32,32,128,0.12); }

.auth-submit {
  height: 48px; margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--lothan-navy-900); color: #fff;
  border: none; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(32,32,128,0.55);
  transition: background-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.auth-submit:hover { background: var(--lothan-navy-800); transform: translateY(-1px); }
.auth-submit svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease-out); }
.auth-submit:hover svg { transform: translateX(3px); }

.auth-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--lothan-ink-400);
  margin: 8px 0 0; line-height: 1.4;
}
.auth-note svg { width: 13px; height: 13px; flex-shrink: 0; }

/* --- Dashboard --- */
.dash-wrap { padding: 48px 0 16px; animation: fadeUp 0.6s var(--ease-out) both; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-head .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lothan-gold-500); margin: 0 0 10px; }
.dash-head h1 { font-size: 30px; font-weight: 300; letter-spacing: -0.02em; margin: 0 0 6px; }
.dash-head .sub { font-size: 14px; color: var(--lothan-ink-600); margin: 0; }
.dash-head .sub .mono { font-family: var(--font-mono); font-size: 12.5px; }
.dash-logout button {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--lothan-fog-100); border-radius: 999px;
  padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--lothan-ink-700, #2B2F47);
  cursor: pointer; transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.dash-logout button:hover { border-color: var(--lothan-navy-900); color: var(--lothan-navy-900); }
.dash-logout svg { width: 14px; height: 14px; }

.dash-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--success-100); border: 1px solid #BCEBD5; border-radius: 14px;
  padding: 18px 22px; margin-bottom: 22px;
}
.dash-card-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--success-500); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-card-icon svg { width: 20px; height: 20px; }
.dash-card strong { display: block; font-size: 14.5px; color: var(--lothan-ink-900); }
.dash-card span { font-size: 13px; color: var(--lothan-ink-600); }

.dash-next { background: #fff; border: 1px solid var(--lothan-fog-100); border-radius: 14px; padding: 22px 24px; }
.dash-next-title { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lothan-ink-400); margin: 0 0 12px; }
.dash-next ul { margin: 0; padding-left: 18px; }
.dash-next li { font-size: 13.5px; color: var(--lothan-ink-600); margin-bottom: 6px; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 28px 36px; }
  .auth-brand-mid { margin-top: 24px; }
  .auth-headline { font-size: 26px; }
  .auth-crescent { width: 300px; height: 300px; right: -60px; bottom: -50px; }
  .auth-main { padding: 36px 24px 56px; }
}

/* =====================================================================
   Phase 3 — Password management additions
   ===================================================================== */
.auth-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--lothan-navy-50); color: var(--lothan-navy-900);
  border: 1px solid var(--lothan-navy-100, #D4D4F1); border-radius: 10px;
  padding: 12px 14px; font-size: 13px; margin-bottom: 20px;
}
.auth-banner svg { width: 16px; height: 16px; flex-shrink: 0; }

.auth-success {
  display: flex; align-items: center; gap: 10px;
  background: var(--success-100); color: var(--success-700, #0F7A52);
  border: 1px solid #BCEBD5; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; margin-bottom: 20px;
}
.auth-success svg { width: 16px; height: 16px; flex-shrink: 0; }

.auth-hint { font-size: 11.5px; color: var(--lothan-ink-400); margin: 2px 0 0; }
.auth-forgot { margin: 2px 0 0; text-align: right; }
.auth-forgot a { font-size: 12px; color: var(--lothan-sky-500); text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }
.auth-back { margin: 14px 0 0; text-align: center; }
.auth-back a { font-size: 13px; color: var(--lothan-sky-500); text-decoration: none; }
.auth-back a:hover { text-decoration: underline; }

/* =====================================================================
   Phase 4 — Public layout + registration wizard
   ===================================================================== */
.auth-register { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--lothan-ink-600); }
.auth-register a { color: var(--lothan-sky-500); font-weight: 600; text-decoration: none; }
.auth-register a:hover { text-decoration: underline; }

/* Public layout */
.pub-topbar { background: #fff; border-bottom: 1px solid var(--lothan-fog-100); position: sticky; top: 0; z-index: 10; }
.pub-topbar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; }
.pub-lockup { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.pub-logo { width: 28px; height: 36px; display: block; }
.pub-logo svg { width: 100%; height: 100%; }
.pub-lockup-text { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid var(--lothan-fog-100); padding-left: 12px; }
.pub-lockup-text .ar { font-family: var(--font-arabic); font-size: 13px; font-weight: 500; direction: rtl; color: var(--lothan-ink-900); }
.pub-lockup-text .en { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lothan-gold-500); }
.pub-signin { font-size: 13px; font-weight: 500; color: var(--lothan-ink-700, #2B2F47); text-decoration: none; padding: 8px 16px; border: 1px solid var(--lothan-fog-100); border-radius: 999px; transition: border-color 0.2s var(--ease-out); }
.pub-signin:hover { border-color: var(--lothan-navy-900); }
.pub-canvas { max-width: 1080px; margin: 0 auto; padding: 44px 24px 72px; }
.pub-footer { max-width: 1080px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--lothan-fog-100); color: var(--lothan-ink-400); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }

/* Wizard head + stepper */
.reg-head { text-align: center; max-width: 620px; margin: 0 auto 32px; animation: fadeUp 0.6s var(--ease-out) both; }
.reg-head .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lothan-gold-500); margin: 0 0 12px; }
.reg-head h1 { font-size: clamp(26px,3vw,36px); font-weight: 300; letter-spacing: -0.02em; margin: 0 0 12px; }
.reg-head h1 strong { font-weight: 600; color: var(--lothan-navy-900); }
.reg-head .sub { font-size: 15px; color: var(--lothan-ink-600); margin: 0; }

.reg-stepper { display: flex; align-items: center; justify-content: center; max-width: 640px; margin: 0 auto 28px; }
.reg-step { display: flex; align-items: center; gap: 10px; }
.reg-step .n { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1.5px solid var(--lothan-fog-100); color: var(--lothan-ink-400); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease-out); }
.reg-step .l { font-size: 13px; font-weight: 500; color: var(--lothan-ink-400); }
.reg-conn { width: 50px; height: 1px; background: var(--lothan-fog-100); margin: 0 12px; }
.reg-step.is-current .n { background: var(--lothan-navy-900); border-color: var(--lothan-navy-900); color: #fff; box-shadow: 0 0 0 4px var(--lothan-navy-50); }
.reg-step.is-current .l { color: var(--lothan-ink-900); font-weight: 600; }
.reg-step.is-done .n { background: var(--lothan-gold-500); border-color: var(--lothan-gold-500); color: #fff; }

.reg-banner { display: flex; gap: 12px; align-items: flex-start; max-width: 720px; margin: 0 auto 20px; background: #FBE3E3; border: 1px solid #F3C4C4; color: #8B1F1F; border-radius: 12px; padding: 14px 16px; }
.reg-banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.reg-banner strong { display: block; font-size: 13.5px; }
.reg-banner span { font-size: 12.5px; opacity: 0.85; }

/* Wizard card */
.reg-card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--lothan-fog-100); border-radius: 14px; box-shadow: 0 4px 16px -6px rgba(15,18,38,0.08); padding: 32px; animation: fadeUp 0.6s var(--ease-out) both; }
.reg-pane { display: none; }
.reg-pane.is-active { display: block; animation: fadeUp 0.3s var(--ease-out) both; }
.reg-pane-head { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--lothan-fog-100); }
.reg-pane-eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lothan-gold-500); margin: 0 0 8px; }
.reg-pane-head h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 4px; }
.reg-pane-sub { font-size: 13.5px; color: var(--lothan-ink-600); margin: 0; }

.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.reg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reg-full { grid-column: 1 / -1; }
.reg-field label { font-size: 13px; font-weight: 600; color: var(--lothan-ink-700, #2B2F47); }
.reg-field label .req { color: var(--danger-500); }
.reg-input { width: 100%; height: 44px; padding: 0 14px; font-size: 14.5px; border: 1px solid var(--lothan-fog-100); border-radius: 10px; background: #fff; color: var(--lothan-ink-900); outline: none; transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
.reg-input:focus { border-color: var(--lothan-navy-900); box-shadow: 0 0 0 3px rgba(32,32,128,0.12); }
.reg-input.is-invalid { border-color: var(--danger-500); box-shadow: 0 0 0 3px rgba(197,48,48,0.1); }
.reg-rtl { font-family: var(--font-arabic); text-align: right; }
.reg-textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.reg-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A4F66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.reg-hint { font-size: 11.5px; color: var(--lothan-ink-400); margin: 0; }
.reg-err { font-size: 12px; color: var(--danger-500); margin: 0; }
.reg-prefix { position: relative; }
.reg-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 13px; color: var(--lothan-ink-400); pointer-events: none; }
.reg-prefix .reg-input { padding-left: 56px; }

/* Dropzone */
.reg-zone { position: relative; border: 1.5px dashed var(--lothan-fog-100); border-radius: 10px; background: var(--lothan-fog-50); padding: 18px 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out); }
.reg-zone:hover, .reg-zone.drag { border-color: var(--lothan-navy-900); background: var(--lothan-navy-50); }
.reg-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.reg-zone-icon { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--lothan-fog-100); color: var(--lothan-navy-900); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reg-zone-icon svg { width: 17px; height: 17px; }
.reg-zone-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.reg-zone-primary { font-size: 13.5px; font-weight: 600; color: var(--lothan-ink-900); }
.reg-zone-secondary { font-size: 12px; color: var(--lothan-ink-600); }
.reg-zone.has-file { border-style: solid; border-color: var(--success-500); background: var(--success-100); }
.reg-zone.has-file .reg-zone-icon { background: var(--success-500); border-color: var(--success-500); color: #fff; }
.reg-zone.has-file .reg-zone-secondary { color: #0F7A52; font-family: var(--font-mono); font-size: 11.5px; }

/* Footer nav */
.reg-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--lothan-fog-100); }
.reg-foot-note { font-family: var(--font-mono); font-size: 11px; color: var(--lothan-ink-400); letter-spacing: 0.04em; }
.reg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out); text-decoration: none; }
.reg-btn svg { width: 14px; height: 14px; }
.reg-btn-primary { background: var(--lothan-navy-900); color: #fff; box-shadow: 0 6px 16px -8px rgba(32,32,128,0.55); }
.reg-btn-primary:hover { background: var(--lothan-navy-800); transform: translateY(-1px); }
.reg-btn-secondary { background: #fff; color: var(--lothan-ink-700, #2B2F47); border-color: var(--lothan-fog-100); }
.reg-btn-secondary:hover { border-color: var(--lothan-navy-900); color: var(--lothan-navy-900); }

/* Review */
.reg-review-sec { padding: 16px 0; border-bottom: 1px solid var(--lothan-fog-100); }
.reg-review-sec:first-child { padding-top: 0; }
.reg-review-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.reg-review-h h3 { font-size: 14px; font-weight: 600; margin: 0; }
.reg-review-h a { font-size: 12.5px; color: var(--lothan-sky-500); text-decoration: none; }
.reg-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.reg-rv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reg-rv .k { font-size: 11px; font-weight: 600; color: var(--lothan-ink-400); text-transform: uppercase; letter-spacing: 0.04em; }
.reg-rv .v { font-size: 14px; color: var(--lothan-ink-900); word-break: break-word; }
.reg-rv .v.rtl { font-family: var(--font-arabic); direction: rtl; text-align: right; }

/* Consent */
.reg-consent { margin-top: 22px; padding: 20px; background: var(--lothan-fog-50); border: 1px solid var(--lothan-fog-100); border-radius: 10px; }
.reg-check { display: flex; gap: 12px; padding: 8px 0; font-size: 13.5px; color: var(--lothan-ink-700, #2B2F47); line-height: 1.5; cursor: pointer; }
.reg-check input { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--lothan-navy-900); }

.reg-haveaccount { text-align: center; margin: 22px 0 0; font-size: 13px; color: var(--lothan-ink-600); }
.reg-haveaccount a { color: var(--lothan-sky-500); font-weight: 600; text-decoration: none; }

/* Success */
.reg-success { max-width: 600px; margin: 0 auto; background: #fff; border: 1px solid var(--lothan-fog-100); border-radius: 14px; box-shadow: 0 4px 16px -6px rgba(15,18,38,0.08); padding: 48px 36px; text-align: center; animation: fadeUp 0.6s var(--ease-out) both; }
.reg-success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--success-100); color: var(--success-500); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.reg-success-icon svg { width: 30px; height: 30px; }
.reg-success h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.reg-success-sub { font-size: 15px; color: var(--lothan-ink-600); margin: 0 0 24px; line-height: 1.6; }
.reg-ref { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--lothan-fog-50); border: 1px solid var(--lothan-fog-100); border-radius: 999px; margin-bottom: 26px; }
.reg-ref .k { font-size: 12.5px; color: var(--lothan-ink-600); }
.reg-ref .r { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.04em; color: var(--lothan-ink-900); }
.reg-next { text-align: left; background: var(--lothan-navy-900); color: #fff; border-radius: 14px; padding: 26px; margin-bottom: 24px; }
.reg-next-title { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lothan-gold-300); margin: 0 0 16px; }
.reg-next-step { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.reg-next-step:last-child { border-bottom: 0; padding-bottom: 0; }
.reg-next-step:first-of-type { padding-top: 0; }
.reg-next-step .n { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: var(--lothan-gold-300); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reg-next-step strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.reg-next-step span { font-size: 13px; color: rgba(255,255,255,0.78); line-height: 1.5; }
.reg-success-actions { display: flex; gap: 12px; justify-content: center; }

@media (max-width: 640px) {
  .reg-grid { grid-template-columns: 1fr; }
  .reg-review-grid { grid-template-columns: 1fr; }
  .reg-step .l { display: none; }
  .reg-conn { width: 28px; margin: 0 6px; }
  .reg-card { padding: 22px 18px; }
  .reg-foot { flex-direction: column-reverse; align-items: stretch; }
  .reg-foot .reg-btn { width: 100%; }
  .reg-foot-note { text-align: center; }
}
