/* Shared auth UI stylesheet (login/register/admin login) */
@import url("https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800,900");
:root{
  --auth-bg: #dbe4f2;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-focus: rgba(37, 99, 235, 0.18);
  --auth-primary: #1d4ed8;
  --auth-primary2: #2563eb;
  --auth-success: #16a34a;
  /* Register split panel */
  --reg-panel: #0b5cff;
  --reg-panel2: #0047ff;
}

/* Base */
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Montserrat" !important;
  background: var(--auth-bg);
  color: var(--auth-text);
}
a { color: var(--auth-primary2); text-decoration: none; font-family: "Montserrat" !important;}
button { font-family: "Montserrat" !important;}
a:hover { text-decoration: underline; }
ul { margin: 10px 0 0; padding-left: 18px; }

/* Notices */
.authNotice {
  background: #ecfeff;
  border: 1px solid #67e8f9;
  color: #155e75;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.authStatus {
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #7c2d12;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.authStatus--orange {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
}
.authFieldError { color: #b91c1c; font-size: 12px; margin-top: 6px; }

/* Simple auth card (dealer/admin login) */
.authContainer {
  width: min(560px, 100%);
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 24px 16px;
}
.authCard { width: 100%; background: #fff; border-radius: 16px; box-shadow: 0 18px 60px rgba(2, 6, 23, 0.14); padding: 26px; }
.authTitle { margin: 0 0 6px; font-size: 24px; }
.authSub { margin: 0 0 16px; color: #475569; font-size: 13px; }
.authFormGrid { display: grid; gap: 10px; margin-top: 14px; }
.authLabel { font-weight: 600; font-size: 13px; display: block; margin-bottom: 6px; }
.authInput {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}
.authInput:focus { border-color: var(--auth-primary2); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.authBtnPrimary {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--auth-primary2);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  margin-top: 14px;
}
.authBtnPrimary:hover { background: var(--auth-primary); }
.authLinks { margin-top: 14px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--auth-muted); }

/* Register split panel wizard */
.regShell { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: #dbe4f2; }
.regFrame {
  width: min(1120px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.18);
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;
  /* Prevent layout jump between steps */
  min-height: 640px;
}
@media (max-width: 980px) { .regFrame { grid-template-columns: 1fr; } }

/* Fullscreen variant (admin login) */
.regShell.regShell--fullscreen {
  place-items: stretch;
  padding: 0;
  background: #fff;
}
.regFrame.regFrame--fullscreen {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px) {
  .regFrame.regFrame--fullscreen { height: auto; min-height: 100vh; grid-template-columns: 1fr; }
}

.regLeft {
  padding: 34px 30px;
  background: #163865;
  color: #fff;
}
.regBrand { display: flex; gap: 10px; align-items: center; font-weight: 900; letter-spacing: 0.2px; opacity: 0.95; }
.regBrandMark { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.14); display: grid; place-items: center; }
.regBrandMark::before{ content:""; width: 16px; height: 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.85); box-sizing: border-box; }
.regLeftTitle { margin: 26px 0 12px; font-size: 40px; line-height: 1.05; font-weight: 950; }
.regLeftText { margin: 0; color: rgba(255,255,255,0.78); font-size: 13px; line-height: 1.55; max-width: 320px; }
.regTestimonial { margin-top: 26px; background: rgba(2, 6, 23, 0.18); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 16px; backdrop-filter: blur(6px); }
.regTestimonialTitle { font-weight: 900; margin: 0 0 8px; font-size: 13px; }
.regTestimonialText { margin: 0; color: rgba(255,255,255,0.78); font-size: 12px; line-height: 1.5; }
.regStars { margin-top: 12px; letter-spacing: 2px; font-size: 12px; opacity: 0.95; }

.regRight {
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 560px) { .regRight { padding: 24px 16px; } }
.regKicker { color: var(--auth-muted); font-size: 12px; margin: 0 0 6px; }
.regTitle { margin: 0 0 18px; font-size: 28px; letter-spacing: -0.02em; }

.regDots { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 18px; }
.regDot { width: 10px; height: 10px; border-radius: 999px; background: #cbd5e1; }
.regDot.active { background: var(--auth-primary2); }
.regDot.completed { background: var(--auth-success); }
.regBar { height: 2px; width: 74px; background: var(--auth-border); border-radius: 999px; }
.regBar.completed { background: rgba(22,163,74,0.55); }

.regStepTitle {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.regGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .regGrid { grid-template-columns: 1fr; } }
.regFull { grid-column: 1 / -1; }
.regLabel {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #0f172a;
  margin-bottom: 6px;
}
.regdropdown{
  display: block;
  width: 100%;
  border: 1px solid var(--auth-border);
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  font-family: 'Montserrat';
}

.regdropdown option{
   background: #fff;
   box-sizing: border-box;
}

.regdropdown:focus{
  border-color: var(--auth-primary2); box-shadow: 0 0 0 4px var(--auth-focus); 
}
.regControl {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  font-family: 'Montserrat';
}
textarea.regControl { min-height: 92px; resize: vertical; }
.regControl:focus { border-color: var(--auth-primary2); box-shadow: 0 0 0 4px var(--auth-focus); }

/* Document upload controls */
.file-group .regLabel {
  margin-bottom: 8px;
}

input[type="file"].regControl.custom-file {
  padding: 8px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  color: #475569;
  font-size: 13px;
}

input[type="file"].regControl.custom-file::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-weight: 700;
  font-family: "Montserrat";
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

input[type="file"].regControl.custom-file:hover::file-selector-button {
  filter: brightness(0.98);
}

input[type="file"].regControl.custom-file:active::file-selector-button {
  transform: translateY(1px);
}

input[type="file"].regControl.custom-file:focus {
  border-color: var(--auth-primary2);
  box-shadow: 0 0 0 4px var(--auth-focus);
}

input[type="file"].regControl.custom-file::-webkit-file-upload-button {
  margin-right: 12px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-weight: 700;
  font-family: "Montserrat";
  cursor: pointer;
}

.regPhoneRow {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}
.regPhoneCode {
  flex: 0 0 auto;
  min-width: min(80px, 28vw);
  max-width: 80px;
}
.regPhoneNational {
  flex: 1;
  min-width: 0;
}
.regHint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--auth-muted);
  line-height: 1.35;
}
@media (max-width: 560px) {
  .regPhoneRow { flex-direction: column; }
  .regPhoneCode { max-width: none; width: 100%; }
}

.regPane { display: none; }
.regPane.active { display: block; }

.wizard { flex: 1; display: flex; flex-direction: column; }

/* Reserve space so step changes don't resize the frame */
.regPane { flex: 1; }
.wizard { min-height: 420px; }

.regActions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.regBtn { padding: 12px 14px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; letter-spacing: 0.01em; }
.regBtn:disabled { opacity: 0.55; cursor: not-allowed; }
.regBtnSecondary { background: #eef2ff; color: #1e3a8a; }
.regBtnSecondary:hover { background: #e0e7ff; }
.regBtnPrimary { background: #163865; color: #fff; }
.regBtnPrimary:hover { filter: brightness(0.98); }
.regHelp { color: var(--auth-muted); font-size: 12px; line-height: 1.4; }
.regHelp a {
  background: #fff;
  width: 100%;
  display: block;
  text-align: center;
  padding: 12px 0;
  border: 2px solid #efefef;
  border-radius: 8px;
  font-size: 13px;
  color: #163865;
  font-weight: 600;
  transition: 0.5s ease;
}
.regHelp a:hover {
  background: #163865;
  transition: 0.5s;
  text-decoration: none;
  color: #fff;
}
/* Admin login carousel (left panel) */
.authCarousel {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}
.authCarouselViewport {
  position: relative;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.18);
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  min-height: 260px;
}
.authSlide {
  position: absolute;
  inset: 0;
  padding: 18px 18px 14px;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 240ms ease, transform 240ms ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}
.authSlide.active {
  opacity: 1;
  transform: translateX(0);
}
.authSlideMedia {
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.authSlideMedia svg {
  width: min(340px, 100%);
  height: auto;
  opacity: 0.95;
}
.authSlideTitle {
  margin: 0;
  font-weight: 950;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.authSlideText {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  line-height: 1.55;
}
.authCarouselDots {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.authCarouselDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer;
}
.authCarouselDot.active {
  background: rgba(255,255,255,0.90);
}

/* Right panel spacing for login-style page */
.authRightHero {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.authRightHeroTitle {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.authRightHeroSub {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
  max-width: 520px;
}
.authRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--auth-muted);
  font-size: 12px;
}
.authCheckbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.authCheckbox input { transform: translateY(1px); }

/* Admin login (right panel) - screenshot style */
.adminLoginRight {
  padding: 46px 104px;
  background: #f8fafc;
}
@media (max-width: 980px) { .adminLoginRight { padding: 34px 22px; } }

.adminLoginTopbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 42px;
  margin-bottom: 30px;
}
.adminLoginLogo {
  width: 220px;
  max-width: 52%;
  height: auto;
  object-fit: contain;
}
.adminLoginLogoFallback {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #0f172a;
  opacity: 0.85;
}

.adminLoginLogoFallback .brandLogo .brandLogoImg--full {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  padding: 20px 0;
}

.adminLoginHeroTitle {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #393a3b;
}
.adminLoginHeroSub {
  margin: 0 0 34px;
  font-size: 14px;
  color: #6b6b6d;
  line-height: 1.6;
  max-width: 520px;
}

.adminLoginForm {
  width: min(560px, 100%);
}
.adminLoginControl {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 14px 14px;
  background: #fafafa;
  font-family: "Montserrat" !important;
}
.adminLoginControl:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
  background: #fff;
}
.adminLoginLabel {
  font-weight: 800;
  font-size: 13px;
  color: #111827;
  margin-bottom: 8px;
}

.adminPasswordWrap {
  position: relative;
}
.adminEyeBtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  color: #6b7280;
}
.adminEyeBtn:hover { background: rgba(15, 23, 42, 0.06); }
.adminEyeBtn svg { width: 20px; height: 20px; display: block; }

.adminLoginRow {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
}
.adminRememberCircle {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #1f3a8a;
  display: inline-grid;
  place-items: center;
  margin: 0;
}
.adminRememberCircle:checked {
  background: #1f3a8a;
  box-shadow: inset 0 0 0 3px #fff;
}
.adminLoginBtn {
  margin-top: 18px;
  width: 100%;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 500;
}
.adminLoginBtn:hover { filter: brightness(0.98); }

.adminPartners {
  margin-top: auto;
  padding-top: 20px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.adminPartnersLabel {
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: -0.003em;
  color: #666b74;
  font-weight: 400;
}
.adminPartnersTopRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.adminPartnersRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.adminPartnersLegal {
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: -0.003em;
  color: #666b74;
  font-weight: 400;
}
.adminPartnersCredit {
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: -0.003em;
  color: #666b74;
  font-weight: 400;
}
.adminPartnersCredit a {
  color: #224272;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.adminPartnersCredit a:hover {
  color: #1a345c;
}

/* Admin login left panel exact style */
.adminLeftPanel {
  padding: 0;
  background: #14335d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.adminLeftSlider {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  height: 100vh;
  padding-bottom: 0;
}
.adminLeftSlides {
  height: 100vh;
  min-height: 100vh;
  align-items: flex-start;
}
.adminLeftSlide {
  height: 100%;
  width: 100% !important;
  box-sizing: border-box;
  position: relative;
}
.adminLeftBrand {
  text-align: center;
  color: rgba(255,255,255,0.92);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-top: 18px;
}
.adminLeftFeatureBox {
  margin-top: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
  background: #0f2d54;
  overflow: hidden;
  position: relative;
}
.adminLeftFeatureVisual {
  width: 100%;
  height: 100%;
  background: #102c4f;
}
.adminLeftFeatureVisual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.78) contrast(0.9);
}
.adminLeftFeatureBox::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22, 56, 101, 1) 13%,
    rgba(32, 104, 199, 0.2) 60%,
    rgba(0, 0, 0, 0) 100%
);
  z-index: 1;
}
.adminLeftContent {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 56px;
  z-index: 3;
  max-width: 400px;
}
.adminLeftHeading {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 600;
  font-size: clamp(34px, 3.25vw, 46px);
  line-height: 28.8px;
  letter-spacing: 0px;
  font-size: 24px;
}
.adminLeftDescription {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 26px;
  font-size: 16px;
  font-weight: 400;
}
.adminLeftIndicators {
  margin-top: 0;
  display: flex;
  justify-content: flex-start;
  gap: 9px;
  position: absolute;
  left: 22px;
  right: auto;
  bottom: 20px;
  z-index: 4;
}
.adminLeftIndicator {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 0;
  cursor: pointer;
  padding: 0;
  opacity: 0.9;
  transition: width 180ms ease, opacity 180ms ease;
}
.adminLeftIndicator--active {
  background: #ffffff;
  width: 20px;
}
.adminLeftFooterLine {
  margin-top: auto;
  border-top: 2px solid rgba(255,255,255,0.55);
}
.adminLeftFooter {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
}
.adminLeftPanel .adminLeftFooterLine,
.adminLeftPanel .adminLeftFooter {
  display: none;
}

@media (max-width: 1400px) {
  .adminLeftSlides { min-height: 100vh; }
  .adminLeftSlider { padding-bottom: 0; }
  .adminLeftContent { max-width: 420px; bottom: 56px; }
}
@media (max-width: 1180px) {
  .adminLeftHeading { font-size: 32px; }
  .adminLeftDescription { font-size: 18px; }
  .adminLeftContent { bottom: 52px; }
}
@media (max-width: 980px) {
  .adminLeftPanel { display: none; }
}

/* ============================================================
   Register landing redesign
   ============================================================ */

/* Shell / frame overrides for the registration page */
.regShell--register {
    padding: 0;
    background: #fff;
    place-items: stretch;
}
.regFrame--register {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: 1fr 1fr;
}

/* ---- Left panel ---- */
.regLeftTopInner .brand {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
}
.regLeftTopInner .brand img {
    width: 200px;
}
.regLeft--register {
    background: #0d2046;
    padding: 32px 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 0;
}
.regLeft--register::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 55px solid rgba(255,255,255,0.03);
    top: -150px;
    right: -160px;
    pointer-events: none;
}
.regLeft--register::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 45px solid rgba(255,255,255,0.025);
    bottom: 30px;
    left: -110px;
    pointer-events: none;
}

.regLeftTop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-bottom: 52px;
    position: relative;
    z-index: 1;
}
.regLeftTopInner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.regGlobeWrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.regGlobeWrap svg { width: 15px; height: 15px; color: #fff; }
.regLeftTopCaret { color: rgba(255,255,255,0.45); font-size: 12px; margin-left: 2px; }

.regOnboardingBadge {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fb923c;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.regOnboardingBadgeDot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fb923c;
    flex-shrink: 0;
}

.regOnboardingTitle {
    margin: 0 0 14px;
    color: #fff;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.18;
    position: relative;
    z-index: 1;
}
.regOnboardingTitle strong { font-weight: 900; }

.regOnboardingDesc {
    margin: 0 0 28px;
    color: rgba(255,255,255,0.58);
    font-size: 12.5px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
    max-width: 320px;
}

.regOnboardingSteps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}
.regOnboardingStep {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
}
.regOnboardingStep:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 29px;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.12);
}
.regStepCircle {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.78);
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.regStepContent { padding-bottom: 22px; }
.regStepName {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 3px;
}
.regStepDesc {
    color: rgba(255,255,255,0.48);
    font-size: 11.5px;
    margin: 0;
    line-height: 1.45;
}

.regOnboardingPrivacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255,255,255,0.38);
    font-size: 11px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    line-height: 1.45;
}
.regOnboardingPrivacy svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; }

/* ---- Right panel ---- */
.regRight--register {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-height: 0;
    overflow-y: auto;
}

.regRightTopbar {
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 18px 42px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.regRightRegion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.regRightRegionTop {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
}
.regRightRegionTop svg { width: 18px; height: 18px; color: #2563eb; }
.regRightRegionCaret { color: #94a3b8; font-size: 9px; margin-left: 2px; }
.regRightRegionSub { font-size: 9px; color: #94a3b8; margin-left: 24px; }
.regRightAlready { font-size: 13px; color: #64748b; }
.regRightAlready a { color: #2563eb; font-weight: 600; }

/* Landing section */
.regLanding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 72px;
    max-width: 680px;
}
.regLandingTitle {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.regLandingSubtitle {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

/* Radio option cards */
.regCards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.regCard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    user-select: none;
}
.regCard:hover { border-color: #cbd5e1; }
.regCard.reg-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.regCardIconBox {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background 0.15s;
    background: #f1f5f9;
}
.regCard.reg-selected .regCardIconBox { background: #1e3a8a; }
.regCardIconBox svg { width: 18px; height: 18px; color: #64748b; }
.regCard.reg-selected .regCardIconBox svg { color: #fff; }
.regCardBody { flex: 1; }
.regCardTitle {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    color: #0f172a;
    margin-bottom: 3px;
}
.regCardDesc {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.regCardRadio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.regCard.reg-selected .regCardRadio { border-color: #2563eb; }
.regCardRadio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    opacity: 0;
    transition: opacity 0.15s;
}
.regCard.reg-selected .regCardRadio::after { opacity: 1; }

/* Begin registration button */
.regBeginBtn {
    width: 100%;
    padding: 14px 20px;
    background: #1e3a8a;
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}
.regBeginBtn:hover { background: #1d4ed8; }

/* Info note box */
.regInfoNote {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    align-items: flex-start;
}
.regInfoNoteIcon { flex-shrink: 0; width: 18px; height: 18px; color: #0284c7; margin-top: 1px; }
.regInfoNoteText { font-size: 12px; color: #0c4a6e; line-height: 1.6; margin: 0; }

/* Right panel footer */
.regRightFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 42px;
    border-top: 1px solid #f1f5f9;
    font-size: 11.5px;
    color: #94a3b8;
    flex-shrink: 0;
}
.regRightFooter a { color: #94a3b8; text-decoration: none; }
.regRightFooter a:hover { color: #64748b; text-decoration: underline; }

/* Form section (revealed after landing) */
.regFormSection {
    flex: 1;
    padding: 32px 42px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.regFormSection .regKicker { color: #64748b; font-size: 12px; margin: 0 0 4px; }
.regFormSection .regTitle { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }

@media (max-width: 980px) {
    .regLeft--register { display: none; }
    .regFrame--register { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
    .regRight--register { min-height: 100vh; overflow-y: visible; }
    .regLanding { padding: 32px 24px; max-width: 100%; }
    .regRightTopbar { padding: 16px 24px; }
    .regRightFooter { padding: 16px 24px; flex-direction: column; gap: 6px; text-align: center; }
    .regFormSection { padding: 24px; }
}

/* ============================================================
   Registration — full-page application form shell
   ============================================================ */

.regFormShell {
    position: fixed;
    inset: 0;
    background: #f8fafc;
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---- Topbar ---- */
.regFormTopbar {
    height: 90px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
    gap: 16px;
}
.regFormBreadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #475569;
    font-weight: 500;
    overflow: hidden;
}
.regFormBreadcrumb .brandLogo { display: inline-flex; align-items: center; flex-shrink: 0; }
.regFormBreadcrumb .brandLogoImg--full { height: 50px; width: auto; object-fit: contain; display: block; }
.regFormBrandName { color: #0f172a; font-weight: 700; white-space: nowrap; }
.regFormBreadcrumbSep { color: #cbd5e1; font-size: 16px; }
.regFormBreadcrumbCurrent { color: #1e3a8a; font-weight: 700; white-space: nowrap; }
.regFormTopbarRight { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.regFormCisBadge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.regFormCisBadge:hover { background: #f8fafc; }
.regFormCisBadge svg { width: 14px; height: 14px; color: #2563eb; flex-shrink: 0; }
.regFormCloseBtn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    display: grid;
    place-items: center;
    line-height: 1;
    transition: all 0.15s;
}
.regFormCloseBtn:hover { background: #f1f5f9; color: #0f172a; }

/* ---- Body layout ---- */
.regFormBody { flex: 1; display: flex; overflow: hidden; }

/* ---- Sidebar ---- */
.regFormSidebar {
    width: 500px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}
.regSidebarTitle { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 3px; }
.regSidebarRef { font-size: 10.5px; color: #64748b; margin-bottom: 18px; letter-spacing: 0.01em; }
.regSidebarProgressHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.regSidebarProgressPct { color: #475569; font-size: 11px; }
.regSidebarProgressTrack {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-bottom: 20px;
    overflow: hidden;
}
.regSidebarProgressFill {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
    transition: width 0.35s ease;
    width: 0%;
}
.regSidebarSteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; }
.regSidebarStep {
    display: flex;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 10px;
    transition: background 0.15s;
    align-items: flex-start;
}
.regSidebarStep--active { background: #eff6ff; }
.regSidebarStepCircle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #fff;
    transition: all 0.2s;
}
.regSidebarStep--active .regSidebarStepCircle { border-color: #2563eb; color: #2563eb; }
.regSidebarStep--done .regSidebarStepCircle { border-color: #16a34a; background: #16a34a; color: #fff; }
.regSidebarStepMeta { padding-top: 2px; }
.regSidebarStepLabel { font-size: 9px; font-weight: 700; color: #94a3b8; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1px; }
.regSidebarStep--active .regSidebarStepLabel { color: #2563eb; }
.regSidebarStepName { font-size: 12.5px; font-weight: 700; color: #475569; margin-bottom: 1px; }
.regSidebarStep--active .regSidebarStepName { color: #1e3a8a; }
.regSidebarStepDesc { font-size: 10.5px; color: #94a3b8; line-height: 1.3; }
.regSidebarInfoCard {
    margin-top: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
}
.regSidebarInfoTitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 5px;
}
.regSidebarInfoTitle svg { width: 13px; height: 13px; color: #2563eb; flex-shrink: 0; }
.regSidebarInfoCard p { margin: 0; font-size: 11px; color: #475569; line-height: 1.5; }

/* ---- Main content area ---- */
.regFormMain { flex: 1; overflow-y: auto; background: #f8fafc; }

/* ---- Form panes ---- */
.regAppPane { display: none; }
.regAppPane.active { display: block; padding: 32px 48px 0; max-width: 100%; }

.regPaneHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}
.regPaneTitle { margin: 0 0 4px; font-size: 21px; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
.regPaneSub { margin: 0; font-size: 12.5px; color: #64748b; line-height: 1.5; }
.regStepBadge {
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 10px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ---- Form sections ---- */
.regSection { margin-bottom: 26px; }
.regSectionLabel {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.regSectionGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.regSectionFull { grid-column: 1 / -1; }
@media (max-width: 680px) {
    .regSectionGrid { grid-template-columns: 1fr; }
    .regAppPane.active { padding: 20px 16px 0; }
}

/* Field labels */
.regFieldLabel { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.regFieldReq { color: #ef4444; font-weight: 700; margin-left: 2px; }
.regFieldOpt { font-size: 11px; font-weight: 500; color: #94a3b8; margin-left: 4px; }
.regFieldHint { display: block; font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* Prefix input (https://) */
.regInputWithPrefix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.regInputWithPrefix:focus-within {
    border-color: var(--auth-primary2);
    box-shadow: 0 0 0 4px var(--auth-focus);
}
.regInputPrefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #f8fafc;
    border-right: 1px solid var(--auth-border);
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}
.regControlPrefixed {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
}

/* ---- Bottom actions ---- */
.regFormActions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px 28px;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    position: sticky;
    bottom: 0;
    margin-top: 28px;
}
.regFormBackBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Montserrat', sans-serif;
}
.regFormBackBtn:hover { background: #f1f5f9; color: #0f172a; }
.regFormContinueBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    background: #1e3a8a;
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Montserrat', sans-serif;
}
.regFormContinueBtn:hover { background: #1d4ed8; }

@media (max-width: 768px) {
    .regFormSidebar { display: none; }
    .regFormActions { padding: 16px; }
}

/* Country dial (FlagCDN images; type-to-filter combobox) */
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.countryDial {
  position: relative;
  display: block;
}

.countryDial.regControl {
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.countryDial__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 10px 11px 12px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  min-height: 44px;
}

.countryDial__btn:hover {
  border-color: #cbd5e1;
}

.countryDial.regControl:focus-within .countryDial__btn {
  outline: none;
  border-color: var(--auth-primary2);
  box-shadow: 0 0 0 4px var(--auth-focus);
}

.countryDial__flagImg {
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 2px;
}

.countryDial__caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  flex-shrink: 0;
  margin-left: 2px;
}

.countryDial__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  max-height: min(340px, 70vh);
  overflow: hidden;
}

/* `display:flex` above would otherwise override the global [hidden] rule */
.countryDial__menu[hidden] {
  display: none !important;
}

.countryDial__menu:focus {
  outline: none;
}

.countryDial.countryDial--openUp .countryDial__menu {
  top: auto;
  bottom: calc(100% + 4px);
}

.countryDial__empty {
  margin: 0;
  padding: 14px 12px;
  font-size: 13px;
  color: var(--auth-muted);
  text-align: center;
}

.countryDial__list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: 260px;
}

.countryDial__item {
  margin: 0;
}

.countryDial__option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.countryDial__option:hover,
.countryDial__option:focus-visible {
  background: #f1f5f9;
}

.countryDial__option[aria-selected="true"] {
  background: #eff6ff;
}

.countryDial__option img {
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 2px;
}

/* ================================================================
   Document upload UI — Step 02 KYC
   ================================================================ */
.regDocLayout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-top: 4px;
}

/* Drop zone */
.regDropZone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    background: #fafbff;
    transition: border-color 0.18s, background 0.18s;
    user-select: none;
}
.regDropZone:hover, .regDropZone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.regDropIcon {
    width: 48px; height: 48px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    color: #3b82f6;
}
.regDropIcon svg { width: 22px; height: 22px; }
.regDropText { font-size: 15px; font-weight: 500; color: #1e293b; margin: 0 0 5px; }
.regDropBrowse { color: #3b82f6; text-decoration: underline; cursor: pointer; }
.regDropSub { font-size: 12px; color: #94a3b8; margin: 0; }

/* Uploaded file list */
.regUploadedSection { margin-top: 22px; }
.regUploadedHeader {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
    font-size: 14px; font-weight: 600; color: #1e293b;
}
.regUploadedCount { font-weight: 400; color: #64748b; }
.regFileItem {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
}
.regFileBadge {
    width: 42px; height: 42px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0;
    letter-spacing: 0.5px;
}
.regFileBadge--pdf  { background: #ef4444; }
.regFileBadge--jpg, .regFileBadge--jpeg { background: #22c55e; }
.regFileBadge--png  { background: #3b82f6; }
.regFileBadge--other{ background: #8b5cf6; }
.regFileInfo { flex: 1; min-width: 0; }
.regFileName {
    font-weight: 600; font-size: 14px; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.regFileMeta {
    font-size: 11px; color: #94a3b8; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.regFileStatus {
    padding: 4px 10px; border-radius: 99px;
    font-size: 11px; font-weight: 600;
    display: flex; align-items: center; gap: 4px; flex-shrink: 0;
    white-space: nowrap;
}
.regFileStatus--uploaded { background: #eff6ff; color: #3b82f6; border: 1px solid #bfdbfe; }
.regFileStatus--verified { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.regFileActionBtn {
    width: 30px; height: 30px;
    border: 1px solid #e2e8f0; border-radius: 6px;
    background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #64748b; font-size: 13px;
    transition: background 0.12s;
}
.regFileActionBtn:hover { background: #f1f5f9; }

/* PDF / image preview modal */
.docPreviewOverlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.65);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: docPreviewFadeIn 0.15s ease;
}
@keyframes docPreviewFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.docPreviewModal {
    background: #fff; border-radius: 12px;
    width: 100%; max-width: 960px; height: 90vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    animation: docPreviewSlideUp 0.18s ease;
}
@keyframes docPreviewSlideUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.docPreviewHeader {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
}
.docPreviewTitle {
    font-size: 13px; font-weight: 600; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%;
}
.docPreviewCloseBtn {
    width: 32px; height: 32px; border-radius: 6px; border: none;
    background: #f1f5f9; cursor: pointer; font-size: 18px; line-height: 1;
    color: #64748b; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.12s, color 0.12s;
}
.docPreviewCloseBtn:hover { background: #fee2e2; color: #ef4444; }
.docPreviewBody {
    flex: 1; overflow: hidden; background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
}
.docPreviewBody iframe {
    width: 100%; height: 100%; border: none;
}
.docPreviewBody img {
    max-width: 100%; max-height: 100%; object-fit: contain; padding: 16px;
}
.docPreviewUnsupported {
    text-align: center; color: #64748b; font-size: 14px; padding: 40px;
}

/* Required documents checklist card */
.regDocReqCard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    align-self: start;
}
.regDocReqHeader {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
}
.regDocReqTitle {
    font-weight: 700; font-size: 14px; color: #1e293b;
    display: flex; align-items: center; gap: 7px;
}
.regDocReqTitle svg { width: 15px; height: 15px; color: #3b82f6; flex-shrink: 0; }
.regDocRegionBadge {
    background: #f1f5f9; color: #475569;
    border-radius: 99px; font-size: 11px; font-weight: 600;
    padding: 3px 10px; white-space: nowrap;
}
.regDocReqList { padding: 4px 0; }
.regDocReqItem {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 18px;
    border-bottom: 1px solid #f1f5f9;
}
.regDocReqItem:last-child { border-bottom: none; }
.regDocReqCheckbox {
    width: 26px; height: 26px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.regDocReqCheckbox--empty {
    border: 2px dashed #cbd5e1;
    border-radius: 50%;
}
.regDocReqCheckbox--done {
    background: #16a34a;
    border-radius: 6px;
}
.regDocReqCheckbox--done svg { color: #fff; width: 13px; height: 13px; }
.regDocReqMeta { flex: 1; min-width: 0; }
.regDocReqName { font-size: 13px; font-weight: 600; color: #1e293b; }
.regDocReqName--done { color: #64748b; }
.regDocReqSub { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.regDocUploadBtn {
    padding: 4px 12px;
    border: 1px solid #e2e8f0; border-radius: 7px;
    background: #fff; font-size: 12px; font-weight: 500; color: #1e293b;
    cursor: pointer; flex-shrink: 0; white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.12s, border-color 0.12s;
}
.regDocUploadBtn:hover { background: #f8fafc; border-color: #cbd5e1; }
.regDocReqFooter {
    padding: 11px 18px;
    border-top: 1px solid #f1f5f9;
    display: flex; align-items: flex-start; gap: 6px;
    font-size: 11px; color: #3b82f6;
    line-height: 1.4;
}
.regDocReqFooter svg { flex-shrink: 0; width: 13px; height: 13px; margin-top: 1px; }
.regDocNoRegion {
    padding: 32px 18px; text-align: center;
    color: #94a3b8; font-size: 12px; line-height: 1.6;
}

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

/* ================================================================
   Review & Submit panel (Step 03)
   ================================================================ */
.regReviewCard { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.regReviewCardHeader { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 12px; border-bottom: 1px solid #f0f2f5; background: #f8fafc; }
.regReviewCardTitle { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.regReviewEditBtn { font-size: 12px; font-weight: 600; color: #1a3353; background: none; border: 1px solid #d1d5db; border-radius: 6px; padding: 4px 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.regReviewEditBtn:hover { background: #f1f5f9; border-color: #1a3353; }
.regReviewRows { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.regReviewRow { display: flex; flex-direction: column; gap: 3px; padding: 12px 20px; border-bottom: 1px solid #f0f2f5; }
.regReviewRow:nth-last-child(-n+2):last-child,
.regReviewRow:nth-last-child(-n+2):nth-last-child(2) { border-bottom: none; }
.regReviewRowLabel { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.regReviewRowValue { font-size: 13.5px; font-weight: 500; color: #1a2940; word-break: break-word; }
.regReviewEmpty { color: #cbd5e1; font-style: italic; }
.regReviewDocs { padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.regReviewDocItem { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 7px; }
.regReviewDocLabel { font-size: 12px; font-weight: 600; color: #374151; flex: 1; }
.regReviewDocName { font-size: 11.5px; color: #64748b; font-style: italic; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regReviewDeclare { margin-top: 4px; padding: 16px 20px; background: #f0f6ff; border: 1px solid #c7d9f5; border-radius: 10px; }
.regReviewDeclareLabel { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.regReviewDeclareCheck { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: #1a3353; cursor: pointer; }
.regReviewDeclareLabel span { font-size: 13px; color: #374151; line-height: 1.5; }
.regFormContinueBtn--disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ================================================================
   Application tracking page (/track/{ref})
   ================================================================ */
.trackShell {
    min-height: 100vh;
    background: #dbe4f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 48px;
}
.trackTopbar {
    width: 100%;
    max-width: 720px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.trackBrand { display: flex; align-items: center; gap: 10px; }
.trackBrandLogo { height: 32px; width: auto; }
.trackBackLink {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.trackBackLink:hover { color: #1e3a8a; text-decoration: none; }

.trackCard {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(2,6,23,0.12);
    overflow: hidden;
}

/* Track — header */
.trackHeader { background: #0d2046; padding: 28px 36px; color: #fff; }
.trackHeaderTop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.trackRef {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.trackRefNum {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    margin: 0;
}
.trackStatusPill {
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.trackStatusPill--pending  { background: #fbbf24; color: #78350f; }
.trackStatusPill--review   { background: #60a5fa; color: #1e3a8a; }
.trackStatusPill--approved { background: #34d399; color: #064e3b; }
.trackStatusPill--activated{ background: #34d399; color: #064e3b; }
.trackStatusPill--rejected { background: #f87171; color: #7f1d1d; }

.trackHeaderMeta { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.trackMetaItem { font-size: 12px; color: rgba(255,255,255,0.6); }
.trackMetaItem strong { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }

/* Track — timeline */
.trackBody { padding: 36px; }
.trackTimeline { position: relative; }
.trackTimeline::before {
    content: '';
    position: absolute;
    left: 19px; top: 10px; bottom: 10px;
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.trackStep {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.trackStep:last-child { margin-bottom: 0; }
.trackStepIcon {
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}
.trackStepIcon--done    { background: #16a34a; border-color: #16a34a; color: #fff; }
.trackStepIcon--active  { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.trackStepIcon--pending { background: #f1f5f9; border-color: #cbd5e1; color: #94a3b8; }
.trackStepIcon--rejected{ background: #ef4444; border-color: #ef4444; color: #fff; }
.trackStepIcon svg { width: 18px; height: 18px; }

.trackStepBody { padding-top: 8px; }
.trackStepTitle { font-size: 15px; font-weight: 700; color: #1e293b; margin: 0 0 3px; }
.trackStepTitle--pending  { color: #94a3b8; }
.trackStepTitle--rejected { color: #ef4444; }
.trackStepDesc { font-size: 13px; color: #64748b; margin: 0; line-height: 1.5; }
.trackStepDate { font-size: 11px; color: #94a3b8; margin-top: 4px; }

.trackRejectionNote {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 10px;
    font-size: 13px;
    color: #be123c;
    line-height: 1.5;
}

/* Track — lookup form */
.trackLookup {
    width: 100%;
    max-width: 720px;
    margin-top: 24px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 28px;
    box-shadow: 0 4px 16px rgba(2,6,23,0.07);
}
.trackLookupTitle { font-size: 14px; font-weight: 600; color: #1e293b; margin: 0 0 12px; }
.trackLookupRow { display: flex; gap: 10px; }
.trackLookupInput {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    outline: none;
}
.trackLookupInput:focus { border-color: #1e3a8a; box-shadow: 0 0 0 3px rgba(30,58,138,0.12); }
.trackLookupBtn {
    padding: 10px 20px;
    background: #1e3a8a;
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.trackLookupBtn:hover { background: #1d4ed8; }
.trackLookupError { color: #b91c1c; font-size: 12px; margin-top: 6px; }
.trackLookupSub { font-size: 13px; color: #64748b; margin: -6px 0 14px; }
.trackLookup--standalone { margin: 60px auto; padding: 36px 40px; }

.adminLeftFooter span a {
    color: #fff;
    border-bottom: 1px solid #fff;
    transition: border-color 0.5s ease;
}

.adminLeftFooter span a:hover {
    border-bottom-color: transparent;
}

.adminLeftFooter span a {
    position: relative;
    color: #fff;
    text-decoration: none;
}

.adminLeftFooter span a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    transition: width 0.5s ease;
}

.adminLeftFooter span a:hover::after {
    width: 0;
}

/* Six-box OTP input (2FA) */
.otpCellsWrap {
    margin-top: 6px;
    width: fit-content;
    max-width: min(360px, 100%);
}

.otpCells {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
}

.otpDigit,
.regControl.otpDigitBox,
.adminLoginControl.otpDigitBox {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  max-width: 52px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-left: 8px;
  padding-right: 8px;
}

@media (max-width: 520px) {
  .otpCells {
    gap: 6px;
  }

  .otpDigit,
  .regControl.otpDigitBox,
  .adminLoginControl.otpDigitBox {
    width: 40px;
    min-width: 40px;
    font-size: 16px;
  }
}
.adminLoginBtnSeperation {
  text-align: center;
  padding: 15px 0;
  position: relative;
  color: rgba(107, 114, 128, 1);
}
.adminLoginBtnSeperation:before {
    position: absolute;
    content: '';
    background: rgba(204, 204, 204, 1);
    width: 46%;
    height: 1px;
    top: 50%;
    left: 0;
}
.adminLoginBtnSeperation:after {
    position: absolute;
    content: '';
    background: rgba(204, 204, 204, 1);
    width: 46%;
    height: 1px;
    top: 50%;
    right: 0;
}
.regFull.adminLoginRow a {
  color: #163865;
  font-weight: 600;
  font-size: 14px;
}
.regRight.adminLoginRight #fpBackBtn {
  width: min(560px, 100%) !important;
}

/* ── Invitation code entry (register page) ──────────────────────────── */
.regInviteBack {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.12s;
}
.regInviteBack:hover { color: #111827; }

.regCodeBoxesWrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 28px 0 8px;
    flex-wrap: wrap;
}

.regCodeGroup {
    display: flex;
    gap: 7px;
}

.regCodeBox {
    width: 44px;
    height: 52px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    font-family: "Courier New", Courier, monospace;
    color: #1e3a8a;
    background: #f8faff;
    outline: none;
    text-transform: uppercase;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    caret-color: transparent;
    flex-shrink: 0;
}
.regCodeBox:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.regCodeBox--filled {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.regCodeSep {
    font-size: 22px;
    color: #9ca3af;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.regInviteResult {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 8px;
}
.regInviteResult--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}
.regInviteResult--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.regInviteResult svg { flex-shrink: 0; margin-top: 2px; }

/* ── Login page: forgot-password inline section ──────────────────────── */
#fpSection {
    display: none;
}
.fpBackBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 7px;
    padding: 11px;
    margin-top: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    color: #1b3a6b;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.fpBackBtn:hover {
    border-color: #1b3a6b;
    background: #f0f5ff;
}
.fpMsg {
    display: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}
.fpMsg--success { display: block; background: #ecfeff; border: 1px solid #67e8f9; color: #155e75; }
.fpMsg--error   { display: block; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }